Skip to content

Instantly share code, notes, and snippets.

@omgjlk
Created May 13, 2016 02:38
Show Gist options
  • Select an option

  • Save omgjlk/67581c84db2714df5cd2fdcf0f853aca to your computer and use it in GitHub Desktop.

Select an option

Save omgjlk/67581c84db2714df5cd2fdcf0f853aca to your computer and use it in GitHub Desktop.
TASK [setup] *******************************************************************
<169.45.113.43> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<169.45.113.43> SSH: ansible.cfg set ssh_args: (-o)(LogLevel=quiet)(-o)(StrictHostKeyChecking=no)(-o)(UserKnownHostsFile=/dev/null)(-i)(/Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem)(-o)(ControlMaster=auto)(-o)(ControlPath=~/.ssh/controlmasters/u-%r@%h:%p)(-o)(ControlPersist=300)
<169.45.113.43> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<169.45.113.43> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<169.45.113.43> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<169.45.113.43> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<169.45.113.43> SSH: PlayContext set ssh_common_args: ()
<169.45.113.43> SSH: PlayContext set ssh_extra_args: ()
<169.45.113.43> SSH: EXEC ssh -C -vvv -o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem -o ControlMaster=auto -o 'ControlPath=~/.ssh/controlmasters/u-%r@%h:%p' -o ControlPersist=300 -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 169.45.113.43 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-dnxrotqgctkczaqamfnlxocffpdjdefb; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"''"'"''
<169.45.113.37> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<169.45.113.37> SSH: ansible.cfg set ssh_args: (-o)(LogLevel=quiet)(-o)(StrictHostKeyChecking=no)(-o)(UserKnownHostsFile=/dev/null)(-i)(/Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem)(-o)(ControlMaster=auto)(-o)(ControlPath=~/.ssh/controlmasters/u-%r@%h:%p)(-o)(ControlPersist=300)
<169.45.113.37> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<169.45.113.37> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<169.45.113.37> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<169.45.113.37> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<169.45.113.37> SSH: PlayContext set ssh_common_args: ()
<169.45.113.37> SSH: PlayContext set ssh_extra_args: ()
<169.45.113.37> SSH: EXEC ssh -C -vvv -o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem -o ControlMaster=auto -o 'ControlPath=~/.ssh/controlmasters/u-%r@%h:%p' -o ControlPersist=300 -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 169.45.113.37 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ajmkmchhvhhaclwaoptrjuecpmazcsfd; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"''"'"''
<169.45.113.38> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<169.45.113.38> SSH: ansible.cfg set ssh_args: (-o)(LogLevel=quiet)(-o)(StrictHostKeyChecking=no)(-o)(UserKnownHostsFile=/dev/null)(-i)(/Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem)(-o)(ControlMaster=auto)(-o)(ControlPath=~/.ssh/controlmasters/u-%r@%h:%p)(-o)(ControlPersist=300)
<169.45.113.38> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<169.45.113.38> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<169.45.113.38> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<169.45.113.38> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<169.45.113.38> SSH: PlayContext set ssh_common_args: ()
<169.45.113.38> SSH: PlayContext set ssh_extra_args: ()
<169.45.113.38> SSH: EXEC ssh -C -vvv -o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem -o ControlMaster=auto -o 'ControlPath=~/.ssh/controlmasters/u-%r@%h:%p' -o ControlPersist=300 -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 169.45.113.38 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-dltuzrfjvnmummxftrffrqdxtmlzwbsp; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"''"'"''
ok: [169.45.113.38]
ok: [169.45.113.43]
ok: [169.45.113.37]
TASK [set the upgrade fact] ****************************************************
task path: /Users/jkeating/src/ursula.old/upgrade.yml:12
ok: [169.45.113.43] => {"ansible_facts": {"upgrade": true}, "changed": false, "invocation": {"module_args": {"upgrade": "True"}, "module_name": "set_fact"}}
TASK [set the git update fact] *************************************************
task path: /Users/jkeating/src/ursula.old/upgrade.yml:16
ok: [169.45.113.43] => {"ansible_facts": {"openstack_source": {"git_update": true}}, "changed": false, "invocation": {"module_args": {"openstack_source": {"git_update": true}}, "module_name": "set_fact"}}
TASK [gather nova pubkeys] *****************************************************
task path: /Users/jkeating/src/ursula.old/upgrade.yml:22
<169.45.113.43> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<169.45.113.43> SSH: ansible.cfg set ssh_args: (-o)(LogLevel=quiet)(-o)(StrictHostKeyChecking=no)(-o)(UserKnownHostsFile=/dev/null)(-i)(/Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem)(-o)(ControlMaster=auto)(-o)(ControlPath=~/.ssh/controlmasters/u-%r@%h:%p)(-o)(ControlPersist=300)
<169.45.113.43> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<169.45.113.43> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<169.45.113.43> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<169.45.113.43> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<169.45.113.43> SSH: PlayContext set ssh_common_args: ()
<169.45.113.43> SSH: PlayContext set ssh_extra_args: ()
<169.45.113.43> SSH: EXEC ssh -C -vvv -o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem -o ControlMaster=auto -o 'ControlPath=~/.ssh/controlmasters/u-%r@%h:%p' -o ControlPersist=300 -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 169.45.113.43 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bgyifbxcbhkjefqtofxgniyfjyjuwbkm; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"''"'"''
<169.45.113.37> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<169.45.113.37> SSH: ansible.cfg set ssh_args: (-o)(LogLevel=quiet)(-o)(StrictHostKeyChecking=no)(-o)(UserKnownHostsFile=/dev/null)(-i)(/Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem)(-o)(ControlMaster=auto)(-o)(ControlPath=~/.ssh/controlmasters/u-%r@%h:%p)(-o)(ControlPersist=300)
<169.45.113.37> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<169.45.113.37> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<169.45.113.37> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<169.45.113.37> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<169.45.113.37> SSH: PlayContext set ssh_common_args: ()
<169.45.113.37> SSH: PlayContext set ssh_extra_args: ()
<169.45.113.37> SSH: EXEC ssh -C -vvv -o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem -o ControlMaster=auto -o 'ControlPath=~/.ssh/controlmasters/u-%r@%h:%p' -o ControlPersist=300 -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 169.45.113.37 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-osmxhpqhgtlfpdrhxazeubhowzvgbxlq; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"''"'"''
<169.45.113.38> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<169.45.113.38> SSH: ansible.cfg set ssh_args: (-o)(LogLevel=quiet)(-o)(StrictHostKeyChecking=no)(-o)(UserKnownHostsFile=/dev/null)(-i)(/Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem)(-o)(ControlMaster=auto)(-o)(ControlPath=~/.ssh/controlmasters/u-%r@%h:%p)(-o)(ControlPersist=300)
<169.45.113.38> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
<169.45.113.38> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<169.45.113.38> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ubuntu)
<169.45.113.38> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<169.45.113.38> SSH: PlayContext set ssh_common_args: ()
<169.45.113.38> SSH: PlayContext set ssh_extra_args: ()
<169.45.113.38> SSH: EXEC ssh -C -vvv -o LogLevel=quiet -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /Users/jkeating/src/ursula.old/test/../envs/test/int-test.pem -o ControlMaster=auto -o 'ControlPath=~/.ssh/controlmasters/u-%r@%h:%p' -o ControlPersist=300 -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 169.45.113.38 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-rnuxmjbvzitrnccbqiywtknllbofsizk; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python'"'"'"'"'"'"'"'"''"'"''
ok: [169.45.113.43] => {"changed": false, "content": "a2lscGtnLWNvbnRyb2xsZXItMAo=", "encoding": "base64", "invocation": {"module_args": {"src": "/etc/hostname"}, "module_name": "slurp"}, "source": "/etc/hostname"}
ok: [169.45.113.37] => {"changed": false, "content": "a2lscGtnLWNvbnRyb2xsZXItMQo=", "encoding": "base64", "invocation": {"module_args": {"src": "/etc/hostname"}, "module_name": "slurp"}, "source": "/etc/hostname"}
ok: [169.45.113.38] => {"changed": false, "content": "a2lscGtnLWNvbXB1dGUtMAo=", "encoding": "base64", "invocation": {"module_args": {"src": "/etc/hostname"}, "module_name": "slurp"}, "source": "/etc/hostname"}
TASK [again] *******************************************************************
task path: /Users/jkeating/src/ursula.old/upgrade.yml:27
ok: [169.45.113.43] => {
"msg": "kilpkg-compute-0\n"
}
ok: [169.45.113.37] => {
"msg": "kilpkg-compute-0\n"
}
ok: [169.45.113.38] => {
"msg": "kilpkg-compute-0\n"
}
@omgjlk

omgjlk commented May 13, 2016

Copy link
Copy Markdown
Author

The play:

- name: set the facts
  hosts: all:!vyatta-*
  gather_facts: yes
  tags: always
  tasks:
    - name: set the upgrade fact
      set_fact: upgrade=True
      run_once: true

    - name: set the git update fact
      set_fact:
        openstack_source:
          git_update: yes
      run_once: true

    - name: gather nova pubkeys
      slurp:
        src: /etc/hostname
      register: thisisathing

    - name: again
      debug:
        msg: "{{ thisisathing.content|b64decode }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment