ansible-playbook 2.9.15 config file = /tmp/awx_67_3yzkbikp/project/ansible.cfg configured module search path = ['/var/lib/awx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/venv/test2/lib/python3.6/site-packages/ansible executable location = /opt/venv/test2/bin/ansible-playbook python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] Using /tmp/awx_67_3yzkbikp/project/ansible.cfg as config file host_list declined parsing /tmp/awx_67_3yzkbikp/tmpm4114_6c as it did not pass its verify_file() method [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details Parsed /tmp/awx_67_3yzkbikp/tmpm4114_6c inventory source with script plugin Read vars_file 'vault.yml' Read vars_file 'vault.yml' Read vars_file 'vault.yml' Read vars_file 'vault.yml' PLAYBOOK: image_tasks.yml ****************************************************** 1 plays in image_tasks.yml Read vars_file 'vault.yml' Read vars_file 'vault.yml' Read vars_file 'vault.yml' PLAY [oVirt ansible collection] ************************************************ Read vars_file 'vault.yml' TASK [Gathering Facts] ********************************************************* task path: /tmp/awx_67_3yzkbikp/project/image_tasks.yml:2 Using module file /opt/venv/test2/lib/python3.6/site-packages/ansible/modules/system/setup.py Pipelining is enabled. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c '/opt/venv/test1/bin/python && sleep 0' ok: [localhost] META: ran handlers Read vars_file 'vault.yml' TASK [Obtain SSO token with using username/password credentials] *************** task path: /tmp/awx_67_3yzkbikp/project/image_tasks.yml:45 Using module file /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_auth.py Pipelining is enabled. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c '/opt/venv/test1/bin/python && sleep 0' ok: [localhost] => { "ansible_facts": { "ovirt_auth": { "ca_file": null, "compress": true, "headers": null, "insecure": true, "kerberos": false, "timeout": 0, "token": "592sSaCcM4I3HV7ZnVkke8YIby2daMin5ADHyBdk91dkRPhu8EpaUgL4YH9aBD05ooRC9aWxpswwVSu4dR8KgQ", "url": "https://testengine.lab.example.com/ovirt-engine/api" } }, "changed": false, "invocation": { "module_args": { "ca_file": null, "compress": true, "headers": null, "hostname": null, "insecure": null, "kerberos": false, "ovirt_auth": null, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "timeout": 0, "token": null, "url": "https://testengine.lab.example.com/ovirt-engine/api", "username": "admin@internal" } } } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Set sensitive vms] ******************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:2 ok: [localhost] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Check if VMs are correct] ************************* task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:7 ok: [localhost] => { "ansible_facts": { "vms": [ { "cloud_init": { "custom_script": "users:\\n - name: ansible\\n groups: wheel\\n", "dns_servers": "8.8.8.8 8.8.4.4", "host_name": "c7_test1.example.com" }, "cloud_init_nics": [ { "nic_boot_protocol": "static", "nic_gateway": "172.22.4.1", "nic_ip_address": "172.22.4.66", "nic_name": "eth0", "nic_netmask": "255.255.255.0", "nic_on_boot": true } ], "cores": 2, "disks": [ { "interface": "virtio_iscsi", "name": "CentOS-7-x86_64-GenericCloud-2003", "name_prefix": false, "size": "30GiB" } ], "memory": "4GiB", "name": "c7_test1", "nics": [ { "name": "eth0", "network": "Lab" } ], "template": "CentOS-7-x86_64-GenericCloud-2003", "type": "server" } ] }, "changed": false } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Login to oVirt] *********************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:12 skipping: [localhost] => { "changed": false, "skip_reason": "Conditional result was False" } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Split list of VMs] ******************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:23 ok: [localhost] => (item={'name': 'c7_test1', 'template': 'CentOS-7-x86_64-GenericCloud-2003', 'cores': 2, 'memory': '4GiB', 'nics': [{'name': 'eth0', 'network': 'Lab'}], 'disks': [{'name': 'CentOS-7-x86_64-GenericCloud-2003', 'size': '30GiB', 'name_prefix': False, 'interface': 'virtio_iscsi'}], 'type': 'server', 'cloud_init': {'dns_servers': '8.8.8.8 8.8.4.4', 'host_name': 'c7_test1.example.com', 'custom_script': 'users:\\n - name: ansible\\n groups: wheel\\n'}, 'cloud_init_nics': [{'nic_name': 'eth0', 'nic_boot_protocol': 'static', 'nic_ip_address': '172.22.4.66', 'nic_netmask': '255.255.255.0', 'nic_gateway': '172.22.4.1', 'nic_on_boot': True}]}) => { "ansible_facts": { "create_vms": [ { "cloud_init": { "custom_script": "users:\\n - name: ansible\\n groups: wheel\\n", "dns_servers": "8.8.8.8 8.8.4.4", "host_name": "c7_test1.example.com" }, "cloud_init_nics": [ { "nic_boot_protocol": "static", "nic_gateway": "172.22.4.1", "nic_ip_address": "172.22.4.66", "nic_name": "eth0", "nic_netmask": "255.255.255.0", "nic_on_boot": true } ], "cores": 2, "disks": [ { "interface": "virtio_iscsi", "name": "CentOS-7-x86_64-GenericCloud-2003", "name_prefix": false, "size": "30GiB" } ], "memory": "4GiB", "name": "c7_test1", "nics": [ { "name": "eth0", "network": "Lab" } ], "template": "CentOS-7-x86_64-GenericCloud-2003", "type": "server" } ] }, "ansible_loop_var": "item", "changed": false, "item": { "cloud_init": { "custom_script": "users:\\n - name: ansible\\n groups: wheel\\n", "dns_servers": "8.8.8.8 8.8.4.4", "host_name": "c7_test1.example.com" }, "cloud_init_nics": [ { "nic_boot_protocol": "static", "nic_gateway": "172.22.4.1", "nic_ip_address": "172.22.4.66", "nic_name": "eth0", "nic_netmask": "255.255.255.0", "nic_on_boot": true } ], "cores": 2, "disks": [ { "interface": "virtio_iscsi", "name": "CentOS-7-x86_64-GenericCloud-2003", "name_prefix": false, "size": "30GiB" } ], "memory": "4GiB", "name": "c7_test1", "nics": [ { "name": "eth0", "network": "Lab" } ], "template": "CentOS-7-x86_64-GenericCloud-2003", "type": "server" } } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Split list of sensitive VMs] ********************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:31 ok: [localhost] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [localhost] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Delete VM] **************************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:40 skipping: [localhost] => (item={'name': 'c7_test1', 'template': 'CentOS-7-x86_64-GenericCloud-2003', 'cores': 2, 'memory': '4GiB', 'nics': [{'name': 'eth0', 'network': 'Lab'}], 'disks': [{'name': 'CentOS-7-x86_64-GenericCloud-2003', 'size': '30GiB', 'name_prefix': False, 'interface': 'virtio_iscsi'}], 'type': 'server', 'cloud_init': {'dns_servers': '8.8.8.8 8.8.4.4', 'host_name': 'c7_test1.example.com', 'custom_script': 'users:\\n - name: ansible\\n groups: wheel\\n'}, 'cloud_init_nics': [{'nic_name': 'eth0', 'nic_boot_protocol': 'static', 'nic_ip_address': '172.22.4.66', 'nic_netmask': '255.255.255.0', 'nic_gateway': '172.22.4.1', 'nic_on_boot': True}]}) => { "ansible_loop_var": "current_vm", "changed": false, "current_vm": { "cloud_init": { "custom_script": "users:\\n - name: ansible\\n groups: wheel\\n", "dns_servers": "8.8.8.8 8.8.4.4", "host_name": "c7_test1.example.com" }, "cloud_init_nics": [ { "nic_boot_protocol": "static", "nic_gateway": "172.22.4.1", "nic_ip_address": "172.22.4.66", "nic_name": "eth0", "nic_netmask": "255.255.255.0", "nic_on_boot": true } ], "cores": 2, "disks": [ { "interface": "virtio_iscsi", "name": "CentOS-7-x86_64-GenericCloud-2003", "name_prefix": false, "size": "30GiB" } ], "memory": "4GiB", "name": "c7_test1", "nics": [ { "name": "eth0", "network": "Lab" } ], "template": "CentOS-7-x86_64-GenericCloud-2003", "type": "server" }, "skip_reason": "Conditional result was False" } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Include create VM] ******************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:48 Read vars_file 'vault.yml' Read vars_file 'vault.yml' Read vars_file 'vault.yml' statically imported: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/affinity_groups.yml Read vars_file 'vault.yml' statically imported: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/affinity_labels.yml Read vars_file 'vault.yml' Read vars_file 'vault.yml' included: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/vm_state_present.yml for localhost Read vars_file 'vault.yml' Read vars_file 'vault.yml' Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Create VMs] *************************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/vm_state_present.yml:2 Read vars_file 'vault.yml' included: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/create_vms.yml for localhost Read vars_file 'vault.yml' Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Create VM c7_test1] ******************************* task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/create_vms.yml:2 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /dev/shm `"&& mkdir "` echo /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365 `" && echo ansible-tmp-1605164139.2402353-1885-54477151523365="` echo /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365 `" ) && sleep 0' Using module file /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_vm.py <127.0.0.1> PUT /var/lib/awx/.ansible/tmp/ansible-local-1818pmm24qsd/tmpyjph4xa5 TO /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/AnsiballZ_ovirt_vm.py <127.0.0.1> PUT /var/lib/awx/.ansible/tmp/ansible-local-1818pmm24qsd/tmpknm5khrc TO /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/async_wrapper.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/ /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/AnsiballZ_ovirt_vm.py /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/async_wrapper.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'ANSIBLE_ASYNC_DIR='"'"'~/.ansible_async'"'"' /opt/venv/test1/bin/python /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/async_wrapper.py 387694935680 180 /tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/AnsiballZ_ovirt_vm.py _ && sleep 0' ok: [localhost] => { "ansible_job_id": "387694935680.1896", "changed": false, "finished": 0, "results_file": "/var/lib/awx/.ansible_async/387694935680.1896", "started": 1 } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Add created vm to all_vms] ************************ task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/create_vms.yml:46 ok: [localhost] => { "ansible_facts": { "all_vms": [ { "ansible_job_id": "387694935680.1896", "changed": false, "failed": false, "finished": 0, "results_file": "/var/lib/awx/.ansible_async/387694935680.1896", "started": 1 } ] }, "changed": false } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Wait for VMs to be added] ************************* task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/vm_state_present.yml:8 Using module file /opt/venv/test2/lib/python3.6/site-packages/ansible/modules/utilities/logic/async_status.py Pipelining is enabled. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c '/opt/venv/test1/bin/python && sleep 0' failed: [localhost] (item={'started': 1, 'finished': 0, 'ansible_job_id': '387694935680.1896', 'results_file': '/var/lib/awx/.ansible_async/387694935680.1896', 'changed': False, 'failed': False}) => { "ansible_job_id": "387694935680.1896", "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": "/tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/AnsiballZ_ovirt_vm.py", "finished": 1, "invocation": { "module_args": { "_async_dir": "/var/lib/awx/.ansible_async", "jid": "387694935680.1896", "mode": "status" } }, "item": { "ansible_job_id": "387694935680.1896", "changed": false, "failed": false, "finished": 0, "results_file": "/var/lib/awx/.ansible_async/387694935680.1896", "started": 1 }, "msg": "[Errno 13] Permission denied: '/tmp/ansible-tmp-1605164139.2402353-1885-54477151523365/AnsiballZ_ovirt_vm.py'", "outdata": "", "stderr": "", "stderr_lines": [] } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Unset facts] ************************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:53 ok: [localhost] => { "ansible_facts": { "create_sensitive_vms": [], "create_vms": [] }, "changed": false } Read vars_file 'vault.yml' TASK [ovirt.ovirt.vm_infra : Logout from oVirt] ******************************** task path: /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/roles/vm_infra/tasks/main.yml:58 skipping: [localhost] => { "changed": false, "skip_reason": "Conditional result was False" } Read vars_file 'vault.yml' TASK [Always revoke the SSO token] ********************************************* task path: /tmp/awx_67_3yzkbikp/project/image_tasks.yml:55 Using module file /tmp/awx_67_3yzkbikp/requirements_collections/ansible_collections/ovirt/ovirt/plugins/modules/ovirt_auth.py Pipelining is enabled. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c '/opt/venv/test1/bin/python && sleep 0' ok: [localhost] => { "ansible_facts": { "ovirt_auth": {} }, "changed": false, "invocation": { "module_args": { "ca_file": null, "compress": true, "headers": null, "hostname": null, "insecure": null, "kerberos": false, "ovirt_auth": { "ca_file": null, "compress": true, "headers": null, "insecure": true, "kerberos": false, "timeout": 0, "token": "592sSaCcM4I3HV7ZnVkke8YIby2daMin5ADHyBdk91dkRPhu8EpaUgL4YH9aBD05ooRC9aWxpswwVSu4dR8KgQ", "url": "https://testengine.lab.example.com/ovirt-engine/api" }, "password": null, "state": "absent", "timeout": 0, "token": null, "url": null, "username": null } } } PLAY RECAP ********************************************************************* localhost : ok=12 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0