+ cd /tmp/tmpc5vd2z4l/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-20-aaabcdd-fedora-32-vj5ptmj6/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc5vd2z4l/_setup.yml /tmp/tmpc5vd2z4l/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 *********************************************************** 1 plays in /tmp/tmpc5vd2z4l/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc5vd2z4l/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc5vd2z4l/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpc5vd2z4l/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_default.yml:3 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.049040", "end": "2021-04-02 02:02:18.578829", "rc": 0, "start": "2021-04-02 02:02:18.529789", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["EMPTY", "LEGACY", "NEXT", "FIPS", "DEFAULT", "FUTURE"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "OSPP", "NO-CAMELLIA", "NO-SHA1", "GOST"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:75 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.042548", "end": "2021-04-02 02:02:20.127810", "rc": 0, "start": "2021-04-02 02:02:20.085262", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tests/tests_default.yml:13 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=14 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 + cd /tmp/tmpc5vd2z4l/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-20-aaabcdd-fedora-32-vj5ptmj6/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc5vd2z4l/_setup.yml /tmp/tmpc5vd2z4l/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 *********************************************************** 1 plays in /tmp/tmpc5vd2z4l/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc5vd2z4l/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc5vd2z4l/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmpc5vd2z4l/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpc5vd2z4l/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/fedora-32.qcow2] => (item=Fedora-32) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc5vd2z4l/tests/roles/caller/vars/Fedora-32.yml", "gid": 0, "group": "root", "item": "Fedora-32", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1617328956.0296009-288744-90136806070873/source", "state": "file", "uid": 0} changed: [/cache/fedora-32.qcow2] => (item=Fedora_32) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc5vd2z4l/tests/roles/caller/vars/Fedora_32.yml", "gid": 0, "group": "root", "item": "Fedora_32", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1617328956.646613-288744-160680722130826/source", "state": "file", "uid": 0} changed: [/cache/fedora-32.qcow2] => (item=Fedora) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc5vd2z4l/tests/roles/caller/vars/Fedora.yml", "gid": 0, "group": "root", "item": "Fedora", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1617328956.9946294-288744-4300849270703/source", "state": "file", "uid": 0} changed: [/cache/fedora-32.qcow2] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc5vd2z4l/tests/roles/caller/vars/RedHat.yml", "gid": 0, "group": "root", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1617328957.3401067-288744-124083112557395/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpc5vd2z4l/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.047492", "end": "2021-04-02 02:02:38.544655", "rc": 0, "start": "2021-04-02 02:02:38.497163", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["FIPS", "NEXT", "LEGACY", "DEFAULT", "EMPTY", "FUTURE"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "NO-SHA1", "OSPP", "GOST", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:75 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.040212", "end": "2021-04-02 02:02:39.995036", "rc": 0, "start": "2021-04-02 02:02:39.954824", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [caller : assert] ********************************************************* task path: /tmp/tmpc5vd2z4l/tests/roles/caller/tasks/main.yml:7 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=15 changed=1 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 + cd /tmp/tmpc5vd2z4l/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-20-aaabcdd-fedora-32-vj5ptmj6/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc5vd2z4l/_setup.yml /tmp/tmpc5vd2z4l/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 *********************************************************** 1 plays in /tmp/tmpc5vd2z4l/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc5vd2z4l/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc5vd2z4l/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_no_package_update.yml ****************************************** 1 plays in /tmp/tmpc5vd2z4l/tests/tests_no_package_update.yml PLAY [Ensure that running the role does not update packages] ******************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_no_package_update.yml:3 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Get package facts] ******************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_no_package_update.yml:6 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tests/tests_no_package_update.yml:10 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tests/tests_no_package_update.yml:15 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.048611", "end": "2021-04-02 02:02:57.408384", "rc": 0, "start": "2021-04-02 02:02:57.359773", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["EMPTY", "DEFAULT", "FUTURE", "LEGACY", "FIPS", "NEXT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["GOST", "NO-SHA1", "NO-CAMELLIA", "OSPP", "ECDHE-ONLY"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:75 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.042147", "end": "2021-04-02 02:02:58.968562", "rc": 0, "start": "2021-04-02 02:02:58.926415", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [Refresh package facts] *************************************************** task path: /tmp/tmpc5vd2z4l/tests/tests_no_package_update.yml:19 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tests/tests_no_package_update.yml:23 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=17 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 + cd /tmp/tmpc5vd2z4l/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-20-aaabcdd-fedora-32-vj5ptmj6/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc5vd2z4l/_setup.yml /tmp/tmpc5vd2z4l/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 *********************************************************** 1 plays in /tmp/tmpc5vd2z4l/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc5vd2z4l/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc5vd2z4l/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_reboot.yml ***************************************************** 1 plays in /tmp/tmpc5vd2z4l/tests/tests_reboot.yml PLAY [Ensure we can set crypto policy including reboot of the system] ********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_reboot.yml:3 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.047182", "end": "2021-04-02 02:03:16.596635", "rc": 0, "start": "2021-04-02 02:03:16.549453", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["FIPS", "EMPTY", "NEXT", "LEGACY", "FUTURE", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["GOST", "NO-CAMELLIA", "ECDHE-ONLY", "OSPP", "NO-SHA1"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/fedora-32.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--set", "FUTURE"], "delta": "0:00:00.107869", "end": "2021-04-02 02:03:18.117745", "rc": 0, "start": "2021-04-02 02:03:18.009876", "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/tmpc5vd2z4l/tasks/main.yml:75 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.040603", "end": "2021-04-02 02:03:18.691825", "rc": 0, "start": "2021-04-02 02:03:18.651222", "stderr": "", "stderr_lines": [], "stdout": "FUTURE", "stdout_lines": ["FUTURE"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "elapsed": 8, "rebooted": true} RUNNING HANDLER [linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag] *** task path: /tmp/tmpc5vd2z4l/handlers/main.yml:11 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": false}, "changed": false} META: ran handlers TASK [Check the current policy is FUTURE] ************************************** task path: /tmp/tmpc5vd2z4l/tests/tests_reboot.yml:16 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=18 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpc5vd2z4l/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-20-aaabcdd-fedora-32-vj5ptmj6/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc5vd2z4l/_setup.yml /tmp/tmpc5vd2z4l/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 *********************************************************** 1 plays in /tmp/tmpc5vd2z4l/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc5vd2z4l/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc5vd2z4l/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_reload.yml ***************************************************** 1 plays in /tmp/tmpc5vd2z4l/tests/tests_reload.yml PLAY [Ensure that crypto_policy_reload variable works] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:3 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Run role to make sure all dependencies are installed] ******************** task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:7 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.048702", "end": "2021-04-02 02:03:44.569986", "rc": 0, "start": "2021-04-02 02:03:44.521284", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["NEXT", "FUTURE", "LEGACY", "EMPTY", "FIPS", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "GOST", "OSPP", "NO-SHA1", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:75 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.037119", "end": "2021-04-02 02:03:46.162115", "rc": 0, "start": "2021-04-02 02:03:46.124996", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [Get SSHD pid before policy update] *************************************** task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:11 ok: [/cache/fedora-32.qcow2] => {"changed": false, "content": "NzA5Cg==", "encoding": "base64", "source": "/var/run/sshd.pid"} TASK [Change policy from DEFAULT TO LEGACY (disable reload)] ******************* task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:16 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.037783", "end": "2021-04-02 02:03:47.867330", "rc": 0, "start": "2021-04-02 02:03:47.829547", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["NEXT", "FUTURE", "LEGACY", "EMPTY", "FIPS", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "GOST", "OSPP", "NO-SHA1", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/fedora-32.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/fedora-32.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/fedora-32.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "LEGACY"], "delta": "0:00:00.054950", "end": "2021-04-02 02:03:49.258336", "rc": 0, "start": "2021-04-02 02:03:49.203386", "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/tmpc5vd2z4l/tasks/main.yml:75 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.039804", "end": "2021-04-02 02:03:49.743292", "rc": 0, "start": "2021-04-02 02:03:49.703488", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [Get sshd pid after first update] ***************************************** task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:23 ok: [/cache/fedora-32.qcow2] => {"changed": false, "content": "NzA5Cg==", "encoding": "base64", "source": "/var/run/sshd.pid"} TASK [Verify that policy was changed to LEGACY] ******************************** task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:28 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check the sshd was not reloaded] ***************************************** task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:32 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Change policy from LEGACY to DEFAULT (reload by default)] **************** task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:37 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.037722", "end": "2021-04-02 02:03:51.530808", "rc": 0, "start": "2021-04-02 02:03:51.493086", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1617329029.2406955, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["NEXT", "FUTURE", "LEGACY", "EMPTY", "FIPS", "DEFAULT"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["ECDHE-ONLY", "GOST", "OSPP", "NO-SHA1", "NO-CAMELLIA"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/fedora-32.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--set", "DEFAULT"], "delta": "0:00:00.088937", "end": "2021-04-02 02:03:52.895734", "rc": 0, "start": "2021-04-02 02:03:52.806797", "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/tmpc5vd2z4l/tasks/main.yml:75 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.039406", "end": "2021-04-02 02:03:53.384320", "rc": 0, "start": "2021-04-02 02:03:53.344914", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [Get sshd pid after second update] **************************************** task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "content": "MjIwNgo=", "encoding": "base64", "source": "/var/run/sshd.pid"} TASK [Verify that policy was changed to DEFAULT] ******************************* task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:48 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check the sshd was reloaded] ********************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_reload.yml:53 ok: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:4 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:11 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:4 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:11 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:4 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:11 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=46 changed=2 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 + cd /tmp/tmpc5vd2z4l/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_crypto_policies-20-aaabcdd-fedora-32-vj5ptmj6/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc5vd2z4l/_setup.yml /tmp/tmpc5vd2z4l/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 *********************************************************** 1 plays in /tmp/tmpc5vd2z4l/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc5vd2z4l/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc5vd2z4l/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_update.yml ***************************************************** 1 plays in /tmp/tmpc5vd2z4l/tests/tests_update.yml PLAY [Ensure that we can set the policy using this role (without reboot)] ****** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_update.yml:3 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set correct base policy] ************************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_update.yml:7 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.075725", "end": "2021-04-02 02:04:11.292500", "rc": 0, "start": "2021-04-02 02:04:11.216775", "stderr": "", "stderr_lines": [], "stdout": "DEFAULT", "stdout_lines": ["DEFAULT"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["NEXT", "DEFAULT", "FIPS", "LEGACY", "EMPTY", "FUTURE"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["NO-CAMELLIA", "NO-SHA1", "OSPP", "ECDHE-ONLY", "GOST"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/fedora-32.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "LEGACY"], "delta": "0:00:00.050815", "end": "2021-04-02 02:04:12.815337", "rc": 0, "start": "2021-04-02 02:04:12.764522", "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/tmpc5vd2z4l/tasks/main.yml:75 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.043327", "end": "2021-04-02 02:04:13.374855", "rc": 0, "start": "2021-04-02 02:04:13.331528", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [Verify that base policy was updated] ************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_update.yml:13 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Set correct base policy and policy module] ******************************* task path: /tmp/tmpc5vd2z4l/tests/tests_update.yml:19 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.038554", "end": "2021-04-02 02:04:14.737889", "rc": 0, "start": "2021-04-02 02:04:14.699335", "stderr": "", "stderr_lines": [], "stdout": "LEGACY", "stdout_lines": ["LEGACY"]} TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "LEGACY"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1617329052.7979023, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["NEXT", "DEFAULT", "FIPS", "LEGACY", "EMPTY", "FUTURE"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1592565962.0, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["NO-CAMELLIA", "NO-SHA1", "OSPP", "ECDHE-ONLY", "GOST"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 NOTIFIED HANDLER linux-system-roles.crypto_policies : reboot the managed host to apply crypto policies changes for /cache/fedora-32.qcow2 NOTIFIED HANDLER linux-system-roles.crypto_policies : clear the crypto_policies_reboot_required flag for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "DEFAULT:NO-SHA1"], "delta": "0:00:00.058777", "end": "2021-04-02 02:04:16.077985", "rc": 0, "start": "2021-04-02 02:04:16.019208", "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/tmpc5vd2z4l/tasks/main.yml:75 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_reboot_required": true}, "changed": false} TASK [linux-system-roles.crypto_policies : include_tasks] ********************** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:84 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.036529", "end": "2021-04-02 02:04:16.564955", "rc": 0, "start": "2021-04-02 02:04:16.528426", "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/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT:NO-SHA1"}, "changed": false} TASK [Verify that base policy and policy module were updated] ****************** task path: /tmp/tmpc5vd2z4l/tests/tests_update.yml:25 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Set incorrect base policy] *********************************************** task path: /tmp/tmpc5vd2z4l/tests/tests_update.yml:33 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.039088", "end": "2021-04-02 02:04:17.926815", "rc": 0, "start": "2021-04-02 02:04:17.887727", "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/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT:NO-SHA1"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1617329052.7979023, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["NEXT", "DEFAULT", "FIPS", "LEGACY", "EMPTY", "FUTURE"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1617329056.0549023, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["NO-CAMELLIA", "NO-SHA1", "OSPP", "ECDHE-ONLY", "GOST"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "NOEXIST"], "delta": "0:00:00.038587", "end": "2021-04-02 02:04:19.286802", "msg": "non-zero return code", "rc": 1, "start": "2021-04-02 02:04:19.248215", "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/tmpc5vd2z4l/tests/tests_update.yml:43 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Set incorrect policy module] ********************************************* task path: /tmp/tmpc5vd2z4l/tests/tests_update.yml:52 TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:4 skipping: [/cache/fedora-32.qcow2] => (item=RedHat.yml) => {"ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=Fedora_32.yml) => {"ansible_loop_var": "item", "changed": false, "item": "Fedora_32.yml", "skip_reason": "Conditional result was False"} TASK [linux-system-roles.crypto_policies : Get installed packages] ************* task path: /tmp/tmpc5vd2z4l/tasks/main.yml:17 ok: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=crypto-policies) => {"ansible_loop_var": "item", "changed": false, "item": "crypto-policies", "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.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/tmpc5vd2z4l/tasks/main.yml:32 included: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /tmp/tmpc5vd2z4l/tasks/gather_facts.yml:3 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["update-crypto-policies", "--show"], "delta": "0:00:00.041564", "end": "2021-04-02 02:04:20.659512", "rc": 0, "start": "2021-04-02 02:04:20.617948", "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/tmpc5vd2z4l/tasks/gather_facts.yml:9 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_active": "DEFAULT:NO-SHA1"}, "changed": false} TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:34 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 8, "files": [{"atime": 1617329052.7979023, "ctime": 1617261506.3461046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145099, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2810, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3471045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145100, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/NEXT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2388, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3451045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145098, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2296, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1617261530.3771045, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145095, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2547, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3431046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3441045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145097, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1908, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 6, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:42 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_policies": ["NEXT", "DEFAULT", "FIPS", "LEGACY", "EMPTY", "FUTURE"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Find policy module files] *********** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:49 ok: [/cache/fedora-32.qcow2] => {"changed": false, "examined": 5, "files": [{"atime": 1617329056.0549023, "ctime": 1617261506.3501046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145105, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145102, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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": 1592565962.0, "ctime": 1617261506.3481045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/GOST.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 360, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3511045, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145106, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 727, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1592565962.0, "ctime": 1617261506.3491046, "dev": 64513, "gid": 0, "gr_name": "root", "inode": 145104, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1592565962.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}], "matched": 5, "msg": ""} TASK [linux-system-roles.crypto_policies : Set available policy modules fact] *** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:57 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"crypto_policies_available_modules": ["NO-CAMELLIA", "NO-SHA1", "OSPP", "ECDHE-ONLY", "GOST"]}, "changed": false} TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /tmp/tmpc5vd2z4l/tasks/main.yml:64 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": true, "cmd": ["update-crypto-policies", "--no-reload", "--set", "DEFAULT:NOEXIST"], "delta": "0:00:00.042056", "end": "2021-04-02 02:04:21.987186", "msg": "non-zero return code", "rc": 1, "start": "2021-04-02 02:04:21.945130", "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/tmpc5vd2z4l/tests/tests_update.yml:62 ok: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:4 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:11 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:4 skipping: [/cache/fedora-32.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/tmpc5vd2z4l/handlers/main.yml:11 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=48 changed=2 unreachable=0 failed=0 skipped=13 rescued=2 ignored=0