Skip to content

Instantly share code, notes, and snippets.

@samdoran
Created November 2, 2016 16:16
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 samdoran/ef260857ea6caf7c285d9af724bcadb4 to your computer and use it in GitHub Desktop.
Save samdoran/ef260857ea6caf7c285d9af724bcadb4 to your computer and use it in GitHub Desktop.
sdoran@sdoran-OSX ~/P/A/P/playbooks (master) [1]> ansible --version
ansible 2.2.0.0
config file = /Users/sdoran/.ansible.cfg
configured module search path = Default w/o overrides
-----------------------
sdoran@sdoran-OSX ~/P/A/P/playbooks (master) [2]> ansible-playbook -i inventory/home vyos.yml -vvv
Using /Users/sdoran/.ansible.cfg as config file
PLAYBOOK: vyos.yml *************************************************************
1 plays in vyos.yml
PLAY [Network stuff] ***********************************************************
TASK [Gather facts] ************************************************************
task path: /Users/sdoran/Projects/Ansible/Personal/playbooks/vyos.yml:15
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/network/vyos/vyos_facts.py
<10.11.0.65> ESTABLISH LOCAL CONNECTION FOR USER: sdoran
<10.11.0.65> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478103352.55-124476155390602 `" && echo ansible-tmp-1478103352.55-124476155390602="` echo $HOME/.ansible/tmp/ansible-tmp-1478103352.55-124476155390602 `" ) && sleep 0'
<10.11.0.65> PUT /var/folders/w1/46kzp7zx59bgjy8zc5xlrnw80000gn/T/tmphw0mkH TO /Users/sdoran/.ansible/tmp/ansible-tmp-1478103352.55-124476155390602/vyos_facts.py
<10.11.0.65> EXEC /bin/sh -c 'chmod u+x /Users/sdoran/.ansible/tmp/ansible-tmp-1478103352.55-124476155390602/ /Users/sdoran/.ansible/tmp/ansible-tmp-1478103352.55-124476155390602/vyos_facts.py && sleep 0'
<10.11.0.65> EXEC /bin/sh -c '/usr/bin/env python /Users/sdoran/.ansible/tmp/ansible-tmp-1478103352.55-124476155390602/vyos_facts.py; rm -rf "/Users/sdoran/.ansible/tmp/ansible-tmp-1478103352.55-124476155390602/" > /dev/null 2>&1 && sleep 0'
ok: [router.home.samdoran.com] => {
"ansible_facts": {
"ansible_net_gather_subset": [
"neighbors",
"default"
],
"ansible_net_hostname": "\u001b=\ner01\u001b[m\n",
"ansible_net_model": "EdgeRouter",
"ansible_net_serialnum": "802AA84D6394\u001b[m",
"ansible_net_version": "v1.9.0\u001b[m"
},
"changed": false,
"invocation": {
"module_args": {
"auth_pass": null,
"authorize": false,
"gather_subset": [
"!config"
],
"host": "10.11.0.65",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"port": null,
"provider": {
"host": "10.11.0.65",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"transport": "cli",
"username": "sdoran"
},
"ssh_keyfile": null,
"timeout": 10,
"transport": "cli",
"username": "sdoran"
},
"module_name": "vyos_facts"
}
}
TASK [debug] *******************************************************************
task path: /Users/sdoran/Projects/Ansible/Personal/playbooks/vyos.yml:20
ok: [router.home.samdoran.com] => {
"vyos_facts": {
"ansible_facts": {
"ansible_net_gather_subset": [
"neighbors",
"default"
],
"ansible_net_hostname": "\u001b=\ner01\u001b[m\n",
"ansible_net_model": "EdgeRouter",
"ansible_net_serialnum": "802AA84D6394\u001b[m",
"ansible_net_version": "v1.9.0\u001b[m"
},
"changed": false
}
}
TASK [Set hostname] ************************************************************
task path: /Users/sdoran/Projects/Ansible/Personal/playbooks/vyos.yml:24
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/core/network/vyos/vyos_config.py
<10.11.0.65> ESTABLISH LOCAL CONNECTION FOR USER: sdoran
<10.11.0.65> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1478103354.99-106628099081013 `" && echo ansible-tmp-1478103354.99-106628099081013="` echo $HOME/.ansible/tmp/ansible-tmp-1478103354.99-106628099081013 `" ) && sleep 0'
<10.11.0.65> PUT /var/folders/w1/46kzp7zx59bgjy8zc5xlrnw80000gn/T/tmpbti91t TO /Users/sdoran/.ansible/tmp/ansible-tmp-1478103354.99-106628099081013/vyos_config.py
<10.11.0.65> EXEC /bin/sh -c 'chmod u+x /Users/sdoran/.ansible/tmp/ansible-tmp-1478103354.99-106628099081013/ /Users/sdoran/.ansible/tmp/ansible-tmp-1478103354.99-106628099081013/vyos_config.py && sleep 0'
<10.11.0.65> EXEC /bin/sh -c '/usr/bin/env python /Users/sdoran/.ansible/tmp/ansible-tmp-1478103354.99-106628099081013/vyos_config.py; rm -rf "/Users/sdoran/.ansible/tmp/ansible-tmp-1478103354.99-106628099081013/" > /dev/null 2>&1 && sleep 0'
fatal: [router.home.samdoran.com]: FAILED! => {
"changed": false,
"commands": [
"show configuration commands"
],
"failed": true,
"invocation": {
"module_args": {
"auth_pass": null,
"authorize": false,
"backup": false,
"comment": "configured by vyos_config",
"config": null,
"host": "10.11.0.65",
"lines": [
"set system host-name rooter"
],
"match": "line",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"port": null,
"provider": {
"host": "10.11.0.65",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"transport": "cli",
"username": "sdoran"
},
"save": false,
"src": null,
"ssh_keyfile": null,
"timeout": 10,
"transport": "cli",
"username": "sdoran"
}
},
"msg": "timeout trying to send command: show configuration commands\r"
}
PLAY RECAP *********************************************************************
router.home.samdoran.com : 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