Skip to content

Instantly share code, notes, and snippets.

@wjessop

wjessop/main.yml Secret

Created April 22, 2014 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjessop/053edce4c6224e2b0768 to your computer and use it in GitHub Desktop.
Save wjessop/053edce4c6224e2b0768 to your computer and use it in GitHub Desktop.
- name: Install Ruby versions
apt: pkg=ruby-{{ item }} state=latest
with_items: ruby_versions
TASK: [rails_app | Install Ruby versions] *************************************
<he-002.sendcat.com> ESTABLISH CONNECTION FOR USER: will
<he-002.sendcat.com> REMOTE_MODULE apt pkg=ruby-1.9.3-p545,2.1.1-p76 state=latest
<he-002.sendcat.com> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/will/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'he-002.sendcat.com', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1398210120.2-196072970852 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1398210120.2-196072970852 && echo $HOME/.ansible/tmp/ansible-tmp-1398210120.2-196072970852'"]
<he-002.sendcat.com> PUT /var/folders/r7/kjzbwmx533b20hcf1_s9kc9c0000gn/T/tmpQfo17o TO /home/will/.ansible/tmp/ansible-tmp-1398210120.2-196072970852/apt
<he-002.sendcat.com> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/will/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'he-002.sendcat.com', '/bin/sh -c \'sudo -k && sudo -H -S -p "[sudo via ansible, key=pgyqfjafvzodahcksxhrkuvfpdoikehk] password: " -u root /bin/sh -c \'"\'"\'echo SUDO-SUCCESS-pgyqfjafvzodahcksxhrkuvfpdoikehk; /usr/bin/python /home/will/.ansible/tmp/ansible-tmp-1398210120.2-196072970852/apt; rm -rf /home/will/.ansible/tmp/ansible-tmp-1398210120.2-196072970852/ >/dev/null 2>&1\'"\'"\'\'']
failed: [he-002.sendcat.com] => (item=1.9.3-p545,2.1.1-p76) => {"failed": true, "item": "1.9.3-p545,2.1.1-p76"}
msg: No package matching '2.1.1-p76' is available
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/will/site.retry
he-002.sendcat.com : ok=41 changed=2 unreachable=0 failed=1
---
ruby_versions:
- 1.9.3-p545
- 2.1.1-p76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment