# 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.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] 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-refactor-ostree9x8zmwjs/tests/tests_include_vars_from_parent.yml PLAY [Test role variable override] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/tests_include_vars_from_parent.yml:2 Thursday 30 November 2023 16:44:44 +0000 (0:00:00.018) 0:00:00.018 ***** ok: [sut] META: ran handlers TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/tests_include_vars_from_parent.yml:6 Thursday 30 November 2023 16:44:45 +0000 (0:00:00.755) 0:00:00.774 ***** changed: [sut -> localhost] => (item=RedHat-9.4) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/vars/RedHat-9.4.yml", "gid": 1001, "group": "jenkins", "item": "RedHat-9.4", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1701362685.499516-3088-100406799232177/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/vars/RedHat-9.yml", "gid": 1001, "group": "jenkins", "item": "RedHat-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1701362686.293102-3088-85864787075330/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat_9.4) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/vars/RedHat_9.4.yml", "gid": 1001, "group": "jenkins", "item": "RedHat_9.4", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1701362686.878227-3088-273904661653094/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/vars/RedHat_9.yml", "gid": 1001, "group": "jenkins", "item": "RedHat_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1701362687.375819-3088-278316889711373/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-refactor-ostree9x8zmwjs/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-1701362687.8061566-3088-114506608375834/source", "state": "file", "uid": 1000090000 } TASK [Call role] *************************************************************** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/tasks/main.yml:4 Thursday 30 November 2023 16:44:48 +0000 (0:00:02.737) 0:00:03.512 ***** TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 Thursday 30 November 2023 16:44:48 +0000 (0:00:00.059) 0:00:03.571 ***** included: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml for sut TASK [linux-system-roles.ssh : Ensure ansible_facts used by role] ************** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 Thursday 30 November 2023 16:44:48 +0000 (0:00:00.045) 0:00:03.616 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Check if system is ostree] ********************** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:11 Thursday 30 November 2023 16:44:48 +0000 (0:00:00.026) 0:00:03.643 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.ssh : Set flag to indicate system is ostree] ********** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:16 Thursday 30 November 2023 16:44:48 +0000 (0:00:00.203) 0:00:03.846 ***** ok: [sut] => { "ansible_facts": { "__ssh_is_ostree": false }, "changed": false } TASK [linux-system-roles.ssh : Set platform/version specific variables] ******** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:20 Thursday 30 November 2023 16:44:48 +0000 (0:00:00.027) 0:00:03.873 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=RedHat_9.yml) => { "ansible_facts": { "__ssh_defaults": { "Include": "/etc/ssh/ssh_config.d/*.conf" }, "__ssh_drop_in_name": "00-ansible", "__ssh_supports_drop_in": true }, "ansible_included_var_files": [ "/WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [sut] => (item=RedHat_9.4.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.4.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Ensure required packages are installed] ********* task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 Thursday 30 November 2023 16:44:48 +0000 (0:00:00.041) 0:00:03.915 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ssh : Gather information about the user for user configuration] *** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:12 Thursday 30 November 2023 16:44:49 +0000 (0:00:00.985) 0:00:04.900 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions] *** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:19 Thursday 30 November 2023 16:44:49 +0000 (0:00:00.020) 0:00:04.920 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ssh : Generate the configuration file] **************** task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:30 Thursday 30 November 2023 16:44:49 +0000 (0:00:00.022) 0:00:04.942 ***** ok: [sut] => { "changed": false, "checksum": "f7064ac5462aad2cda2efeaddcf48db84a38b68b", "dest": "/etc/ssh/ssh_config.d/00-ansible.conf", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/ssh/ssh_config.d/00-ansible.conf", "secontext": "system_u:object_r:etc_t:s0", "size": 41, "state": "file", "uid": 0 } TASK [caller : Assert variable not overridden] ********************************* task path: /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/tasks/main.yml:8 Thursday 30 November 2023 16:44:50 +0000 (0:00:00.815) 0:00:05.758 ***** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=9 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 30 November 2023 16:44:50 +0000 (0:00:00.034) 0:00:05.793 ***** =============================================================================== Create var file in caller that can override the one in called role ------ 2.74s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/tests_include_vars_from_parent.yml:6 linux-system-roles.ssh : Ensure required packages are installed --------- 0.99s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:5 linux-system-roles.ssh : Generate the configuration file ---------------- 0.82s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:30 Gathering Facts --------------------------------------------------------- 0.76s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/tests_include_vars_from_parent.yml:2 linux-system-roles.ssh : Check if system is ostree ---------------------- 0.20s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:11 Call role --------------------------------------------------------------- 0.06s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/tasks/main.yml:4 ------ linux-system-roles.ssh : Set platform/version specific variables -------- 0.05s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:2 linux-system-roles.ssh : Set platform/version specific variables -------- 0.04s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:20 caller : Assert variable not overridden --------------------------------- 0.03s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/caller/tasks/main.yml:8 ------ linux-system-roles.ssh : Set flag to indicate system is ostree ---------- 0.03s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:16 linux-system-roles.ssh : Ensure ansible_facts used by role -------------- 0.03s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/set_vars.yml:2 linux-system-roles.ssh : Make sure the ~/.ssh/ directory exists and has expected permissions --- 0.02s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:19 linux-system-roles.ssh : Gather information about the user for user configuration --- 0.02s /WORKDIR/git-refactor-ostree9x8zmwjs/tests/roles/linux-system-roles.ssh/tasks/main.yml:12 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---