# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] 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.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-code2srt0vk1/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. 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: tests_include_vars_from_parent.yml *********************************** 1 plays in /WORKDIR/git-code2srt0vk1/tests/tests_include_vars_from_parent.yml PLAY [Test role include variable override] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code2srt0vk1/tests/tests_include_vars_from_parent.yml:2 Friday 17 May 2024 12:09:43 +0000 (0:00:00.011) 0:00:00.011 ************ ok: [sut] TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-code2srt0vk1/tests/tests_include_vars_from_parent.yml:6 Friday 17 May 2024 12:09:44 +0000 (0:00:00.857) 0:00:00.869 ************ changed: [sut -> localhost] => (item=CentOS-8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-code2srt0vk1/tests/roles/caller/vars/CentOS-8.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1715947784.5633957-2310-33252670072832/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-code2srt0vk1/tests/roles/caller/vars/CentOS_8.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1715947784.9339879-2310-73478240199729/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-code2srt0vk1/tests/roles/caller/vars/CentOS.yml", "gid": 1001, "group": "jenkins", "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1715947785.1596346-2310-19900044127522/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-code2srt0vk1/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-1715947785.3871224-2310-180395984914809/source", "state": "file", "uid": 1000090000 } TASK [Include role] ************************************************************ task path: /WORKDIR/git-code2srt0vk1/tests/roles/caller/tasks/main.yml:4 Friday 17 May 2024 12:09:45 +0000 (0:00:01.088) 0:00:01.957 ************ TASK [fedora.linux_system_roles.sudo : Ensure sudo is installed] *************** task path: /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:2 Friday 17 May 2024 12:09:45 +0000 (0:00:00.021) 0:00:01.978 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.sudo : Set include directories variable] ******* task path: /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:8 Friday 17 May 2024 12:09:48 +0000 (0:00:02.548) 0:00:04.527 ************ ok: [sut] => { "ansible_facts": { "sudo_include_dirs": [ "/etc/sudoers.d" ] }, "changed": false } TASK [fedora.linux_system_roles.sudo : Set sudoer file paths variable] ********* task path: /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:12 Friday 17 May 2024 12:09:48 +0000 (0:00:00.021) 0:00:04.549 ************ ok: [sut] => { "ansible_facts": { "sudo_file_paths": [ "/etc/sudoers" ] }, "changed": false } TASK [fedora.linux_system_roles.sudo : Ensure include directories are created] *** task path: /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:16 Friday 17 May 2024 12:09:48 +0000 (0:00:00.020) 0:00:04.569 ************ ok: [sut] => (item=/etc/sudoers.d) => { "ansible_loop_var": "item", "changed": false, "gid": 0, "group": "root", "item": "/etc/sudoers.d", "mode": "0750", "owner": "root", "path": "/etc/sudoers.d", "secontext": "system_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.sudo : Ensure sudoers include files are configured] *** task path: /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:26 Friday 17 May 2024 12:09:48 +0000 (0:00:00.267) 0:00:04.837 ************ skipping: [sut] => (item=/etc/sudoers) => { "ansible_loop_var": "item", "changed": false, "false_condition": "item.path != '/etc/sudoers'", "item": { "defaults": [ "!visiblepw", "always_set_home", "match_group_by_gid", "always_query_group_plugin", "env_reset", { "secure_path": [ "/sbin", "/bin", "/usr/sbin", "/usr/bin" ] }, { "env_keep": [ "COLORS", "DISPLAY", "HOSTNAME", "HISTSIZE", "KDEDIR", "LS_COLORS", "MAIL", "PS1", "PS2", "QTDIR", "USERNAME", "LANG", "LC_ADDRESS", "LC_CTYPE", "LC_COLLATE", "LC_IDENTIFICATION", "LC_MEASUREMENT", "LC_MESSAGES", "LC_MONETARY", "LC_NAME", "LC_NUMERIC", "LC_PAPER", "LC_TELEPHONE", "LC_TIME", "LC_ALL", "LANGUAGE", "LINGUAS", "_XKB_CHARSET", "XAUTHORITY" ] } ], "include_directories": [ "/etc/sudoers.d" ], "path": "/etc/sudoers", "user_specifications": [ { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "root" ] }, { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "%wheel" ] } ] }, "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.sudo : Ensure /etc/sudoers is configured] ****** task path: /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:40 Friday 17 May 2024 12:09:48 +0000 (0:00:00.011) 0:00:04.848 ************ failed: [sut] (item=/etc/sudoers) => { "ansible_loop_var": "item", "changed": false, "checksum": "01702ccaf528bcc6df8e9192c56d6e7a0750daa5", "exit_status": 1, "item": { "defaults": [ "!visiblepw", "always_set_home", "match_group_by_gid", "always_query_group_plugin", "env_reset", { "secure_path": [ "/sbin", "/bin", "/usr/sbin", "/usr/bin" ] }, { "env_keep": [ "COLORS", "DISPLAY", "HOSTNAME", "HISTSIZE", "KDEDIR", "LS_COLORS", "MAIL", "PS1", "PS2", "QTDIR", "USERNAME", "LANG", "LC_ADDRESS", "LC_CTYPE", "LC_COLLATE", "LC_IDENTIFICATION", "LC_MEASUREMENT", "LC_MESSAGES", "LC_MONETARY", "LC_NAME", "LC_NUMERIC", "LC_PAPER", "LC_TELEPHONE", "LC_TIME", "LC_ALL", "LANGUAGE", "LINGUAS", "_XKB_CHARSET", "XAUTHORITY" ] } ], "include_directories": [ "/etc/sudoers.d" ], "path": "/etc/sudoers", "user_specifications": [ { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "root" ] }, { "commands": [ "ALL" ], "hosts": [ "ALL" ], "operators": [ "ALL" ], "users": [ "%wheel" ] } ] } } STDERR: /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:13:13: syntax error Defaults "env_keep = COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:13:65: unexpected line break in string Defaults "env_keep = COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:14:13: syntax error Defaults "env_keep += LS_COLORS MAIL PS1 PS2 QTDIR" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:14:55: unexpected line break in string Defaults "env_keep += LS_COLORS MAIL PS1 PS2 QTDIR" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:15:13: syntax error Defaults "env_keep += USERNAME LANG LC_ADDRESS LC_CTYPE LC_COLLATE" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:15:71: unexpected line break in string Defaults "env_keep += USERNAME LANG LC_ADDRESS LC_CTYPE LC_COLLATE" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:16:13: syntax error Defaults "env_keep += LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:16:91: unexpected line break in string Defaults "env_keep += LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:17:13: syntax error Defaults "env_keep += LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:17:74: unexpected line break in string Defaults "env_keep += LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:18:13: syntax error Defaults "env_keep += LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY" ^ /root/.ansible/tmp/ansible-tmp-1715947788.546347-2394-100687039749628/source:18:67: unexpected line break in string Defaults "env_keep += LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY" ^ MSG: failed to validate to retry, use: --limit @/tmp/tests_include_vars_from_parent.retry PLAY RECAP ********************************************************************* sut : ok=6 changed=1 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0 Friday 17 May 2024 12:09:49 +0000 (0:00:00.564) 0:00:05.413 ************ =============================================================================== fedora.linux_system_roles.sudo : Ensure sudo is installed --------------- 2.55s /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:2 Create var file in caller that can override the one in called role ------ 1.09s /WORKDIR/git-code2srt0vk1/tests/tests_include_vars_from_parent.yml:6 ---------- Gathering Facts --------------------------------------------------------- 0.86s /WORKDIR/git-code2srt0vk1/tests/tests_include_vars_from_parent.yml:2 ---------- fedora.linux_system_roles.sudo : Ensure /etc/sudoers is configured ------ 0.56s /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:40 fedora.linux_system_roles.sudo : Ensure include directories are created --- 0.27s /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:16 fedora.linux_system_roles.sudo : Set include directories variable ------- 0.02s /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:8 Include role ------------------------------------------------------------ 0.02s /WORKDIR/git-code2srt0vk1/tests/roles/caller/tasks/main.yml:4 ----------------- fedora.linux_system_roles.sudo : Set sudoer file paths variable --------- 0.02s /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:12 fedora.linux_system_roles.sudo : Ensure sudoers include files are configured --- 0.01s /WORKDIR/git-code2srt0vk1/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:26 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---