Skip to content

Instantly share code, notes, and snippets.

View v1k0d3n's full-sized avatar
🎧
Give me a soft subtle mix, and if ain't broke then don't try to fix it

Brandon B. Jozsa v1k0d3n

🎧
Give me a soft subtle mix, and if ain't broke then don't try to fix it
View GitHub Profile
---
- hosts: all
sudo: yes
tasks:
- name: Make sure that hosts are not vulnerable to CVE-2016-0777/0778
lineinfile: dest=/etc/ssh/ssh_config state=present line='UseRoaming no'
---
- hosts: rpi-k8s
sudo: no
vars_prompt:
- name: "user_password"
prompt: "Enter password for user 'user'"
private: yes
tasks:
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-dns-v10
namespace: kube-system
labels:
k8s-app: kube-dns
version: v10
kubernetes.io/cluster-service: "true"
spec:
#cloud-config
apt_mirror: http://mirror.rackspace.com/ubuntu/
package_upgrade: true
packages:
- git-core
runcmd:
- export ANSIBLE_FORCE_COLOR=true
- export PYTHONUNBUFFERED=1
- export REPO=https://github.com/openstack/openstack-ansible
- export BRANCH=liberty
Loaded callback default of type stdout, v2.0
1 plays in fed-prep.yml
PLAY ***************************************************************************
TASK [copy cockpit repo] *******************************************************
task path: /Users/bjozsa/WORKING/20160211-2108/jinkit-ansible/fed-prep.yml:9
<192.168.70.165> ESTABLISH SSH CONNECTION FOR USER: fedora
<192.168.70.165> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/bjozsa/.ssh/terraform"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=fedora -o ConnectTimeout=10 -o ControlPath=/Users/bjozsa/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.70.165 '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1455298039.05-199224822953976 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1455298039.05-199224822953976 )" )'
<192.168.70.165> ESTABLISH SSH CONNECTION FOR USER: fedora
---
- hosts: kube
remote_user: fedora
gather_facts: false
become_user: root
become: yes
vars_prompt:
- name: fedora_password
prompt: "Enter password for user: fedora"
TASK [opencontrail : Build docker container] ***********************************
fatal: [titanicmaster -> titanicmaster]: FAILED! => {"changed": true, "cmd": ["docker", "build", "-t", "opencontrail/kmod_fedora23-4.2.3-300.fc23.x86_64", "fedora23-4.2.3-300.fc23.x86_64"], "delta": "0:00:02.634368", "end": "2016-02-16 05:01:25.657349", "failed": true, "rc": 1, "start": "2016-02-16 05:01:23.022981", "stderr": "The command '/bin/sh -c yum install -y kernel-devel-\\1-\\2.\\3.\\4' returned a non-zero code: 1", "stdout": "Sending build context to Docker daemon 2.56 kB\r\r\nStep 1 : FROM fedora:23\n ---> 6547ce9b3407\nStep 2 : RUN dnf install -y git make\n ---> Using cache\n ---> 82c72f223d5c\nStep 3 : RUN dnf install -y automake flex bison gcc gcc-c++ boost boost-devel libxml2-devel python-lxml\n ---> Using cache\n ---> 8654a8ada345\nStep 4 : RUN yum install -y yum-utils\n ---> Using cache\n ---> ffb3deeabbd2\nStep 5 : RUN release=$(awk '{print $4;}' /etc/redhat-release); if [ $release != \"23 \" ]; then yum-config-
JINKITOSXLT01:~ bjozsa$ ssh -i ~/.ssh/terraform ubuntu@10.3.10.35
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-76-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Mon Feb 1 09:29:05 EST 2016
System load: 1.21
Usage of /: 35.3% of 157.46GB
Memory usage: 48%
Swap usage: 0%
Processes: 873
Users logged in: 0
---
# Variables here are applicable to all host groups NOT roles
# This sample file generated by generate_group_vars_sample.sh
# Dummy variable to avoid error because ansible does not recognize the
# file as a good configuration file when no variable in it.
dummy:
# You can override vars by using host or group vars
TASK [ceph.ceph-common : add ceph stable repository] ***************************
fatal: [osa-cm01]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "sudo: unable to resolve host osa-cm01\r\nTraceback (most recent call last):\r\n File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1458577597.0-101886040923422/apt_repository\", line 3210, in <module>\r\n main()\r\n File \"/home/ubuntu/.ansible/tmp/ansible-tmp-1458577597.0-101886040923422/apt_repository\", line 468, in main\r\n cache = apt.Cache()\r\n File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 107, in __init__\r\n self.open(progress)\r\n File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 151, in open\r\n self._cache = apt_pkg.Cache(progress)\r\nSystemError: E:Malformed line 1 in source list /etc/apt/sources.list.d/ceph_com_debian_infernalis.list (absolute dist), E:The list of sources could not be read., E:The package lists or status file could not be parsed or opened.\r\n", "msg": "MODULE F