# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.6/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.6.8 (default, Jan 25 2023, 15:03:30) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /WORKDIR/git-weekly-ci4ukdlhbo/tests/tests_include_vars_from_parent.yml PLAY [Test role variable override] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/tests_include_vars_from_parent.yml:2 Sunday 28 May 2023 13:00:01 +0000 (0:00:00.023) 0:00:00.023 ************ ok: [sut] META: ran handlers TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/tests_include_vars_from_parent.yml:6 Sunday 28 May 2023 13:00:01 +0000 (0:00:00.847) 0:00:00.871 ************ changed: [sut -> localhost] => (item=Fedora-36) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/vars/Fedora-36.yml", "gid": 1001, "group": "jenkins", "item": "Fedora-36", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1685278801.9607697-1569-109810830307433/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=Fedora_36) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/vars/Fedora_36.yml", "gid": 1001, "group": "jenkins", "item": "Fedora_36", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1685278802.440852-1569-49832251451864/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=Fedora) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/vars/Fedora.yml", "gid": 1001, "group": "jenkins", "item": "Fedora", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1685278802.8021035-1569-205460535786120/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/vars/RedHat.yml", "gid": 1001, "group": "jenkins", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1685278803.1381652-1569-246381054296127/source", "state": "file", "uid": 1000090000 } TASK [Include role] ************************************************************ task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/tasks/main.yml:4 Sunday 28 May 2023 13:00:03 +0000 (0:00:01.539) 0:00:02.410 ************ TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:3 Sunday 28 May 2023 13:00:03 +0000 (0:00:00.025) 0:00:02.435 ************ included: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/set_vars.yml for sut TASK [linux-system-roles.template : Ensure ansible_facts used by role] ********* task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/set_vars.yml:2 Sunday 28 May 2023 13:00:03 +0000 (0:00:00.042) 0:00:02.478 ************ ok: [sut] TASK [linux-system-roles.template : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/set_vars.yml:8 Sunday 28 May 2023 13:00:03 +0000 (0:00:00.333) 0:00:02.812 ************ skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=Fedora.yml) => { "ansible_facts": { "__template_packages": [], "__template_services": [] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [sut] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.template : Ensure required packages are installed] **** task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:7 Sunday 28 May 2023 13:00:03 +0000 (0:00:00.039) 0:00:02.851 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.template : Ensure required services are enabled and started] *** task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:12 Sunday 28 May 2023 13:00:06 +0000 (0:00:02.572) 0:00:05.423 ************ TASK [linux-system-roles.template : Generate /etc/foo.conf] ******************** task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:19 Sunday 28 May 2023 13:00:06 +0000 (0:00:00.015) 0:00:05.438 ************ NOTIFIED HANDLER linux-system-roles.template : Handler for template to restart services for sut changed: [sut] => { "changed": true, "checksum": "608ec785ba92141bf4a18a5fc9cddf3a954d9d9a", "dest": "/etc/foo.conf", "gid": 0, "group": "root", "md5sum": "1955272cddc0f09b7dbd047243cc5304", "mode": "0400", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 154, "src": "/root/.ansible/tmp/ansible-tmp-1685278806.5116854-1669-53522994652152/source", "state": "file", "uid": 0 } TASK [caller : Assert variable not overridden] ********************************* task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/tasks/main.yml:8 Sunday 28 May 2023 13:00:07 +0000 (0:00:00.577) 0:00:06.015 ************ ok: [sut] => { "changed": false } MSG: All assertions passed RUNNING HANDLER [linux-system-roles.template : Handler for template to restart services] *** task path: /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/handlers/main.yml:3 Sunday 28 May 2023 13:00:07 +0000 (0:00:00.015) 0:00:06.031 ************ META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=8 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Sunday 28 May 2023 13:00:07 +0000 (0:00:00.015) 0:00:06.046 ************ =============================================================================== linux-system-roles.template : Ensure required packages are installed ---- 2.57s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:7 Create var file in caller that can override the one in called role ------ 1.54s /WORKDIR/git-weekly-ci4ukdlhbo/tests/tests_include_vars_from_parent.yml:6 ----- Gathering Facts --------------------------------------------------------- 0.85s /WORKDIR/git-weekly-ci4ukdlhbo/tests/tests_include_vars_from_parent.yml:2 ----- linux-system-roles.template : Generate /etc/foo.conf -------------------- 0.58s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:19 linux-system-roles.template : Ensure ansible_facts used by role --------- 0.33s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/set_vars.yml:2 linux-system-roles.template : Set platform/version specific variables --- 0.04s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:3 linux-system-roles.template : Set platform/version specific variables --- 0.04s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/set_vars.yml:8 Include role ------------------------------------------------------------ 0.03s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/tasks/main.yml:4 ------------ caller : Assert variable not overridden --------------------------------- 0.02s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/caller/tasks/main.yml:8 ------------ linux-system-roles.template : Handler for template to restart services --- 0.02s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/handlers/main.yml:3 linux-system-roles.template : Ensure required services are enabled and started --- 0.02s /WORKDIR/git-weekly-ci4ukdlhbo/tests/roles/linux-system-roles.template/tasks/main.yml:12 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6. from cryptography.exceptions import InvalidSignature [DEPRECATION WARNING]: Distribution fedora 36 on host sut should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/ 2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---