# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] 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: tests_update.yml ***************************************************** 1 plays in /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml PLAY [Ensure that we can set the policy using this role (without reboot)] ****** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:3 Monday 29 July 2024 18:49:55 +0000 (0:00:00.034) 0:00:00.034 *********** ok: [sut] META: ran handlers TASK [Set correct base policy] ************************************************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:8 Monday 29 July 2024 18:49:56 +0000 (0:00:00.712) 0:00:00.747 *********** TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Monday 29 July 2024 18:49:56 +0000 (0:00:00.048) 0:00:00.795 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for sut TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Monday 29 July 2024 18:49:56 +0000 (0:00:00.027) 0:00:00.822 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if system is ostree] ********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:11 Monday 29 July 2024 18:49:56 +0000 (0:00:00.040) 0:00:00.863 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.crypto_policies : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:16 Monday 29 July 2024 18:49:56 +0000 (0:00:00.268) 0:00:01.131 *********** ok: [sut] => { "ansible_facts": { "__crypto_policies_is_ostree": false }, "changed": false } TASK [linux-system-roles.crypto_policies : Check if transactional-update exists in /sbin] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:23 Monday 29 July 2024 18:49:56 +0000 (0:00:00.030) 0:00:01.162 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.crypto_policies : Set flag if transactional-update exists] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:28 Monday 29 July 2024 18:49:56 +0000 (0:00:00.249) 0:00:01.411 *********** ok: [sut] => { "ansible_facts": { "__crypto_policies_is_transactional": false }, "changed": false } TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:32 Monday 29 July 2024 18:49:56 +0000 (0:00:00.037) 0:00:01.449 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Monday 29 July 2024 18:49:56 +0000 (0:00:00.034) 0:00:01.483 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : Notify user that reboot is needed to apply changes] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:19 Monday 29 July 2024 18:49:57 +0000 (0:00:00.916) 0:00:02.400 *********** skipping: [sut] => {} TASK [linux-system-roles.crypto_policies : Reboot transactional update systems] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:24 Monday 29 July 2024 18:49:57 +0000 (0:00:00.020) 0:00:02.420 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Fail if reboot is needed and not set] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:29 Monday 29 July 2024 18:49:57 +0000 (0:00:00.022) 0:00:02.443 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Gather facts] *********************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:37 Monday 29 July 2024 18:49:57 +0000 (0:00:00.020) 0:00:02.464 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:49:57 +0000 (0:00:00.011) 0:00:02.476 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.047088", "end": "2024-07-29 18:49:58.132903", "rc": 0, "start": "2024-07-29 18:49:58.085815" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:49:58 +0000 (0:00:00.263) 0:00:02.739 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:40 Monday 29 July 2024 18:49:58 +0000 (0:00:00.020) 0:00:02.760 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1721811774.855, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291601, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2481, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291602, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291603, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2024, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291604, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2542, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291605, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2661, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5 } TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:48 Monday 29 July 2024 18:49:58 +0000 (0:00:00.223) 0:00:02.983 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "EMPTY", "LEGACY", "FUTURE", "FIPS", "DEFAULT" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Find subpolicy files] *************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:55 Monday 29 July 2024 18:49:58 +0000 (0:00:00.028) 0:00:03.012 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 152, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-ENFORCE-EMS.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 248, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 123, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2072, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 7 } TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:63 Monday 29 July 2024 18:49:58 +0000 (0:00:00.169) 0:00:03.181 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:70 Monday 29 July 2024 18:49:58 +0000 (0:00:00.020) 0:00:03.202 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 Monday 29 July 2024 18:49:58 +0000 (0:00:00.020) 0:00:03.223 *********** NOTIFIED HANDLER linux-system-roles.crypto_policies : Reboot the managed host to apply crypto policies changes for sut NOTIFIED HANDLER linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag for sut changed: [sut] => { "changed": true, "cmd": [ "update-crypto-policies", "--no-reload", "--set", "LEGACY" ], "delta": "0:00:00.154354", "end": "2024-07-29 18:49:58.969584", "rc": 0, "start": "2024-07-29 18:49:58.815230" } STDOUT: 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: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:88 Monday 29 July 2024 18:49:58 +0000 (0:00:00.352) 0:00:03.576 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [linux-system-roles.crypto_policies : Update facts after applying policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:96 Monday 29 July 2024 18:49:59 +0000 (0:00:00.021) 0:00:03.597 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:49:59 +0000 (0:00:00.013) 0:00:03.610 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046886", "end": "2024-07-29 18:49:59.220068", "rc": 0, "start": "2024-07-29 18:49:59.173182" } STDOUT: LEGACY TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:49:59 +0000 (0:00:00.227) 0:00:03.838 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "LEGACY" }, "changed": false } TASK [Verify that base policy was updated] ************************************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:14 Monday 29 July 2024 18:49:59 +0000 (0:00:00.028) 0:00:03.867 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set policy and subpolicy to use for test] ******************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:20 Monday 29 July 2024 18:49:59 +0000 (0:00:00.024) 0:00:03.891 *********** ok: [sut] => { "ansible_facts": { "__policy_and_sub": "DEFAULT:NO-SHA1" }, "changed": false } TASK [Set correct base policy and subpolicy] *********************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:28 Monday 29 July 2024 18:49:59 +0000 (0:00:00.035) 0:00:03.927 *********** TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Monday 29 July 2024 18:49:59 +0000 (0:00:00.039) 0:00:03.967 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for sut TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Monday 29 July 2024 18:49:59 +0000 (0:00:00.024) 0:00:03.992 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if system is ostree] ********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:11 Monday 29 July 2024 18:49:59 +0000 (0:00:00.024) 0:00:04.017 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:16 Monday 29 July 2024 18:49:59 +0000 (0:00:00.053) 0:00:04.071 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if transactional-update exists in /sbin] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:23 Monday 29 July 2024 18:49:59 +0000 (0:00:00.030) 0:00:04.101 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag if transactional-update exists] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:28 Monday 29 July 2024 18:49:59 +0000 (0:00:00.045) 0:00:04.146 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:32 Monday 29 July 2024 18:49:59 +0000 (0:00:00.035) 0:00:04.182 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Monday 29 July 2024 18:49:59 +0000 (0:00:00.050) 0:00:04.232 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : Notify user that reboot is needed to apply changes] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:19 Monday 29 July 2024 18:50:00 +0000 (0:00:00.932) 0:00:05.165 *********** skipping: [sut] => {} TASK [linux-system-roles.crypto_policies : Reboot transactional update systems] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:24 Monday 29 July 2024 18:50:00 +0000 (0:00:00.028) 0:00:05.193 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Fail if reboot is needed and not set] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:29 Monday 29 July 2024 18:50:00 +0000 (0:00:00.036) 0:00:05.229 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Gather facts] *********************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:37 Monday 29 July 2024 18:50:00 +0000 (0:00:00.034) 0:00:05.264 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:50:00 +0000 (0:00:00.021) 0:00:05.285 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.043922", "end": "2024-07-29 18:50:00.928574", "rc": 0, "start": "2024-07-29 18:50:00.884652" } STDOUT: LEGACY TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:50:00 +0000 (0:00:00.279) 0:00:05.564 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "LEGACY" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:40 Monday 29 July 2024 18:50:01 +0000 (0:00:00.037) 0:00:05.602 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1721811774.855, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291601, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2481, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291602, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291603, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2024, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291604, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2542, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1722278998.858455, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291605, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2661, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5 } TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:48 Monday 29 July 2024 18:50:01 +0000 (0:00:00.244) 0:00:05.846 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "EMPTY", "LEGACY", "FUTURE", "FIPS", "DEFAULT" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Find subpolicy files] *************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:55 Monday 29 July 2024 18:50:01 +0000 (0:00:00.088) 0:00:05.935 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 152, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-ENFORCE-EMS.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 248, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 123, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2072, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 7 } TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:63 Monday 29 July 2024 18:50:01 +0000 (0:00:00.244) 0:00:06.179 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:70 Monday 29 July 2024 18:50:01 +0000 (0:00:00.078) 0:00:06.258 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 Monday 29 July 2024 18:50:01 +0000 (0:00:00.085) 0:00:06.343 *********** NOTIFIED HANDLER linux-system-roles.crypto_policies : Reboot the managed host to apply crypto policies changes for sut NOTIFIED HANDLER linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag for sut changed: [sut] => { "changed": true, "cmd": [ "update-crypto-policies", "--no-reload", "--set", "DEFAULT:NO-SHA1" ], "delta": "0:00:00.125899", "end": "2024-07-29 18:50:02.065157", "rc": 0, "start": "2024-07-29 18:50:01.939258" } STDOUT: 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: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:88 Monday 29 July 2024 18:50:02 +0000 (0:00:00.334) 0:00:06.677 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [linux-system-roles.crypto_policies : Update facts after applying policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:96 Monday 29 July 2024 18:50:02 +0000 (0:00:00.033) 0:00:06.711 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:50:02 +0000 (0:00:00.032) 0:00:06.743 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046959", "end": "2024-07-29 18:50:02.357520", "rc": 0, "start": "2024-07-29 18:50:02.310561" } STDOUT: DEFAULT:NO-SHA1 TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:50:02 +0000 (0:00:00.225) 0:00:06.969 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT:NO-SHA1" }, "changed": false } TASK [Verify that base policy and subpolicy were updated] ********************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:34 Monday 29 July 2024 18:50:02 +0000 (0:00:00.029) 0:00:06.998 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set incorrect base policy] *********************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:42 Monday 29 July 2024 18:50:02 +0000 (0:00:00.023) 0:00:07.022 *********** TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Monday 29 July 2024 18:50:02 +0000 (0:00:00.021) 0:00:07.044 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for sut TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Monday 29 July 2024 18:50:02 +0000 (0:00:00.015) 0:00:07.059 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if system is ostree] ********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:11 Monday 29 July 2024 18:50:02 +0000 (0:00:00.021) 0:00:07.081 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:16 Monday 29 July 2024 18:50:02 +0000 (0:00:00.025) 0:00:07.106 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if transactional-update exists in /sbin] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:23 Monday 29 July 2024 18:50:02 +0000 (0:00:00.022) 0:00:07.128 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag if transactional-update exists] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:28 Monday 29 July 2024 18:50:02 +0000 (0:00:00.019) 0:00:07.148 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:32 Monday 29 July 2024 18:50:02 +0000 (0:00:00.019) 0:00:07.168 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Monday 29 July 2024 18:50:02 +0000 (0:00:00.031) 0:00:07.200 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : Notify user that reboot is needed to apply changes] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:19 Monday 29 July 2024 18:50:03 +0000 (0:00:00.840) 0:00:08.040 *********** skipping: [sut] => {} TASK [linux-system-roles.crypto_policies : Reboot transactional update systems] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:24 Monday 29 July 2024 18:50:03 +0000 (0:00:00.019) 0:00:08.059 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Fail if reboot is needed and not set] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:29 Monday 29 July 2024 18:50:03 +0000 (0:00:00.020) 0:00:08.080 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Gather facts] *********************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:37 Monday 29 July 2024 18:50:03 +0000 (0:00:00.019) 0:00:08.099 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:50:03 +0000 (0:00:00.015) 0:00:08.115 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046885", "end": "2024-07-29 18:50:03.730485", "rc": 0, "start": "2024-07-29 18:50:03.683600" } STDOUT: DEFAULT:NO-SHA1 TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:50:03 +0000 (0:00:00.221) 0:00:08.337 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT:NO-SHA1" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:40 Monday 29 July 2024 18:50:03 +0000 (0:00:00.020) 0:00:08.357 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1722279001.9814467, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291601, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2481, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291602, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291603, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2024, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291604, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2542, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1722278998.858455, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291605, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2661, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5 } TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:48 Monday 29 July 2024 18:50:03 +0000 (0:00:00.166) 0:00:08.524 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "EMPTY", "LEGACY", "FUTURE", "FIPS", "DEFAULT" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Find subpolicy files] *************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:55 Monday 29 July 2024 18:50:03 +0000 (0:00:00.021) 0:00:08.546 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 152, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-ENFORCE-EMS.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 248, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1722279001.9944468, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 123, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2072, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 7 } TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:63 Monday 29 July 2024 18:50:04 +0000 (0:00:00.169) 0:00:08.715 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:70 Monday 29 July 2024 18:50:04 +0000 (0:00:00.021) 0:00:08.736 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 Monday 29 July 2024 18:50:04 +0000 (0:00:00.020) 0:00:08.757 *********** fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "update-crypto-policies", "--no-reload", "--set", "NOEXIST" ], "delta": "0:00:00.046365", "end": "2024-07-29 18:50:04.376727", "rc": 1, "start": "2024-07-29 18:50:04.330362" } STDERR: Unknown policy `NOEXIST`: file `NOEXIST.pol` not found in (., policies, /etc/crypto-policies/policies, /usr/share/crypto-policies/policies) MSG: non-zero return code TASK [Check that we failed in the role] **************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:52 Monday 29 July 2024 18:50:04 +0000 (0:00:00.225) 0:00:08.983 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set incorrect subpolicy] ************************************************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:61 Monday 29 July 2024 18:50:04 +0000 (0:00:00.021) 0:00:09.004 *********** TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Monday 29 July 2024 18:50:04 +0000 (0:00:00.015) 0:00:09.020 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for sut TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Monday 29 July 2024 18:50:04 +0000 (0:00:00.012) 0:00:09.033 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if system is ostree] ********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:11 Monday 29 July 2024 18:50:04 +0000 (0:00:00.045) 0:00:09.078 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:16 Monday 29 July 2024 18:50:04 +0000 (0:00:00.018) 0:00:09.097 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if transactional-update exists in /sbin] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:23 Monday 29 July 2024 18:50:04 +0000 (0:00:00.019) 0:00:09.116 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag if transactional-update exists] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:28 Monday 29 July 2024 18:50:04 +0000 (0:00:00.019) 0:00:09.135 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:32 Monday 29 July 2024 18:50:04 +0000 (0:00:00.019) 0:00:09.154 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Monday 29 July 2024 18:50:04 +0000 (0:00:00.030) 0:00:09.185 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : Notify user that reboot is needed to apply changes] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:19 Monday 29 July 2024 18:50:05 +0000 (0:00:00.834) 0:00:10.019 *********** skipping: [sut] => {} TASK [linux-system-roles.crypto_policies : Reboot transactional update systems] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:24 Monday 29 July 2024 18:50:05 +0000 (0:00:00.019) 0:00:10.038 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Fail if reboot is needed and not set] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:29 Monday 29 July 2024 18:50:05 +0000 (0:00:00.020) 0:00:10.059 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Gather facts] *********************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:37 Monday 29 July 2024 18:50:05 +0000 (0:00:00.019) 0:00:10.078 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:50:05 +0000 (0:00:00.012) 0:00:10.091 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046952", "end": "2024-07-29 18:50:05.695395", "rc": 0, "start": "2024-07-29 18:50:05.648443" } STDOUT: DEFAULT:NO-SHA1 TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:50:05 +0000 (0:00:00.210) 0:00:10.302 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT:NO-SHA1" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:40 Monday 29 July 2024 18:50:05 +0000 (0:00:00.019) 0:00:10.321 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1722279001.9814467, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291601, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2481, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291602, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291603, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2024, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291604, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2542, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1722278998.858455, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291605, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2661, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5 } TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:48 Monday 29 July 2024 18:50:05 +0000 (0:00:00.168) 0:00:10.490 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "EMPTY", "LEGACY", "FUTURE", "FIPS", "DEFAULT" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Find subpolicy files] *************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:55 Monday 29 July 2024 18:50:05 +0000 (0:00:00.023) 0:00:10.514 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 152, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-ENFORCE-EMS.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 248, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1722279001.9944468, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 123, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2072, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 7 } TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:63 Monday 29 July 2024 18:50:06 +0000 (0:00:00.168) 0:00:10.682 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:70 Monday 29 July 2024 18:50:06 +0000 (0:00:00.022) 0:00:10.705 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 Monday 29 July 2024 18:50:06 +0000 (0:00:00.030) 0:00:10.736 *********** fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "update-crypto-policies", "--no-reload", "--set", "DEFAULT:NOEXIST" ], "delta": "0:00:00.060101", "end": "2024-07-29 18:50:06.366605", "rc": 1, "start": "2024-07-29 18:50:06.306504" } STDERR: Unknown policy `NOEXIST`: file `NOEXIST.pmod` not found in (., policies/modules, /etc/crypto-policies/policies/modules, /usr/share/crypto-policies/policies/modules) MSG: non-zero return code TASK [Check that we failed in the role] **************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:71 Monday 29 July 2024 18:50:06 +0000 (0:00:00.256) 0:00:10.992 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Restore policy to DEFAULT] *********************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:79 Monday 29 July 2024 18:50:06 +0000 (0:00:00.040) 0:00:11.033 *********** TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:3 Monday 29 July 2024 18:50:06 +0000 (0:00:00.040) 0:00:11.073 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml for sut TASK [linux-system-roles.crypto_policies : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:2 Monday 29 July 2024 18:50:06 +0000 (0:00:00.024) 0:00:11.098 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if system is ostree] ********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:11 Monday 29 July 2024 18:50:06 +0000 (0:00:00.026) 0:00:11.124 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:16 Monday 29 July 2024 18:50:06 +0000 (0:00:00.020) 0:00:11.144 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Check if transactional-update exists in /sbin] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:23 Monday 29 July 2024 18:50:06 +0000 (0:00:00.021) 0:00:11.166 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set flag if transactional-update exists] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:28 Monday 29 July 2024 18:50:06 +0000 (0:00:00.020) 0:00:11.187 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Set platform/version specific variables] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:32 Monday 29 July 2024 18:50:06 +0000 (0:00:00.019) 0:00:11.206 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Ensure required packages are installed] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Monday 29 July 2024 18:50:06 +0000 (0:00:00.030) 0:00:11.237 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.crypto_policies : Notify user that reboot is needed to apply changes] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:19 Monday 29 July 2024 18:50:07 +0000 (0:00:00.840) 0:00:12.077 *********** skipping: [sut] => {} TASK [linux-system-roles.crypto_policies : Reboot transactional update systems] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:24 Monday 29 July 2024 18:50:07 +0000 (0:00:00.021) 0:00:12.099 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Fail if reboot is needed and not set] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:29 Monday 29 July 2024 18:50:07 +0000 (0:00:00.021) 0:00:12.120 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.crypto_policies : Gather facts] *********************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:37 Monday 29 July 2024 18:50:07 +0000 (0:00:00.022) 0:00:12.142 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:50:07 +0000 (0:00:00.013) 0:00:12.155 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.043884", "end": "2024-07-29 18:50:07.772844", "rc": 0, "start": "2024-07-29 18:50:07.728960" } STDOUT: DEFAULT:NO-SHA1 TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:50:07 +0000 (0:00:00.226) 0:00:12.381 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT:NO-SHA1" }, "changed": false } TASK [linux-system-roles.crypto_policies : Find base policies files] *********** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:40 Monday 29 July 2024 18:50:07 +0000 (0:00:00.023) 0:00:12.405 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1722279001.9814467, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291601, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/DEFAULT.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2481, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291602, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/EMPTY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291603, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FIPS.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2024, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291604, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/FUTURE.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2542, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1722278998.858455, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 6291605, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/LEGACY.pol", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2661, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 5 } TASK [linux-system-roles.crypto_policies : Set available base policies fact] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:48 Monday 29 July 2024 18:50:08 +0000 (0:00:00.189) 0:00:12.594 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "EMPTY", "LEGACY", "FUTURE", "FIPS", "DEFAULT" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Find subpolicy files] *************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:55 Monday 29 July 2024 18:50:08 +0000 (0:00:00.032) 0:00:12.627 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 152, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT-LEGACY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 469, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 153, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/AD-SUPPORT.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 283, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 154, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/ECDHE-ONLY.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 136, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 155, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-ENFORCE-EMS.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 248, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1722279001.9944468, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 156, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/NO-SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 123, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 157, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/OSPP.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 2072, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1709321006.0, "ctime": 1721811652.207, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 158, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1709321006.0, "nlink": 1, "path": "/usr/share/crypto-policies/policies/modules/SHA1.pmod", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 131, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 7 } TASK [linux-system-roles.crypto_policies : Set available subpolicies fact] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:63 Monday 29 July 2024 18:50:08 +0000 (0:00:00.172) 0:00:12.799 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Set crypto_policies_available_modules fact (deprecated)] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:70 Monday 29 July 2024 18:50:08 +0000 (0:00:00.022) 0:00:12.821 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "NO-ENFORCE-EMS", "NO-SHA1", "ECDHE-ONLY", "SHA1", "AD-SUPPORT-LEGACY", "AD-SUPPORT", "OSPP" ] }, "changed": false } TASK [linux-system-roles.crypto_policies : Update crypto policy if needed] ***** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 Monday 29 July 2024 18:50:08 +0000 (0:00:00.022) 0:00:12.843 *********** NOTIFIED HANDLER linux-system-roles.crypto_policies : Reboot the managed host to apply crypto policies changes for sut NOTIFIED HANDLER linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag for sut NOTIFIED HANDLER linux-system-roles.crypto_policies : Reboot the managed host to apply crypto policies changes for sut NOTIFIED HANDLER linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag for sut NOTIFIED HANDLER linux-system-roles.crypto_policies : Reboot the managed host to apply crypto policies changes for sut NOTIFIED HANDLER linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag for sut changed: [sut] => { "changed": true, "cmd": [ "update-crypto-policies", "--set", "DEFAULT" ], "delta": "0:00:00.144622", "end": "2024-07-29 18:50:08.570332", "rc": 0, "start": "2024-07-29 18:50:08.425710" } STDOUT: Setting system policy to DEFAULT Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. TASK [linux-system-roles.crypto_policies : Set the reboot_required flag if needed] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:88 Monday 29 July 2024 18:50:08 +0000 (0:00:00.333) 0:00:13.176 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_reboot_required": true }, "changed": false } TASK [linux-system-roles.crypto_policies : Update facts after applying policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:96 Monday 29 July 2024 18:50:08 +0000 (0:00:00.023) 0:00:13.199 *********** included: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml for sut TASK [linux-system-roles.crypto_policies : Find out what is the currently active policy] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Monday 29 July 2024 18:50:08 +0000 (0:00:00.012) 0:00:13.212 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046725", "end": "2024-07-29 18:50:08.817618", "rc": 0, "start": "2024-07-29 18:50:08.770893" } STDOUT: DEFAULT TASK [linux-system-roles.crypto_policies : Set current policy fact] ************ task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:9 Monday 29 July 2024 18:50:08 +0000 (0:00:00.211) 0:00:13.423 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } RUNNING HANDLER [linux-system-roles.crypto_policies : Reboot the managed host to apply crypto policies changes] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Monday 29 July 2024 18:50:08 +0000 (0:00:00.022) 0:00:13.446 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Monday 29 July 2024 18:50:08 +0000 (0:00:00.022) 0:00:13.468 *********** skipping: [sut] => { "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: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Monday 29 July 2024 18:50:08 +0000 (0:00:00.020) 0:00:13.489 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Monday 29 July 2024 18:50:08 +0000 (0:00:00.020) 0:00:13.509 *********** skipping: [sut] => { "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: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Monday 29 July 2024 18:50:08 +0000 (0:00:00.024) 0:00:13.534 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Monday 29 July 2024 18:50:08 +0000 (0:00:00.036) 0:00:13.570 *********** skipping: [sut] => { "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: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Monday 29 July 2024 18:50:09 +0000 (0:00:00.027) 0:00:13.598 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Monday 29 July 2024 18:50:09 +0000 (0:00:00.021) 0:00:13.619 *********** skipping: [sut] => { "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: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:4 Monday 29 July 2024 18:50:09 +0000 (0:00:00.020) 0:00:13.639 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [linux-system-roles.crypto_policies : Clear the crypto_policies_reboot_required flag] *** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/handlers/main.yml:11 Monday 29 July 2024 18:50:09 +0000 (0:00:00.021) 0:00:13.661 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers TASK [Check the current policy has been restored to DEFAULT] ******************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:92 Monday 29 July 2024 18:50:09 +0000 (0:00:00.027) 0:00:13.689 *********** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=76 changed=3 unreachable=0 failed=0 skipped=51 rescued=2 ignored=0 Monday 29 July 2024 18:50:09 +0000 (0:00:00.025) 0:00:13.715 *********** =============================================================================== linux-system-roles.crypto_policies : Ensure required packages are installed --- 0.93s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Ensure required packages are installed --- 0.92s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Ensure required packages are installed --- 0.84s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Ensure required packages are installed --- 0.84s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 linux-system-roles.crypto_policies : Ensure required packages are installed --- 0.83s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Gathering Facts --------------------------------------------------------- 0.71s /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_update.yml:3 ---- linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.35s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.33s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.33s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.28s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Check if system is ostree ---------- 0.27s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:11 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.26s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.26s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 linux-system-roles.crypto_policies : Check if transactional-update exists in /sbin --- 0.25s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/set_vars.yml:23 linux-system-roles.crypto_policies : Find subpolicy files --------------- 0.24s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:55 linux-system-roles.crypto_policies : Find base policies files ----------- 0.24s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:40 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.23s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.23s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.23s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.23s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---