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/tmpgwxbfuum 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/tmpt_33lpa1/tests/tests_reboot.yml PLAY [Ensure we can set crypto policy including reboot of the system] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpt_33lpa1/tests/tests_reboot.yml:3 Thursday 07 July 2022 04:56:27 +0000 (0:00:00.015) 0:00:00.015 ********* ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Ensure we can set crypto policy including reboot of the system] ********** task path: /tmp/tmpt_33lpa1/tests/tests_reboot.yml:10 Thursday 07 July 2022 04:56:28 +0000 (0:00:01.131) 0:00:01.147 ********* TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 04:56:28 +0000 (0:00:00.038) 0:00:01.186 ********* included: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 04:56:28 +0000 (0:00:00.046) 0:00:01.232 ********* ok: [/cache/centos-9.qcow2.snap] TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:9 Thursday 07 July 2022 04:56:29 +0000 (0:00:00.514) 0:00:01.747 ********* skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 04:56:29 +0000 (0:00:00.038) 0:00:01.785 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 04:56:30 +0000 (0:00:00.992) 0:00:02.778 ********* included: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:56:30 +0000 (0:00:00.028) 0:00:02.807 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.048040", "end": "2022-07-07 00:56:29.597564", "rc": 0, "start": "2022-07-07 00:56:29.549524" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:56:30 +0000 (0:00:00.537) 0:00:03.344 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 04:56:30 +0000 (0:00:00.032) 0:00:03.377 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1654523953.384, "ctime": 1654523869.662, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583057, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2394, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1650635908.0, "ctime": 1654523869.663, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583058, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583059, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.665, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583061, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 04:56:31 +0000 (0:00:00.502) 0:00:03.879 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 04:56:31 +0000 (0:00:00.044) 0:00:03.923 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.667, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.669, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 04:56:31 +0000 (0:00:00.364) 0:00:04.288 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 04:56:31 +0000 (0:00:00.042) 0:00:04.330 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 04:56:31 +0000 (0:00:00.028) 0:00:04.358 ********* NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/centos-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/centos-9.qcow2.snap changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "FUTURE" ], "delta": "0:00:00.137334", "end": "2022-07-07 00:56:31.144662", "rc": 0, "start": "2022-07-07 00:56:31.007328" } 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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 04:56:32 +0000 (0:00:00.532) 0:00:04.891 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 04:56:32 +0000 (0:00:00.034) 0:00:04.925 ********* included: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:56:32 +0000 (0:00:00.027) 0:00:04.953 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.047186", "end": "2022-07-07 00:56:31.617740", "rc": 0, "start": "2022-07-07 00:56:31.570554" } STDOUT: FUTURE TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:56:32 +0000 (0:00:00.408) 0:00:05.362 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "FUTURE" }, "changed": false } META: role_complete for /cache/centos-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmpt_33lpa1/tests/tests_reboot.yml:18 Thursday 07 July 2022 04:56:33 +0000 (0:00:00.042) 0:00:05.404 ********* RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 04:56:33 +0000 (0:00:00.000) 0:00:05.405 ********* changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "elapsed": 15, "rebooted": true } RUNNING HANDLER [linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 04:56:49 +0000 (0:00:16.564) 0:00:21.969 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/tests_reboot.yml:20 Thursday 07 July 2022 04:56:49 +0000 (0:00:00.055) 0:00:22.024 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore policy to DEFAULT] *********************************************** task path: /tmp/tmpt_33lpa1/tests/tests_reboot.yml:27 Thursday 07 July 2022 04:56:49 +0000 (0:00:00.034) 0:00:22.059 ********* TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 04:56:49 +0000 (0:00:00.038) 0:00:22.098 ********* included: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 04:56:49 +0000 (0:00:00.028) 0:00:22.126 ********* ok: [/cache/centos-9.qcow2.snap] TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:9 Thursday 07 July 2022 04:56:50 +0000 (0:00:00.618) 0:00:22.745 ********* skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 04:56:50 +0000 (0:00:00.040) 0:00:22.785 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 04:56:51 +0000 (0:00:01.106) 0:00:23.892 ********* included: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:56:51 +0000 (0:00:00.030) 0:00:23.922 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.058584", "end": "2022-07-07 00:56:51.315530", "rc": 0, "start": "2022-07-07 00:56:51.256946" } STDOUT: FUTURE TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:56:51 +0000 (0:00:00.420) 0:00:24.343 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "FUTURE" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 04:56:52 +0000 (0:00:00.058) 0:00:24.402 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1654523953.384, "ctime": 1654523869.662, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583057, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2394, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1650635908.0, "ctime": 1654523869.663, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583058, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583059, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1657169791.050319, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.665, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583061, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 04:56:52 +0000 (0:00:00.403) 0:00:24.805 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 04:56:52 +0000 (0:00:00.085) 0:00:24.891 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.667, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.669, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 04:56:52 +0000 (0:00:00.389) 0:00:25.280 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 04:56:52 +0000 (0:00:00.091) 0:00:25.372 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 04:56:53 +0000 (0:00:00.029) 0:00:25.401 ********* NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/centos-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/centos-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/centos-9.qcow2.snap NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/centos-9.qcow2.snap changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "DEFAULT" ], "delta": "0:00:00.137813", "end": "2022-07-07 00:56:52.881039", "rc": 0, "start": "2022-07-07 00:56:52.743226" } 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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 04:56:53 +0000 (0:00:00.508) 0:00:25.910 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 04:56:53 +0000 (0:00:00.035) 0:00:25.946 ********* included: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:56:53 +0000 (0:00:00.030) 0:00:25.976 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.045603", "end": "2022-07-07 00:56:53.347012", "rc": 0, "start": "2022-07-07 00:56:53.301409" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:56:53 +0000 (0:00:00.398) 0:00:26.375 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } META: role_complete for /cache/centos-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmpt_33lpa1/tests/tests_reboot.yml:39 Thursday 07 July 2022 04:56:54 +0000 (0:00:00.038) 0:00:26.413 ********* RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 04:56:54 +0000 (0:00:00.000) 0:00:26.413 ********* changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "elapsed": 14, "rebooted": true } RUNNING HANDLER [linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 04:57:09 +0000 (0:00:15.407) 0:00:41.821 ********* ok: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 04:57:09 +0000 (0:00:00.043) 0:00:41.865 ********* skipping: [/cache/centos-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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 04:57:09 +0000 (0:00:00.033) 0:00:41.898 ********* skipping: [/cache/centos-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/tmpt_33lpa1/tests/tests_reboot.yml:40 Thursday 07 July 2022 04:57:09 +0000 (0:00:00.038) 0:00:41.936 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=39 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 07 July 2022 04:57:09 +0000 (0:00:00.043) 0:00:41.979 ********* =============================================================================== linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes -- 31.97s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpt_33lpa1/tests/tests_reboot.yml:3 ------------------------------------- linux-system-roles.crypto_policies : Ensure required packages are installed --- 1.11s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Ensure required packages are installed --- 0.99s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Ensure ansible_facts used by role --- 0.62s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.54s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.53s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 linux-system-roles.crypto_policies : Ensure ansible_facts used by role --- 0.51s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.51s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:49 linux-system-roles.crypto_policies : Find base policies files ----------- 0.50s /tmp/tmpt_33lpa1/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.42s /tmp/tmpt_33lpa1/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/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Find base policies files ----------- 0.40s /tmp/tmpt_33lpa1/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.40s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Find subpolicy files --------------- 0.39s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 linux-system-roles.crypto_policies : Find subpolicy files --------------- 0.36s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:28 linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag --- 0.10s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 linux-system-roles.crypto_policies : Set available subpolicies fact ----- 0.09s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:36 linux-system-roles.crypto_policies : Set available base policies fact --- 0.09s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:21 linux-system-roles.crypto_policies : Set current policy fact ------------ 0.06s /tmp/tmpt_33lpa1/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 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/tmpgwxbfuum 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/tmp17i904o_/tests/crypto_policies/tests_reboot.yml PLAY [Ensure we can set crypto policy including reboot of the system] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:3 Thursday 07 July 2022 04:58:25 +0000 (0:00:00.014) 0:00:00.014 ********* ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Ensure we can set crypto policy including reboot of the system] ********** task path: /tmp/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:10 Thursday 07 July 2022 04:58:26 +0000 (0:00:01.121) 0:00:01.135 ********* TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 04:58:26 +0000 (0:00:00.043) 0:00:01.179 ********* included: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 04:58:26 +0000 (0:00:00.031) 0:00:01.210 ********* ok: [/cache/centos-9.qcow2.snap] TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:7 Thursday 07 July 2022 04:58:26 +0000 (0:00:00.527) 0:00:01.738 ********* skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 04:58:26 +0000 (0:00:00.039) 0:00:01.777 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 04:58:27 +0000 (0:00:00.991) 0:00:02.769 ********* included: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:58:27 +0000 (0:00:00.030) 0:00:02.799 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.049582", "end": "2022-07-07 00:58:27.791119", "rc": 0, "start": "2022-07-07 00:58:27.741537" } STDOUT: DEFAULT TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:58:28 +0000 (0:00:00.552) 0:00:03.352 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 04:58:28 +0000 (0:00:00.033) 0:00:03.385 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1654523953.384, "ctime": 1654523869.662, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583057, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2394, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1650635908.0, "ctime": 1654523869.663, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583058, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583059, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.665, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583061, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 04:58:28 +0000 (0:00:00.498) 0:00:03.884 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 04:58:29 +0000 (0:00:00.042) 0:00:03.927 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.667, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.669, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 04:58:29 +0000 (0:00:00.368) 0:00:04.296 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 04:58:29 +0000 (0:00:00.045) 0:00:04.342 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 04:58:29 +0000 (0:00:00.030) 0:00:04.372 ********* NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/centos-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/centos-9.qcow2.snap changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "FUTURE" ], "delta": "0:00:00.129991", "end": "2022-07-07 00:58:29.313206", "rc": 0, "start": "2022-07-07 00:58:29.183215" } 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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 04:58:29 +0000 (0:00:00.499) 0:00:04.872 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 04:58:30 +0000 (0:00:00.036) 0:00:04.908 ********* included: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:58:30 +0000 (0:00:00.031) 0:00:04.939 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046287", "end": "2022-07-07 00:58:29.801392", "rc": 0, "start": "2022-07-07 00:58:29.755105" } STDOUT: FUTURE TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:58:30 +0000 (0:00:00.423) 0:00:05.362 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "FUTURE" }, "changed": false } META: role_complete for /cache/centos-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:18 Thursday 07 July 2022 04:58:30 +0000 (0:00:00.042) 0:00:05.405 ********* RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 04:58:30 +0000 (0:00:00.000) 0:00:05.405 ********* changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "elapsed": 15, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 04:58:47 +0000 (0:00:16.579) 0:00:21.984 ********* ok: [/cache/centos-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/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:20 Thursday 07 July 2022 04:58:47 +0000 (0:00:00.055) 0:00:22.040 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Restore policy to DEFAULT] *********************************************** task path: /tmp/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:27 Thursday 07 July 2022 04:58:47 +0000 (0:00:00.036) 0:00:22.076 ********* TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:3 Thursday 07 July 2022 04:58:47 +0000 (0:00:00.044) 0:00:22.120 ********* included: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:2 Thursday 07 July 2022 04:58:47 +0000 (0:00:00.029) 0:00:22.150 ********* ok: [/cache/centos-9.qcow2.snap] TASK [fedora.linux_system_roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/set_vars.yml:7 Thursday 07 July 2022 04:58:47 +0000 (0:00:00.562) 0:00:22.712 ********* skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 Thursday 07 July 2022 04:58:47 +0000 (0:00:00.038) 0:00:22.751 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:11 Thursday 07 July 2022 04:58:48 +0000 (0:00:01.128) 0:00:23.879 ********* included: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:58:49 +0000 (0:00:00.031) 0:00:23.911 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.070844", "end": "2022-07-07 00:58:49.365925", "rc": 0, "start": "2022-07-07 00:58:49.295081" } STDOUT: FUTURE TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:58:49 +0000 (0:00:00.463) 0:00:24.374 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 Thursday 07 July 2022 04:58:49 +0000 (0:00:00.069) 0:00:24.443 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 7, "files": [ { "atime": 1654523953.384, "ctime": 1654523869.662, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583057, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2394, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1650635908.0, "ctime": 1654523869.663, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583058, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583059, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1657169909.2246723, "ctime": 1654523869.664, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.665, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 12583061, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:21 Thursday 07 July 2022 04:58:49 +0000 (0:00:00.412) 0:00:24.855 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 Thursday 07 July 2022 04:58:50 +0000 (0:00:00.078) 0:00:24.934 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "examined": 6, "files": [ { "atime": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.666, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.667, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.668, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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": 1650635908.0, "ctime": 1654523869.669, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1650635908.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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36 Thursday 07 July 2022 04:58:50 +0000 (0:00:00.407) 0:00:25.342 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:43 Thursday 07 July 2022 04:58:50 +0000 (0:00:00.043) 0:00:25.386 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 Thursday 07 July 2022 04:58:50 +0000 (0:00:00.030) 0:00:25.416 ********* NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/centos-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/centos-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/centos-9.qcow2.snap NOTIFIED HANDLER fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/centos-9.qcow2.snap changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "DEFAULT" ], "delta": "0:00:00.134956", "end": "2022-07-07 00:58:50.925511", "rc": 0, "start": "2022-07-07 00:58:50.790555" } 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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:60 Thursday 07 July 2022 04:58:51 +0000 (0:00:00.512) 0:00:25.929 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [fedora.linux_system_roles.crypto_policies : include_tasks] *************** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:69 Thursday 07 July 2022 04:58:51 +0000 (0:00:00.037) 0:00:25.967 ********* included: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 Thursday 07 July 2022 04:58:51 +0000 (0:00:00.031) 0:00:25.998 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.050799", "end": "2022-07-07 00:58:51.434370", "rc": 0, "start": "2022-07-07 00:58:51.383571" } STDOUT: DEFAULT TASK [fedora.linux_system_roles.crypto_policies : Set current policy fact] ***** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:9 Thursday 07 July 2022 04:58:51 +0000 (0:00:00.443) 0:00:26.442 ********* ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } META: role_complete for /cache/centos-9.qcow2.snap TASK [meta] ******************************************************************** task path: /tmp/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:39 Thursday 07 July 2022 04:58:51 +0000 (0:00:00.041) 0:00:26.483 ********* RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 04:58:51 +0000 (0:00:00.000) 0:00:26.483 ********* changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "elapsed": 14, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 04:59:06 +0000 (0:00:15.408) 0:00:41.892 ********* ok: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 Thursday 07 July 2022 04:59:07 +0000 (0:00:00.046) 0:00:41.939 ********* skipping: [/cache/centos-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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 Thursday 07 July 2022 04:59:07 +0000 (0:00:00.034) 0:00:41.974 ********* skipping: [/cache/centos-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/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:40 Thursday 07 July 2022 04:59:07 +0000 (0:00:00.043) 0:00:42.017 ********* ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=39 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 07 July 2022 04:59:07 +0000 (0:00:00.043) 0:00:42.061 ********* =============================================================================== fedora.linux_system_roles.crypto_policies : reboot the managed host to apply crypto policies changes -- 31.99s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:4 fedora.linux_system_roles.crypto_policies : Ensure required packages are installed --- 1.13s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:6 Gathering Facts --------------------------------------------------------- 1.12s /tmp/tmp17i904o_/tests/crypto_policies/tests_reboot.yml:3 --------------------- fedora.linux_system_roles.crypto_policies : Ensure required packages are installed --- 0.99s /tmp/tmpgwxbfuum/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.56s /tmp/tmpgwxbfuum/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.55s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 fedora.linux_system_roles.crypto_policies : Ensure ansible_facts used by role --- 0.53s /tmp/tmpgwxbfuum/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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 fedora.linux_system_roles.crypto_policies : Update crypto policy if needed --- 0.50s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:49 fedora.linux_system_roles.crypto_policies : Find base policies files ---- 0.50s /tmp/tmpgwxbfuum/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/tmpgwxbfuum/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.44s /tmp/tmpgwxbfuum/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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/gather_facts.yml:3 fedora.linux_system_roles.crypto_policies : Find base policies files ---- 0.41s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:13 fedora.linux_system_roles.crypto_policies : Find subpolicy files -------- 0.41s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:28 fedora.linux_system_roles.crypto_policies : Find subpolicy files -------- 0.37s /tmp/tmpgwxbfuum/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.10s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/handlers/main.yml:11 fedora.linux_system_roles.crypto_policies : Set available base policies fact --- 0.08s /tmp/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:21 fedora.linux_system_roles.crypto_policies : Set current policy fact ----- 0.07s /tmp/tmpgwxbfuum/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/tmpgwxbfuum/ansible_collections/fedora/linux_system_roles/roles/crypto_policies/tasks/main.yml:36