# 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-weekly-cid3otbekg/.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_default.yml **************************************************** 1 plays in /WORKDIR/git-weekly-cid3otbekg/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Test setup] ************************************************************** task path: /WORKDIR/git-weekly-cid3otbekg/tests/tests_default.yml:9 Sunday 28 July 2024 02:46:31 +0000 (0:00:00.039) 0:00:00.039 *********** included: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/setup.yml for sut TASK [Create temp test directory] ********************************************** task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/setup.yml:3 Sunday 28 July 2024 02:46:31 +0000 (0:00:00.009) 0:00:00.048 *********** changed: [sut] => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/sudo_s1j617hy", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Backup sudoers] ********************************************************** task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/setup.yml:10 Sunday 28 July 2024 02:46:31 +0000 (0:00:00.353) 0:00:00.402 *********** changed: [sut] => { "changed": true, "checksum": "ab0033aa8d46a209d71bfd49f8a2548c86b30be8", "dest": "/var/tmp/sudo_s1j617hy/sudoers", "gid": 0, "group": "root", "md5sum": "a5290df67c7ed217bff527e10cd87040", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 4375, "src": "/etc/sudoers", "state": "file", "uid": 0 } TASK [Backup sudoers.d] ******************************************************** task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/setup.yml:19 Sunday 28 July 2024 02:46:31 +0000 (0:00:00.371) 0:00:00.773 *********** changed: [sut] => { "changed": true, "checksum": null, "dest": "/var/tmp/sudo_s1j617hy/sudoers.d", "gid": 0, "group": "root", "md5sum": null, "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "src": "/etc/sudoers.d", "state": "directory", "uid": 0 } TASK [Run the role] ************************************************************ task path: /WORKDIR/git-weekly-cid3otbekg/tests/tests_default.yml:12 Sunday 28 July 2024 02:46:32 +0000 (0:00:00.314) 0:00:01.087 *********** TASK [fedora.linux_system_roles.sudo : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:2 Sunday 28 July 2024 02:46:32 +0000 (0:00:00.019) 0:00:01.107 *********** included: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.sudo : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:2 Sunday 28 July 2024 02:46:32 +0000 (0:00:00.011) 0:00:01.118 *********** ok: [sut] TASK [fedora.linux_system_roles.sudo : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:10 Sunday 28 July 2024 02:46:32 +0000 (0:00:00.532) 0:00:01.651 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.sudo : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:15 Sunday 28 July 2024 02:46:33 +0000 (0:00:00.280) 0:00:01.932 *********** ok: [sut] => { "ansible_facts": { "__sudo_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.sudo : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:19 Sunday 28 July 2024 02:46:33 +0000 (0:00:00.015) 0:00:01.947 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.sudo : Ensure sudo is installed] *************** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:5 Sunday 28 July 2024 02:46:33 +0000 (0:00:00.019) 0:00:01.966 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: sudo TASK [fedora.linux_system_roles.sudo : Set include directories variable] ******* task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:11 Sunday 28 July 2024 02:46:35 +0000 (0:00:02.652) 0:00:04.619 *********** 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-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:15 Sunday 28 July 2024 02:46:35 +0000 (0:00:00.022) 0:00:04.642 *********** 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-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:19 Sunday 28 July 2024 02:46:35 +0000 (0:00:00.020) 0:00:04.663 *********** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.sudo : Ensure sudoers include files are configured] *** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:29 Sunday 28 July 2024 02:46:36 +0000 (0:00:00.308) 0:00:04.972 *********** 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-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:42 Sunday 28 July 2024 02:46:36 +0000 (0:00:00.013) 0:00:04.985 *********** changed: [sut] => (item=/etc/sudoers) => { "ansible_loop_var": "item", "changed": true, "checksum": "fc5c161eed42bf4d12f49c476bfc46e8e56097d2", "dest": "/etc/sudoers", "gid": 0, "group": "root", "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" ] } ] }, "md5sum": "10930d4d72a2804fdbc804a21a30f856", "mode": "0440", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 813, "src": "/root/.ansible/tmp/ansible-tmp-1722134796.1098578-2252-98378151512609/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.sudo : Search for sudoers files in included directories] *** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:62 Sunday 28 July 2024 02:46:36 +0000 (0:00:00.629) 0:00:05.614 *********** skipping: [sut] => { "changed": false, "false_condition": "sudo_remove_unauthorized_included_files | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.sudo : Set unauthorized included sudoers files variable] *** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:70 Sunday 28 July 2024 02:46:36 +0000 (0:00:00.014) 0:00:05.629 *********** skipping: [sut] => { "changed": false, "false_condition": "sudo_remove_unauthorized_included_files | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.sudo : Remove unauthorized included sudoers files] *** task path: /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:74 Sunday 28 July 2024 02:46:36 +0000 (0:00:00.014) 0:00:05.643 *********** skipping: [sut] => { "changed": false, "false_condition": "sudo_remove_unauthorized_included_files | bool", "skip_reason": "Conditional result was False" } TASK [Check header for ansible_managed, fingerprint] *************************** task path: /WORKDIR/git-weekly-cid3otbekg/tests/tests_default.yml:16 Sunday 28 July 2024 02:46:36 +0000 (0:00:00.014) 0:00:05.657 *********** included: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/check_header.yml for sut TASK [Get file] **************************************************************** task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/check_header.yml:3 Sunday 28 July 2024 02:46:36 +0000 (0:00:00.009) 0:00:05.667 *********** ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6c3VkbwoKIyBEZWZhdWx0IHNwZWNpZmljYXRpb25zCkRlZmF1bHRzICAgICF2aXNpYmxlcHcKRGVmYXVsdHMgICAgYWx3YXlzX3NldF9ob21lCkRlZmF1bHRzICAgIG1hdGNoX2dyb3VwX2J5X2dpZApEZWZhdWx0cyAgICBhbHdheXNfcXVlcnlfZ3JvdXBfcGx1Z2luCkRlZmF1bHRzICAgIGVudl9yZXNldApEZWZhdWx0cyAgICBzZWN1cmVfcGF0aCA9IC9zYmluOi9iaW46L3Vzci9zYmluOi91c3IvYmluCkRlZmF1bHRzICAgIGVudl9rZWVwID0gIkNPTE9SUyBESVNQTEFZIEhPU1ROQU1FIEhJU1RTSVpFIEtERURJUiIKRGVmYXVsdHMgICAgZW52X2tlZXAgKz0gIkxTX0NPTE9SUyBNQUlMIFBTMSBQUzIgUVRESVIiCkRlZmF1bHRzICAgIGVudl9rZWVwICs9ICJVU0VSTkFNRSBMQU5HIExDX0FERFJFU1MgTENfQ1RZUEUgTENfQ09MTEFURSIKRGVmYXVsdHMgICAgZW52X2tlZXAgKz0gIkxDX0lERU5USUZJQ0FUSU9OIExDX01FQVNVUkVNRU5UIExDX01FU1NBR0VTIExDX01PTkVUQVJZIExDX05BTUUiCkRlZmF1bHRzICAgIGVudl9rZWVwICs9ICJMQ19OVU1FUklDIExDX1BBUEVSIExDX1RFTEVQSE9ORSBMQ19USU1FIExDX0FMTCIKRGVmYXVsdHMgICAgZW52X2tlZXAgKz0gIkxBTkdVQUdFIExJTkdVQVMgX1hLQl9DSEFSU0VUIFhBVVRIT1JJVFkiCgojIFVzZXIgc3BlY2lmaWNhdGlvbnMKcm9vdCBBTEw9KEFMTCkgQUxMCiV3aGVlbCBBTEw9KEFMTCkgQUxMCgojIEluY2x1ZGVzCiMjIEluY2x1ZGUgZGlyZWN0b3JpZXMKI2luY2x1ZGVkaXIgL2V0Yy9zdWRvZXJzLmQK", "encoding": "base64", "source": "/etc/sudoers" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/check_header.yml:9 Sunday 28 July 2024 02:46:37 +0000 (0:00:00.269) 0:00:05.936 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test cleanup] ************************************************************ task path: /WORKDIR/git-weekly-cid3otbekg/tests/tests_default.yml:23 Sunday 28 July 2024 02:46:37 +0000 (0:00:00.021) 0:00:05.958 *********** included: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/cleanup.yml for sut TASK [Restore sudoers] ********************************************************* task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/cleanup.yml:3 Sunday 28 July 2024 02:46:37 +0000 (0:00:00.010) 0:00:05.968 *********** changed: [sut] => { "changed": true, "checksum": "ab0033aa8d46a209d71bfd49f8a2548c86b30be8", "dest": "/etc/sudoers", "gid": 0, "group": "root", "md5sum": "a5290df67c7ed217bff527e10cd87040", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 4375, "src": "/var/tmp/sudo_s1j617hy/sudoers", "state": "file", "uid": 0 } TASK [Restore sudoers.d] ******************************************************* task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/cleanup.yml:12 Sunday 28 July 2024 02:46:37 +0000 (0:00:00.304) 0:00:06.272 *********** changed: [sut] => { "changed": true, "checksum": null, "dest": "/etc/sudoers.d/sudoers.d", "gid": 0, "group": "root", "md5sum": null, "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "src": "/var/tmp/sudo_s1j617hy/sudoers.d", "state": "directory", "uid": 0 } TASK [Clean up temp directory] ************************************************* task path: /WORKDIR/git-weekly-cid3otbekg/tests/tasks/cleanup.yml:21 Sunday 28 July 2024 02:46:37 +0000 (0:00:00.303) 0:00:06.576 *********** changed: [sut] => { "changed": true, "path": "/var/tmp/sudo_s1j617hy", "state": "absent" } PLAY RECAP ********************************************************************* sut : ok=20 changed=7 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 Sunday 28 July 2024 02:46:37 +0000 (0:00:00.228) 0:00:06.804 *********** =============================================================================== fedora.linux_system_roles.sudo : Ensure sudo is installed --------------- 2.65s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:5 fedora.linux_system_roles.sudo : Ensure /etc/sudoers is configured ------ 0.63s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:42 fedora.linux_system_roles.sudo : Ensure ansible_facts used by role ------ 0.53s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:2 Backup sudoers ---------------------------------------------------------- 0.37s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/setup.yml:10 ----------------------- Create temp test directory ---------------------------------------------- 0.35s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/setup.yml:3 ------------------------ Backup sudoers.d -------------------------------------------------------- 0.31s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/setup.yml:19 ----------------------- fedora.linux_system_roles.sudo : Ensure include directories are created --- 0.31s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:19 Restore sudoers --------------------------------------------------------- 0.30s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/cleanup.yml:3 ---------------------- Restore sudoers.d ------------------------------------------------------- 0.30s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/cleanup.yml:12 --------------------- fedora.linux_system_roles.sudo : Check if system is ostree -------------- 0.28s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:10 Get file ---------------------------------------------------------------- 0.27s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/check_header.yml:3 ----------------- Clean up temp directory ------------------------------------------------- 0.23s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/cleanup.yml:21 --------------------- fedora.linux_system_roles.sudo : Set include directories variable ------- 0.02s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:11 Check for presence of ansible managed header, fingerprint --------------- 0.02s /WORKDIR/git-weekly-cid3otbekg/tests/tasks/check_header.yml:9 ----------------- fedora.linux_system_roles.sudo : Set sudoer file paths variable --------- 0.02s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:15 fedora.linux_system_roles.sudo : Set platform/version specific variables --- 0.02s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:19 Run the role ------------------------------------------------------------ 0.02s /WORKDIR/git-weekly-cid3otbekg/tests/tests_default.yml:12 --------------------- fedora.linux_system_roles.sudo : Set flag to indicate system is ostree --- 0.02s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/set_vars.yml:15 fedora.linux_system_roles.sudo : Remove unauthorized included sudoers files --- 0.01s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:74 fedora.linux_system_roles.sudo : Search for sudoers files in included directories --- 0.01s /WORKDIR/git-weekly-cid3otbekg/.collection/ansible_collections/fedora/linux_system_roles/roles/sudo/tasks/main.yml:62 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---