Skip to content

Instantly share code, notes, and snippets.

@pgauret
Created March 31, 2019 17:38
Show Gist options
  • Save pgauret/bd3676ae64eeed015175aa96987c054d to your computer and use it in GitHub Desktop.
Save pgauret/bd3676ae64eeed015175aa96987c054d to your computer and use it in GitHub Desktop.
# /usr/bin/ansible-playbook /etc/ansible/playbook.yml -l gw -vvvv
ansible-playbook 2.7.9
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.6.8 (default, Mar 13 2019, 17:23:12) [GCC 8.3.0]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
/etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
/etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
Set default localhost to localhost
Parsed /etc/ansible/hosts inventory source with yaml plugin
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3.6/site-packages/ansible/plugins/callback/default.py
PLAYBOOK: playbook.yml *************************************************************************************************************************************************************************************
3 plays in /etc/ansible/playbook.yml
PLAY [localhost] *******************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [gw] **************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************************
task path: /etc/ansible/playbook.yml:6
ansible-playbook 2.7.9
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.6.8 (default, Mar 13 2019, 17:23:12) [GCC 8.3.0]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
/etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
/etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
Set default localhost to localhost
Parsed /etc/ansible/hosts inventory source with yaml plugin
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3.6/site-packages/ansible/plugins/callback/default.py
PLAYBOOK: playbook.yml *************************************************************************************************************************************************************************************
3 plays in /etc/ansible/playbook.yml
PLAY [localhost] *******************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [gw] **************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************************
task path: /etc/ansible/playbook.yml:6
<gw> THIS IS A LOCAL LXC DIR
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c 'echo ~root && sleep 0'"]
<gw> EXEC ['/bin/sh', '-c', '/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1554053878.4436147-30642546599350 `" && echo ansible-tmp-1554053878.4436147-30642546599350="` echo /root/.ansible/tmp/ansible-tmp-1554053878.4436147-30642546599350 `" ) && sleep 0\'']
Using module file /usr/lib/python3.6/site-packages/ansible/modules/system/setup.py
<gw> PUT /root/.ansible/tmp/ansible-local-169351ux9c4ua/tmpdkokmjm8 TO /root/.ansible/tmp/ansible-tmp-1554053878.4436147-30642546599350/AnsiballZ_setup.py
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1554053878.4436147-30642546599350/ /root/.ansible/tmp/ansible-tmp-1554053878.4436147-30642546599350/AnsiballZ_setup.py && sleep 0'"]
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1554053878.4436147-30642546599350/AnsiballZ_setup.py && sleep 0'"]
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1554053878.4436147-30642546599350/ > /dev/null 2>&1 && sleep 0'"]
ok: [gw]
META: ran handlers
TASK [hosts : Copy hosts file] *****************************************************************************************************************************************************************************
task path: /etc/ansible/roles/hosts/tasks/main.yml:2
<gw> THIS IS A LOCAL LXC DIR
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c 'echo ~root && sleep 0'"]
<gw> EXEC ['/bin/sh', '-c', '/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338 `" && echo ansible-tmp-1554053884.090449-111801059964338="` echo /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338 `" ) && sleep 0\'']
Using module file /usr/lib/python3.6/site-packages/ansible/modules/files/stat.py
<gw> PUT /root/.ansible/tmp/ansible-local-169351ux9c4ua/tmpbmzlmpn2 TO /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/AnsiballZ_stat.py
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/ /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/AnsiballZ_stat.py && sleep 0'"]
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/AnsiballZ_stat.py && sleep 0'"]
Using module file /usr/lib/python3.6/site-packages/ansible/modules/files/file.py
<gw> PUT /root/.ansible/tmp/ansible-local-169351ux9c4ua/tmpidxm6y20 TO /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/AnsiballZ_file.py
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/ /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/AnsiballZ_file.py && sleep 0'"]
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/AnsiballZ_file.py && sleep 0'"]
<gw> EXEC ['/bin/sh', '-c', "/bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1554053884.090449-111801059964338/ > /dev/null 2>&1 && sleep 0'"]
ok: [gw] => {
"changed": false,
"checksum": "f704d974c0df2e647676638446a6ec159b3fb6f1",
"dest": "/etc/hosts",
"diff": {
"after": {
"path": "/etc/hosts"
},
"before": {
"path": "/etc/hosts"
}
},
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": "hosts",
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"dest": "/etc/",
"directory_mode": null,
"follow": true,
"force": false,
"group": "root",
"mode": null,
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": "root",
"path": "/etc/hosts",
"recurse": false,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "file",
"unsafe_writes": null
}
},
"mode": "0644",
"owner": "root",
"path": "/etc/hosts",
"size": 787,
"state": "file",
"uid": 0
}
META: ran handlers
META: ran handlers
[WARNING]: Could not match supplied host pattern, ignoring: web
PLAY [web] *************************************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY RECAP *************************************************************************************************************************************************************************************************
gw : ok=2 changed=0 unreachable=0 failed=0
^C [ERROR]: User interrupted execution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment