# 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_reload.yml ***************************************************** 1 plays in /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml PLAY [Ensure that crypto_policy_reload variable works] ************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:3 Monday 29 July 2024 18:49:44 +0000 (0:00:00.014) 0:00:00.014 *********** ok: [sut] META: ran handlers TASK [Run role to make sure all dependencies are installed] ******************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:8 Monday 29 July 2024 18:49:44 +0000 (0:00:00.740) 0:00:00.754 *********** 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:45 +0000 (0:00:00.025) 0:00:00.779 *********** 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:45 +0000 (0:00:00.024) 0:00:00.803 *********** 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:45 +0000 (0:00:00.019) 0:00:00.822 *********** 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:45 +0000 (0:00:00.276) 0:00:01.099 *********** 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:45 +0000 (0:00:00.022) 0:00:01.121 *********** 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:45 +0000 (0:00:00.170) 0:00:01.291 *********** 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:45 +0000 (0:00:00.023) 0:00:01.315 *********** 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:45 +0000 (0:00:00.042) 0:00:01.357 *********** 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:46 +0000 (0:00:00.896) 0:00:02.253 *********** 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:46 +0000 (0:00:00.030) 0:00:02.283 *********** 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:46 +0000 (0:00:00.019) 0:00:02.303 *********** 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:46 +0000 (0:00:00.037) 0:00:02.341 *********** 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:46 +0000 (0:00:00.011) 0:00:02.353 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.043561", "end": "2024-07-29 18:49:46.837573", "rc": 0, "start": "2024-07-29 18:49:46.794012" } 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:46 +0000 (0:00:00.260) 0:00:02.613 *********** 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:46 +0000 (0:00:00.019) 0:00:02.633 *********** 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:47 +0000 (0:00:00.222) 0:00:02.855 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "FUTURE", "DEFAULT", "EMPTY", "FIPS", "LEGACY" ] }, "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:47 +0000 (0:00:00.021) 0:00:02.876 *********** 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:47 +0000 (0:00:00.166) 0:00:03.043 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:47 +0000 (0:00:00.020) 0:00:03.063 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:47 +0000 (0:00:00.018) 0:00:03.082 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } 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:47 +0000 (0:00:00.017) 0:00:03.100 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was 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:47 +0000 (0:00:00.018) 0:00:03.119 *********** 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:47 +0000 (0:00:00.014) 0:00:03.133 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.045582", "end": "2024-07-29 18:49:47.565920", "rc": 0, "start": "2024-07-29 18:49:47.520338" } 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:47 +0000 (0:00:00.208) 0:00:03.342 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [Get SSHD pid before policy update] *************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:12 Monday 29 July 2024 18:49:47 +0000 (0:00:00.032) 0:00:03.374 *********** ok: [sut] => { "changed": false, "content": "ODIwCg==", "encoding": "base64", "source": "/var/run/sshd.pid" } TASK [Change policy from DEFAULT TO LEGACY (disable reload)] ******************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:17 Monday 29 July 2024 18:49:47 +0000 (0:00:00.208) 0:00:03.582 *********** 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:47 +0000 (0:00:00.024) 0:00:03.607 *********** 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:47 +0000 (0:00:00.015) 0:00:03.622 *********** 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:47 +0000 (0:00:00.022) 0:00:03.644 *********** 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:47 +0000 (0:00:00.020) 0:00:03.664 *********** 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:47 +0000 (0:00:00.020) 0:00:03.685 *********** 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:47 +0000 (0:00:00.019) 0:00:03.704 *********** 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:47 +0000 (0:00:00.018) 0:00:03.722 *********** 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:47 +0000 (0:00:00.029) 0:00:03.751 *********** 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:48 +0000 (0:00:00.811) 0:00:04.562 *********** 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:48 +0000 (0:00:00.019) 0:00:04.582 *********** 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:48 +0000 (0:00:00.019) 0:00:04.602 *********** 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:48 +0000 (0:00:00.019) 0:00:04.621 *********** 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:48 +0000 (0:00:00.013) 0:00:04.635 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.044227", "end": "2024-07-29 18:49:49.072336", "rc": 0, "start": "2024-07-29 18:49:49.028109" } 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:49 +0000 (0:00:00.212) 0:00:04.847 *********** 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:49 +0000 (0:00:00.020) 0:00:04.868 *********** 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:49 +0000 (0:00:00.166) 0:00:05.034 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "FUTURE", "DEFAULT", "EMPTY", "FIPS", "LEGACY" ] }, "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:49 +0000 (0:00:00.021) 0:00:05.055 *********** 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:49 +0000 (0:00:00.171) 0:00:05.227 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:49 +0000 (0:00:00.023) 0:00:05.251 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:49 +0000 (0:00:00.019) 0:00:05.270 *********** 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", "--no-reload", "--set", "LEGACY" ], "delta": "0:00:00.158770", "end": "2024-07-29 18:49:49.827576", "rc": 0, "start": "2024-07-29 18:49:49.668806" } 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:49 +0000 (0:00:00.335) 0:00:05.606 *********** 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:49 +0000 (0:00:00.023) 0:00:05.629 *********** 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:49 +0000 (0:00:00.012) 0:00:05.642 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.044395", "end": "2024-07-29 18:49:50.078578", "rc": 0, "start": "2024-07-29 18:49:50.034183" } 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:50 +0000 (0:00:00.212) 0:00:05.855 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "LEGACY" }, "changed": false } TASK [Get sshd pid after first update] ***************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:24 Monday 29 July 2024 18:49:50 +0000 (0:00:00.020) 0:00:05.875 *********** ok: [sut] => { "changed": false, "content": "ODIwCg==", "encoding": "base64", "source": "/var/run/sshd.pid" } TASK [Verify that policy was changed to LEGACY] ******************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:29 Monday 29 July 2024 18:49:50 +0000 (0:00:00.162) 0:00:06.037 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Check the sshd was not reloaded] ***************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:33 Monday 29 July 2024 18:49:50 +0000 (0:00:00.021) 0:00:06.059 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Change policy from LEGACY to DEFAULT (reload by default)] **************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:38 Monday 29 July 2024 18:49:50 +0000 (0:00:00.020) 0:00:06.079 *********** 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:50 +0000 (0:00:00.026) 0:00:06.106 *********** 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:50 +0000 (0:00:00.013) 0:00:06.120 *********** 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:50 +0000 (0:00:00.024) 0:00:06.144 *********** 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:50 +0000 (0:00:00.022) 0:00:06.166 *********** 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:50 +0000 (0:00:00.022) 0:00:06.189 *********** 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:50 +0000 (0:00:00.020) 0:00:06.209 *********** 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:50 +0000 (0:00:00.020) 0:00:06.230 *********** 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:50 +0000 (0:00:00.033) 0:00:06.263 *********** 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:51 +0000 (0:00:00.820) 0:00:07.083 *********** 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:51 +0000 (0:00:00.026) 0:00:07.110 *********** 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:51 +0000 (0:00:00.019) 0:00:07.129 *********** 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:51 +0000 (0:00:00.020) 0:00:07.150 *********** 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:51 +0000 (0:00:00.012) 0:00:07.162 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.045936", "end": "2024-07-29 18:49:51.602194", "rc": 0, "start": "2024-07-29 18:49:51.556258" } 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:51 +0000 (0:00:00.214) 0:00:07.377 *********** 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:49:51 +0000 (0:00:00.024) 0:00:07.402 *********** 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": 1722278989.7116804, "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:51 +0000 (0:00:00.165) 0:00:07.567 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "FUTURE", "DEFAULT", "EMPTY", "FIPS", "LEGACY" ] }, "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:51 +0000 (0:00:00.021) 0:00:07.588 *********** 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:51 +0000 (0:00:00.165) 0:00:07.754 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:52 +0000 (0:00:00.022) 0:00:07.777 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:52 +0000 (0:00:00.020) 0:00:07.797 *********** 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.151898", "end": "2024-07-29 18:49:52.350286", "rc": 0, "start": "2024-07-29 18:49:52.198388" } 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:49:52 +0000 (0:00:00.327) 0:00:08.125 *********** 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:52 +0000 (0:00:00.021) 0:00:08.146 *********** 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:52 +0000 (0:00:00.011) 0:00:08.158 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.045688", "end": "2024-07-29 18:49:52.593810", "rc": 0, "start": "2024-07-29 18:49:52.548122" } 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:52 +0000 (0:00:00.214) 0:00:08.373 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_active": "DEFAULT" }, "changed": false } TASK [Get sshd pid after second update] **************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:44 Monday 29 July 2024 18:49:52 +0000 (0:00:00.020) 0:00:08.393 *********** ok: [sut] => { "changed": false, "content": "OTA3Mwo=", "encoding": "base64", "source": "/var/run/sshd.pid" } TASK [Verify that policy was changed to DEFAULT] ******************************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:49 Monday 29 July 2024 18:49:52 +0000 (0:00:00.175) 0:00:08.569 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Check the sshd was reloaded] ********************************************* task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:54 Monday 29 July 2024 18:49:52 +0000 (0:00:00.021) 0:00:08.590 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Restore policy to DEFAULT] *********************************************** task path: /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:60 Monday 29 July 2024 18:49:52 +0000 (0:00:00.022) 0:00:08.612 *********** 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:52 +0000 (0:00:00.025) 0:00:08.638 *********** 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:52 +0000 (0:00:00.012) 0:00:08.650 *********** 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:52 +0000 (0:00:00.020) 0:00:08.670 *********** 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:52 +0000 (0:00:00.023) 0:00:08.694 *********** 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:52 +0000 (0:00:00.019) 0:00:08.713 *********** 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:52 +0000 (0:00:00.020) 0:00:08.734 *********** 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:52 +0000 (0:00:00.019) 0:00:08.754 *********** 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:53 +0000 (0:00:00.032) 0:00:08.787 *********** 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:53 +0000 (0:00:00.834) 0:00:09.621 *********** 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:53 +0000 (0:00:00.027) 0:00:09.649 *********** 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:53 +0000 (0:00:00.021) 0:00:09.671 *********** 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:53 +0000 (0:00:00.060) 0:00:09.732 *********** 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:53 +0000 (0:00:00.019) 0:00:09.751 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.046169", "end": "2024-07-29 18:49:54.197513", "rc": 0, "start": "2024-07-29 18:49:54.151344" } 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:54 +0000 (0:00:00.233) 0:00:09.985 *********** 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:54 +0000 (0:00:00.031) 0:00:10.017 *********** ok: [sut] => { "changed": false, "examined": 7, "files": [ { "atime": 1722278992.2407076, "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": 1722278989.7116804, "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:54 +0000 (0:00:00.179) 0:00:10.196 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_policies": [ "FUTURE", "DEFAULT", "EMPTY", "FIPS", "LEGACY" ] }, "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:54 +0000 (0:00:00.029) 0:00:10.225 *********** 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:54 +0000 (0:00:00.193) 0:00:10.419 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_subpolicies": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:54 +0000 (0:00:00.026) 0:00:10.446 *********** ok: [sut] => { "ansible_facts": { "crypto_policies_available_modules": [ "AD-SUPPORT", "NO-ENFORCE-EMS", "SHA1", "ECDHE-ONLY", "NO-SHA1", "OSPP", "AD-SUPPORT-LEGACY" ] }, "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:54 +0000 (0:00:00.034) 0:00:10.480 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } 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:54 +0000 (0:00:00.024) 0:00:10.504 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was 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:54 +0000 (0:00:00.046) 0:00:10.551 *********** 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:54 +0000 (0:00:00.021) 0:00:10.572 *********** ok: [sut] => { "changed": false, "cmd": [ "update-crypto-policies", "--show" ], "delta": "0:00:00.045092", "end": "2024-07-29 18:49:55.010690", "rc": 0, "start": "2024-07-29 18:49:54.965598" } 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:55 +0000 (0:00:00.243) 0:00:10.816 *********** 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:49:55 +0000 (0:00:00.059) 0:00:10.875 *********** 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:49:55 +0000 (0:00:00.050) 0:00:10.926 *********** 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:49:55 +0000 (0:00:00.026) 0:00:10.952 *********** 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:49:55 +0000 (0:00:00.034) 0:00:10.987 *********** 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:49:55 +0000 (0:00:00.037) 0:00:11.025 *********** 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:49:55 +0000 (0:00:00.029) 0:00:11.054 *********** 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_reload.yml:73 Monday 29 July 2024 18:49:55 +0000 (0:00:00.089) 0:00:11.143 *********** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=69 changed=2 unreachable=0 failed=0 skipped=42 rescued=0 ignored=0 Monday 29 July 2024 18:49:55 +0000 (0:00:00.057) 0:00:11.201 *********** =============================================================================== linux-system-roles.crypto_policies : Ensure required packages are installed --- 1.65s /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.90s /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.81s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:6 Gathering Facts --------------------------------------------------------- 0.74s /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:3 ---- linux-system-roles.crypto_policies : Find subpolicy files --------------- 0.36s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:55 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 : Find base policies files ----------- 0.34s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:40 linux-system-roles.crypto_policies : Update crypto policy if needed ----- 0.34s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/main.yml:76 linux-system-roles.crypto_policies : Check if system is ostree ---------- 0.28s /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 : Find out what is the currently active policy --- 0.24s /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 base policies files ----------- 0.22s /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.21s /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.21s /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.21s /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.21s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Get SSHD pid before policy update --------------------------------------- 0.21s /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:12 --- linux-system-roles.crypto_policies : Find out what is the currently active policy --- 0.21s /WORKDIR/git-support_transactional_updatemumpckk3/tests/roles/linux-system-roles.crypto_policies/tasks/gather_facts.yml:3 Get sshd pid after second update ---------------------------------------- 0.18s /WORKDIR/git-support_transactional_updatemumpckk3/tests/tests_reload.yml:44 --- ---^---^---^---^---^--- # 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. ---^---^---^---^---^---