# 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-codes5kplh0k/tests/tests_include_vars_from_parent.yml PLAY [Test role include variable override] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-codes5kplh0k/tests/tests_include_vars_from_parent.yml:2 Friday 17 May 2024 11:45:50 +0000 (0:00:00.012) 0:00:00.012 ************ ok: [sut] META: ran handlers TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-codes5kplh0k/tests/tests_include_vars_from_parent.yml:6 Friday 17 May 2024 11:45:51 +0000 (0:00:00.700) 0:00:00.712 ************ changed: [sut -> localhost] => (item=CentOS-8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-codes5kplh0k/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-1715946351.2538369-2338-18256738500271/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-codes5kplh0k/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-1715946351.6181118-2338-78867212318907/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-codes5kplh0k/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-1715946351.8300726-2338-261504647135591/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-codes5kplh0k/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-1715946352.058508-2338-115454181193354/source", "state": "file", "uid": 1000090000 } TASK [Include role] ************************************************************ task path: /WORKDIR/git-codes5kplh0k/tests/roles/caller/tasks/main.yml:4 Friday 17 May 2024 11:45:52 +0000 (0:00:01.046) 0:00:01.758 ************ TASK [linux-system-roles.sudo : Ensure sudo is installed] ********************** task path: /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:2 Friday 17 May 2024 11:45:52 +0000 (0:00:00.020) 0:00:01.779 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.sudo : Set include directories variable] ************** task path: /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:8 Friday 17 May 2024 11:45:54 +0000 (0:00:02.534) 0:00:04.313 ************ ok: [sut] => { "ansible_facts": { "sudo_include_dirs": [ "/etc/sudoers.d" ] }, "changed": false } TASK [linux-system-roles.sudo : Set sudoer file paths variable] **************** task path: /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:14 Friday 17 May 2024 11:45:54 +0000 (0:00:00.012) 0:00:04.325 ************ ok: [sut] => { "ansible_facts": { "sudo_file_paths": [ "/etc/sudoers" ] }, "changed": false } TASK [linux-system-roles.sudo : Ensure include directories are created] ******** task path: /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:20 Friday 17 May 2024 11:45:54 +0000 (0:00:00.012) 0:00:04.338 ************ 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 [linux-system-roles.sudo : Ensure sudoers include files are configured] *** task path: /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:30 Friday 17 May 2024 11:45:55 +0000 (0:00:00.263) 0:00:04.601 ************ skipping: [sut] => (item=/etc/sudoers) => { "ansible_loop_var": "item", "changed": false, "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" } TASK [linux-system-roles.sudo : Ensure /etc/sudoers is configured] ************* task path: /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:44 Friday 17 May 2024 11:45:55 +0000 (0:00:00.014) 0:00:04.616 ************ failed: [sut] (item=/etc/sudoers) => { "ansible_loop_var": "item", "changed": false, "checksum": "739de0631d3643e07f66d8589f081fa7e22e5229", "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-1715946355.1750984-2466-57546765509936/source:13:32: syntax error Defaults env_keep = 'COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR' ^~~~~~~ /root/.ansible/tmp/ansible-tmp-1715946355.1750984-2466-57546765509936/source:14:36: syntax error Defaults env_keep += 'LS_COLORS MAIL PS1 PS2 QTDIR' ^~~~ /root/.ansible/tmp/ansible-tmp-1715946355.1750984-2466-57546765509936/source:15:35: syntax error Defaults env_keep += 'USERNAME LANG LC_ADDRESS LC_CTYPE LC_COLLATE' ^~~~ /root/.ansible/tmp/ansible-tmp-1715946355.1750984-2466-57546765509936/source:16:44: syntax error Defaults env_keep += 'LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME' ^~~~~~~~~~~~~~ /root/.ansible/tmp/ansible-tmp-1715946355.1750984-2466-57546765509936/source:17:37: syntax error Defaults env_keep += 'LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL' ^~~~~~~~ /root/.ansible/tmp/ansible-tmp-1715946355.1750984-2466-57546765509936/source:18:35: syntax error 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 11:45:55 +0000 (0:00:00.554) 0:00:05.170 ************ =============================================================================== linux-system-roles.sudo : Ensure sudo is installed ---------------------- 2.53s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:2 Create var file in caller that can override the one in called role ------ 1.05s /WORKDIR/git-codes5kplh0k/tests/tests_include_vars_from_parent.yml:6 ---------- Gathering Facts --------------------------------------------------------- 0.70s /WORKDIR/git-codes5kplh0k/tests/tests_include_vars_from_parent.yml:2 ---------- linux-system-roles.sudo : Ensure /etc/sudoers is configured ------------- 0.55s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:44 linux-system-roles.sudo : Ensure include directories are created -------- 0.26s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:20 Include role ------------------------------------------------------------ 0.02s /WORKDIR/git-codes5kplh0k/tests/roles/caller/tasks/main.yml:4 ----------------- linux-system-roles.sudo : Ensure sudoers include files are configured --- 0.01s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:30 linux-system-roles.sudo : Set sudoer file paths variable ---------------- 0.01s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:14 linux-system-roles.sudo : Set include directories variable -------------- 0.01s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:8 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---