+ cd /tmp/tmpg_5h6usu/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-17-9f6ada5-rhel-8-y-b17zsl71/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpg_5h6usu/_setup.yml /tmp/tmpg_5h6usu/tests/tests_default.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpg_5h6usu/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpg_5h6usu/_setup.yml:5 ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:7 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:16 changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpg_5h6usu/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_default.yml:3 ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.056575", "end": "2021-03-15 07:33:49.100353", "rc": 0, "start": "2021-03-15 07:33:49.043778", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["DEFAULT", "EMPTY", "FUTURE", "LEGACY", "FIPS"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["AD-SUPPORT", "NO-SHA1", "OSPP", "ECDHE-ONLY", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:75 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.046031", "end": "2021-03-15 07:33:50.702639", "rc": 0, "start": "2021-03-15 07:33:50.656608", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} META: ran handlers TASK [Check the current policy is DEFAULT and common variables] **************** task path: /tmp/tmpg_5h6usu/tests/tests_default.yml:13 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=15 changed=1 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 + cd /tmp/tmpg_5h6usu/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-17-9f6ada5-rhel-8-y-b17zsl71/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpg_5h6usu/_setup.yml /tmp/tmpg_5h6usu/tests/tests_include_vars_from_parent.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpg_5h6usu/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpg_5h6usu/_setup.yml:5 ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:7 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:16 changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmpg_5h6usu/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpg_5h6usu/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/rhel-8-y.qcow2] => (item=RedHat-8.4) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpg_5h6usu/tests/roles/caller/vars/RedHat-8.4.yml", "gid": 0, "group": "root", "item": "RedHat-8.4", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1615808088.933902-32071-189177737606424/source", "state": "file", "uid": 0} changed: [/cache/rhel-8-y.qcow2] => (item=RedHat-8) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpg_5h6usu/tests/roles/caller/vars/RedHat-8.yml", "gid": 0, "group": "root", "item": "RedHat-8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1615808089.504468-32071-220938477571697/source", "state": "file", "uid": 0} changed: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpg_5h6usu/tests/roles/caller/vars/RedHat_8.4.yml", "gid": 0, "group": "root", "item": "RedHat_8.4", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1615808089.8531973-32071-55168680390232/source", "state": "file", "uid": 0} changed: [/cache/rhel-8-y.qcow2] => (item=RedHat_8) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpg_5h6usu/tests/roles/caller/vars/RedHat_8.yml", "gid": 0, "group": "root", "item": "RedHat_8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1615808090.181417-32071-153351017324115/source", "state": "file", "uid": 0} changed: [/cache/rhel-8-y.qcow2] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpg_5h6usu/tests/roles/caller/vars/RedHat.yml", "gid": 0, "group": "root", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1615808090.5317435-32071-25611504122829/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpg_5h6usu/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.058389", "end": "2021-03-15 07:34:52.391424", "rc": 0, "start": "2021-03-15 07:34:52.333035", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["EMPTY", "LEGACY", "DEFAULT", "FUTURE", "FIPS"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["OSPP", "ECDHE-ONLY", "AD-SUPPORT", "NO-CAMELLIA", "NO-SHA1"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:75 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.055019", "end": "2021-03-15 07:34:53.953910", "rc": 0, "start": "2021-03-15 07:34:53.898891", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [caller : assert] ********************************************************* task path: /tmp/tmpg_5h6usu/tests/roles/caller/tasks/main.yml:7 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=16 changed=2 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 + cd /tmp/tmpg_5h6usu/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-17-9f6ada5-rhel-8-y-b17zsl71/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpg_5h6usu/_setup.yml /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpg_5h6usu/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpg_5h6usu/_setup.yml:5 ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:7 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:16 changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_no_package_update.yml ****************************************** 1 plays in /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml PLAY [Ensure that running the role does not update packages] ******************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml:3 ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [Get package facts] ******************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml:6 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [Save current package facts] ********************************************** task path: /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml:10 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [Include role] ************************************************************ task path: /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml:15 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.055228", "end": "2021-03-15 07:35:55.231233", "rc": 0, "start": "2021-03-15 07:35:55.176005", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["EMPTY", "FIPS", "FUTURE", "LEGACY", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["NO-SHA1", "AD-SUPPORT", "OSPP", "ECDHE-ONLY", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:75 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.048386", "end": "2021-03-15 07:35:56.985504", "rc": 0, "start": "2021-03-15 07:35:56.937118", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [Refresh package facts] *************************************************** task path: /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml:19 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [Verify packages were not changed] **************************************** task path: /tmp/tmpg_5h6usu/tests/tests_no_package_update.yml:23 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=18 changed=1 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 + cd /tmp/tmpg_5h6usu/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-17-9f6ada5-rhel-8-y-b17zsl71/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpg_5h6usu/_setup.yml /tmp/tmpg_5h6usu/tests/tests_reboot.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpg_5h6usu/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpg_5h6usu/_setup.yml:5 ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:7 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:16 changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_reboot.yml ***************************************************** 1 plays in /tmp/tmpg_5h6usu/tests/tests_reboot.yml PLAY [Ensure we can set crypto policy including reboot of the system] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_reboot.yml:3 ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.056265", "end": "2021-03-15 07:36:58.659337", "rc": 0, "start": "2021-03-15 07:36:58.603072", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["DEFAULT", "LEGACY", "FUTURE", "FIPS", "EMPTY"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["AD-SUPPORT", "OSPP", "NO-CAMELLIA", "ECDHE-ONLY", "NO-SHA1"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-8-y.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-8-y.qcow2 changed: [/cache/rhel-8-y.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--set", "FUTURE"], "delta": "0:00:00.098622", "end": "2021-03-15 07:37:00.195100", "rc": 0, "start": "2021-03-15 07:37:00.096478", "stderr": "", "stderr_lines": [], "stdout": "Setting system policy to FUTURE\nNote: System-wide crypto policies are applied on application start-up.\nIt is recommended to restart the system for the change of policies\nto fully take place.", "stdout_lines": ["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/tmpg_5h6usu/tasks/main.yml:75 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.047650", "end": "2021-03-15 07:37:00.701992", "rc": 0, "start": "2021-03-15 07:37:00.654342", "stderr": "", "stderr_lines": [], "stdout": "FUTURE", "stdout_lines": ["FUTURE"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "FUTURE"}, "changed": false} RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpg_5h6usu/handlers/main.yml:4 changed: [/cache/rhel-8-y.qcow2] => {"changed": true, "elapsed": 8, "rebooted": true} RUNNING HANDLER [linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpg_5h6usu/handlers/main.yml:11 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": false}, "changed": false} META: ran handlers TASK [Check the current policy is FUTURE] ************************************** task path: /tmp/tmpg_5h6usu/tests/tests_reboot.yml:16 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=19 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpg_5h6usu/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-17-9f6ada5-rhel-8-y-b17zsl71/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpg_5h6usu/_setup.yml /tmp/tmpg_5h6usu/tests/tests_reload.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpg_5h6usu/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpg_5h6usu/_setup.yml:5 ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:7 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:16 changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_reload.yml ***************************************************** 1 plays in /tmp/tmpg_5h6usu/tests/tests_reload.yml PLAY [Ensure that crypto_policy_reload variable works] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:3 ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [Run role to make sure all dependencies are installed] ******************** task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:7 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.059321", "end": "2021-03-15 07:38:10.637132", "rc": 0, "start": "2021-03-15 07:38:10.577811", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["EMPTY", "FUTURE", "FIPS", "LEGACY", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "NO-SHA1", "NO-CAMELLIA", "OSPP", "AD-SUPPORT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:75 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.045396", "end": "2021-03-15 07:38:12.370360", "rc": 0, "start": "2021-03-15 07:38:12.324964", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [Get SSHD pid before policy update] *************************************** task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:11 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "content": "NDc0Nwo=", "encoding": "base64", "source": "/var/run/sshd.pid"} TASK [Change policy from DEFAULT TO LEGACY (disable reload)] ******************* task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:16 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.049853", "end": "2021-03-15 07:38:14.720046", "rc": 0, "start": "2021-03-15 07:38:14.670193", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["EMPTY", "FUTURE", "FIPS", "LEGACY", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "NO-SHA1", "NO-CAMELLIA", "OSPP", "AD-SUPPORT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-8-y.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-8-y.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-8-y.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-8-y.qcow2 changed: [/cache/rhel-8-y.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "LEGACY"], "delta": "0:00:00.056716", "end": "2021-03-15 07:38:16.175674", "rc": 0, "start": "2021-03-15 07:38:16.118958", "stderr": "", "stderr_lines": [], "stdout": "Setting system policy to LEGACY\nNote: System-wide crypto policies are applied on application start-up.\nIt is recommended to restart the system for the change of policies\nto fully take place.", "stdout_lines": ["Setting system policy to LEGACY", "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/tmpg_5h6usu/tasks/main.yml:75 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.046900", "end": "2021-03-15 07:38:16.684151", "rc": 0, "start": "2021-03-15 07:38:16.637251", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [Get sshd pid after first update] ***************************************** task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:23 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "content": "NDc0Nwo=", "encoding": "base64", "source": "/var/run/sshd.pid"} TASK [Verify that policy was changed to LEGACY] ******************************** task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:28 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check the sshd was not reloaded] ***************************************** task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:32 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Change policy from LEGACY to DEFAULT (reload by default)] **************** task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:37 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.050253", "end": "2021-03-15 07:38:18.958728", "rc": 0, "start": "2021-03-15 07:38:18.908475", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1615808296.1596704, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["EMPTY", "FUTURE", "FIPS", "LEGACY", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "NO-SHA1", "NO-CAMELLIA", "OSPP", "AD-SUPPORT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-8-y.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-8-y.qcow2 changed: [/cache/rhel-8-y.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--set", "DEFAULT"], "delta": "0:00:00.101146", "end": "2021-03-15 07:38:20.410263", "rc": 0, "start": "2021-03-15 07:38:20.309117", "stderr": "", "stderr_lines": [], "stdout": "Setting system policy to DEFAULT\nNote: System-wide crypto policies are applied on application start-up.\nIt is recommended to restart the system for the change of policies\nto fully take place.", "stdout_lines": ["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/tmpg_5h6usu/tasks/main.yml:75 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.051665", "end": "2021-03-15 07:38:20.976893", "rc": 0, "start": "2021-03-15 07:38:20.925228", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [Get sshd pid after second update] **************************************** task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:43 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "content": "NjM3OQo=", "encoding": "base64", "source": "/var/run/sshd.pid"} TASK [Verify that policy was changed to DEFAULT] ******************************* task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:48 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check the sshd was reloaded] ********************************************* task path: /tmp/tmpg_5h6usu/tests/tests_reload.yml:53 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpg_5h6usu/handlers/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => {"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/tmpg_5h6usu/handlers/main.yml:11 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpg_5h6usu/handlers/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => {"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/tmpg_5h6usu/handlers/main.yml:11 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpg_5h6usu/handlers/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => {"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/tmpg_5h6usu/handlers/main.yml:11 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=47 changed=3 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 + cd /tmp/tmpg_5h6usu/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-17-9f6ada5-rhel-8-y-b17zsl71/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpg_5h6usu/_setup.yml /tmp/tmpg_5h6usu/tests/tests_update.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpg_5h6usu/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpg_5h6usu/_setup.yml:5 ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:7 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpg_5h6usu/_setup.yml:16 changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_update.yml ***************************************************** 1 plays in /tmp/tmpg_5h6usu/tests/tests_update.yml PLAY [Ensure that we can set the policy using this role (without reboot)] ****** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:3 ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [Set correct base policy] ************************************************* task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:7 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.054226", "end": "2021-03-15 07:39:22.884936", "rc": 0, "start": "2021-03-15 07:39:22.830710", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["FIPS", "FUTURE", "EMPTY", "DEFAULT", "LEGACY"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "OSPP", "NO-SHA1", "AD-SUPPORT", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-8-y.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-8-y.qcow2 changed: [/cache/rhel-8-y.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "LEGACY"], "delta": "0:00:00.057189", "end": "2021-03-15 07:39:24.349569", "rc": 0, "start": "2021-03-15 07:39:24.292380", "stderr": "", "stderr_lines": [], "stdout": "Setting system policy to LEGACY\nNote: System-wide crypto policies are applied on application start-up.\nIt is recommended to restart the system for the change of policies\nto fully take place.", "stdout_lines": ["Setting system policy to LEGACY", "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/tmpg_5h6usu/tasks/main.yml:75 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.045937", "end": "2021-03-15 07:39:24.892327", "rc": 0, "start": "2021-03-15 07:39:24.846390", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [Verify that base policy was updated] ************************************* task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:13 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Set correct base policy and policy module] ******************************* task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:19 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.047878", "end": "2021-03-15 07:39:26.763373", "rc": 0, "start": "2021-03-15 07:39:26.715495", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615782662.84183, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1615808364.3335543, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["FIPS", "FUTURE", "EMPTY", "DEFAULT", "LEGACY"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "OSPP", "NO-SHA1", "AD-SUPPORT", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/rhel-8-y.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/rhel-8-y.qcow2 changed: [/cache/rhel-8-y.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "DEFAULT:NO-SHA1"], "delta": "0:00:00.059349", "end": "2021-03-15 07:39:28.156857", "rc": 0, "start": "2021-03-15 07:39:28.097508", "stderr": "", "stderr_lines": [], "stdout": "Setting system policy to DEFAULT:NO-SHA1\nNote: System-wide crypto policies are applied on application start-up.\nIt is recommended to restart the system for the change of policies\nto fully take place.", "stdout_lines": ["Setting system policy to DEFAULT:NO-SHA1", "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/tmpg_5h6usu/tasks/main.yml:75 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:84 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.046859", "end": "2021-03-15 07:39:28.714996", "rc": 0, "start": "2021-03-15 07:39:28.668137", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT:NO-SHA1", "stdout_lines": ["DEFAULT:NO-SHA1"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT:NO-SHA1"}, "changed": false} TASK [Verify that base policy and policy module were updated] ****************** task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:25 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Set incorrect base policy] *********************************************** task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:33 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.047043", "end": "2021-03-15 07:39:30.565549", "rc": 0, "start": "2021-03-15 07:39:30.518506", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT:NO-SHA1", "stdout_lines": ["DEFAULT:NO-SHA1"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT:NO-SHA1"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615808368.138554, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1615808364.3335543, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["FIPS", "FUTURE", "EMPTY", "DEFAULT", "LEGACY"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1615808368.1395543, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "OSPP", "NO-SHA1", "AD-SUPPORT", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 fatal: [/cache/rhel-8-y.qcow2]: FAILED! => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "NOEXIST"], "delta": "0:00:00.069189", "end": "2021-03-15 07:39:31.978960", "msg": "non-zero return code", "rc": 1, "start": "2021-03-15 07:39:31.909771", "stderr": "Error: Unknown policy: NOEXIST", "stderr_lines": ["Error: Unknown policy: NOEXIST"], "stdout": "", "stdout_lines": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:43 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Set incorrect policy module] ********************************************* task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:52 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=RedHat_8.4.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat_8.4.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpg_5h6usu/tasks/main.yml:17 ok: [/cache/rhel-8-y.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:25 skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/rhel-8-y.qcow2] => (item=crypto-policies-scripts) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies-scripts", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpg_5h6usu/tasks/main.yml:32 included: /tmp/tmpg_5h6usu/tasks/gather_facts.yml for /cache/rhel-8-y.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:3 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.062487", "end": "2021-03-15 07:39:33.850252", "rc": 0, "start": "2021-03-15 07:39:33.787765", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT:NO-SHA1", "stdout_lines": ["DEFAULT:NO-SHA1"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpg_5h6usu/tasks/gather_facts.yml:9 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT:NO-SHA1"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:34 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 7, "files": [{"atime": 1615808368.138554, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805419, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2121, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805420, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 364, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805421, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1680, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2029, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1615808364.3335543, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 16805423, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2543, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:42 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["FIPS", "FUTURE", "EMPTY", "DEFAULT", "LEGACY"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpg_5h6usu/tasks/main.yml:49 ok: [/cache/rhel-8-y.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1612890631.0, "ctime": 1615782714.2542336, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174697, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 288, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174698, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 118, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174699, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-CAMELLIA.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 246, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1615808368.1395543, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 150, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1612890631.0, "ctime": 1615782714.2552335, "dev": 64515, "gid": 0, "gr_name": "root", "inode": 25174701, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1612890631.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2031, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpg_5h6usu/tasks/main.yml:57 ok: [/cache/rhel-8-y.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "OSPP", "NO-SHA1", "AD-SUPPORT", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpg_5h6usu/tasks/main.yml:64 fatal: [/cache/rhel-8-y.qcow2]: FAILED! => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "DEFAULT:NOEXIST"], "delta": "0:00:00.051347", "end": "2021-03-15 07:39:35.372603", "msg": "non-zero return code", "rc": 1, "start": "2021-03-15 07:39:35.321256", "stderr": "Error: Unknown policy: NOEXIST", "stderr_lines": ["Error: Unknown policy: NOEXIST"], "stdout": "", "stdout_lines": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpg_5h6usu/tests/tests_update.yml:62 ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "msg": "All assertions passed" } RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpg_5h6usu/handlers/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => {"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/tmpg_5h6usu/handlers/main.yml:11 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes] *** task path: /tmp/tmpg_5h6usu/handlers/main.yml:4 skipping: [/cache/rhel-8-y.qcow2] => {"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/tmpg_5h6usu/handlers/main.yml:11 skipping: [/cache/rhel-8-y.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=49 changed=3 unreachable=0 failed=0 skipped=13 rescued=2 ignored=0