Skip to content

Instantly share code, notes, and snippets.

@stevemcquaid
Created September 4, 2014 19:34
Show Gist options
  • Save stevemcquaid/310de372e20eb12b8271 to your computer and use it in GitHub Desktop.
Save stevemcquaid/310de372e20eb12b8271 to your computer and use it in GitHub Desktop.
root@9d3edb109d43:/openstack-ci/ansible/wordpress-nginx# ansible-playbook -i hosts site.yml -vvvv
PLAY [Install Wordpress, MySQL, Nginx, and PHP-FPM] ***************************
GATHERING FACTS ***************************************************************
<securityGroups> ESTABLISH CONNECTION FOR USER: smcquaid
<securityGroups> REMOTE_MODULE setup
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'mkdir -p /tmp/ansible-tmp-1409305968.4-9507290112498 && chmod a+rx /tmp/ansible-tmp-1409305968.4-9507290112498 && echo /tmp/ansible-tmp-1409305968.4-9507290112498'"]
EXEC previous known host file not found for securityGroups
<securityGroups> PUT /tmp/tmp6A91Oj TO /tmp/ansible-tmp-1409305968.4-9507290112498/setup
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'chmod a+r /tmp/ansible-tmp-1409305968.4-9507290112498/setup'"]
EXEC previous known host file not found for securityGroups
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', u"/bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /tmp/ansible-tmp-1409305968.4-9507290112498/setup; rm -rf /tmp/ansible-tmp-1409305968.4-9507290112498/ >/dev/null 2>&1'"]
EXEC previous known host file not found for securityGroups
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'rm -rf /tmp/ansible-tmp-1409305968.4-9507290112498/ >/dev/null 2>&1'"]
EXEC previous known host file not found for securityGroups
ok: [wordpress1]
TASK: [common | Install libselinux-python] ************************************
<securityGroups> ESTABLISH CONNECTION FOR USER: smcquaid
<securityGroups> REMOTE_MODULE yum name=libselinux-python state=present
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'mkdir -p /tmp/ansible-tmp-1409305972.96-179752864580536 && chmod a+rx /tmp/ansible-tmp-1409305972.96-179752864580536 && echo /tmp/ansible-tmp-1409305972.96-179752864580536'"]
EXEC previous known host file not found for securityGroups
<securityGroups> PUT /tmp/tmpAVYSWm TO /tmp/ansible-tmp-1409305972.96-179752864580536/yum
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', u"/bin/sh -c 'chmod a+r /tmp/ansible-tmp-1409305972.96-179752864580536/yum'"]
EXEC previous known host file not found for securityGroups
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', u"/bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python -tt /tmp/ansible-tmp-1409305972.96-179752864580536/yum'"]
EXEC previous known host file not found for securityGroups
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'rm -rf /tmp/ansible-tmp-1409305972.96-179752864580536/ >/dev/null 2>&1'"]
EXEC previous known host file not found for securityGroups
ok: [wordpress1] => {"changed": false, "msg": "", "rc": 0, "results": ["libselinux-python-2.0.94-5.3.el6_4.1.x86_64 providing libselinux-python is already installed"]}
TASK: [common | Copy the EPEL repository definition] **************************
<securityGroups> ESTABLISH CONNECTION FOR USER: smcquaid
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', u'/bin/sh -c \'rc=0; [ -r "/etc/yum.repos.d/epel.repo" ] || rc=2; [ -f "/etc/yum.repos.d/epel.repo" ] || rc=1; [ -d "/etc/yum.repos.d/epel.repo" ] && echo 3 && exit 0; (/usr/bin/md5sum /etc/yum.repos.d/epel.repo 2>/dev/null) || (/sbin/md5sum -q /etc/yum.repos.d/epel.repo 2>/dev/null) || (/usr/bin/digest -a md5 /etc/yum.repos.d/epel.repo 2>/dev/null) || (/sbin/md5 -q /etc/yum.repos.d/epel.repo 2>/dev/null) || (/usr/bin/md5 -n /etc/yum.repos.d/epel.repo 2>/dev/null) || (/bin/md5 -q /etc/yum.repos.d/epel.repo 2>/dev/null) || (/usr/bin/csum -h MD5 /etc/yum.repos.d/epel.repo 2>/dev/null) || (/bin/csum -h MD5 /etc/yum.repos.d/epel.repo 2>/dev/null) || (echo "${rc} /etc/yum.repos.d/epel.repo")\'']
EXEC previous known host file not found for securityGroups
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'mkdir -p /tmp/ansible-tmp-1409305976.49-63072783852709 && chmod a+rx /tmp/ansible-tmp-1409305976.49-63072783852709 && echo /tmp/ansible-tmp-1409305976.49-63072783852709'"]
EXEC previous known host file not found for securityGroups
<securityGroups> PUT /openstack-ci/ansible/wordpress-nginx/roles/common/files/epel.repo TO /tmp/ansible-tmp-1409305976.49-63072783852709/source
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'chmod a+r /tmp/ansible-tmp-1409305976.49-63072783852709/source'"]
EXEC previous known host file not found for securityGroups
<securityGroups> PUT /tmp/tmpE2BUxF TO /tmp/ansible-tmp-1409305976.49-63072783852709/copy
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'chmod a+r /tmp/ansible-tmp-1409305976.49-63072783852709/copy'"]
EXEC previous known host file not found for securityGroups
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', u"/bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /tmp/ansible-tmp-1409305976.49-63072783852709/copy'"]
EXEC previous known host file not found for securityGroups
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'rm -rf /tmp/ansible-tmp-1409305976.49-63072783852709/ >/dev/null 2>&1'"]
EXEC previous known host file not found for XXX.XXX.XXX.XXX
failed: [wordpress1] => {"failed": true, "md5sum": "4cd77946d1b5176987036e8fb382ce2d"}
msg: Destination /etc/yum.repos.d not writable
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @//site.retry
wordpress1 : ok=2 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment