ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpx_r11pk2 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Thursday 07 July 2022 04:51:47 +0000 (0:00:00.020) 0:00:00.020 ********* changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.200460", "end": "2022-07-07 04:51:46.837915", "rc": 0, "start": "2022-07-07 04:51:46.637455" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 07 July 2022 04:51:48 +0000 (0:00:00.805) 0:00:00.825 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.81s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_no_package_update.yml ****************************************** 1 plays in /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml PLAY [Ensure that running the role does not update packages] ******************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:3 Thursday 07 July 2022 04:51:48 +0000 (0:00:00.011) 0:00:00.837 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Get package facts] ******************************************************* task path: /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:6 Thursday 07 July 2022 04:51:49 +0000 (0:00:01.017) 0:00:01.855 ********* ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Save current package facts] ********************************************** task path: /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:10 Thursday 07 July 2022 04:51:50 +0000 (0:00:01.301) 0:00:03.157 ********* ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Include role] ************************************************************ task path: /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:15 Thursday 07 July 2022 04:51:50 +0000 (0:00:00.092) 0:00:03.250 ********* TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 04:51:50 +0000 (0:00:00.052) 0:00:03.302 ********* included: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 04:51:50 +0000 (0:00:00.070) 0:00:03.373 ********* ok: [/cache/centos-8.qcow2] TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:9 Thursday 07 July 2022 04:51:51 +0000 (0:00:00.524) 0:00:03.898 ********* skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 04:51:51 +0000 (0:00:00.064) 0:00:03.962 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 04:51:53 +0000 (0:00:02.266) 0:00:06.228 ********* included: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:51:53 +0000 (0:00:00.052) 0:00:06.281 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.051869", "end": "2022-07-07 04:51:52.729316", "rc": 0, "start": "2022-07-07 04:51:52.677447" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:51:53 +0000 (0:00:00.441) 0:00:06.722 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 04:51:53 +0000 (0:00:00.087) 0:00:06.810 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "examined": 7, "files": [ { "atime": 1643141148.061, "ctime": 1643141086.521, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656390, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2072, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.521, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656391, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 267, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.522, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656392, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1645, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.522, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656393, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2030, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.523, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656394, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2390, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5, "skipped_paths": {} } MSG: All paths examined TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 04:51:54 +0000 (0:00:00.511) 0:00:07.321 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_available_policies": [ "DEFAULT", "EMPTY", "FIPS", "FUTURE", "LEGACY" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Find subpolicy files] *************** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 04:51:54 +0000 (0:00:00.054) 0:00:07.376 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "examined": 5, "files": [ { "atime": 1637070398.0, "ctime": 1643141086.524, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828356, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 318, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.524, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828357, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.525, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828358, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.526, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828359, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 123, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.526, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828360, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1986, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5, "skipped_paths": {} } MSG: All paths examined TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 04:51:54 +0000 (0:00:00.403) 0:00:07.779 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT", "ECDHE-ONLY", "NO-CAMELLIA", "NO-SHA1", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 04:51:55 +0000 (0:00:00.054) 0:00:07.834 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT", "ECDHE-ONLY", "NO-CAMELLIA", "NO-SHA1", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 04:51:55 +0000 (0:00:00.044) 0:00:07.879 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 04:51:55 +0000 (0:00:00.034) 0:00:07.913 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 04:51:55 +0000 (0:00:00.035) 0:00:07.949 ********* included: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:51:55 +0000 (0:00:00.049) 0:00:07.999 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.055329", "end": "2022-07-07 04:51:54.435402", "rc": 0, "start": "2022-07-07 04:51:54.380073" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:51:55 +0000 (0:00:00.431) 0:00:08.431 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } META: role_complete for /cache/centos-8.qcow2 TASK [Refresh package facts] *************************************************** task path: /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:19 Thursday 07 July 2022 04:51:55 +0000 (0:00:00.056) 0:00:08.487 ********* ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Verify packages were not changed] **************************************** task path: /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:23 Thursday 07 July 2022 04:51:56 +0000 (0:00:01.128) 0:00:09.616 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=20 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 07 July 2022 04:51:56 +0000 (0:00:00.067) 0:00:09.683 ********* =============================================================================== linux-system-roles.crypto_policies : Ensure required packages are installed --- 2.27s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Get package facts ------------------------------------------------------- 1.30s /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:6 -------------------------- Refresh package facts --------------------------------------------------- 1.13s /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:19 ------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:3 -------------------------- Enable HA repos --------------------------------------------------------- 0.81s /cache/centos-8_setup.yml:5 --------------------------------------------------- linux-system-roles.crypto_policies : Ensure ansible_facts used by role --- 0.52s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 linux-system-roles.crypto_policies : Find base policies files ----------- 0.51s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.44s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.43s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Find subpolicy files --------------- 0.40s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 Save current package facts ---------------------------------------------- 0.09s /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:10 ------------------------- linux-system-roles.crypto_policies : Set current policy fact ------------ 0.09s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 linux-system-roles.crypto_policies : Set platform/version specific variables --- 0.07s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Verify packages were not changed ---------------------------------------- 0.07s /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:23 ------------------------- linux-system-roles.crypto_policies : Set platform/version specific variables --- 0.06s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:9 linux-system-roles.crypto_policies : Set current policy fact ------------ 0.06s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 linux-system-roles.crypto_policies : Set available base policies fact --- 0.05s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 linux-system-roles.crypto_policies : Set available subpolicies fact ----- 0.05s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 Include role ------------------------------------------------------------ 0.05s /tmp/tmpw_k8pm1a/tests/tests_no_package_update.yml:15 ------------------------- linux-system-roles.crypto_policies : include_tasks ---------------------- 0.05s /tmp/tmpw_k8pm1a/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:11 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpx_r11pk2 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Thursday 07 July 2022 04:54:36 +0000 (0:00:00.018) 0:00:00.018 ********* changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.189019", "end": "2022-07-07 04:54:35.766893", "rc": 0, "start": "2022-07-07 04:54:35.577874" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Thursday 07 July 2022 04:54:37 +0000 (0:00:00.763) 0:00:00.782 ********* =============================================================================== Enable HA repos --------------------------------------------------------- 0.76s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_no_package_update.yml ****************************************** 1 plays in /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml PLAY [Ensure that running the role does not update packages] ******************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:3 Thursday 07 July 2022 04:54:37 +0000 (0:00:00.011) 0:00:00.794 ********* ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Get package facts] ******************************************************* task path: /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:6 Thursday 07 July 2022 04:54:38 +0000 (0:00:01.032) 0:00:01.826 ********* ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Save current package facts] ********************************************** task path: /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:10 Thursday 07 July 2022 04:54:39 +0000 (0:00:01.311) 0:00:03.137 ********* ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Include role] ************************************************************ task path: /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:15 Thursday 07 July 2022 04:54:39 +0000 (0:00:00.090) 0:00:03.228 ********* TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 04:54:39 +0000 (0:00:00.058) 0:00:03.286 ********* included: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 04:54:39 +0000 (0:00:00.071) 0:00:03.358 ********* ok: [/cache/centos-8.qcow2] TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:7 Thursday 07 July 2022 04:54:40 +0000 (0:00:00.524) 0:00:03.882 ********* skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 04:54:40 +0000 (0:00:00.060) 0:00:03.943 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 04:54:42 +0000 (0:00:02.125) 0:00:06.069 ********* included: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:54:42 +0000 (0:00:00.055) 0:00:06.124 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.050509", "end": "2022-07-07 04:54:41.557234", "rc": 0, "start": "2022-07-07 04:54:41.506725" } STDOUT: DEFAULT TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:54:42 +0000 (0:00:00.442) 0:00:06.566 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Find base policies files] **** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 04:54:42 +0000 (0:00:00.048) 0:00:06.615 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "examined": 7, "files": [ { "atime": 1643141148.061, "ctime": 1643141086.521, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656390, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2072, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.521, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656391, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 267, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.522, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656392, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1645, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.522, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656393, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2030, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.523, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 5656394, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2390, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5, "skipped_paths": {} } MSG: All paths examined TASK [fedora.linux_system_roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 04:54:43 +0000 (0:00:00.518) 0:00:07.133 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_available_policies": [ "DEFAULT", "EMPTY", "FIPS", "FUTURE", "LEGACY" ] }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Find subpolicy files] ******** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 04:54:43 +0000 (0:00:00.053) 0:00:07.187 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "examined": 5, "files": [ { "atime": 1637070398.0, "ctime": 1643141086.524, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828356, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 318, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.524, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828357, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.525, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828358, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.526, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828359, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 123, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1637070398.0, "ctime": 1643141086.526, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 8828360, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1637070398.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1986, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5, "skipped_paths": {} } MSG: All paths examined TASK [fedora.linux_system_roles.crypto_policies : Set available subpolicies fact] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 04:54:43 +0000 (0:00:00.375) 0:00:07.562 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT", "ECDHE-ONLY", "NO-CAMELLIA", "NO-SHA1", "OSPP" ] }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 04:54:43 +0000 (0:00:00.054) 0:00:07.616 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT", "ECDHE-ONLY", "NO-CAMELLIA", "NO-SHA1", "OSPP" ] }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Update crypto policy if needed] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 04:54:43 +0000 (0:00:00.039) 0:00:07.656 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 04:54:43 +0000 (0:00:00.032) 0:00:07.689 ********* skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 04:54:43 +0000 (0:00:00.031) 0:00:07.720 ********* included: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:54:44 +0000 (0:00:00.048) 0:00:07.769 ********* ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.049331", "end": "2022-07-07 04:54:43.167566", "rc": 0, "start": "2022-07-07 04:54:43.118235" } STDOUT: DEFAULT TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:54:44 +0000 (0:00:00.408) 0:00:08.177 ********* ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } META: role_complete for /cache/centos-8.qcow2 TASK [Refresh package facts] *************************************************** task path: /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:19 Thursday 07 July 2022 04:54:44 +0000 (0:00:00.060) 0:00:08.237 ********* ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Verify packages were not changed] **************************************** task path: /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:23 Thursday 07 July 2022 04:54:45 +0000 (0:00:01.087) 0:00:09.325 ********* ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=20 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 07 July 2022 04:54:45 +0000 (0:00:00.068) 0:00:09.394 ********* =============================================================================== fedora.linux_system_roles.crypto_policies : Ensure required packages are installed --- 2.13s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 Get package facts ------------------------------------------------------- 1.31s /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:6 ---------- Refresh package facts --------------------------------------------------- 1.09s /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:19 --------- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:3 ---------- Enable HA repos --------------------------------------------------------- 0.76s /cache/centos-8_setup.yml:5 --------------------------------------------------- fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role --- 0.52s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 fedora.linux_system_roles.crypto_policies : Find base policies files ---- 0.52s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy --- 0.44s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy --- 0.41s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 fedora.linux_system_roles.crypto_policies : Find subpolicy files -------- 0.38s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 Save current package facts ---------------------------------------------- 0.09s /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:10 --------- fedora.linux_system_roles.crypto_policies : Set platform/version specific variables --- 0.07s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:3 Verify packages were not changed ---------------------------------------- 0.07s /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:23 --------- fedora.linux_system_roles.crypto_policies : Set platform/version specific variables --- 0.06s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:7 fedora.linux_system_roles.crypto_policies : Set current policy fact ----- 0.06s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Include role ------------------------------------------------------------ 0.06s /tmp/tmpag4ro5n5/tests/crypto_policies/tests_no_package_update.yml:15 --------- fedora.linux_system_roles.crypto_policies : include_tasks --------------- 0.06s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:11 fedora.linux_system_roles.crypto_policies : Set available subpolicies fact --- 0.05s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36 fedora.linux_system_roles.crypto_policies : Set available base policies fact --- 0.05s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:21 fedora.linux_system_roles.crypto_policies : include_tasks --------------- 0.05s /tmp/tmpx_r11pk2/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:69