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/tmpq_65obvb 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: tests_reboot.yml ***************************************************** 1 plays in /tmp/tmphq5cyv5m/tests/tests_reboot.yml PLAY [Ensure we can set crypto policy including reboot of the system] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmphq5cyv5m/tests/tests_reboot.yml:3 Thursday 07 July 2022 05:14:32 +0000 (0:00:00.014) 0:00:00.014 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Ensure we can set crypto policy including reboot of the system] ********** task path: /tmp/tmphq5cyv5m/tests/tests_reboot.yml:10 Thursday 07 July 2022 05:14:33 +0000 (0:00:01.125) 0:00:01.140 ********* TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 05:14:33 +0000 (0:00:00.039) 0:00:01.179 ********* included: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 05:14:33 +0000 (0:00:00.047) 0:00:01.227 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:9 Thursday 07 July 2022 05:14:34 +0000 (0:00:00.516) 0:00:01.743 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 05:14:34 +0000 (0:00:00.042) 0:00:01.786 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 05:14:35 +0000 (0:00:01.006) 0:00:02.792 ********* included: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:14:35 +0000 (0:00:00.029) 0:00:02.821 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.048668", "end": "2022-07-07 01:14:34.500233", "rc": 0, "start": "2022-07-07 01:14:34.451565" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:14:35 +0000 (0:00:00.555) 0:00:03.376 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 05:14:35 +0000 (0:00:00.030) 0:00:03.407 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1651373439.5687864, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398307, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2441, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398308, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398309, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1939, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398310, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2465, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398311, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2574, "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/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 05:14:36 +0000 (0:00:00.493) 0:00:03.900 ********* ok: [/cache/rhel-9.qcow2.snap] => { "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/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 05:14:36 +0000 (0:00:00.044) 0:00:03.945 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806373, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806374, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806375, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806377, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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 }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806378, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 6, "skipped_paths": {} } MSG: All paths examined TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 05:14:36 +0000 (0:00:00.363) 0:00:04.308 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 05:14:36 +0000 (0:00:00.042) 0:00:04.350 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 05:14:36 +0000 (0:00:00.028) 0:00:04.379 ********* NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-9.qcow2.snap changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "FUTURE" ], "delta": "0:00:00.129548", "end": "2022-07-07 01:14:35.977280", "rc": 0, "start": "2022-07-07 01:14:35.847732" } STDOUT: Setting system policy to FUTURE Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 05:14:37 +0000 (0:00:00.476) 0:00:04.856 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 05:14:37 +0000 (0:00:00.043) 0:00:04.899 ********* included: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:14:37 +0000 (0:00:00.033) 0:00:04.933 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046170", "end": "2022-07-07 01:14:36.461900", "rc": 0, "start": "2022-07-07 01:14:36.415730" } STDOUT: FUTURE TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:14:37 +0000 (0:00:00.410) 0:00:05.343 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "FUTURE" }, "changed": false } META: role_complete for /cache/rhel-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmphq5cyv5m/tests/tests_reboot.yml:18 Thursday 07 July 2022 05:14:37 +0000 (0:00:00.043) 0:00:05.387 ********* RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 05:14:37 +0000 (0:00:00.000) 0:00:05.387 ********* changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "elapsed": 8, "rebooted": true } RUNNING HANDLER [linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 05:14:47 +0000 (0:00:09.543) 0:00:14.931 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": false }, "changed": false } META: ran handlers TASK [Check the current policy is FUTURE] ************************************** task path: /tmp/tmphq5cyv5m/tests/tests_reboot.yml:20 Thursday 07 July 2022 05:14:47 +0000 (0:00:00.055) 0:00:14.986 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore policy to DEFAULT] *********************************************** task path: /tmp/tmphq5cyv5m/tests/tests_reboot.yml:27 Thursday 07 July 2022 05:14:47 +0000 (0:00:00.034) 0:00:15.021 ********* TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 05:14:47 +0000 (0:00:00.042) 0:00:15.063 ********* included: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 05:14:47 +0000 (0:00:00.029) 0:00:15.093 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:9 Thursday 07 July 2022 05:14:48 +0000 (0:00:00.548) 0:00:15.642 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 05:14:48 +0000 (0:00:00.044) 0:00:15.686 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 05:14:49 +0000 (0:00:01.056) 0:00:16.742 ********* included: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:14:49 +0000 (0:00:00.029) 0:00:16.771 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.059637", "end": "2022-07-07 01:14:49.281936", "rc": 0, "start": "2022-07-07 01:14:49.222299" } STDOUT: FUTURE TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:14:49 +0000 (0:00:00.472) 0:00:17.243 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "FUTURE" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 05:14:49 +0000 (0:00:00.029) 0:00:17.273 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1651373439.5687864, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398307, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2441, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398308, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398309, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1939, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1657170875.8893006, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398310, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2465, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398311, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2574, "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/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 05:14:50 +0000 (0:00:00.359) 0:00:17.632 ********* ok: [/cache/rhel-9.qcow2.snap] => { "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/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 05:14:50 +0000 (0:00:00.046) 0:00:17.679 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806373, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806374, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806375, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806377, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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 }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806378, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 6, "skipped_paths": {} } MSG: All paths examined TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 05:14:50 +0000 (0:00:00.362) 0:00:18.042 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 05:14:50 +0000 (0:00:00.045) 0:00:18.087 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 05:14:50 +0000 (0:00:00.032) 0:00:18.119 ********* NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-9.qcow2.snap changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "DEFAULT" ], "delta": "0:00:00.147764", "end": "2022-07-07 01:14:50.678601", "rc": 0, "start": "2022-07-07 01:14:50.530837" } STDOUT: Setting system policy to DEFAULT Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 05:14:51 +0000 (0:00:00.520) 0:00:18.640 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 05:14:51 +0000 (0:00:00.036) 0:00:18.677 ********* included: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:14:51 +0000 (0:00:00.030) 0:00:18.708 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.052395", "end": "2022-07-07 01:14:51.182912", "rc": 0, "start": "2022-07-07 01:14:51.130517" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:14:51 +0000 (0:00:00.437) 0:00:19.145 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } META: role_complete for /cache/rhel-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmphq5cyv5m/tests/tests_reboot.yml:39 Thursday 07 July 2022 05:14:51 +0000 (0:00:00.040) 0:00:19.186 ********* RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 05:14:51 +0000 (0:00:00.000) 0:00:19.186 ********* changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "elapsed": 8, "rebooted": true } RUNNING HANDLER [linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 05:15:01 +0000 (0:00:09.863) 0:00:29.050 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": false }, "changed": false } RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 05:15:01 +0000 (0:00:00.046) 0:00:29.096 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 05:15:01 +0000 (0:00:00.034) 0:00:29.130 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers TASK [Check the current policy has been restored to DEFAULT] ******************* task path: /tmp/tmphq5cyv5m/tests/tests_reboot.yml:40 Thursday 07 July 2022 05:15:01 +0000 (0:00:00.042) 0:00:29.173 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=39 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 07 July 2022 05:15:01 +0000 (0:00:00.041) 0:00:29.215 ********* =============================================================================== linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes -- 19.41s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmphq5cyv5m/tests/tests_reboot.yml:3 ------------------------------------- linux-system-roles.crypto_policies : Ensure required packages are installed --- 1.06s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Ensure required packages are installed --- 1.01s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.56s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Ensure ansible_facts used by role --- 0.55s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.52s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 linux-system-roles.crypto_policies : Ensure ansible_facts used by role --- 0.52s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 linux-system-roles.crypto_policies : Find base policies files ----------- 0.49s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.48s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.47s /tmp/tmphq5cyv5m/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.44s /tmp/tmphq5cyv5m/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.41s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Find subpolicy files --------------- 0.36s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 linux-system-roles.crypto_policies : Find subpolicy files --------------- 0.36s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 linux-system-roles.crypto_policies : Find base policies files ----------- 0.36s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag --- 0.10s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 linux-system-roles.crypto_policies : Set platform/version specific variables --- 0.05s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 linux-system-roles.crypto_policies : Set available base policies fact --- 0.05s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 linux-system-roles.crypto_policies : Set available subpolicies fact ----- 0.05s /tmp/tmphq5cyv5m/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 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/tmpq_65obvb 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: tests_reboot.yml ***************************************************** 1 plays in /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml PLAY [Ensure we can set crypto policy including reboot of the system] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:3 Thursday 07 July 2022 05:16:16 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Ensure we can set crypto policy including reboot of the system] ********** task path: /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:10 Thursday 07 July 2022 05:16:17 +0000 (0:00:01.173) 0:00:01.187 ********* TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 05:16:17 +0000 (0:00:00.059) 0:00:01.246 ********* included: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 05:16:18 +0000 (0:00:00.030) 0:00:01.277 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:7 Thursday 07 July 2022 05:16:18 +0000 (0:00:00.518) 0:00:01.796 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 05:16:18 +0000 (0:00:00.041) 0:00:01.838 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 05:16:19 +0000 (0:00:01.040) 0:00:02.878 ********* included: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:16:19 +0000 (0:00:00.031) 0:00:02.910 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.048420", "end": "2022-07-07 01:16:18.987749", "rc": 0, "start": "2022-07-07 01:16:18.939329" } STDOUT: DEFAULT TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:16:20 +0000 (0:00:00.537) 0:00:03.447 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Find base policies files] **** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 05:16:20 +0000 (0:00:00.033) 0:00:03.481 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1651373439.5687864, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398307, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2441, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398308, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398309, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1939, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398310, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2465, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398311, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2574, "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/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 05:16:20 +0000 (0:00:00.493) 0:00:03.974 ********* ok: [/cache/rhel-9.qcow2.snap] => { "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/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 05:16:20 +0000 (0:00:00.044) 0:00:04.018 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806373, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806374, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806375, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806377, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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 }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806378, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 6, "skipped_paths": {} } MSG: All paths examined TASK [fedora.linux_system_roles.crypto_policies : Set available subpolicies fact] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 05:16:21 +0000 (0:00:00.374) 0:00:04.393 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 05:16:21 +0000 (0:00:00.048) 0:00:04.442 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Update crypto policy if needed] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 05:16:21 +0000 (0:00:00.033) 0:00:04.475 ********* NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-9.qcow2.snap changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "FUTURE" ], "delta": "0:00:00.132593", "end": "2022-07-07 01:16:20.518029", "rc": 0, "start": "2022-07-07 01:16:20.385436" } STDOUT: Setting system policy to FUTURE Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. TASK [fedora.linux_system_roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 05:16:21 +0000 (0:00:00.505) 0:00:04.981 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 05:16:21 +0000 (0:00:00.038) 0:00:05.020 ********* included: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:16:21 +0000 (0:00:00.030) 0:00:05.050 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.047563", "end": "2022-07-07 01:16:21.005729", "rc": 0, "start": "2022-07-07 01:16:20.958166" } STDOUT: FUTURE TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:16:22 +0000 (0:00:00.420) 0:00:05.470 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "FUTURE" }, "changed": false } META: role_complete for /cache/rhel-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:18 Thursday 07 July 2022 05:16:22 +0000 (0:00:00.049) 0:00:05.520 ********* RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 05:16:22 +0000 (0:00:00.000) 0:00:05.520 ********* changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "elapsed": 8, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 05:16:31 +0000 (0:00:09.118) 0:00:14.638 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": false }, "changed": false } META: ran handlers TASK [Check the current policy is FUTURE] ************************************** task path: /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:20 Thursday 07 July 2022 05:16:31 +0000 (0:00:00.063) 0:00:14.701 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore policy to DEFAULT] *********************************************** task path: /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:27 Thursday 07 July 2022 05:16:31 +0000 (0:00:00.034) 0:00:14.736 ********* TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 05:16:31 +0000 (0:00:00.047) 0:00:14.783 ********* included: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 05:16:31 +0000 (0:00:00.031) 0:00:14.815 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:7 Thursday 07 July 2022 05:16:32 +0000 (0:00:00.607) 0:00:15.422 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 05:16:32 +0000 (0:00:00.045) 0:00:15.468 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 05:16:33 +0000 (0:00:01.131) 0:00:16.600 ********* included: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:16:33 +0000 (0:00:00.032) 0:00:16.632 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.054494", "end": "2022-07-07 01:16:32.930395", "rc": 0, "start": "2022-07-07 01:16:32.875901" } STDOUT: FUTURE TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:16:33 +0000 (0:00:00.457) 0:00:17.089 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "FUTURE" }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Find base policies files] **** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 05:16:33 +0000 (0:00:00.032) 0:00:17.122 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1651373439.5687864, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398307, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2441, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398308, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398309, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1939, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1657170980.426584, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398310, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2465, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 8398311, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2574, "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/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 05:16:34 +0000 (0:00:00.364) 0:00:17.486 ********* ok: [/cache/rhel-9.qcow2.snap] => { "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/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 05:16:34 +0000 (0:00:00.046) 0:00:17.533 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806373, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806374, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9129395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806375, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806377, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.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 }, { "atime": 1648665514.0, "ctime": 1651373459.9139395, "dev": 64516, "gid": 0, "gr_name": "root", "inode": 16806378, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1648665514.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 6, "skipped_paths": {} } MSG: All paths examined TASK [fedora.linux_system_roles.crypto_policies : Set available subpolicies fact] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 05:16:34 +0000 (0:00:00.359) 0:00:17.893 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 05:16:34 +0000 (0:00:00.047) 0:00:17.940 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT-LEGACY", "AD-SUPPORT", "ECDHE-ONLY", "NO-SHA1", "OSPP", "SHA1" ] }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : Update crypto policy if needed] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 05:16:34 +0000 (0:00:00.032) 0:00:17.973 ********* NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-9.qcow2.snap changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "DEFAULT" ], "delta": "0:00:00.141668", "end": "2022-07-07 01:16:34.346480", "rc": 0, "start": "2022-07-07 01:16:34.204812" } STDOUT: Setting system policy to DEFAULT Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. TASK [fedora.linux_system_roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 05:16:35 +0000 (0:00:00.533) 0:00:18.506 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 05:16:35 +0000 (0:00:00.036) 0:00:18.543 ********* included: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 05:16:35 +0000 (0:00:00.031) 0:00:18.574 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.047889", "end": "2022-07-07 01:16:34.824337", "rc": 0, "start": "2022-07-07 01:16:34.776448" } STDOUT: DEFAULT TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 05:16:35 +0000 (0:00:00.408) 0:00:18.983 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } META: role_complete for /cache/rhel-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:39 Thursday 07 July 2022 05:16:35 +0000 (0:00:00.039) 0:00:19.022 ********* RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 05:16:35 +0000 (0:00:00.000) 0:00:19.023 ********* changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "elapsed": 10, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 05:16:47 +0000 (0:00:11.789) 0:00:30.813 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": false }, "changed": false } RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 05:16:47 +0000 (0:00:00.045) 0:00:30.858 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 05:16:47 +0000 (0:00:00.034) 0:00:30.892 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers TASK [Check the current policy has been restored to DEFAULT] ******************* task path: /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:40 Thursday 07 July 2022 05:16:47 +0000 (0:00:00.043) 0:00:30.936 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=39 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 07 July 2022 05:16:47 +0000 (0:00:00.043) 0:00:30.979 ********* =============================================================================== fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes -- 20.91s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 Gathering Facts --------------------------------------------------------- 1.17s /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:3 --------------------- fedora.linux_system_roles.crypto_policies : Ensure required packages are installed --- 1.13s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 fedora.linux_system_roles.crypto_policies : Ensure required packages are installed --- 1.04s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role --- 0.61s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy --- 0.54s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 fedora.linux_system_roles.crypto_policies : Update crypto policy if needed --- 0.53s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role --- 0.52s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 fedora.linux_system_roles.crypto_policies : Update crypto policy if needed --- 0.51s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 fedora.linux_system_roles.crypto_policies : Find base policies files ---- 0.49s /tmp/tmpq_65obvb/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.46s /tmp/tmpq_65obvb/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.42s /tmp/tmpq_65obvb/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/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 fedora.linux_system_roles.crypto_policies : Find subpolicy files -------- 0.37s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 fedora.linux_system_roles.crypto_policies : Find base policies files ---- 0.36s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 fedora.linux_system_roles.crypto_policies : Find subpolicy files -------- 0.36s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag --- 0.11s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 Ensure we can set crypto policy including reboot of the system ---------- 0.06s /tmp/tmpug7g0mmr/tests/crypto_policies/tests_reboot.yml:10 -------------------- fedora.linux_system_roles.crypto_policies : Set current policy fact ----- 0.05s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 fedora.linux_system_roles.crypto_policies : Set available subpolicies fact --- 0.05s /tmp/tmpq_65obvb/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36