# 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_default.yml **************************************************** 1 plays in /WORKDIR/git-codes5kplh0k/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** META: ran handlers 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:51 +0000 (0:00:00.012) 0:00:00.012 ************ ok: [sut] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "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:03.130) 0:00:03.143 ************ 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.018) 0:00:03.162 ************ 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.017) 0:00:03.179 ************ 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:54 +0000 (0:00:00.272) 0:00:03.452 ************ 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:54 +0000 (0:00:00.019) 0:00:03.471 ************ 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-1715946354.7390783-2449-273593115769036/source:13:32: syntax error Defaults env_keep = 'COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR' ^~~~~~~ /root/.ansible/tmp/ansible-tmp-1715946354.7390783-2449-273593115769036/source:14:36: syntax error Defaults env_keep += 'LS_COLORS MAIL PS1 PS2 QTDIR' ^~~~ /root/.ansible/tmp/ansible-tmp-1715946354.7390783-2449-273593115769036/source:15:35: syntax error Defaults env_keep += 'USERNAME LANG LC_ADDRESS LC_CTYPE LC_COLLATE' ^~~~ /root/.ansible/tmp/ansible-tmp-1715946354.7390783-2449-273593115769036/source:16:44: syntax error Defaults env_keep += 'LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME' ^~~~~~~~~~~~~~ /root/.ansible/tmp/ansible-tmp-1715946354.7390783-2449-273593115769036/source:17:37: syntax error Defaults env_keep += 'LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL' ^~~~~~~~ /root/.ansible/tmp/ansible-tmp-1715946354.7390783-2449-273593115769036/source:18:35: syntax error Defaults env_keep += 'LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY' ^~~~~~~ MSG: failed to validate to retry, use: --limit @/tmp/tests_default.retry PLAY RECAP ********************************************************************* sut : ok=4 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0 Friday 17 May 2024 11:45:55 +0000 (0:00:00.685) 0:00:04.157 ************ =============================================================================== linux-system-roles.sudo : Ensure sudo is installed ---------------------- 3.13s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:2 linux-system-roles.sudo : Ensure /etc/sudoers is configured ------------- 0.69s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:44 linux-system-roles.sudo : Ensure include directories are created -------- 0.27s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:20 linux-system-roles.sudo : Ensure sudoers include files are configured --- 0.02s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:30 linux-system-roles.sudo : Set include directories variable -------------- 0.02s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:8 linux-system-roles.sudo : Set sudoer file paths variable ---------------- 0.02s /WORKDIR/git-codes5kplh0k/tests/roles/linux-system-roles.sudo/tasks/main.yml:14 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---