ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles 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_trusted_execution.yml ****************************************** 1 plays in /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 Friday 20 September 2024 20:25:03 -0400 (0:00:00.022) 0:00:00.022 ****** ok: [managed_node1] META: ran handlers TASK [Create temp test directory] ********************************************** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:24 Friday 20 September 2024 20:25:04 -0400 (0:00:01.559) 0:00:01.582 ****** changed: [managed_node1] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_4E5Zxw", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create directories for tests] ******************************************** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 Friday 20 September 2024 20:25:05 -0400 (0:00:00.477) 0:00:02.059 ****** changed: [managed_node1] => (item=/var/tmp/fapolicyd_4E5Zxw) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_4E5Zxw", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_4E5Zxw", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [managed_node1] => (item=/var/tmp/fapolicyd_4E5Zxw/executables) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_4E5Zxw/executables", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_4E5Zxw/executables", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Create shell executables] ************************************************ task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 Friday 20 September 2024 20:25:05 -0400 (0:00:00.757) 0:00:02.817 ****** changed: [managed_node1] => (item=/var/tmp/fapolicyd_4E5Zxw/executables/exe1) => { "ansible_loop_var": "item", "changed": true, "checksum": "eeeaecf2bec1fac137656737d0e1eb5f192e3123", "dest": "/var/tmp/fapolicyd_4E5Zxw/executables/exe1", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_4E5Zxw/executables/exe1", "md5sum": "b8545d036590be13f3fcad3876b9cbff", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 99, "src": "/root/.ansible/tmp/ansible-tmp-1726878306.01-9706-96663906676549/source", "state": "file", "uid": 0 } changed: [managed_node1] => (item=/var/tmp/fapolicyd_4E5Zxw/executables/exe2) => { "ansible_loop_var": "item", "changed": true, "checksum": "c136ff137d339deabffa980a1c296bb3c8be265c", "dest": "/var/tmp/fapolicyd_4E5Zxw/executables/exe2", "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_4E5Zxw/executables/exe2", "md5sum": "2e8ece84d224cd82edbddcfc4652a861", "mode": "0755", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 99, "src": "/root/.ansible/tmp/ansible-tmp-1726878306.82-9706-100395175449669/source", "state": "file", "uid": 0 } TASK [Create a new user] ******************************************************* task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Friday 20 September 2024 20:25:07 -0400 (0:00:01.699) 0:00:04.516 ****** changed: [managed_node1] => { "changed": true, "comment": "", "create_home": true, "group": 1000, "home": "/home/fapolicyd_test1_user", "name": "fapolicyd_test1_user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1000 } TASK [Run the role] ************************************************************ task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:61 Friday 20 September 2024 20:25:08 -0400 (0:00:00.970) 0:00:05.487 ****** TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Friday 20 September 2024 20:25:08 -0400 (0:00:00.044) 0:00:05.532 ****** included: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml for managed_node1 TASK [fedora.linux_system_roles.fapolicyd : Ensure ansible_facts used by role] *** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Friday 20 September 2024 20:25:08 -0400 (0:00:00.038) 0:00:05.570 ****** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check if system is ostree] ********* task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Friday 20 September 2024 20:25:08 -0400 (0:00:00.041) 0:00:05.611 ****** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.fapolicyd : Set flag to indicate system is ostree] *** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Friday 20 September 2024 20:25:09 -0400 (0:00:00.290) 0:00:05.901 ****** ok: [managed_node1] => { "ansible_facts": { "__fapolicyd_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Friday 20 September 2024 20:25:09 -0400 (0:00:00.065) 0:00:05.967 ****** skipping: [managed_node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Set fapolicyd feature facts for OS versions] *** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 Friday 20 September 2024 20:25:09 -0400 (0:00:00.096) 0:00:06.063 ****** ok: [managed_node1] => { "ansible_facts": { "__fapolicyd_configcheck_supported": false, "__fapolicyd_integrity_supported": false, "__fapolicyd_selinux_supported": false, "__fapolicyd_supported": false, "__fapolicyd_syslog_format_supported": false, "__fapolicyd_trust_supported": false, "__fapolicyd_trustfiles_supported": false, "__fapolicyd_watch_fs_supported": false }, "changed": false } TASK [fedora.linux_system_roles.fapolicyd : System check] ********************** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Friday 20 September 2024 20:25:09 -0400 (0:00:00.156) 0:00:06.220 ****** fatal: [managed_node1]: FAILED! => { "changed": false } MSG: [u'Only Enterprise Linux >= 8.1 and Fedora are supported', u'System - RedHat', u'Version - 7.9'] TASK [Shutdown fapolicyd] ****************************************************** task path: /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 Friday 20 September 2024 20:25:09 -0400 (0:00:00.067) 0:00:06.288 ****** fatal: [managed_node1]: FAILED! => { "changed": false } MSG: Could not find the requested service fapolicyd: host PLAY RECAP ********************************************************************* managed_node1 : ok=9 changed=4 unreachable=0 failed=2 skipped=2 rescued=0 ignored=0 Friday 20 September 2024 20:25:10 -0400 (0:00:00.723) 0:00:07.011 ****** =============================================================================== Create shell executables ------------------------------------------------ 1.70s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:40 Gathering Facts --------------------------------------------------------- 1.56s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:2 Create a new user ------------------------------------------------------- 0.97s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:55 Create directories for tests -------------------------------------------- 0.76s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:31 Shutdown fapolicyd ------------------------------------------------------ 0.72s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:118 Create temp test directory ---------------------------------------------- 0.48s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:24 fedora.linux_system_roles.fapolicyd : Check if system is ostree --------- 0.29s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 fedora.linux_system_roles.fapolicyd : Set fapolicyd feature facts for OS versions --- 0.16s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:40 fedora.linux_system_roles.fapolicyd : Set platform/version specific variables --- 0.10s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 fedora.linux_system_roles.fapolicyd : System check ---------------------- 0.07s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 fedora.linux_system_roles.fapolicyd : Set flag to indicate system is ostree --- 0.07s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Run the role ------------------------------------------------------------ 0.04s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/tests/fapolicyd/tests_trusted_execution.yml:61 fedora.linux_system_roles.fapolicyd : Ensure ansible_facts used by role --- 0.04s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 fedora.linux_system_roles.fapolicyd : Set platform/version specific variables --- 0.04s /tmp/collections-xMh/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2