Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pieter@server-1:~/HomeAutomation$ ansible-playbook -vvv --ask-become-pass ~/HomeAutomation/Ansible/test.yml
- ansible-playbook [core 2.15.2]
- config file = None
- configured module search path = ['/home/pieter/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
- ansible python module location = /usr/local/lib/python3.9/dist-packages/ansible
- ansible collection location = /home/pieter/.ansible/collections:/usr/share/ansible/collections
- executable location = /usr/local/bin/ansible-playbook
- python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] (/usr/bin/python3)
- jinja version = 3.0.1
- libyaml = True
- No config file found; using defaults
- BECOME password:
- host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
- Skipping due to inventory source not existing or not being readable by the current user
- script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
- auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
- Skipping due to inventory source not existing or not being readable by the current user
- yaml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
- Skipping due to inventory source not existing or not being readable by the current user
- ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
- Skipping due to inventory source not existing or not being readable by the current user
- toml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
- [WARNING]: No inventory was parsed, only implicit localhost is available
- [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
- statically imported: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml
- Skipping callback 'default', as we already have a stdout callback.
- Skipping callback 'minimal', as we already have a stdout callback.
- Skipping callback 'oneline', as we already have a stdout callback.
- PLAYBOOK: test.yml ***********************************************************************************************************************************************************************************************************************************************************************************
- 1 plays in /home/pieter/HomeAutomation/Ansible/test.yml
- PLAY [localhost] *************************************************************************************************************************************************************************************************************************************************************************************
- TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/test.yml:4
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: pieter
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020512.1930916-518328-231195794929789 `" && echo ansible-tmp-1691020512.1930916-518328-231195794929789="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020512.1930916-518328-231195794929789 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/setup.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmpcwr77aog TO /home/pieter/.ansible/tmp/ansible-tmp-1691020512.1930916-518328-231195794929789/AnsiballZ_setup.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020512.1930916-518328-231195794929789/ /home/pieter/.ansible/tmp/ansible-tmp-1691020512.1930916-518328-231195794929789/AnsiballZ_setup.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=bcnfwlejsfdvbsmqkvfrjsybelnnkkif] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-bcnfwlejsfdvbsmqkvfrjsybelnnkkif ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020512.1930916-518328-231195794929789/AnsiballZ_setup.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020512.1930916-518328-231195794929789/ > /dev/null 2>&1 && sleep 0'
- ok: [localhost]
- TASK [Install libguestfs] ****************************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml:7
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: pieter
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020514.1172707-518526-59299318986164 `" && echo ansible-tmp-1691020514.1172707-518526-59299318986164="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020514.1172707-518526-59299318986164 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/apt.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmpvmgbp19r TO /home/pieter/.ansible/tmp/ansible-tmp-1691020514.1172707-518526-59299318986164/AnsiballZ_apt.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020514.1172707-518526-59299318986164/ /home/pieter/.ansible/tmp/ansible-tmp-1691020514.1172707-518526-59299318986164/AnsiballZ_apt.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=bkbwiyvotrsnpmaqhavsmkijehxzehxd] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-bkbwiyvotrsnpmaqhavsmkijehxzehxd ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020514.1172707-518526-59299318986164/AnsiballZ_apt.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020514.1172707-518526-59299318986164/ > /dev/null 2>&1 && sleep 0'
- ok: [localhost] => {
- "cache_update_time": 1691020515,
- "cache_updated": true,
- "changed": false,
- "invocation": {
- "module_args": {
- "allow_change_held_packages": false,
- "allow_downgrade": false,
- "allow_unauthenticated": false,
- "autoclean": false,
- "autoremove": false,
- "cache_valid_time": 3600,
- "clean": false,
- "deb": null,
- "default_release": null,
- "dpkg_options": "force-confdef,force-confold",
- "fail_on_autoremove": false,
- "force": false,
- "force_apt_get": false,
- "install_recommends": null,
- "lock_timeout": 60,
- "name": [
- "libguestfs-tools"
- ],
- "only_upgrade": false,
- "package": [
- "libguestfs-tools"
- ],
- "policy_rc_d": null,
- "purge": false,
- "state": "latest",
- "update_cache": true,
- "update_cache_retries": 5,
- "update_cache_retry_max_delay": 12,
- "upgrade": null
- }
- }
- }
- TASK [Create Cloud Init directory] *******************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml:15
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: pieter
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020516.6841044-519525-279959046299951 `" && echo ansible-tmp-1691020516.6841044-519525-279959046299951="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020516.6841044-519525-279959046299951 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/file.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmpw3viktkl TO /home/pieter/.ansible/tmp/ansible-tmp-1691020516.6841044-519525-279959046299951/AnsiballZ_file.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020516.6841044-519525-279959046299951/ /home/pieter/.ansible/tmp/ansible-tmp-1691020516.6841044-519525-279959046299951/AnsiballZ_file.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=uciecrdbjlunxhdvkvxjmdqtinxvvyat] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-uciecrdbjlunxhdvkvxjmdqtinxvvyat ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020516.6841044-519525-279959046299951/AnsiballZ_file.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020516.6841044-519525-279959046299951/ > /dev/null 2>&1 && sleep 0'
- ok: [localhost] => (item=/data/install/images) => {
- "ansible_loop_var": "item",
- "changed": false,
- "diff": {
- "after": {
- "path": "/data/install/images"
- },
- "before": {
- "path": "/data/install/images"
- }
- },
- "gid": 100,
- "group": "users",
- "invocation": {
- "module_args": {
- "_diff_peek": null,
- "_original_basename": null,
- "access_time": null,
- "access_time_format": "%Y%m%d%H%M.%S",
- "attributes": null,
- "follow": true,
- "force": false,
- "group": "users",
- "mode": "ugo+rwx",
- "modification_time": null,
- "modification_time_format": "%Y%m%d%H%M.%S",
- "owner": "nobody",
- "path": "/data/install/images",
- "recurse": true,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": "directory",
- "unsafe_writes": false
- }
- },
- "item": "/data/install/images",
- "mode": "02777",
- "owner": "nobody",
- "path": "/data/install/images",
- "size": 5,
- "state": "directory",
- "uid": 65534
- }
- TASK [Rescan images] *********************************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml:27
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: pieter
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020517.0660174-519630-41112304475443 `" && echo ansible-tmp-1691020517.0660174-519630-41112304475443="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020517.0660174-519630-41112304475443 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/command.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmpxfkfxga3 TO /home/pieter/.ansible/tmp/ansible-tmp-1691020517.0660174-519630-41112304475443/AnsiballZ_command.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020517.0660174-519630-41112304475443/ /home/pieter/.ansible/tmp/ansible-tmp-1691020517.0660174-519630-41112304475443/AnsiballZ_command.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=sfkdlczuahybnyuaeyigdumzzcxnqolo] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-sfkdlczuahybnyuaeyigdumzzcxnqolo ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020517.0660174-519630-41112304475443/AnsiballZ_command.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020517.0660174-519630-41112304475443/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": [
- "qm",
- "rescan"
- ],
- "delta": "0:00:01.320503",
- "end": "2023-08-02 16:55:18.646998",
- "invocation": {
- "module_args": {
- "_raw_params": "qm rescan",
- "_uses_shell": false,
- "argv": null,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "stdin_add_newline": true,
- "strip_empty_ends": true
- }
- },
- "msg": "",
- "rc": 0,
- "start": "2023-08-02 16:55:17.326495",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "rescan volumes...",
- "stdout_lines": [
- "rescan volumes..."
- ]
- }
- TASK [Download cloud images] *************************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml:35
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: pieter
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020518.715455-519732-10843289248099 `" && echo ansible-tmp-1691020518.715455-519732-10843289248099="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020518.715455-519732-10843289248099 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/get_url.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmp9771lued TO /home/pieter/.ansible/tmp/ansible-tmp-1691020518.715455-519732-10843289248099/AnsiballZ_get_url.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020518.715455-519732-10843289248099/ /home/pieter/.ansible/tmp/ansible-tmp-1691020518.715455-519732-10843289248099/AnsiballZ_get_url.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=uypsembxkvxplowgniwoxslmqvlwsrzr] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-uypsembxkvxplowgniwoxslmqvlwsrzr ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020518.715455-519732-10843289248099/AnsiballZ_get_url.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020518.715455-519732-10843289248099/ > /dev/null 2>&1 && sleep 0'
- ok: [localhost] => (item={'id': '9001', 'name': 'ubuntu-jammy-template', 'tags': 'ubuntu,jammy,cloud-image', 'file': '/data/install/images/jammy-server-cloudimg-amd64.img', 'url': 'https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img'}) => {
- "ansible_loop_var": "item",
- "changed": false,
- "dest": "/data/install/images/jammy-server-cloudimg-amd64.img",
- "elapsed": 0,
- "gid": 100,
- "group": "users",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "checksum": "",
- "ciphers": null,
- "client_cert": null,
- "client_key": null,
- "decompress": true,
- "dest": "/data/install/images/jammy-server-cloudimg-amd64.img",
- "force": false,
- "force_basic_auth": false,
- "group": "users",
- "headers": null,
- "http_agent": "ansible-httpget",
- "mode": "ugo+rwx",
- "owner": "nobody",
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "timeout": 120,
- "tmp_dest": null,
- "unredirected_headers": [],
- "unsafe_writes": false,
- "url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img",
- "url_password": null,
- "url_username": null,
- "use_gssapi": false,
- "use_netrc": true,
- "use_proxy": true,
- "validate_certs": true
- }
- },
- "item": {
- "file": "/data/install/images/jammy-server-cloudimg-amd64.img",
- "id": "9001",
- "name": "ubuntu-jammy-template",
- "tags": "ubuntu,jammy,cloud-image",
- "url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
- },
- "mode": "0777",
- "msg": "HTTP Error 304: Not Modified",
- "owner": "nobody",
- "size": 1132724224,
- "state": "file",
- "status_code": 304,
- "uid": 65534,
- "url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
- }
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020519.5644343-519732-158280503057170 `" && echo ansible-tmp-1691020519.5644343-519732-158280503057170="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020519.5644343-519732-158280503057170 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/get_url.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmpapg24ppp TO /home/pieter/.ansible/tmp/ansible-tmp-1691020519.5644343-519732-158280503057170/AnsiballZ_get_url.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020519.5644343-519732-158280503057170/ /home/pieter/.ansible/tmp/ansible-tmp-1691020519.5644343-519732-158280503057170/AnsiballZ_get_url.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=csfngejqouwcumnthhiqzoxvualtjejh] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-csfngejqouwcumnthhiqzoxvualtjejh ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020519.5644343-519732-158280503057170/AnsiballZ_get_url.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020519.5644343-519732-158280503057170/ > /dev/null 2>&1 && sleep 0'
- ok: [localhost] => (item={'id': '9002', 'name': 'debian-bookworm-template', 'tags': 'debian,bookworm,cloud-image', 'file': '/data/install/images/debian-12-genericcloud-amd64.qcow2', 'url': 'https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2'}) => {
- "ansible_loop_var": "item",
- "changed": false,
- "dest": "/data/install/images/debian-12-genericcloud-amd64.qcow2",
- "elapsed": 1,
- "gid": 100,
- "group": "users",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "checksum": "",
- "ciphers": null,
- "client_cert": null,
- "client_key": null,
- "decompress": true,
- "dest": "/data/install/images/debian-12-genericcloud-amd64.qcow2",
- "force": false,
- "force_basic_auth": false,
- "group": "users",
- "headers": null,
- "http_agent": "ansible-httpget",
- "mode": "ugo+rwx",
- "owner": "nobody",
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "timeout": 120,
- "tmp_dest": null,
- "unredirected_headers": [],
- "unsafe_writes": false,
- "url": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2",
- "url_password": null,
- "url_username": null,
- "use_gssapi": false,
- "use_netrc": true,
- "use_proxy": true,
- "validate_certs": true
- }
- },
- "item": {
- "file": "/data/install/images/debian-12-genericcloud-amd64.qcow2",
- "id": "9002",
- "name": "debian-bookworm-template",
- "tags": "debian,bookworm,cloud-image",
- "url": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2"
- },
- "mode": "0777",
- "msg": "HTTP Error 304: Not Modified",
- "owner": "nobody",
- "size": 279814144,
- "state": "file",
- "status_code": 304,
- "uid": 65534,
- "url": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2"
- }
- TASK [Get image config] ******************************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml:48
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: pieter
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020521.002681-520158-262498586584967 `" && echo ansible-tmp-1691020521.002681-520158-262498586584967="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020521.002681-520158-262498586584967 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/command.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmpz546xk95 TO /home/pieter/.ansible/tmp/ansible-tmp-1691020521.002681-520158-262498586584967/AnsiballZ_command.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020521.002681-520158-262498586584967/ /home/pieter/.ansible/tmp/ansible-tmp-1691020521.002681-520158-262498586584967/AnsiballZ_command.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=cbbjvkxazvxiqinawuvgtpnvedpnbkyy] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-cbbjvkxazvxiqinawuvgtpnvedpnbkyy ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020521.002681-520158-262498586584967/AnsiballZ_command.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020521.002681-520158-262498586584967/ > /dev/null 2>&1 && sleep 0'
- failed: [localhost] (item={'id': '9001', 'name': 'ubuntu-jammy-template', 'tags': 'ubuntu,jammy,cloud-image', 'file': '/data/install/images/jammy-server-cloudimg-amd64.img', 'url': 'https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img'}) => {
- "ansible_loop_var": "item",
- "changed": true,
- "cmd": [
- "qm",
- "config",
- "9001"
- ],
- "delta": "0:00:00.963031",
- "end": "2023-08-02 16:55:22.132638",
- "invocation": {
- "module_args": {
- "_raw_params": "qm config 9001",
- "_uses_shell": false,
- "argv": null,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "stdin_add_newline": true,
- "strip_empty_ends": true
- }
- },
- "item": {
- "file": "/data/install/images/jammy-server-cloudimg-amd64.img",
- "id": "9001",
- "name": "ubuntu-jammy-template",
- "tags": "ubuntu,jammy,cloud-image",
- "url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
- },
- "msg": "non-zero return code",
- "rc": 2,
- "start": "2023-08-02 16:55:21.169607",
- "stderr": "Configuration file 'nodes/server-1/qemu-server/9001.conf' does not exist",
- "stderr_lines": [
- "Configuration file 'nodes/server-1/qemu-server/9001.conf' does not exist"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020522.1626773-520158-161352173725631 `" && echo ansible-tmp-1691020522.1626773-520158-161352173725631="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020522.1626773-520158-161352173725631 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/command.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmpinol6z5s TO /home/pieter/.ansible/tmp/ansible-tmp-1691020522.1626773-520158-161352173725631/AnsiballZ_command.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020522.1626773-520158-161352173725631/ /home/pieter/.ansible/tmp/ansible-tmp-1691020522.1626773-520158-161352173725631/AnsiballZ_command.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=smgyezqwocvswjsdghobseropvqslpzq] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-smgyezqwocvswjsdghobseropvqslpzq ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020522.1626773-520158-161352173725631/AnsiballZ_command.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020522.1626773-520158-161352173725631/ > /dev/null 2>&1 && sleep 0'
- failed: [localhost] (item={'id': '9002', 'name': 'debian-bookworm-template', 'tags': 'debian,bookworm,cloud-image', 'file': '/data/install/images/debian-12-genericcloud-amd64.qcow2', 'url': 'https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2'}) => {
- "ansible_loop_var": "item",
- "changed": true,
- "cmd": [
- "qm",
- "config",
- "9002"
- ],
- "delta": "0:00:00.936174",
- "end": "2023-08-02 16:55:23.254524",
- "invocation": {
- "module_args": {
- "_raw_params": "qm config 9002",
- "_uses_shell": false,
- "argv": null,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "stdin_add_newline": true,
- "strip_empty_ends": true
- }
- },
- "item": {
- "file": "/data/install/images/debian-12-genericcloud-amd64.qcow2",
- "id": "9002",
- "name": "debian-bookworm-template",
- "tags": "debian,bookworm,cloud-image",
- "url": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2"
- },
- "msg": "non-zero return code",
- "rc": 2,
- "start": "2023-08-02 16:55:22.318350",
- "stderr": "Configuration file 'nodes/server-1/qemu-server/9002.conf' does not exist",
- "stderr_lines": [
- "Configuration file 'nodes/server-1/qemu-server/9002.conf' does not exist"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- ...ignoring
- TASK [Destroy image] *********************************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml:53
- skipping: [localhost] => (item={'changed': True, 'stdout': '', 'stderr': "Configuration file 'nodes/server-1/qemu-server/9001.conf' does not exist", 'rc': 2, 'cmd': ['qm', 'config', '9001'], 'start': '2023-08-02 16:55:21.169607', 'end': '2023-08-02 16:55:22.132638', 'delta': '0:00:00.963031', 'failed': True, 'msg': 'non-zero return code', 'invocation': {'module_args': {'_raw_params': 'qm config 9001', '_uses_shell': False, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': [], 'stderr_lines': ["Configuration file 'nodes/server-1/qemu-server/9001.conf' does not exist"], 'item': {'id': '9001', 'name': 'ubuntu-jammy-template', 'tags': 'ubuntu,jammy,cloud-image', 'file': '/data/install/images/jammy-server-cloudimg-amd64.img', 'url': 'https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img'}, 'ansible_loop_var': 'item'}) => {
- "ansible_loop_var": "item",
- "changed": false,
- "false_condition": "item.rc == 0",
- "item": {
- "ansible_loop_var": "item",
- "changed": true,
- "cmd": [
- "qm",
- "config",
- "9001"
- ],
- "delta": "0:00:00.963031",
- "end": "2023-08-02 16:55:22.132638",
- "failed": true,
- "invocation": {
- "module_args": {
- "_raw_params": "qm config 9001",
- "_uses_shell": false,
- "argv": null,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "stdin_add_newline": true,
- "strip_empty_ends": true
- }
- },
- "item": {
- "file": "/data/install/images/jammy-server-cloudimg-amd64.img",
- "id": "9001",
- "name": "ubuntu-jammy-template",
- "tags": "ubuntu,jammy,cloud-image",
- "url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
- },
- "msg": "non-zero return code",
- "rc": 2,
- "start": "2023-08-02 16:55:21.169607",
- "stderr": "Configuration file 'nodes/server-1/qemu-server/9001.conf' does not exist",
- "stderr_lines": [
- "Configuration file 'nodes/server-1/qemu-server/9001.conf' does not exist"
- ],
- "stdout": "",
- "stdout_lines": []
- },
- "skip_reason": "Conditional result was False"
- }
- skipping: [localhost] => (item={'changed': True, 'stdout': '', 'stderr': "Configuration file 'nodes/server-1/qemu-server/9002.conf' does not exist", 'rc': 2, 'cmd': ['qm', 'config', '9002'], 'start': '2023-08-02 16:55:22.318350', 'end': '2023-08-02 16:55:23.254524', 'delta': '0:00:00.936174', 'failed': True, 'msg': 'non-zero return code', 'invocation': {'module_args': {'_raw_params': 'qm config 9002', '_uses_shell': False, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': [], 'stderr_lines': ["Configuration file 'nodes/server-1/qemu-server/9002.conf' does not exist"], 'item': {'id': '9002', 'name': 'debian-bookworm-template', 'tags': 'debian,bookworm,cloud-image', 'file': '/data/install/images/debian-12-genericcloud-amd64.qcow2', 'url': 'https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2'}, 'ansible_loop_var': 'item'}) => {
- "ansible_loop_var": "item",
- "changed": false,
- "false_condition": "item.rc == 0",
- "item": {
- "ansible_loop_var": "item",
- "changed": true,
- "cmd": [
- "qm",
- "config",
- "9002"
- ],
- "delta": "0:00:00.936174",
- "end": "2023-08-02 16:55:23.254524",
- "failed": true,
- "invocation": {
- "module_args": {
- "_raw_params": "qm config 9002",
- "_uses_shell": false,
- "argv": null,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "stdin_add_newline": true,
- "strip_empty_ends": true
- }
- },
- "item": {
- "file": "/data/install/images/debian-12-genericcloud-amd64.qcow2",
- "id": "9002",
- "name": "debian-bookworm-template",
- "tags": "debian,bookworm,cloud-image",
- "url": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2"
- },
- "msg": "non-zero return code",
- "rc": 2,
- "start": "2023-08-02 16:55:22.318350",
- "stderr": "Configuration file 'nodes/server-1/qemu-server/9002.conf' does not exist",
- "stderr_lines": [
- "Configuration file 'nodes/server-1/qemu-server/9002.conf' does not exist"
- ],
- "stdout": "",
- "stdout_lines": []
- },
- "skip_reason": "Conditional result was False"
- }
- skipping: [localhost] => {
- "changed": false,
- "msg": "All items skipped"
- }
- TASK [Create image] **********************************************************************************************************************************************************************************************************************************************************************************
- task path: /home/pieter/HomeAutomation/Ansible/tasks/cloud_init2.yml:58
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: pieter
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020523.40692-520277-193570030335748 `" && echo ansible-tmp-1691020523.40692-520277-193570030335748="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020523.40692-520277-193570030335748 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/command.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmplzivoebi TO /home/pieter/.ansible/tmp/ansible-tmp-1691020523.40692-520277-193570030335748/AnsiballZ_command.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020523.40692-520277-193570030335748/ /home/pieter/.ansible/tmp/ansible-tmp-1691020523.40692-520277-193570030335748/AnsiballZ_command.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=idzdzcowuqkhyyauixnpwzcnxgasyhlz] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-idzdzcowuqkhyyauixnpwzcnxgasyhlz ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020523.40692-520277-193570030335748/AnsiballZ_command.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020523.40692-520277-193570030335748/ > /dev/null 2>&1 && sleep 0'
- failed: [localhost] (item={'id': '9001', 'name': 'ubuntu-jammy-template', 'tags': 'ubuntu,jammy,cloud-image', 'file': '/data/install/images/jammy-server-cloudimg-amd64.img', 'url': 'https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img'}) => {
- "ansible_loop_var": "item",
- "changed": true,
- "cmd": [
- "qm",
- "create",
- "9001",
- "--name",
- "ubuntu-jammy-template",
- "--tags",
- "ubuntu,jammy,cloud-image",
- "--memory",
- "4096",
- "--cores",
- "2",
- "--net0",
- "virtio,bridge=vmbr1",
- "--scsihw",
- "virtio-scsi-pci",
- "--ciuser",
- "pieter",
- "--cipassword",
- "Password1",
- "--searchdomain",
- "home.insanegenius.net",
- "--sshkeys",
- "/home/pieter/.ssh/authorized_keys",
- "--ipconfig0",
- "ip=dhcp",
- "--ostype",
- "l26",
- "--agent",
- "1"
- ],
- "delta": "0:00:01.014931",
- "end": "2023-08-02 16:55:24.581127",
- "invocation": {
- "module_args": {
- "_raw_params": null,
- "_uses_shell": false,
- "argv": [
- "qm",
- "create",
- "9001",
- "--name",
- "ubuntu-jammy-template",
- "--tags",
- "ubuntu,jammy,cloud-image",
- "--memory",
- "4096",
- "--cores",
- "2",
- "--net0",
- "virtio,bridge=vmbr1",
- "--scsihw",
- "virtio-scsi-pci",
- "--ciuser",
- "pieter",
- "--cipassword",
- "Password1",
- "--searchdomain",
- "home.insanegenius.net",
- "--sshkeys",
- "/home/pieter/.ssh/authorized_keys",
- "--ipconfig0",
- "ip=dhcp",
- "--ostype",
- "l26",
- "--agent",
- "1"
- ],
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "stdin_add_newline": true,
- "strip_empty_ends": true
- }
- },
- "item": {
- "file": "/data/install/images/jammy-server-cloudimg-amd64.img",
- "id": "9001",
- "name": "ubuntu-jammy-template",
- "tags": "ubuntu,jammy,cloud-image",
- "url": "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
- },
- "msg": "non-zero return code",
- "rc": 25,
- "start": "2023-08-02 16:55:23.566196",
- "stderr": "failed to tcsetpgrp: Inappropriate ioctl for device\ngot no worker upid - start worker failed",
- "stderr_lines": [
- "failed to tcsetpgrp: Inappropriate ioctl for device",
- "got no worker upid - start worker failed"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- <127.0.0.1> EXEC /bin/sh -c 'echo ~pieter && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/pieter/.ansible/tmp `"&& mkdir "` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020524.6149998-520277-137063773678736 `" && echo ansible-tmp-1691020524.6149998-520277-137063773678736="` echo /home/pieter/.ansible/tmp/ansible-tmp-1691020524.6149998-520277-137063773678736 `" ) && sleep 0'
- Using module file /usr/local/lib/python3.9/dist-packages/ansible/modules/command.py
- <127.0.0.1> PUT /home/pieter/.ansible/tmp/ansible-local-513415pp4rlpyh/tmp9cn8e1n3 TO /home/pieter/.ansible/tmp/ansible-tmp-1691020524.6149998-520277-137063773678736/AnsiballZ_command.py
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/pieter/.ansible/tmp/ansible-tmp-1691020524.6149998-520277-137063773678736/ /home/pieter/.ansible/tmp/ansible-tmp-1691020524.6149998-520277-137063773678736/AnsiballZ_command.py && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=ruodkovtfddqmvncuyfeqyxwoqwpldov] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ruodkovtfddqmvncuyfeqyxwoqwpldov ; /usr/bin/python3 /home/pieter/.ansible/tmp/ansible-tmp-1691020524.6149998-520277-137063773678736/AnsiballZ_command.py'"'"' && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/pieter/.ansible/tmp/ansible-tmp-1691020524.6149998-520277-137063773678736/ > /dev/null 2>&1 && sleep 0'
- failed: [localhost] (item={'id': '9002', 'name': 'debian-bookworm-template', 'tags': 'debian,bookworm,cloud-image', 'file': '/data/install/images/debian-12-genericcloud-amd64.qcow2', 'url': 'https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2'}) => {
- "ansible_loop_var": "item",
- "changed": true,
- "cmd": [
- "qm",
- "create",
- "9002",
- "--name",
- "debian-bookworm-template",
- "--tags",
- "debian,bookworm,cloud-image",
- "--memory",
- "4096",
- "--cores",
- "2",
- "--net0",
- "virtio,bridge=vmbr1",
- "--scsihw",
- "virtio-scsi-pci",
- "--ciuser",
- "pieter",
- "--cipassword",
- "Password1",
- "--searchdomain",
- "home.insanegenius.net",
- "--sshkeys",
- "/home/pieter/.ssh/authorized_keys",
- "--ipconfig0",
- "ip=dhcp",
- "--ostype",
- "l26",
- "--agent",
- "1"
- ],
- "delta": "0:00:01.028477",
- "end": "2023-08-02 16:55:25.800267",
- "invocation": {
- "module_args": {
- "_raw_params": null,
- "_uses_shell": false,
- "argv": [
- "qm",
- "create",
- "9002",
- "--name",
- "debian-bookworm-template",
- "--tags",
- "debian,bookworm,cloud-image",
- "--memory",
- "4096",
- "--cores",
- "2",
- "--net0",
- "virtio,bridge=vmbr1",
- "--scsihw",
- "virtio-scsi-pci",
- "--ciuser",
- "pieter",
- "--cipassword",
- "Password1",
- "--searchdomain",
- "home.insanegenius.net",
- "--sshkeys",
- "/home/pieter/.ssh/authorized_keys",
- "--ipconfig0",
- "ip=dhcp",
- "--ostype",
- "l26",
- "--agent",
- "1"
- ],
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "stdin": null,
- "stdin_add_newline": true,
- "strip_empty_ends": true
- }
- },
- "item": {
- "file": "/data/install/images/debian-12-genericcloud-amd64.qcow2",
- "id": "9002",
- "name": "debian-bookworm-template",
- "tags": "debian,bookworm,cloud-image",
- "url": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2"
- },
- "msg": "non-zero return code",
- "rc": 25,
- "start": "2023-08-02 16:55:24.771790",
- "stderr": "failed to tcsetpgrp: Inappropriate ioctl for device\ngot no worker upid - start worker failed",
- "stderr_lines": [
- "failed to tcsetpgrp: Inappropriate ioctl for device",
- "got no worker upid - start worker failed"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************************
- localhost : ok=6 changed=2 unreachable=0 failed=1 skipped=1 rescued=0 ignored=1
- pieter@server-1:~/HomeAutomation$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement