# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Install IPA server] ****************************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [Set __is_beaker_env] ***************************************************** ok: [sut] => { "ansible_facts": { "__is_beaker_env": false }, "changed": false } TASK [Install ansible-freeipa] ************************************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Clone ansible-freeipa repo] ********************************************** changed: [sut -> 127.0.0.1] => { "after": "9b020a56f3ef39d720d8fb8c2d3b47d11bd79e83", "before": null, "changed": true } TASK [Create role symlinks] **************************************************** changed: [sut -> 127.0.0.1] => (item=ipaserver) => { "ansible_loop_var": "item", "changed": true, "dest": "/WORKDIR/dist-git-certificate-setup-snapshot-no-gather-facts-kugxkU/tests/roles/ipaserver", "gid": 1001, "group": "jenkins", "item": "ipaserver", "mode": "0777", "owner": "jenkins", "size": 34, "src": "/tmp/freeipa-repo/roles/ipaserver/", "state": "link", "uid": 1000090000 } changed: [sut -> 127.0.0.1] => (item=ipaclient) => { "ansible_loop_var": "item", "changed": true, "dest": "/WORKDIR/dist-git-certificate-setup-snapshot-no-gather-facts-kugxkU/tests/roles/ipaclient", "gid": 1001, "group": "jenkins", "item": "ipaclient", "mode": "0777", "owner": "jenkins", "size": 34, "src": "/tmp/freeipa-repo/roles/ipaclient/", "state": "link", "uid": 1000090000 } TASK [ensure hostname package is installed] ************************************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Set hostname] ************************************************************ changed: [sut] => { "ansible_facts": { "ansible_domain": "test.local", "ansible_fqdn": "ipaserver.test.local", "ansible_hostname": "ipaserver", "ansible_nodename": "ipaserver.test.local" }, "changed": true, "name": "ipaserver.test.local" } TASK [Ensure nss package is up-to-date] **************************************** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Include ipaserver role] ************************************************** TASK [ipaserver : Import variables specific to distribution] ******************* ok: [sut] => (item=/tmp/freeipa-repo/roles/ipaserver/vars/RedHat-8.yml) => { "ansible_facts": { "ipaserver_packages": [ "@idm:DL1/server" ], "ipaserver_packages_adtrust": [ "@idm:DL1/adtrust" ], "ipaserver_packages_dns": [ "@idm:DL1/dns" ], "ipaserver_packages_firewalld": [ "firewalld" ] }, "ansible_included_var_files": [ "/tmp/freeipa-repo/roles/ipaserver/vars/RedHat-8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/freeipa-repo/roles/ipaserver/vars/RedHat-8.yml" } TASK [ipaserver : Install IPA server] ****************************************** included: /tmp/freeipa-repo/roles/ipaserver/tasks/install.yml for sut TASK [ipaserver : Install - Ensure that IPA server packages are installed] ***** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Module idm:DL1/server installed.", "Installed: words-3.0-28.el8.noarch", "Installed: redhat-logos-ipa-84.5-1.el8.noarch", "Installed: cyrus-sasl-gssapi-2.1.27-5.el8.x86_64", "Installed: cyrus-sasl-md5-2.1.27-5.el8.x86_64", "Installed: xerces-j2-2.11.0-34.module+el8.1.0+3366+6dfb954c.noarch", "Installed: cyrus-sasl-plain-2.1.27-5.el8.x86_64", "Installed: xmlrpc-c-1.51.0-5.el8.x86_64", "Installed: xmlrpc-c-client-1.51.0-5.el8.x86_64", "Installed: xml-commons-apis-1.4.01-25.module+el8.1.0+3366+6dfb954c.noarch", "Installed: xml-commons-resolver-1.2-26.module+el8.1.0+3366+6dfb954c.noarch", "Installed: xmlstreambuffer-1.5.4-8.module+el8.2.0+5723+4574fbff.noarch", "Installed: 389-ds-base-1.4.3.23-10.module+el8.5.0+12398+47000435.x86_64", "Installed: krb5-pkinit-1.18.2-14.el8.x86_64", "Installed: relaxngDatatype-2011.1-7.module+el8.1.0+3366+6dfb954c.noarch", "Installed: krb5-server-1.18.2-14.el8.x86_64", "Installed: copy-jdk-configs-4.0-2.el8.noarch", "Installed: 389-ds-base-libs-1.4.3.23-10.module+el8.5.0+12398+47000435.x86_64", "Installed: krb5-workstation-1.18.2-14.el8.x86_64", "Installed: harfbuzz-1.7.5-3.el8.x86_64", "Installed: pango-1.42.4-8.el8.x86_64", "Installed: resteasy-3.0.26-6.module+el8.4.0+8891+bb8828ef.noarch", "Installed: xorg-x11-font-utils-1:7.5-41.el8.x86_64", "Installed: hicolor-icon-theme-0.17-2.el8.noarch", "Installed: openldap-clients-2.4.46-18.el8.x86_64", "Installed: xorg-x11-fonts-Type1-7.5-19.el8.noarch", "Installed: httpcomponents-client-4.5.5-4.module+el8+2452+b359bfcd.noarch", "Installed: httpcomponents-core-4.4.10-3.module+el8+2452+b359bfcd.noarch", "Installed: httpd-2.4.37-41.module+el8.5.0+11772+c8e0c271.x86_64", "Installed: openssl-perl-1:1.1.1k-4.el8.x86_64", "Installed: httpd-filesystem-2.4.37-41.module+el8.5.0+11772+c8e0c271.noarch", "Installed: httpd-tools-2.4.37-41.module+el8.5.0+11772+c8e0c271.x86_64", "Installed: lua-5.3.4-12.el8.x86_64", "Installed: python3-argcomplete-1.9.3-6.el8.noarch", "Installed: python3-augeas-0.5.0-12.el8.noarch", "Installed: python3-bind-32:9.11.26-6.el8.noarch", "Installed: xsom-0-19.20110809svn.module+el8.1.0+3366+6dfb954c.noarch", "Installed: ldapjdk-4.23.0-1.module+el8.5.0+11983+6ba118b4.noarch", "Installed: custodia-0.6.0-3.module+el8.1.0+4098+f286395e.noarch", "Installed: gdk-pixbuf2-modules-2.36.12-5.el8.x86_64", "Installed: python3-custodia-0.6.0-3.module+el8.1.0+4098+f286395e.noarch", "Installed: alsa-lib-1.2.5-4.el8.x86_64", "Installed: python3-distro-1.4.0-2.module+el8.1.0+3334+5cb623d7.noarch", "Installed: libX11-1.6.8-5.el8.x86_64", "Installed: libX11-common-1.6.8-5.el8.noarch", "Installed: fontconfig-2.13.1-4.el8.x86_64", "Installed: fontpackages-filesystem-1.44-22.el8.noarch", "Installed: python3-gssapi-1.5.1-5.el8.x86_64", "Installed: perl-Algorithm-Diff-1.1903-9.el8.noarch", "Installed: perl-Archive-Tar-2.30-1.el8.noarch", "Installed: libXau-1.0.9-3.el8.x86_64", "Installed: perl-Compress-Raw-Bzip2-2.081-1.el8.x86_64", "Installed: perl-Compress-Raw-Zlib-2.081-1.el8.x86_64", "Installed: python3-ipaclient-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: libXcomposite-0.4.4-14.el8.x86_64", "Installed: python3-ipalib-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: python3-ipaserver-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: libXcursor-1.1.15-3.el8.x86_64", "Installed: libXdamage-1.1.4-14.el8.x86_64", "Installed: perl-IO-Compress-2.081-1.el8.noarch", "Installed: perl-IO-Zlib-1:1.10-420.el8.noarch", "Installed: giflib-5.1.4-3.el8.x86_64", "Installed: python3-jwcrypto-0.5.0-1.module+el8.1.0+4098+f286395e.noarch", "Installed: libXext-1.3.4-1.el8.x86_64", "Installed: python3-kdcproxy-0.4-5.module+el8.2.0+4691+a05b2456.noarch", "Installed: libXfixes-5.0.3-7.el8.x86_64", "Installed: python3-ldap-3.3.1-2.el8.x86_64", "Installed: python3-lib389-1.4.3.23-10.module+el8.5.0+12398+47000435.noarch", "Installed: ant-1.10.5-1.module+el8+2438+c99a8a1e.noarch", "Installed: ant-lib-1.10.5-1.module+el8+2438+c99a8a1e.noarch", "Installed: libXft-2.3.3-1.el8.x86_64", "Installed: gdk-pixbuf2-2.36.12-5.el8.x86_64", "Installed: perl-Text-Diff-1.45-2.el8.noarch", "Installed: apache-commons-cli-1.4-4.module+el8+2452+b359bfcd.noarch", "Installed: apache-commons-codec-1.11-3.module+el8+2452+b359bfcd.noarch", "Installed: libXi-1.7.10-1.el8.x86_64", "Installed: apache-commons-io-1:2.6-3.module+el8+2452+b359bfcd.noarch", "Installed: libXinerama-1.1.4-1.el8.x86_64", "Installed: apache-commons-lang3-3.7-3.module+el8+2452+b359bfcd.noarch", "Installed: apache-commons-logging-1.2-13.module+el8+2452+b359bfcd.noarch", "Installed: apache-commons-net-3.6-3.module+el8.3.0+6805+72837426.noarch", "Installed: glassfish-fastinfoset-1.2.13-9.module+el8.1.0+3366+6dfb954c.noarch", "Installed: glassfish-jaxb-api-2.2.12-8.module+el8.1.0+3366+6dfb954c.noarch", "Installed: glassfish-jaxb-core-2.2.11-11.module+el8.1.0+3366+6dfb954c.noarch", "Installed: glassfish-jaxb-runtime-2.2.11-11.module+el8.1.0+3366+6dfb954c.noarch", "Installed: glassfish-jaxb-txw2-2.2.11-11.module+el8.1.0+3366+6dfb954c.noarch", "Installed: python3-mod_wsgi-4.6.4-4.el8.x86_64", "Installed: apr-1.6.3-12.el8.x86_64", "Installed: python3-netaddr-0.7.19-8.el8.noarch", "Installed: libXrandr-1.5.2-1.el8.x86_64", "Installed: python3-netifaces-0.10.6-4.el8.x86_64", "Installed: apr-util-1.6.1-6.el8.x86_64", "Installed: python3-nss-1.0.1-10.module+el8.1.0+3366+6dfb954c.x86_64", "Installed: apr-util-bdb-1.6.1-6.el8.x86_64", "Installed: libicu-60.3-2.el8_1.x86_64", "Installed: libXrender-0.9.10-7.el8.x86_64", "Installed: policycoreutils-python-utils-2.9-16.el8.noarch", "Installed: apr-util-openssl-1.6.1-6.el8.x86_64", "Installed: python3-pki-10.11.2-2.module+el8.5.0+12735+8eb38ccc.noarch", "Installed: libipa_hbac-2.5.2-2.el8.x86_64", "Installed: libXtst-1.2.3-7.el8.x86_64", "Installed: libkadm5-1.18.2-14.el8.x86_64", "Installed: python3-psutil-5.4.3-11.el8.x86_64", "Installed: python3-pyasn1-0.3.7-6.el8.noarch", "Installed: python3-pyasn1-modules-0.3.7-6.el8.noarch", "Installed: mod_auth_gssapi-1.6.1-7.1.el8.x86_64", "Installed: publicsuffix-list-20180723-1.el8.noarch", "Installed: python3-asn1crypto-0.24.0-3.el8.noarch", "Installed: mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64", "Installed: atk-2.28.1-1.el8.x86_64", "Installed: mod_lookup_identity-1.0.0-4.el8.x86_64", "Installed: python3-pyusb-1.0.0-9.module+el8.1.0+4098+f286395e.noarch", "Installed: mod_session-2.4.37-41.module+el8.5.0+11772+c8e0c271.x86_64", "Installed: mod_ssl-1:2.4.37-41.module+el8.5.0+11772+c8e0c271.x86_64", "Installed: python3-qrcode-core-5.1-12.module+el8.1.0+4098+f286395e.noarch", "Installed: python3-dns-1.15.0-10.el8.noarch", "Installed: perl-DB_File-1.842-1.el8.x86_64", "Installed: python3-libipa_hbac-2.5.2-2.el8.x86_64", "Installed: python3-systemd-234-8.el8.x86_64", "Installed: python3-yubico-1.3.2-9.module+el8.1.0+4098+f286395e.noarch", "Installed: bea-stax-api-1.2.0-16.module+el8.1.0+3366+6dfb954c.noarch", "Installed: bind-libs-32:9.11.26-6.el8.x86_64", "Installed: bind-libs-lite-32:9.11.26-6.el8.x86_64", "Installed: bind-license-32:9.11.26-6.el8.noarch", "Installed: python3-sss-2.5.2-2.el8.x86_64", "Installed: python3-sss-murmur-2.5.2-2.el8.x86_64", "Installed: python3-sssdconfig-2.5.2-2.el8.noarch", "Installed: libdatrie-0.2.9-7.el8.x86_64", "Installed: bind-utils-32:9.11.26-6.el8.x86_64", "Installed: redhat-logos-httpd-84.5-1.el8.noarch", "Installed: pixman-0.38.4-1.el8.x86_64", "Installed: pki-acme-10.11.2-2.module+el8.5.0+12735+8eb38ccc.noarch", "Installed: pki-base-10.11.2-2.module+el8.5.0+12735+8eb38ccc.noarch", "Installed: pki-base-java-10.11.2-2.module+el8.5.0+12735+8eb38ccc.noarch", "Installed: pki-ca-10.11.2-2.module+el8.5.0+12735+8eb38ccc.noarch", "Installed: pki-kra-10.11.2-2.module+el8.5.0+12735+8eb38ccc.noarch", "Installed: pki-server-10.11.2-2.module+el8.5.0+12735+8eb38ccc.noarch", "Installed: pki-servlet-4.0-api-1:9.0.30-3.module+el8.5.0+11388+9e95fe00.noarch", "Installed: pki-servlet-engine-1:9.0.30-3.module+el8.5.0+11388+9e95fe00.noarch", "Installed: pki-symkey-10.11.2-2.module+el8.5.0+12735+8eb38ccc.x86_64", "Installed: pki-tools-10.11.2-2.module+el8.5.0+12735+8eb38ccc.x86_64", "Installed: fontawesome-fonts-4.7.0-4.el8.noarch", "Installed: ipa-client-4.9.6-6.module+el8.5.0+12660+88e16a2c.x86_64", "Installed: libsss_simpleifp-2.5.2-2.el8.x86_64", "Installed: ipa-client-common-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: tomcatjss-7.7.0-1.module+el8.5.0+11983+6ba118b4.noarch", "Installed: samba-client-libs-4.14.5-2.el8.x86_64", "Installed: samba-common-4.14.5-2.el8.noarch", "Installed: samba-common-libs-4.14.5-2.el8.x86_64", "Installed: ipa-common-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: ipa-healthcheck-0.7-6.module+el8.5.0+11410+91a33fe4.noarch", "Installed: ipa-healthcheck-core-0.7-6.module+el8.5.0+11410+91a33fe4.noarch", "Installed: slapi-nis-0.56.6-4.module+el8.5.0+12583+bf7ffcf6.x86_64", "Installed: ipa-selinux-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: slf4j-1.7.25-4.module+el8+2452+b359bfcd.noarch", "Installed: ipa-server-4.9.6-6.module+el8.5.0+12660+88e16a2c.x86_64", "Installed: ipa-server-common-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: libfontenc-1.1.3-8.el8.x86_64", "Installed: slf4j-jdk14-1.7.25-4.module+el8.1.0+3366+6dfb954c.noarch", "Installed: ttmkfdir-3.0.9-54.el8.x86_64", "Installed: libthai-0.1.27-2.el8.x86_64", "Installed: softhsm-2.6.0-5.module+el8.4.0+10227+076cd560.x86_64", "Installed: tzdata-java-2021c-1.el8.noarch", "Installed: fribidi-1.0.4-8.el8.x86_64", "Installed: libtiff-4.0.9-20.el8.x86_64", "Installed: fstrm-0.6.1-2.el8.x86_64", "Installed: istack-commons-runtime-2.21-9.el8+7.noarch", "Installed: jackson-annotations-2.10.0-1.module+el8.2.0+5059+3eb3af25.noarch", "Installed: jackson-core-2.10.0-1.module+el8.2.0+5059+3eb3af25.noarch", "Installed: jackson-databind-2.10.0-1.module+el8.2.0+5059+3eb3af25.noarch", "Installed: jackson-jaxrs-json-provider-2.9.9-1.module+el8.1.0+3832+9784644d.noarch", "Installed: jackson-jaxrs-providers-2.9.9-1.module+el8.1.0+3832+9784644d.noarch", "Installed: jackson-module-jaxb-annotations-2.7.6-4.module+el8.1.0+3366+6dfb954c.noarch", "Installed: jasper-libs-2.0.14-5.el8.x86_64", "Installed: java-1.8.0-openjdk-1:1.8.0.302.b08-3.el8.x86_64", "Installed: java-1.8.0-openjdk-devel-1:1.8.0.302.b08-3.el8.x86_64", "Installed: java-1.8.0-openjdk-headless-1:1.8.0.302.b08-3.el8.x86_64", "Installed: libwbclient-4.14.5-2.el8.x86_64", "Installed: sssd-common-pac-2.5.2-2.el8.x86_64", "Installed: sssd-dbus-2.5.2-2.el8.x86_64", "Installed: sssd-ipa-2.5.2-2.el8.x86_64", "Installed: sscg-2.3.3-14.el8.x86_64", "Installed: sssd-krb5-common-2.5.2-2.el8.x86_64", "Installed: stax-ex-1.7.7-8.module+el8.2.0+5723+4574fbff.noarch", "Installed: sssd-tools-2.5.2-2.el8.x86_64", "Installed: augeas-libs-1.12.0-6.el8.x86_64", "Installed: javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch", "Installed: javapackages-tools-5.3.0-1.module+el8+2447+6f56d9a6.noarch", "Installed: autofs-1:5.1.4-74.el8.x86_64", "Installed: cairo-1.15.12-3.el8.x86_64", "Installed: lksctp-tools-1.0.18-3.el8.x86_64", "Installed: jbigkit-libs-2.1-14.el8.x86_64", "Installed: jboss-annotations-1.2-api-1.0.0-4.el8.noarch", "Installed: jboss-jaxrs-2.0-api-1.0.0-6.el8.noarch", "Installed: graphite2-1.3.10-10.el8.x86_64", "Installed: jboss-logging-3.3.0-5.el8.noarch", "Installed: jboss-logging-tools-2.0.1-6.el8.noarch", "Installed: bash-completion-1:2.7-5.el8.noarch", "Installed: jdeparser-2.0.0-5.el8.noarch", "Installed: nss-tools-3.67.0-6.el8_4.x86_64", "Installed: certmonger-0.79.13-3.el8.x86_64", "Installed: open-sans-fonts-1.10-6.el8.noarch", "Installed: jss-4.9.1-1.module+el8.5.0+12710+1c6f9ceb.x86_64", "Installed: mailcap-2.1.48-3.el8.noarch", "Installed: libjpeg-turbo-1.5.3-12.el8.x86_64", "Installed: gtk-update-icon-cache-3.22.30-8.el8.x86_64", "Installed: protobuf-c-1.3.0-6.el8.x86_64", "Installed: gtk2-2.24.32-5.el8.x86_64", "Installed: libxcb-1.13.1-1.el8.x86_64", "Installed: xalan-j2-2.7.1-38.module+el8.1.0+3366+6dfb954c.noarch", "Installed: cups-libs-1:2.2.6-40.el8.x86_64" ] } TASK [ipaserver : Install - Ensure that IPA server packages for dns are installed] *** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: sqlite-3.26.0-15.el8.x86_64", "Installed: bind-32:9.11.26-6.el8.x86_64", "Installed: bind-dyndb-ldap-11.6-2.module+el8.4.0+9328+4ec4e316.x86_64", "Installed: ldns-1.7.0-21.el8.x86_64", "Installed: ipa-server-dns-4.9.6-6.module+el8.5.0+12660+88e16a2c.noarch", "Installed: bind-pkcs11-32:9.11.26-6.el8.x86_64", "Installed: opendnssec-2.1.7-1.module+el8.4.0+9007+5084bdd8.x86_64", "Installed: bind-pkcs11-libs-32:9.11.26-6.el8.x86_64", "Installed: bind-pkcs11-utils-32:9.11.26-6.el8.x86_64", "Installed: opencryptoki-3.16.0-5.el8.x86_64", "Installed: opencryptoki-icsftok-3.16.0-5.el8.x86_64", "Installed: opencryptoki-libs-3.16.0-5.el8.x86_64" ] } TASK [ipaserver : Install - Ensure that IPA server packages for adtrust are installed] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaserver : Install - Ensure that firewall packages installed] *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [ipaserver : Firewalld service - Ensure that firewalld is running] ******** changed: [sut] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice dbus.service basic.target dbus.socket polkit.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service shutdown.target ebtables.service ip6tables.service nftables.service ipset.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14166", "LimitNPROCSoft": "14166", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14166", "LimitSIGPENDINGSoft": "14166", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22665", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "disabled", "UtmpMode": "init", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [Firewalld - Verify runtime zone "{{ ipaserver_firewalld_zone }}"] ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Firewalld - Verify permanent zone "{{ ipaserver_firewalld_zone }}"] ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaserver : include_tasks] *********************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaserver : Install - Server installation test] ************************** ok: [sut] => { "_dirsrv_ca_cert": null, "_dirsrv_pkcs12_info": null, "_hostname_overridden": true, "_http_ca_cert": null, "_http_pkcs12_info": null, "_installation_cleanup": true, "_pkinit_ca_cert": null, "_pkinit_pkcs12_info": null, "changed": false, "domain": "test.local", "domainlevel": 1, "external_ca": false, "external_ca_profile": null, "external_ca_type": null, "hostname": "ipaserver.test.local", "idmax": 1283799999, "idstart": 1283600000, "ipa_python_version": 40906, "no_host_dns": true, "no_pkinit": false, "ntp_pool": null, "ntp_servers": null, "realm": "TEST.LOCAL", "rid_base": 1000, "secondary_rid_base": 100000000, "setup_adtrust": false, "setup_ca": true, "setup_kra": false } TASK [ipaserver : Install - Master password creation] ************************** changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [ipaserver : Install - Use new master password] *************************** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [ipaserver : Install - Server preparation] ******************************** changed: [sut] => { "_ca_subject": "CN=Certificate Authority,O=TEST.LOCAL", "_subject_base": "O=TEST.LOCAL", "adtrust_netbios_name": null, "adtrust_reset_netbios_name": false, "ca_subject": "CN=Certificate Authority,O=TEST.LOCAL", "changed": true, "dns_ip_addresses": [ "10.29.163.135" ], "dns_reverse_zones": [], "forward_policy": "only", "forwarders": [ "10.29.162.2" ], "ip_addresses": [ "10.29.163.135" ], "no_dnssec_validation": true, "reverse_zones": [], "subject_base": "O=TEST.LOCAL" } TASK [ipaserver : Install - Setup NTP] ***************************************** changed: [sut] => { "changed": true } TASK [ipaserver : Install - Setup DS] ****************************************** changed: [sut] => { "changed": true } TASK [ipaserver : Install - Setup KRB] ***************************************** changed: [sut] => { "changed": true } TASK [ipaserver : Install - Setup custodia] ************************************ changed: [sut] => { "changed": true } TASK [ipaserver : Install - Setup CA] ****************************************** changed: [sut] => { "changed": true, "csr_generated": false } TASK [ipaserver : Copy /root/ipa.csr to "sut-ipa.csr"] ************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaserver : Install - Setup otpd] **************************************** changed: [sut] => { "changed": true } TASK [ipaserver : Install - Setup HTTP] **************************************** changed: [sut] => { "changed": true } TASK [ipaserver : Install - Setup KRA] ***************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaserver : Install - Setup DNS] ***************************************** changed: [sut] => { "changed": true } TASK [ipaserver : Install - Setup ADTRUST] ************************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaserver : Install - Set DS password] *********************************** changed: [sut] => { "changed": true } TASK [Install - Setup client] ************************************************** TASK [ipaclient : Import variables specific to distribution] ******************* ok: [sut] => (item=/tmp/freeipa-repo/roles/ipaclient/vars/RedHat-8.yml) => { "ansible_facts": { "ipaclient_packages": [ "@idm:DL1/client" ] }, "ansible_included_var_files": [ "/tmp/freeipa-repo/roles/ipaclient/vars/RedHat-8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/freeipa-repo/roles/ipaclient/vars/RedHat-8.yml" } TASK [ipaclient : Install IPA client] ****************************************** included: /tmp/freeipa-repo/roles/ipaclient/tasks/install.yml for sut TASK [ipaclient : Install - Ensure that IPA client packages are installed] ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install - Set ipaclient_servers] ***************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install - Set ipaclient_servers from cluster inventory] ****************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Check that either principal or keytab is set] ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Set default principal if no keytab is given] ******* ok: [sut] => { "ansible_facts": { "ipaadmin_principal": "admin" }, "changed": false } TASK [ipaclient : Install - IPA client test] *********************************** ok: [sut] => { "basedn": "dc=test,dc=local", "changed": false, "client_already_configured": false, "client_domain": "test.local", "dnsok": false, "domain": "test.local", "hostname": "ipaserver.test.local", "ipa_python_version": 40906, "kdc": "ipaserver.test.local", "nosssd_files": {}, "ntp_pool": null, "ntp_servers": null, "realm": "TEST.LOCAL", "servers": [ "ipaserver.test.local" ], "sssd": true } TASK [ipaclient : Install - Cleanup leftover ccache] *************************** ok: [sut] => { "changed": false, "path": "/etc/ipa/.dns_ccache", "state": "absent" } TASK [ipaclient : Install - Configure NTP] ************************************* ok: [sut] => { "changed": false } TASK [ipaclient : Install - Make sure One-Time Password is enabled if it's already defined] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Disable One-Time Password for on_master] *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Test if IPA client has working krb5.keytab] ******** ok: [sut] => { "ca_crt_exists": true, "changed": false, "krb5_conf_ok": true, "krb5_keytab_ok": true, "ping_test_ok": true } TASK [ipaclient : Install - Disable One-Time Password for client with working krb5.keytab] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Keytab or password is required for getting otp] **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Get One-Time Password for client enrollment] ******* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [ipaclient : Install - Report error for OTP generation] ******************* skipping: [sut] => {} TASK [ipaclient : Install - Store the previously obtained OTP] ***************** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [ipaclient : Store predefined OTP in admin_password] ********************** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [ipaclient : Install - Check if principal and keytab are set] ************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Check if one of password or keytabs are set] ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Purge TEST.LOCAL from host keytab] ***************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Backup and set hostname] *************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Join IPA] ****************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : krb5 configuration not correct] ****************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : IPA test failed] ********************************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : ca.crt file is missing] ************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Configure IPA default.conf] ************************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Configure SSSD] ************************************ changed: [sut] => { "changed": true } TASK [ipaclient : Install - Configure krb5 for IPA realm] ********************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - IPA API calls for remaining enrollment parts] ****** changed: [sut] => { "ca_enabled": true, "changed": true, "subject_base": "O=TEST.LOCAL" } TASK [ipaclient : Install - Fix IPA ca] **************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Create IPA NSS database] *************************** changed: [sut] => { "ca_enabled_ra": true, "changed": true } TASK [ipaclient : Install - Configure SSH and SSHD] **************************** changed: [sut] => { "changed": true } TASK [ipaclient : Install - Configure automount] ******************************* changed: [sut] => { "changed": true } TASK [ipaclient : Install - Configure firefox] ********************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaclient : Install - Configure NIS] ************************************* changed: [sut] => { "changed": true } TASK [ipaclient : Install - Restore original admin password if overwritten by OTP] *** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [ipaclient : Cleanup leftover ccache] ************************************* ok: [sut] => { "changed": false, "path": "/etc/ipa/.dns_ccache", "state": "absent" } TASK [ipaclient : Uninstall IPA client] **************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [ipaserver : Install - Enable IPA] **************************************** changed: [sut] => { "changed": true } TASK [ipaserver : Install - Cleanup root IPA cache] **************************** ok: [sut] => { "changed": false, "path": "/root/.ipa_cache", "state": "absent" } TASK [ipaserver : Install - Configure firewalld] ******************************* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=", "--add-service=freeipa-ldap", "--add-service=freeipa-ldaps", "--add-service=dns", "--add-service=ntp" ], "delta": "0:00:00.465962", "end": "2022-04-12 17:44:08.081861", "rc": 0, "start": "2022-04-12 17:44:07.615899" } STDOUT: success TASK [ipaserver : Install - Configure firewalld runtime] *********************** changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=", "--add-service=freeipa-ldap", "--add-service=freeipa-ldaps", "--add-service=dns", "--add-service=ntp" ], "delta": "0:00:00.425301", "end": "2022-04-12 17:44:08.762765", "rc": 0, "start": "2022-04-12 17:44:08.337464" } STDOUT: success TASK [ipaserver : Cleanup temporary files] ************************************* ok: [sut] => (item=/etc/ipa/.tmp_pkcs12_dirsrv) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/ipa/.tmp_pkcs12_dirsrv", "path": "/etc/ipa/.tmp_pkcs12_dirsrv", "state": "absent" } ok: [sut] => (item=/etc/ipa/.tmp_pkcs12_http) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/ipa/.tmp_pkcs12_http", "path": "/etc/ipa/.tmp_pkcs12_http", "state": "absent" } ok: [sut] => (item=/etc/ipa/.tmp_pkcs12_pkinit) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/ipa/.tmp_pkcs12_pkinit", "path": "/etc/ipa/.tmp_pkcs12_pkinit", "state": "absent" } TASK [ipaserver : Uninstall IPA server] **************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY [Issue IPA signed certificates] ******************************************* TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [linux-system-roles.certificate : Set version specific variables] ********* included: /WORKDIR/dist-git-certificate-setup-snapshot-no-gather-facts-kugxkU/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** ok: [sut] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.5.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.5.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-04-12 17:41:15 UTC", "ActiveEnterTimestampMonotonic": "588476077", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target syslog.target dbus.socket system.slice sysinit.target dbus.service network.target systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-04-12 17:41:15 UTC", "AssertTimestampMonotonic": "588461525", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-04-12 17:41:15 UTC", "ConditionTimestampMonotonic": "588461523", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "14344", "ExecMainStartTimestamp": "Tue 2022-04-12 17:41:15 UTC", "ExecMainStartTimestampMonotonic": "588462582", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-04-12 17:41:15 UTC", "InactiveExitTimestampMonotonic": "588462652", "InvocationID": "b9d34467f43e480cbbb317471a0aa618", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14166", "LimitNPROCSoft": "14166", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14166", "LimitSIGPENDINGSoft": "14166", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "14344", "MemoryAccounting": "yes", "MemoryCurrent": "2895872", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-04-12 17:41:15 UTC", "StateChangeTimestampMonotonic": "588476077", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22665", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Tue 2022-04-12 17:41:15 UTC", "WatchdogTimestampMonotonic": "588476074", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ changed: [sut] => (item={'name': 'mycert_basic_ipa', 'dns': 'ipaserver.test.local', 'principal': 'HTTP/ipaserver.test.local@TEST.LOCAL', 'ca': 'ipa'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "ipa", "dns": "ipaserver.test.local", "name": "mycert_basic_ipa", "principal": "HTTP/ipaserver.test.local@TEST.LOCAL" } } MSG: Certificate requested (new). changed: [sut] => (item={'name': 'groupcert', 'dns': 'ipaserver.test.local', 'principal': 'HTTP/ipaserver.test.local@TEST.LOCAL', 'ca': 'ipa', 'group': 'ftp'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "ipa", "dns": "ipaserver.test.local", "group": "ftp", "name": "groupcert", "principal": "HTTP/ipaserver.test.local@TEST.LOCAL" } } MSG: Certificate requested (new). File attributes updated. PLAY [Verify certificates] ***************************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [Verify each certificate] ************************************************* included: /WORKDIR/dist-git-certificate-setup-snapshot-no-gather-facts-kugxkU/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/dist-git-certificate-setup-snapshot-no-gather-facts-kugxkU/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Collecting pip Downloading https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB) Installing collected packages: pip Found existing installation: pip 9.0.3 Uninstalling pip-9.0.3: Successfully uninstalled pip-9.0.3 Successfully installed pip-21.3.1 STDERR: You are using pip version 21.3.1, however version 22.0.4 is available. You should consider upgrading via the 'pip install --upgrade pip' command. TASK [Install certreader] ****************************************************** changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Collecting cryptography<35 Downloading cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl (3.0 MB) Collecting certreader>=0.1.1 Downloading certreader-0.1.1.tar.gz (4.4 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting cffi>=1.12 Downloading cffi-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (405 kB) Collecting pyasn1 Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) Collecting pyyaml Downloading PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (603 kB) Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) Using legacy 'setup.py install' for certreader, since package 'wheel' is not installed. Installing collected packages: pycparser, cffi, pyyaml, pyasn1, cryptography, certreader Running setup.py install for certreader: started Running setup.py install for certreader: finished with status 'done' Successfully installed certreader-0.1.1 cffi-1.15.0 cryptography-3.4.8 pyasn1-0.4.8 pycparser-2.21 pyyaml-6.0 TASK [Retrieve certificate file stats] ***************************************** ok: [sut] => { "changed": false, "stat": { "atime": 1649785457.902389, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "82f71e7d36a117943bd54ffe673e759d284d0af3", "ctime": 1649785457.8983889, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 1169676, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1649785457.8983889, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_basic_ipa.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1854, "uid": 0, "version": "3838501209", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* ok: [sut] => { "changed": false, "stat": { "atime": 1649785455.4993114, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5883abf90222653275e73445da5f34bbaa6e3c6b", "ctime": 1649785457.8983889, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 1169671, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1649785457.8983889, "nlink": 1, "path": "/etc/pki/tls/private/mycert_basic_ipa.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "4175094770", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_basic_ipa.crt" ], "delta": "0:00:00.322327", "end": "2022-04-12 17:44:32.821645", "rc": 0, "start": "2022-04-12 17:44:32.499318" } STDOUT: { "subject": [ { "name": "organizationName", "oid": "2.5.4.10", "value": "TEST.LOCAL" }, { "name": "commonName", "oid": "2.5.4.3", "value": "ipaserver.test.local" } ], "extensions": { "authorityKeyIdentifier": { "value": "CF:2A:81:ED:88:55:B9:0E:D1:1B:F8:74:20:A2:91:CD:30:6E:24:02", "critical": false }, "authorityInfoAccess": { "value": [ { "method": "OCSP", "location": "http://ipa-ca.test.local/ca/ocsp" } ], "critical": false }, "keyUsage": { "value": [ "digital_signature", "content_commitment", "key_encipherment", "data_encipherment" ], "critical": true }, "extendedKeyUsage": { "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ], "critical": false }, "cRLDistributionPoints": { "value": [ { "full_name": [ "http://ipa-ca.test.local/ipa/crl/MasterCRL.bin" ], "crl_issuer": [ { "organizationName": "ipaca", "commonName": "Certificate Authority" } ] } ], "critical": false }, "subjectKeyIdentifier": { "value": "0F:5B:8D:E7:82:81:50:5D:68:80:31:52:22:F9:BC:0B:BC:4C:BD:DB", "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "ipaserver.test.local" }, { "name": "Universal Principal Name (UPN)", "value": "HTTP/ipaserver.test.local@TEST.LOCAL", "oid": "1.3.6.1.4.1.311.20.2.3" }, { "name": "Kerberos principalname", "value": "HTTP/ipaserver.test.local@TEST.LOCAL", "oid": "1.3.6.1.5.2.2" } ], "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "80:BE:5F:30:FB:6D:94:E6:B6:0C:93:88:73:75:3D:52:AB:54:9B:DF:CD:9C:43:2E:4B:B2:BA:82:06:95:0A:56:32:7C:01:43:5E:A9:59:2B:B1:C4:7B:72:AC:33:85:B4:BF:DA:F4:5C:72:2D:D6:D2:B6:5C:DD:1B:3F:23:C7:0F:A6:7B:65:39:00:36:C2:5F:B5:BE:20:04:34:0F:DE:E0:F2:2E:47:C6:48:6B:11:32:82:BC:8A:A1:65:4D:71:07:2A:2D:1C:E7:0E:89:67:B9:22:0B:6C:61:76:46:FF:43:68:85:AA:95:AF:DC:4A:D6:26:13:94:8C:FB:7B:33:12:B7:84:E9:EE:5C:A7:8A:D5:D6:3E:C1:CC:C7:86:8F:73:AE:72:7B:DB:BD:9A:CB:B5:0E:45:7B:35:F7:77:4B:B3:A9:FB:B3:57:BF:FF:A4:90:EC:5F:BE:E6:97:8D:F2:CB:A6:2C:00:4E:62:3B:A8:D7:79:CF:39:37:B3:9C:52:85:97:9F:FB:C7:C3:FA:44:D7:76:E2:8A:83:52:60:52:71:29:D2:F9:18:03:71:A0:14:03:A7:3D:89:DC:5C:70:34:8B:B3:FD:3F:8E:7A:A0:64:93:28:0C:C6:F6:33:38:66:E6:A2:99:3D:31:23:25:DE:C9:7C:60:E4:31:8F:84:20:A8:2F:64:D8:67:B4:E7:62:61:C2:EF:0E:EB:70:1F:B1:30:D4:0C:AB:6D:74:BA:16:02:0D:D9:49:B7:DA:A1:B2:E2:56:7A:A7:3A:C8:B4:B4:56:3C:22:13:D7:9F:1C:BB:D3:0A:90:FF:AA:3B:44:F1:38:C3:12:83:2D:E1:DB:26:A1:25:8F:77:6C:EB:8E:B1:BE:62:01:6D:B6:60:66:77:33:50:06:17:71:85:A8:AA:9E:A6:B1:77:8C:55:4C:84:2B:4E:32:9E:A6:EC:A4:05:48:F9:57:37:9D:00:AE:70:F3:1B:BD:36:FA:55:E5:C1:B4:3A:92:E0:4E:4D:05:C6" }, "key_size": 2048, "validity": { "not_valid_after": "2024-04-12 17:44:17", "not_valid_before": "2022-04-12 17:44:17" } } TASK [Load certificate YAML to cert_issued variable] *************************** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityInfoAccess": { "critical": false, "value": [ { "location": "http://ipa-ca.test.local/ca/ocsp", "method": "OCSP" } ] }, "authorityKeyIdentifier": { "critical": false, "value": "CF:2A:81:ED:88:55:B9:0E:D1:1B:F8:74:20:A2:91:CD:30:6E:24:02" }, "cRLDistributionPoints": { "critical": false, "value": [ { "crl_issuer": [ { "commonName": "Certificate Authority", "organizationName": "ipaca" } ], "full_name": [ "http://ipa-ca.test.local/ipa/crl/MasterCRL.bin" ] } ] }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": true, "value": [ "digital_signature", "content_commitment", "key_encipherment", "data_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "ipaserver.test.local" }, { "name": "Universal Principal Name (UPN)", "oid": "1.3.6.1.4.1.311.20.2.3", "value": "HTTP/ipaserver.test.local@TEST.LOCAL" }, { "name": "Kerberos principalname", "oid": "1.3.6.1.5.2.2", "value": "HTTP/ipaserver.test.local@TEST.LOCAL" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "0F:5B:8D:E7:82:81:50:5D:68:80:31:52:22:F9:BC:0B:BC:4C:BD:DB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "80:BE:5F:30:FB:6D:94:E6:B6:0C:93:88:73:75:3D:52:AB:54:9B:DF:CD:9C:43:2E:4B:B2:BA:82:06:95:0A:56:32:7C:01:43:5E:A9:59:2B:B1:C4:7B:72:AC:33:85:B4:BF:DA:F4:5C:72:2D:D6:D2:B6:5C:DD:1B:3F:23:C7:0F:A6:7B:65:39:00:36:C2:5F:B5:BE:20:04:34:0F:DE:E0:F2:2E:47:C6:48:6B:11:32:82:BC:8A:A1:65:4D:71:07:2A:2D:1C:E7:0E:89:67:B9:22:0B:6C:61:76:46:FF:43:68:85:AA:95:AF:DC:4A:D6:26:13:94:8C:FB:7B:33:12:B7:84:E9:EE:5C:A7:8A:D5:D6:3E:C1:CC:C7:86:8F:73:AE:72:7B:DB:BD:9A:CB:B5:0E:45:7B:35:F7:77:4B:B3:A9:FB:B3:57:BF:FF:A4:90:EC:5F:BE:E6:97:8D:F2:CB:A6:2C:00:4E:62:3B:A8:D7:79:CF:39:37:B3:9C:52:85:97:9F:FB:C7:C3:FA:44:D7:76:E2:8A:83:52:60:52:71:29:D2:F9:18:03:71:A0:14:03:A7:3D:89:DC:5C:70:34:8B:B3:FD:3F:8E:7A:A0:64:93:28:0C:C6:F6:33:38:66:E6:A2:99:3D:31:23:25:DE:C9:7C:60:E4:31:8F:84:20:A8:2F:64:D8:67:B4:E7:62:61:C2:EF:0E:EB:70:1F:B1:30:D4:0C:AB:6D:74:BA:16:02:0D:D9:49:B7:DA:A1:B2:E2:56:7A:A7:3A:C8:B4:B4:56:3C:22:13:D7:9F:1C:BB:D3:0A:90:FF:AA:3B:44:F1:38:C3:12:83:2D:E1:DB:26:A1:25:8F:77:6C:EB:8E:B1:BE:62:01:6D:B6:60:66:77:33:50:06:17:71:85:A8:AA:9E:A6:B1:77:8C:55:4C:84:2B:4E:32:9E:A6:EC:A4:05:48:F9:57:37:9D:00:AE:70:F3:1B:BD:36:FA:55:E5:C1:B4:3A:92:E0:4E:4D:05:C6" }, "subject": [ { "name": "organizationName", "oid": "2.5.4.10", "value": "TEST.LOCAL" }, { "name": "commonName", "oid": "2.5.4.3", "value": "ipaserver.test.local" } ], "validity": { "not_valid_after": "2024-04-12 17:44:17", "not_valid_before": "2022-04-12 17:44:17" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_basic_ipa.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.104938", "end": "2022-04-12 17:44:33.362768", "rc": 0, "start": "2022-04-12 17:44:33.257830" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.6/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.6/site-packages (from cryptography<35) (1.15.0) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** ok: [sut] => { "changed": false, "stat": { "atime": 1649785459.9054537, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bdfefee55a0e5d8e19d1b476913fb630cc084f83", "ctime": 1649785459.981456, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 1169678, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1649785459.9014535, "nlink": 1, "path": "/etc/pki/tls/certs/groupcert.crt", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1854, "uid": 0, "version": "947041830", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* ok: [sut] => { "changed": false, "stat": { "atime": 1649785458.522409, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "37a2e618284a47de7f57bc405076a9f60099d620", "ctime": 1649785459.981456, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 1169677, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1649785459.9014535, "nlink": 1, "path": "/etc/pki/tls/private/groupcert.key", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1302158994", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/groupcert.crt" ], "delta": "0:00:00.320754", "end": "2022-04-12 17:44:38.260075", "rc": 0, "start": "2022-04-12 17:44:37.939321" } STDOUT: { "subject": [ { "name": "organizationName", "oid": "2.5.4.10", "value": "TEST.LOCAL" }, { "name": "commonName", "oid": "2.5.4.3", "value": "ipaserver.test.local" } ], "extensions": { "authorityKeyIdentifier": { "value": "CF:2A:81:ED:88:55:B9:0E:D1:1B:F8:74:20:A2:91:CD:30:6E:24:02", "critical": false }, "authorityInfoAccess": { "value": [ { "method": "OCSP", "location": "http://ipa-ca.test.local/ca/ocsp" } ], "critical": false }, "keyUsage": { "value": [ "digital_signature", "content_commitment", "key_encipherment", "data_encipherment" ], "critical": true }, "extendedKeyUsage": { "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ], "critical": false }, "cRLDistributionPoints": { "value": [ { "full_name": [ "http://ipa-ca.test.local/ipa/crl/MasterCRL.bin" ], "crl_issuer": [ { "organizationName": "ipaca", "commonName": "Certificate Authority" } ] } ], "critical": false }, "subjectKeyIdentifier": { "value": "F9:06:0D:89:D4:AE:1F:44:3F:F2:25:BF:78:B0:E7:A3:C7:8F:E7:92", "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "ipaserver.test.local" }, { "name": "Universal Principal Name (UPN)", "value": "HTTP/ipaserver.test.local@TEST.LOCAL", "oid": "1.3.6.1.4.1.311.20.2.3" }, { "name": "Kerberos principalname", "value": "HTTP/ipaserver.test.local@TEST.LOCAL", "oid": "1.3.6.1.5.2.2" } ], "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0C:9E:81:06:35:8D:7F:2C:E4:4A:9B:F6:A8:F6:69:70:56:92:16:7B:8C:EB:5A:74:A1:83:93:B3:A6:61:DC:55:6A:B1:D8:48:7F:3C:B5:2A:5A:65:3A:AA:4F:D8:A6:06:99:E5:29:50:09:74:B1:CD:B0:A9:02:F6:6E:B1:79:73:E3:D9:5D:EF:00:4B:0D:F5:6C:4A:88:D4:E8:47:45:B5:97:D7:10:B8:0C:B4:93:AB:C8:45:B7:F1:D2:C5:B4:AF:B6:79:36:8C:11:6E:38:BC:57:18:72:7C:84:B6:1F:85:57:D8:F7:C1:06:10:21:82:33:C2:9C:DC:E9:93:03:74:31:13:AF:8E:2D:34:68:A8:2C:1D:7E:59:DF:AA:C0:AD:FD:8A:7C:91:43:01:B5:8F:4F:16:09:85:1C:B0:F2:AD:D2:5D:1F:C9:3B:83:9B:A7:8B:3C:E1:7E:03:8E:E8:FC:4D:CC:0E:D7:94:E8:2D:BD:D0:EA:1B:3F:65:25:22:50:D6:C3:AE:AC:5B:D5:78:77:64:48:7F:FC:43:4E:6D:6B:4E:BC:0F:00:5B:94:1F:E5:5F:A9:95:D4:AA:1B:A1:7D:E4:03:7A:9C:59:BB:E8:94:62:76:D7:17:20:EE:40:FD:2E:C4:E2:B0:D1:A6:25:26:64:42:FE:D7:5F:D8:79:40:83:14:DF:BD:26:8D:22:75:C0:86:F0:21:35:BE:A0:2A:DA:69:56:F4:60:28:87:E9:6B:CF:74:48:43:19:78:1A:4A:1B:F5:7A:A7:CE:6F:D1:5B:5F:B7:D9:B0:30:EC:8A:92:5F:FA:34:41:18:DC:80:59:79:6A:2D:2D:C1:75:B3:5A:FB:22:8B:45:32:C7:C6:1F:34:2D:B2:A5:3D:8B:83:CD:08:A2:AB:2D:6E:44:AB:EF:42:F4:E4:66:0B:F5:9C:DE:2B:A2:1C:71:62:B1:85:AE:E4:37:BF:2F:3A:B0:FC:20:BA:2A:11:A4:BB:38:DC:E5:32:D0:82:FE:A6:7A:ED" }, "key_size": 2048, "validity": { "not_valid_after": "2024-04-12 17:44:19", "not_valid_before": "2022-04-12 17:44:19" } } TASK [Load certificate YAML to cert_issued variable] *************************** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityInfoAccess": { "critical": false, "value": [ { "location": "http://ipa-ca.test.local/ca/ocsp", "method": "OCSP" } ] }, "authorityKeyIdentifier": { "critical": false, "value": "CF:2A:81:ED:88:55:B9:0E:D1:1B:F8:74:20:A2:91:CD:30:6E:24:02" }, "cRLDistributionPoints": { "critical": false, "value": [ { "crl_issuer": [ { "commonName": "Certificate Authority", "organizationName": "ipaca" } ], "full_name": [ "http://ipa-ca.test.local/ipa/crl/MasterCRL.bin" ] } ] }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": true, "value": [ "digital_signature", "content_commitment", "key_encipherment", "data_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "ipaserver.test.local" }, { "name": "Universal Principal Name (UPN)", "oid": "1.3.6.1.4.1.311.20.2.3", "value": "HTTP/ipaserver.test.local@TEST.LOCAL" }, { "name": "Kerberos principalname", "oid": "1.3.6.1.5.2.2", "value": "HTTP/ipaserver.test.local@TEST.LOCAL" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "F9:06:0D:89:D4:AE:1F:44:3F:F2:25:BF:78:B0:E7:A3:C7:8F:E7:92" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0C:9E:81:06:35:8D:7F:2C:E4:4A:9B:F6:A8:F6:69:70:56:92:16:7B:8C:EB:5A:74:A1:83:93:B3:A6:61:DC:55:6A:B1:D8:48:7F:3C:B5:2A:5A:65:3A:AA:4F:D8:A6:06:99:E5:29:50:09:74:B1:CD:B0:A9:02:F6:6E:B1:79:73:E3:D9:5D:EF:00:4B:0D:F5:6C:4A:88:D4:E8:47:45:B5:97:D7:10:B8:0C:B4:93:AB:C8:45:B7:F1:D2:C5:B4:AF:B6:79:36:8C:11:6E:38:BC:57:18:72:7C:84:B6:1F:85:57:D8:F7:C1:06:10:21:82:33:C2:9C:DC:E9:93:03:74:31:13:AF:8E:2D:34:68:A8:2C:1D:7E:59:DF:AA:C0:AD:FD:8A:7C:91:43:01:B5:8F:4F:16:09:85:1C:B0:F2:AD:D2:5D:1F:C9:3B:83:9B:A7:8B:3C:E1:7E:03:8E:E8:FC:4D:CC:0E:D7:94:E8:2D:BD:D0:EA:1B:3F:65:25:22:50:D6:C3:AE:AC:5B:D5:78:77:64:48:7F:FC:43:4E:6D:6B:4E:BC:0F:00:5B:94:1F:E5:5F:A9:95:D4:AA:1B:A1:7D:E4:03:7A:9C:59:BB:E8:94:62:76:D7:17:20:EE:40:FD:2E:C4:E2:B0:D1:A6:25:26:64:42:FE:D7:5F:D8:79:40:83:14:DF:BD:26:8D:22:75:C0:86:F0:21:35:BE:A0:2A:DA:69:56:F4:60:28:87:E9:6B:CF:74:48:43:19:78:1A:4A:1B:F5:7A:A7:CE:6F:D1:5B:5F:B7:D9:B0:30:EC:8A:92:5F:FA:34:41:18:DC:80:59:79:6A:2D:2D:C1:75:B3:5A:FB:22:8B:45:32:C7:C6:1F:34:2D:B2:A5:3D:8B:83:CD:08:A2:AB:2D:6E:44:AB:EF:42:F4:E4:66:0B:F5:9C:DE:2B:A2:1C:71:62:B1:85:AE:E4:37:BF:2F:3A:B0:FC:20:BA:2A:11:A4:BB:38:DC:E5:32:D0:82:FE:A6:7A:ED" }, "subject": [ { "name": "organizationName", "oid": "2.5.4.10", "value": "TEST.LOCAL" }, { "name": "commonName", "oid": "2.5.4.3", "value": "ipaserver.test.local" } ], "validity": { "not_valid_after": "2024-04-12 17:44:19", "not_valid_before": "2022-04-12 17:44:19" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/groupcert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.104200", "end": "2022-04-12 17:44:38.826836", "rc": 0, "start": "2022-04-12 17:44:38.722636" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=98 changed=31 unreachable=0 failed=0 skipped=35 rescued=0 ignored=0 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---