[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var 
naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This 
feature will be removed from ansible-core in version 2.19. Deprecation warnings
 can be disabled by setting deprecation_warnings=False in ansible.cfg.
ansible-playbook [core 2.17.2]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
  ansible collection location = /tmp/tmp.xrVGQnknSk
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.12.4 (main, Jul 17 2024, 00:00:00) [GCC 14.1.1 20240607 (Red Hat 14.1.1-5)] (/usr/bin/python3.12)
  jinja version = 3.1.4
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
running playbook inside collection fedora.linux_system_roles
redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug
redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug
redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.

PLAYBOOK: tests_fs_attrs.yml ***************************************************
5 plays in /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml

PLAY [Ensure UID and GID exists] ***********************************************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2
Saturday 27 July 2024  08:36:32 -0400 (0:00:00.006)       0:00:00.007 ********* 
[WARNING]: Platform linux on host managed_node1 is using the discovered Python
interpreter at /usr/bin/python3.12, but future installation of another Python
interpreter could change the meaning of that path. See
https://docs.ansible.com/ansible-
core/2.17/reference_appendices/interpreter_discovery.html for more information.
ok: [managed_node1]

TASK [Ensure user exists] ******************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5
Saturday 27 July 2024  08:36:33 -0400 (0:00:01.140)       0:00:01.147 ********* 
changed: [managed_node1] => {
    "changed": true,
    "comment": "",
    "create_home": true,
    "group": 1040,
    "home": "/home/user1",
    "name": "user1",
    "shell": "/bin/bash",
    "state": "present",
    "system": false,
    "uid": 1040
}

TASK [Ensure group "somegroup" exists] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9
Saturday 27 July 2024  08:36:34 -0400 (0:00:00.588)       0:00:01.736 ********* 
changed: [managed_node1] => {
    "changed": true,
    "gid": 1041,
    "name": "somegroup",
    "state": "present",
    "system": false
}

PLAY [Issue certificate setting user/group] ************************************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14
Saturday 27 July 2024  08:36:34 -0400 (0:00:00.494)       0:00:02.230 ********* 
ok: [managed_node1]

TASK [fedora.linux_system_roles.certificate : Set version specific variables] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2
Saturday 27 July 2024  08:36:35 -0400 (0:00:00.852)       0:00:03.083 ********* 
included: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node1

TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2
Saturday 27 July 2024  08:36:35 -0400 (0:00:00.018)       0:00:03.101 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Check if system is ostree] *******
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10
Saturday 27 July 2024  08:36:35 -0400 (0:00:00.020)       0:00:03.122 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "exists": false
    }
}

TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15
Saturday 27 July 2024  08:36:36 -0400 (0:00:00.439)       0:00:03.562 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "__certificate_is_ostree": false
    },
    "changed": false
}

TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19
Saturday 27 July 2024  08:36:36 -0400 (0:00:00.022)       0:00:03.584 ********* 
skipping: [managed_node1] => (item=RedHat.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "__vars_file is file",
    "item": "RedHat.yml",
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=CentOS.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "__vars_file is file",
    "item": "CentOS.yml",
    "skip_reason": "Conditional result was False"
}
ok: [managed_node1] => (item=CentOS_10.yml) => {
    "ansible_facts": {
        "__certificate_certmonger_packages": [
            "certmonger",
            "python3-packaging"
        ]
    },
    "ansible_included_var_files": [
        "/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml"
    ],
    "ansible_loop_var": "item",
    "changed": false,
    "item": "CentOS_10.yml"
}
ok: [managed_node1] => (item=CentOS_10.yml) => {
    "ansible_facts": {
        "__certificate_certmonger_packages": [
            "certmonger",
            "python3-packaging"
        ]
    },
    "ansible_included_var_files": [
        "/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml"
    ],
    "ansible_loop_var": "item",
    "changed": false,
    "item": "CentOS_10.yml"
}

TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5
Saturday 27 July 2024  08:36:36 -0400 (0:00:00.041)       0:00:03.626 ********* 
ok: [managed_node1] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: python3-cryptography python3-dbus python3-pyasn1

TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23
Saturday 27 July 2024  08:36:36 -0400 (0:00:00.802)       0:00:04.428 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: certmonger python3-packaging

TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35
Saturday 27 July 2024  08:36:37 -0400 (0:00:00.716)       0:00:05.145 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "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 [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61
Saturday 27 July 2024  08:36:38 -0400 (0:00:00.468)       0:00:05.613 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "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 [fedora.linux_system_roles.certificate : Ensure provider service is running] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90
Saturday 27 July 2024  08:36:38 -0400 (0:00:00.380)       0:00:05.994 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "enabled": true,
    "name": "certmonger",
    "state": "started",
    "status": {
        "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0",
        "ActiveEnterTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ActiveEnterTimestampMonotonic": "187126755",
        "ActiveExitTimestampMonotonic": "0",
        "ActiveState": "active",
        "After": "network.target syslog.target dbus.socket basic.target systemd-journald.socket sysinit.target system.slice dbus-broker.service",
        "AllowIsolate": "no",
        "AssertResult": "yes",
        "AssertTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "AssertTimestampMonotonic": "187100948",
        "Before": "multi-user.target shutdown.target",
        "BlockIOAccounting": "no",
        "BlockIOWeight": "[not set]",
        "BusName": "org.fedorahosted.certmonger",
        "CPUAccounting": "yes",
        "CPUAffinityFromNUMA": "no",
        "CPUQuotaPerSecUSec": "infinity",
        "CPUQuotaPeriodUSec": "infinity",
        "CPUSchedulingPolicy": "0",
        "CPUSchedulingPriority": "0",
        "CPUSchedulingResetOnFork": "no",
        "CPUShares": "[not set]",
        "CPUUsageNSec": "659303000",
        "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 cap_checkpoint_restore",
        "CleanResult": "success",
        "CollectMode": "inactive",
        "ConditionResult": "yes",
        "ConditionTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ConditionTimestampMonotonic": "187100944",
        "ConfigurationDirectoryMode": "0755",
        "Conflicts": "shutdown.target",
        "ControlGroup": "/system.slice/certmonger.service",
        "ControlGroupId": "4616",
        "ControlPID": "0",
        "CoredumpFilter": "0x33",
        "CoredumpReceive": "no",
        "DefaultDependencies": "yes",
        "DefaultMemoryLow": "0",
        "DefaultMemoryMin": "0",
        "DefaultStartupMemoryLow": "0",
        "Delegate": "no",
        "Description": "Certificate monitoring and PKI enrollment",
        "DevicePolicy": "auto",
        "DynamicUser": "no",
        "EffectiveMemoryHigh": "3700936704",
        "EffectiveMemoryMax": "3700936704",
        "EffectiveTasksMax": "22402",
        "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)",
        "ExecMainCode": "0",
        "ExecMainExitTimestampMonotonic": "0",
        "ExecMainHandoffTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ExecMainHandoffTimestampMonotonic": "187116597",
        "ExecMainPID": "6406",
        "ExecMainStartTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ExecMainStartTimestampMonotonic": "187102126",
        "ExecMainStatus": "0",
        "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-07-27 08:36:11 EDT] ; stop_time=[n/a] ; pid=6406 ; code=(null) ; status=0/0 }",
        "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-07-27 08:36:11 EDT] ; stop_time=[n/a] ; pid=6406 ; code=(null) ; status=0/0 }",
        "ExitType": "main",
        "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent",
        "FailureAction": "none",
        "FileDescriptorStoreMax": "0",
        "FileDescriptorStorePreserve": "restart",
        "FinalKillSignal": "9",
        "FragmentPath": "/usr/lib/systemd/system/certmonger.service",
        "FreezerState": "running",
        "GID": "[not set]",
        "GuessMainPID": "yes",
        "IOAccounting": "no",
        "IOReadBytes": "[not set]",
        "IOReadOperations": "[not set]",
        "IOSchedulingClass": "2",
        "IOSchedulingPriority": "4",
        "IOWeight": "[not set]",
        "IOWriteBytes": "[not set]",
        "IOWriteOperations": "[not set]",
        "IPAccounting": "no",
        "IPEgressBytes": "[no data]",
        "IPEgressPackets": "[no data]",
        "IPIngressBytes": "[no data]",
        "IPIngressPackets": "[no data]",
        "Id": "certmonger.service",
        "IgnoreOnIsolate": "no",
        "IgnoreSIGPIPE": "yes",
        "InactiveEnterTimestampMonotonic": "0",
        "InactiveExitTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "InactiveExitTimestampMonotonic": "187104279",
        "InvocationID": "8b59c57bcf434fb0a076dd9b8c05d503",
        "JobRunningTimeoutUSec": "infinity",
        "JobTimeoutAction": "none",
        "JobTimeoutUSec": "infinity",
        "KeyringMode": "private",
        "KillMode": "control-group",
        "KillSignal": "15",
        "LimitAS": "infinity",
        "LimitASSoft": "infinity",
        "LimitCORE": "infinity",
        "LimitCORESoft": "infinity",
        "LimitCPU": "infinity",
        "LimitCPUSoft": "infinity",
        "LimitDATA": "infinity",
        "LimitDATASoft": "infinity",
        "LimitFSIZE": "infinity",
        "LimitFSIZESoft": "infinity",
        "LimitLOCKS": "infinity",
        "LimitLOCKSSoft": "infinity",
        "LimitMEMLOCK": "8388608",
        "LimitMEMLOCKSoft": "8388608",
        "LimitMSGQUEUE": "819200",
        "LimitMSGQUEUESoft": "819200",
        "LimitNICE": "0",
        "LimitNICESoft": "0",
        "LimitNOFILE": "524288",
        "LimitNOFILESoft": "1024",
        "LimitNPROC": "14001",
        "LimitNPROCSoft": "14001",
        "LimitRSS": "infinity",
        "LimitRSSSoft": "infinity",
        "LimitRTPRIO": "0",
        "LimitRTPRIOSoft": "0",
        "LimitRTTIME": "infinity",
        "LimitRTTIMESoft": "infinity",
        "LimitSIGPENDING": "14001",
        "LimitSIGPENDINGSoft": "14001",
        "LimitSTACK": "infinity",
        "LimitSTACKSoft": "8388608",
        "LoadState": "loaded",
        "LockPersonality": "no",
        "LogLevelMax": "-1",
        "LogRateLimitBurst": "0",
        "LogRateLimitIntervalUSec": "0",
        "LogsDirectoryMode": "0755",
        "MainPID": "6406",
        "ManagedOOMMemoryPressure": "auto",
        "ManagedOOMMemoryPressureLimit": "0",
        "ManagedOOMPreference": "none",
        "ManagedOOMSwap": "auto",
        "MemoryAccounting": "yes",
        "MemoryAvailable": "3290615808",
        "MemoryCurrent": "2752512",
        "MemoryDenyWriteExecute": "no",
        "MemoryHigh": "infinity",
        "MemoryKSM": "no",
        "MemoryLimit": "infinity",
        "MemoryLow": "0",
        "MemoryMax": "infinity",
        "MemoryMin": "0",
        "MemoryPeak": "9904128",
        "MemoryPressureThresholdUSec": "200ms",
        "MemoryPressureWatch": "auto",
        "MemorySwapCurrent": "0",
        "MemorySwapMax": "infinity",
        "MemorySwapPeak": "0",
        "MemoryZSwapCurrent": "0",
        "MemoryZSwapMax": "infinity",
        "MemoryZSwapWriteback": "yes",
        "MountAPIVFS": "no",
        "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent",
        "NFileDescriptorStore": "0",
        "NRestarts": "0",
        "NUMAPolicy": "n/a",
        "Names": "certmonger.service",
        "NeedDaemonReload": "no",
        "Nice": "0",
        "NoNewPrivileges": "no",
        "NonBlocking": "no",
        "NotifyAccess": "none",
        "OOMPolicy": "stop",
        "OOMScoreAdjust": "0",
        "OnFailureJobMode": "replace",
        "OnSuccessJobMode": "fail",
        "PIDFile": "/run/certmonger.pid",
        "PartOf": "dbus-broker.service",
        "Perpetual": "no",
        "PrivateDevices": "no",
        "PrivateIPC": "no",
        "PrivateMounts": "no",
        "PrivateNetwork": "no",
        "PrivateTmp": "no",
        "PrivateUsers": "no",
        "ProcSubset": "all",
        "ProtectClock": "no",
        "ProtectControlGroups": "no",
        "ProtectHome": "no",
        "ProtectHostname": "no",
        "ProtectKernelLogs": "no",
        "ProtectKernelModules": "no",
        "ProtectKernelTunables": "no",
        "ProtectProc": "default",
        "ProtectSystem": "no",
        "RefuseManualStart": "no",
        "RefuseManualStop": "no",
        "ReloadResult": "success",
        "ReloadSignal": "1",
        "RemainAfterExit": "no",
        "RemoveIPC": "no",
        "Requires": "sysinit.target dbus.socket system.slice",
        "Restart": "no",
        "RestartKillSignal": "15",
        "RestartMaxDelayUSec": "infinity",
        "RestartMode": "normal",
        "RestartSteps": "0",
        "RestartUSec": "100ms",
        "RestartUSecNext": "100ms",
        "RestrictNamespaces": "no",
        "RestrictRealtime": "no",
        "RestrictSUIDSGID": "no",
        "Result": "success",
        "RootDirectoryStartOnly": "no",
        "RootEphemeral": "no",
        "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent",
        "RuntimeDirectoryMode": "0755",
        "RuntimeDirectoryPreserve": "no",
        "RuntimeMaxUSec": "infinity",
        "RuntimeRandomizedExtraUSec": "0",
        "SameProcessGroup": "no",
        "SecureBits": "0",
        "SendSIGHUP": "no",
        "SendSIGKILL": "yes",
        "SetLoginEnvironment": "no",
        "Slice": "system.slice",
        "StandardError": "inherit",
        "StandardInput": "null",
        "StandardOutput": "journal",
        "StartLimitAction": "none",
        "StartLimitBurst": "5",
        "StartLimitIntervalUSec": "10s",
        "StartupBlockIOWeight": "[not set]",
        "StartupCPUShares": "[not set]",
        "StartupCPUWeight": "[not set]",
        "StartupIOWeight": "[not set]",
        "StartupMemoryHigh": "infinity",
        "StartupMemoryLow": "0",
        "StartupMemoryMax": "infinity",
        "StartupMemorySwapMax": "infinity",
        "StartupMemoryZSwapMax": "infinity",
        "StateChangeTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "StateChangeTimestampMonotonic": "187126755",
        "StateDirectoryMode": "0755",
        "StatusErrno": "0",
        "StopWhenUnneeded": "no",
        "SubState": "running",
        "SuccessAction": "none",
        "SurviveFinalKillSignal": "no",
        "SyslogFacility": "3",
        "SyslogLevel": "6",
        "SyslogLevelPrefix": "yes",
        "SyslogPriority": "30",
        "SystemCallErrorNumber": "2147483646",
        "TTYReset": "no",
        "TTYVHangup": "no",
        "TTYVTDisallocate": "no",
        "TasksAccounting": "yes",
        "TasksCurrent": "1",
        "TasksMax": "22402",
        "TimeoutAbortUSec": "1min 30s",
        "TimeoutCleanUSec": "infinity",
        "TimeoutStartFailureMode": "terminate",
        "TimeoutStartUSec": "1min 30s",
        "TimeoutStopFailureMode": "terminate",
        "TimeoutStopUSec": "1min 30s",
        "TimerSlackNSec": "50000",
        "Transient": "no",
        "Type": "dbus",
        "UID": "[not set]",
        "UMask": "0022",
        "UnitFilePreset": "disabled",
        "UnitFileState": "enabled",
        "UtmpMode": "init",
        "WantedBy": "multi-user.target",
        "WatchdogSignal": "6",
        "WatchdogTimestampMonotonic": "0",
        "WatchdogUSec": "0"
    }
}

TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] *****
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101
Saturday 27 July 2024  08:36:39 -0400 (0:00:00.716)       0:00:06.711 ********* 
changed: [managed_node1] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => {
    "ansible_loop_var": "item",
    "changed": true,
    "item": {
        "ca": "self-sign",
        "dns": "www.example.com",
        "group": "ftp",
        "name": "mycert_fs_attrs",
        "owner": "ftp"
    }
}

MSG:

Certificate requested (new). File attributes updated.
changed: [managed_node1] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => {
    "ansible_loop_var": "item",
    "changed": true,
    "item": {
        "ca": "self-sign",
        "dns": "www.example.com",
        "group": 1041,
        "name": "certid",
        "owner": 1040
    }
}

MSG:

Certificate requested (new). File attributes updated.

TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152
Saturday 27 July 2024  08:36:40 -0400 (0:00:01.578)       0:00:08.290 ********* 
skipping: [managed_node1] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "cert",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": "ftp",
            "name": "mycert_fs_attrs",
            "owner": "ftp"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "cert",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": 1041,
            "name": "certid",
            "owner": 1040
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "key",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": "ftp",
            "name": "mycert_fs_attrs",
            "owner": "ftp"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "key",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": 1041,
            "name": "certid",
            "owner": 1040
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "ca",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": "ftp",
            "name": "mycert_fs_attrs",
            "owner": "ftp"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "ca",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": 1041,
            "name": "certid",
            "owner": 1040
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => {
    "changed": false
}

MSG:

All items skipped

TASK [fedora.linux_system_roles.certificate : Create return data] **************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160
Saturday 27 July 2024  08:36:40 -0400 (0:00:00.042)       0:00:08.333 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ******
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176
Saturday 27 July 2024  08:36:40 -0400 (0:00:00.020)       0:00:08.354 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Remove files] ********************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181
Saturday 27 July 2024  08:36:40 -0400 (0:00:00.021)       0:00:08.375 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "skip_reason": "Conditional result was False"
}

PLAY [Verify certificate] ******************************************************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32
Saturday 27 July 2024  08:36:40 -0400 (0:00:00.039)       0:00:08.414 ********* 
ok: [managed_node1]

TASK [Verify each certificate] *************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61
Saturday 27 July 2024  08:36:41 -0400 (0:00:00.866)       0:00:09.280 ********* 
included: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'})
included: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'})

TASK [Set virtualenv_path] *****************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2
Saturday 27 July 2024  08:36:41 -0400 (0:00:00.046)       0:00:09.327 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "__virtualenv_path": "/tmp/certificate-tests-venv"
    },
    "changed": false
}

TASK [Check if system is ostree] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9
Saturday 27 July 2024  08:36:41 -0400 (0:00:00.017)       0:00:09.345 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Set flag to indicate system is ostree] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14
Saturday 27 July 2024  08:36:41 -0400 (0:00:00.017)       0:00:09.363 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18
Saturday 27 July 2024  08:36:41 -0400 (0:00:00.018)       0:00:09.381 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "ansible_distribution_major_version == \"7\"",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28
Saturday 27 July 2024  08:36:41 -0400 (0:00:00.013)       0:00:09.394 ********* 
ok: [managed_node1] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: python3-cryptography python3-pyasn1

TASK [Retrieve certificate file stats] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38
Saturday 27 July 2024  08:36:42 -0400 (0:00:00.690)       0:00:10.085 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083799.8940127,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "62690a282621d131d3bb51ff886f6ee45d39f52c",
        "ctime": 1722083800.0100133,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 50,
        "gr_name": "ftp",
        "inode": 2224879,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0640",
        "mtime": 1722083799.8920126,
        "nlink": 1,
        "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt",
        "pw_name": "ftp",
        "readable": true,
        "rgrp": true,
        "roth": false,
        "rusr": true,
        "size": 1294,
        "uid": 14,
        "version": "376762312",
        "wgrp": false,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if certificate file exists] ***************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43
Saturday 27 July 2024  08:36:42 -0400 (0:00:00.360)       0:00:10.446 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate file owner and group] *********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49
Saturday 27 July 2024  08:36:42 -0400 (0:00:00.020)       0:00:10.467 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate permissions] ******************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.027)       0:00:10.494 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve key file stats] *************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.026)       0:00:10.520 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083799.8470123,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "b695c697e5f5b40dc726408290b83895be584bd9",
        "ctime": 1722083800.0110133,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 50,
        "gr_name": "ftp",
        "inode": 430102,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0640",
        "mtime": 1722083799.8920126,
        "nlink": 1,
        "path": "/etc/pki/tls/private/mycert_fs_attrs.key",
        "pw_name": "ftp",
        "readable": true,
        "rgrp": true,
        "roth": false,
        "rusr": true,
        "size": 1704,
        "uid": 14,
        "version": "4075806254",
        "wgrp": false,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if key file exists] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.359)       0:00:10.880 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key file owner and group] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.017)       0:00:10.898 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Parse certificate] *******************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.025)       0:00:10.924 ********* 
ok: [managed_node1] => {
    "certificate": {
        "extensions": {
            "authorityKeyIdentifier": {
                "critical": false,
                "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
            },
            "basicConstraints": {
                "critical": true,
                "value": {
                    "ca": false
                }
            },
            "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": false,
                "value": [
                    "digital_signature",
                    "key_encipherment"
                ]
            },
            "subjectAltName": {
                "critical": false,
                "value": [
                    {
                        "name": "DNS",
                        "value": "www.example.com"
                    }
                ]
            },
            "subjectKeyIdentifier": {
                "critical": false,
                "value": "1E:6C:FE:99:93:0D:5C:BF:EE:E0:88:75:3A:A4:DA:DA:D1:5B:56:FF"
            }
        },
        "key_size": 2048,
        "signature_algorithm": {
            "algorithm": "sha256WithRSAEncryption",
            "signature": "73:3E:46:44:86:DB:E5:E4:D9:81:FA:33:19:48:91:01:44:78:98:46:B4:85:60:AA:31:AB:E4:51:24:9C:25:98:94:C2:3B:EF:D8:2D:50:6C:6C:69:A5:69:65:62:4C:54:0D:D1:68:2D:5A:1C:A5:C9:20:04:7D:FA:04:ED:5B:AC:77:07:3B:06:04:36:22:97:4F:C3:96:0C:9F:FB:EB:A4:74:37:11:03:2D:81:F6:9E:F3:23:DF:55:82:98:C0:AD:77:90:1B:93:C3:A3:BF:21:3A:B7:1E:0E:6E:62:CE:CA:22:DB:7D:30:6A:38:83:31:00:3D:42:06:D7:EB:C0:25:3B:57:F4:C0:29:EF:AE:3E:84:F4:74:F7:71:E2:BE:22:7B:E5:11:44:82:76:01:9D:29:69:A6:A6:B7:6D:BC:62:08:08:41:A8:74:F0:12:37:08:ED:9E:E4:1E:08:7D:04:F3:B8:63:6C:33:1A:C4:5A:DD:F8:45:8D:38:EF:02:14:20:A5:2D:6C:39:AC:A2:FD:8F:24:6B:D1:A8:AE:C8:FD:31:D4:67:00:29:4B:32:07:CA:EB:12:08:D1:A7:43:90:47:67:C8:B7:86:94:B5:ED:1F:91:66:13:11:9C:A0:17:7D:8F:F3:A5:B9:50:DF:18:FF:5B:D3:90:61:BB:9F:AA"
        },
        "subject": [
            {
                "name": "commonName",
                "oid": "2.5.4.3",
                "value": "www.example.com"
            }
        ],
        "validity": {
            "not_valid_after": "20250727123611Z",
            "not_valid_before": "20240727123639Z"
        }
    },
    "changed": false
}

TASK [Load certificate YAML to cert_issued variable] ***************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.488)       0:00:11.412 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "cert_issued": {
            "extensions": {
                "authorityKeyIdentifier": {
                    "critical": false,
                    "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
                },
                "basicConstraints": {
                    "critical": true,
                    "value": {
                        "ca": false
                    }
                },
                "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": false,
                    "value": [
                        "digital_signature",
                        "key_encipherment"
                    ]
                },
                "subjectAltName": {
                    "critical": false,
                    "value": [
                        {
                            "name": "DNS",
                            "value": "www.example.com"
                        }
                    ]
                },
                "subjectKeyIdentifier": {
                    "critical": false,
                    "value": "1E:6C:FE:99:93:0D:5C:BF:EE:E0:88:75:3A:A4:DA:DA:D1:5B:56:FF"
                }
            },
            "key_size": 2048,
            "signature_algorithm": {
                "algorithm": "sha256WithRSAEncryption",
                "signature": "73:3E:46:44:86:DB:E5:E4:D9:81:FA:33:19:48:91:01:44:78:98:46:B4:85:60:AA:31:AB:E4:51:24:9C:25:98:94:C2:3B:EF:D8:2D:50:6C:6C:69:A5:69:65:62:4C:54:0D:D1:68:2D:5A:1C:A5:C9:20:04:7D:FA:04:ED:5B:AC:77:07:3B:06:04:36:22:97:4F:C3:96:0C:9F:FB:EB:A4:74:37:11:03:2D:81:F6:9E:F3:23:DF:55:82:98:C0:AD:77:90:1B:93:C3:A3:BF:21:3A:B7:1E:0E:6E:62:CE:CA:22:DB:7D:30:6A:38:83:31:00:3D:42:06:D7:EB:C0:25:3B:57:F4:C0:29:EF:AE:3E:84:F4:74:F7:71:E2:BE:22:7B:E5:11:44:82:76:01:9D:29:69:A6:A6:B7:6D:BC:62:08:08:41:A8:74:F0:12:37:08:ED:9E:E4:1E:08:7D:04:F3:B8:63:6C:33:1A:C4:5A:DD:F8:45:8D:38:EF:02:14:20:A5:2D:6C:39:AC:A2:FD:8F:24:6B:D1:A8:AE:C8:FD:31:D4:67:00:29:4B:32:07:CA:EB:12:08:D1:A7:43:90:47:67:C8:B7:86:94:B5:ED:1F:91:66:13:11:9C:A0:17:7D:8F:F3:A5:B9:50:DF:18:FF:5B:D3:90:61:BB:9F:AA"
            },
            "subject": [
                {
                    "name": "commonName",
                    "oid": "2.5.4.3",
                    "value": "www.example.com"
                }
            ],
            "validity": {
                "not_valid_after": "20250727123611Z",
                "not_valid_before": "20240727123639Z"
            }
        }
    },
    "changed": false
}

TASK [Verify certificate subject] **********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.018)       0:00:11.431 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate SAN] **************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.025)       0:00:11.456 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key size] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112
Saturday 27 July 2024  08:36:43 -0400 (0:00:00.018)       0:00:11.474 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Key Usage] ********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.022)       0:00:11.497 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Extended Key Usage] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.028)       0:00:11.525 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve auto-renew flag] ************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.026)       0:00:11.552 ********* 
ok: [managed_node1] => {
    "changed": false,
    "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'",
    "delta": "0:00:00.036656",
    "end": "2024-07-27 08:36:44.484894",
    "rc": 0,
    "start": "2024-07-27 08:36:44.448238"
}

STDOUT:

yes

TASK [Verify certificate auto-renew flag] **************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.466)       0:00:12.018 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Set virtualenv_path] *****************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.026)       0:00:12.045 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "__virtualenv_path": "/tmp/certificate-tests-venv"
    },
    "changed": false
}

TASK [Check if system is ostree] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.014)       0:00:12.060 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Set flag to indicate system is ostree] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.021)       0:00:12.081 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.017)       0:00:12.099 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "ansible_distribution_major_version == \"7\"",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28
Saturday 27 July 2024  08:36:44 -0400 (0:00:00.015)       0:00:12.114 ********* 
ok: [managed_node1] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: python3-cryptography python3-pyasn1

TASK [Retrieve certificate file stats] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38
Saturday 27 July 2024  08:36:45 -0400 (0:00:00.679)       0:00:12.793 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083800.638017,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "e2187f4fa9ed1e8ed35c320a18eb2943e53fff82",
        "ctime": 1722083800.7500176,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 1041,
        "gr_name": "somegroup",
        "inode": 2224880,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0640",
        "mtime": 1722083800.636017,
        "nlink": 1,
        "path": "/etc/pki/tls/certs/certid.crt",
        "pw_name": "user1",
        "readable": true,
        "rgrp": true,
        "roth": false,
        "rusr": true,
        "size": 1294,
        "uid": 1040,
        "version": "3475353568",
        "wgrp": false,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if certificate file exists] ***************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43
Saturday 27 July 2024  08:36:45 -0400 (0:00:00.357)       0:00:13.151 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate file owner and group] *********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49
Saturday 27 July 2024  08:36:45 -0400 (0:00:00.017)       0:00:13.168 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate permissions] ******************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59
Saturday 27 July 2024  08:36:45 -0400 (0:00:00.028)       0:00:13.197 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve key file stats] *************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65
Saturday 27 July 2024  08:36:45 -0400 (0:00:00.023)       0:00:13.221 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083800.5900166,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "6da6cd32cb73f7cd44a57d71ef06f3ec5452e498",
        "ctime": 1722083800.7500176,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 1041,
        "gr_name": "somegroup",
        "inode": 430103,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0640",
        "mtime": 1722083800.636017,
        "nlink": 1,
        "path": "/etc/pki/tls/private/certid.key",
        "pw_name": "user1",
        "readable": true,
        "rgrp": true,
        "roth": false,
        "rusr": true,
        "size": 1704,
        "uid": 1040,
        "version": "3427694689",
        "wgrp": false,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if key file exists] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.359)       0:00:13.581 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key file owner and group] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.019)       0:00:13.600 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Parse certificate] *******************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.027)       0:00:13.627 ********* 
ok: [managed_node1] => {
    "certificate": {
        "extensions": {
            "authorityKeyIdentifier": {
                "critical": false,
                "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
            },
            "basicConstraints": {
                "critical": true,
                "value": {
                    "ca": false
                }
            },
            "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": false,
                "value": [
                    "digital_signature",
                    "key_encipherment"
                ]
            },
            "subjectAltName": {
                "critical": false,
                "value": [
                    {
                        "name": "DNS",
                        "value": "www.example.com"
                    }
                ]
            },
            "subjectKeyIdentifier": {
                "critical": false,
                "value": "14:C1:C6:88:98:DA:C5:9C:40:A9:EE:E7:26:6D:6A:11:3C:12:4F:B2"
            }
        },
        "key_size": 2048,
        "signature_algorithm": {
            "algorithm": "sha256WithRSAEncryption",
            "signature": "D0:F0:CB:13:F0:96:70:54:F6:52:01:8D:CD:E7:1E:A4:9F:F0:E5:15:65:4E:3D:64:97:81:EF:FE:73:96:CF:84:8F:56:C2:4B:26:93:0F:23:73:28:0E:D5:4E:EE:D2:1B:E0:1E:78:D1:81:D6:C3:2C:AA:F1:91:33:2A:70:39:69:E2:10:64:CB:81:E0:3B:94:B8:BE:FA:F9:C5:6C:3A:8B:65:36:87:48:19:9B:87:E9:03:61:08:FA:D1:5B:17:58:B0:1E:FB:F2:93:DF:71:47:AC:A9:D2:B2:D4:0C:4C:C4:AA:C7:80:16:2C:4A:65:5B:6A:2A:A6:8F:80:9E:10:B2:B6:F1:23:E6:01:B2:67:21:A0:26:EB:15:7C:97:F1:52:A7:CA:A7:68:44:C0:35:57:9A:7A:26:2D:8F:C9:56:AE:E6:EF:EB:30:FE:7A:4A:B8:38:4E:85:A9:62:1B:17:D2:87:AB:AA:6E:42:D5:E3:A7:96:24:8C:6A:42:C3:B1:05:3E:1F:34:F2:AD:9C:05:09:3D:49:7D:B0:C9:AD:D2:8C:33:2A:FC:01:F0:71:FF:39:D4:E3:33:D3:C0:98:E2:CC:71:8C:74:9F:FD:F6:C7:B9:23:AD:DC:64:6D:3B:DF:37:B7:CF:56:4F:63:DB:DB:30:89:E8:6C:19:F4:82:DF:C4"
        },
        "subject": [
            {
                "name": "commonName",
                "oid": "2.5.4.3",
                "value": "www.example.com"
            }
        ],
        "validity": {
            "not_valid_after": "20250727123611Z",
            "not_valid_before": "20240727123640Z"
        }
    },
    "changed": false
}

TASK [Load certificate YAML to cert_issued variable] ***************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.404)       0:00:14.032 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "cert_issued": {
            "extensions": {
                "authorityKeyIdentifier": {
                    "critical": false,
                    "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
                },
                "basicConstraints": {
                    "critical": true,
                    "value": {
                        "ca": false
                    }
                },
                "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": false,
                    "value": [
                        "digital_signature",
                        "key_encipherment"
                    ]
                },
                "subjectAltName": {
                    "critical": false,
                    "value": [
                        {
                            "name": "DNS",
                            "value": "www.example.com"
                        }
                    ]
                },
                "subjectKeyIdentifier": {
                    "critical": false,
                    "value": "14:C1:C6:88:98:DA:C5:9C:40:A9:EE:E7:26:6D:6A:11:3C:12:4F:B2"
                }
            },
            "key_size": 2048,
            "signature_algorithm": {
                "algorithm": "sha256WithRSAEncryption",
                "signature": "D0:F0:CB:13:F0:96:70:54:F6:52:01:8D:CD:E7:1E:A4:9F:F0:E5:15:65:4E:3D:64:97:81:EF:FE:73:96:CF:84:8F:56:C2:4B:26:93:0F:23:73:28:0E:D5:4E:EE:D2:1B:E0:1E:78:D1:81:D6:C3:2C:AA:F1:91:33:2A:70:39:69:E2:10:64:CB:81:E0:3B:94:B8:BE:FA:F9:C5:6C:3A:8B:65:36:87:48:19:9B:87:E9:03:61:08:FA:D1:5B:17:58:B0:1E:FB:F2:93:DF:71:47:AC:A9:D2:B2:D4:0C:4C:C4:AA:C7:80:16:2C:4A:65:5B:6A:2A:A6:8F:80:9E:10:B2:B6:F1:23:E6:01:B2:67:21:A0:26:EB:15:7C:97:F1:52:A7:CA:A7:68:44:C0:35:57:9A:7A:26:2D:8F:C9:56:AE:E6:EF:EB:30:FE:7A:4A:B8:38:4E:85:A9:62:1B:17:D2:87:AB:AA:6E:42:D5:E3:A7:96:24:8C:6A:42:C3:B1:05:3E:1F:34:F2:AD:9C:05:09:3D:49:7D:B0:C9:AD:D2:8C:33:2A:FC:01:F0:71:FF:39:D4:E3:33:D3:C0:98:E2:CC:71:8C:74:9F:FD:F6:C7:B9:23:AD:DC:64:6D:3B:DF:37:B7:CF:56:4F:63:DB:DB:30:89:E8:6C:19:F4:82:DF:C4"
            },
            "subject": [
                {
                    "name": "commonName",
                    "oid": "2.5.4.3",
                    "value": "www.example.com"
                }
            ],
            "validity": {
                "not_valid_after": "20250727123611Z",
                "not_valid_before": "20240727123640Z"
            }
        }
    },
    "changed": false
}

TASK [Verify certificate subject] **********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.018)       0:00:14.051 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate SAN] **************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.025)       0:00:14.076 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key size] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.020)       0:00:14.096 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Key Usage] ********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.025)       0:00:14.122 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Extended Key Usage] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.028)       0:00:14.151 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve auto-renew flag] ************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143
Saturday 27 July 2024  08:36:46 -0400 (0:00:00.029)       0:00:14.180 ********* 
ok: [managed_node1] => {
    "changed": false,
    "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'",
    "delta": "0:00:00.038852",
    "end": "2024-07-27 08:36:47.039261",
    "rc": 0,
    "start": "2024-07-27 08:36:47.000409"
}

STDOUT:

yes

TASK [Verify certificate auto-renew flag] **************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152
Saturday 27 July 2024  08:36:47 -0400 (0:00:00.387)       0:00:14.568 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

PLAY [Issue certificate setting user/group/mode] *******************************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67
Saturday 27 July 2024  08:36:47 -0400 (0:00:00.039)       0:00:14.607 ********* 
ok: [managed_node1]

TASK [fedora.linux_system_roles.certificate : Set version specific variables] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2
Saturday 27 July 2024  08:36:48 -0400 (0:00:00.884)       0:00:15.492 ********* 
included: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node1

TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2
Saturday 27 July 2024  08:36:48 -0400 (0:00:00.017)       0:00:15.510 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Check if system is ostree] *******
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10
Saturday 27 July 2024  08:36:48 -0400 (0:00:00.022)       0:00:15.532 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15
Saturday 27 July 2024  08:36:48 -0400 (0:00:00.019)       0:00:15.552 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19
Saturday 27 July 2024  08:36:48 -0400 (0:00:00.018)       0:00:15.570 ********* 
skipping: [managed_node1] => (item=RedHat.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "__vars_file is file",
    "item": "RedHat.yml",
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=CentOS.yml)  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "__vars_file is file",
    "item": "CentOS.yml",
    "skip_reason": "Conditional result was False"
}
ok: [managed_node1] => (item=CentOS_10.yml) => {
    "ansible_facts": {
        "__certificate_certmonger_packages": [
            "certmonger",
            "python3-packaging"
        ]
    },
    "ansible_included_var_files": [
        "/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml"
    ],
    "ansible_loop_var": "item",
    "changed": false,
    "item": "CentOS_10.yml"
}
ok: [managed_node1] => (item=CentOS_10.yml) => {
    "ansible_facts": {
        "__certificate_certmonger_packages": [
            "certmonger",
            "python3-packaging"
        ]
    },
    "ansible_included_var_files": [
        "/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml"
    ],
    "ansible_loop_var": "item",
    "changed": false,
    "item": "CentOS_10.yml"
}

TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5
Saturday 27 July 2024  08:36:48 -0400 (0:00:00.042)       0:00:15.612 ********* 
ok: [managed_node1] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: python3-cryptography python3-dbus python3-pyasn1

TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23
Saturday 27 July 2024  08:36:48 -0400 (0:00:00.695)       0:00:16.308 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: certmonger python3-packaging

TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35
Saturday 27 July 2024  08:36:49 -0400 (0:00:00.704)       0:00:17.012 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "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 [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61
Saturday 27 July 2024  08:36:49 -0400 (0:00:00.384)       0:00:17.396 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "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 [fedora.linux_system_roles.certificate : Ensure provider service is running] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90
Saturday 27 July 2024  08:36:50 -0400 (0:00:00.382)       0:00:17.779 ********* 
ok: [managed_node1] => (item=certmonger) => {
    "__certificate_provider": "certmonger",
    "ansible_loop_var": "__certificate_provider",
    "changed": false,
    "enabled": true,
    "name": "certmonger",
    "state": "started",
    "status": {
        "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0",
        "ActiveEnterTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ActiveEnterTimestampMonotonic": "187126755",
        "ActiveExitTimestampMonotonic": "0",
        "ActiveState": "active",
        "After": "network.target syslog.target dbus.socket basic.target systemd-journald.socket sysinit.target system.slice dbus-broker.service",
        "AllowIsolate": "no",
        "AssertResult": "yes",
        "AssertTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "AssertTimestampMonotonic": "187100948",
        "Before": "multi-user.target shutdown.target",
        "BlockIOAccounting": "no",
        "BlockIOWeight": "[not set]",
        "BusName": "org.fedorahosted.certmonger",
        "CPUAccounting": "yes",
        "CPUAffinityFromNUMA": "no",
        "CPUQuotaPerSecUSec": "infinity",
        "CPUQuotaPeriodUSec": "infinity",
        "CPUSchedulingPolicy": "0",
        "CPUSchedulingPriority": "0",
        "CPUSchedulingResetOnFork": "no",
        "CPUShares": "[not set]",
        "CPUUsageNSec": "1005397000",
        "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 cap_checkpoint_restore",
        "CleanResult": "success",
        "CollectMode": "inactive",
        "ConditionResult": "yes",
        "ConditionTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ConditionTimestampMonotonic": "187100944",
        "ConfigurationDirectoryMode": "0755",
        "Conflicts": "shutdown.target",
        "ControlGroup": "/system.slice/certmonger.service",
        "ControlGroupId": "4616",
        "ControlPID": "0",
        "CoredumpFilter": "0x33",
        "CoredumpReceive": "no",
        "DefaultDependencies": "yes",
        "DefaultMemoryLow": "0",
        "DefaultMemoryMin": "0",
        "DefaultStartupMemoryLow": "0",
        "Delegate": "no",
        "Description": "Certificate monitoring and PKI enrollment",
        "DevicePolicy": "auto",
        "DynamicUser": "no",
        "EffectiveMemoryHigh": "3700936704",
        "EffectiveMemoryMax": "3700936704",
        "EffectiveTasksMax": "22402",
        "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)",
        "ExecMainCode": "0",
        "ExecMainExitTimestampMonotonic": "0",
        "ExecMainHandoffTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ExecMainHandoffTimestampMonotonic": "187116597",
        "ExecMainPID": "6406",
        "ExecMainStartTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "ExecMainStartTimestampMonotonic": "187102126",
        "ExecMainStatus": "0",
        "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-07-27 08:36:11 EDT] ; stop_time=[n/a] ; pid=6406 ; code=(null) ; status=0/0 }",
        "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-07-27 08:36:11 EDT] ; stop_time=[n/a] ; pid=6406 ; code=(null) ; status=0/0 }",
        "ExitType": "main",
        "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent",
        "FailureAction": "none",
        "FileDescriptorStoreMax": "0",
        "FileDescriptorStorePreserve": "restart",
        "FinalKillSignal": "9",
        "FragmentPath": "/usr/lib/systemd/system/certmonger.service",
        "FreezerState": "running",
        "GID": "[not set]",
        "GuessMainPID": "yes",
        "IOAccounting": "no",
        "IOReadBytes": "[not set]",
        "IOReadOperations": "[not set]",
        "IOSchedulingClass": "2",
        "IOSchedulingPriority": "4",
        "IOWeight": "[not set]",
        "IOWriteBytes": "[not set]",
        "IOWriteOperations": "[not set]",
        "IPAccounting": "no",
        "IPEgressBytes": "[no data]",
        "IPEgressPackets": "[no data]",
        "IPIngressBytes": "[no data]",
        "IPIngressPackets": "[no data]",
        "Id": "certmonger.service",
        "IgnoreOnIsolate": "no",
        "IgnoreSIGPIPE": "yes",
        "InactiveEnterTimestampMonotonic": "0",
        "InactiveExitTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "InactiveExitTimestampMonotonic": "187104279",
        "InvocationID": "8b59c57bcf434fb0a076dd9b8c05d503",
        "JobRunningTimeoutUSec": "infinity",
        "JobTimeoutAction": "none",
        "JobTimeoutUSec": "infinity",
        "KeyringMode": "private",
        "KillMode": "control-group",
        "KillSignal": "15",
        "LimitAS": "infinity",
        "LimitASSoft": "infinity",
        "LimitCORE": "infinity",
        "LimitCORESoft": "infinity",
        "LimitCPU": "infinity",
        "LimitCPUSoft": "infinity",
        "LimitDATA": "infinity",
        "LimitDATASoft": "infinity",
        "LimitFSIZE": "infinity",
        "LimitFSIZESoft": "infinity",
        "LimitLOCKS": "infinity",
        "LimitLOCKSSoft": "infinity",
        "LimitMEMLOCK": "8388608",
        "LimitMEMLOCKSoft": "8388608",
        "LimitMSGQUEUE": "819200",
        "LimitMSGQUEUESoft": "819200",
        "LimitNICE": "0",
        "LimitNICESoft": "0",
        "LimitNOFILE": "524288",
        "LimitNOFILESoft": "1024",
        "LimitNPROC": "14001",
        "LimitNPROCSoft": "14001",
        "LimitRSS": "infinity",
        "LimitRSSSoft": "infinity",
        "LimitRTPRIO": "0",
        "LimitRTPRIOSoft": "0",
        "LimitRTTIME": "infinity",
        "LimitRTTIMESoft": "infinity",
        "LimitSIGPENDING": "14001",
        "LimitSIGPENDINGSoft": "14001",
        "LimitSTACK": "infinity",
        "LimitSTACKSoft": "8388608",
        "LoadState": "loaded",
        "LockPersonality": "no",
        "LogLevelMax": "-1",
        "LogRateLimitBurst": "0",
        "LogRateLimitIntervalUSec": "0",
        "LogsDirectoryMode": "0755",
        "MainPID": "6406",
        "ManagedOOMMemoryPressure": "auto",
        "ManagedOOMMemoryPressureLimit": "0",
        "ManagedOOMPreference": "none",
        "ManagedOOMSwap": "auto",
        "MemoryAccounting": "yes",
        "MemoryAvailable": "3272929280",
        "MemoryCurrent": "2854912",
        "MemoryDenyWriteExecute": "no",
        "MemoryHigh": "infinity",
        "MemoryKSM": "no",
        "MemoryLimit": "infinity",
        "MemoryLow": "0",
        "MemoryMax": "infinity",
        "MemoryMin": "0",
        "MemoryPeak": "9904128",
        "MemoryPressureThresholdUSec": "200ms",
        "MemoryPressureWatch": "auto",
        "MemorySwapCurrent": "0",
        "MemorySwapMax": "infinity",
        "MemorySwapPeak": "0",
        "MemoryZSwapCurrent": "0",
        "MemoryZSwapMax": "infinity",
        "MemoryZSwapWriteback": "yes",
        "MountAPIVFS": "no",
        "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent",
        "NFileDescriptorStore": "0",
        "NRestarts": "0",
        "NUMAPolicy": "n/a",
        "Names": "certmonger.service",
        "NeedDaemonReload": "no",
        "Nice": "0",
        "NoNewPrivileges": "no",
        "NonBlocking": "no",
        "NotifyAccess": "none",
        "OOMPolicy": "stop",
        "OOMScoreAdjust": "0",
        "OnFailureJobMode": "replace",
        "OnSuccessJobMode": "fail",
        "PIDFile": "/run/certmonger.pid",
        "PartOf": "dbus-broker.service",
        "Perpetual": "no",
        "PrivateDevices": "no",
        "PrivateIPC": "no",
        "PrivateMounts": "no",
        "PrivateNetwork": "no",
        "PrivateTmp": "no",
        "PrivateUsers": "no",
        "ProcSubset": "all",
        "ProtectClock": "no",
        "ProtectControlGroups": "no",
        "ProtectHome": "no",
        "ProtectHostname": "no",
        "ProtectKernelLogs": "no",
        "ProtectKernelModules": "no",
        "ProtectKernelTunables": "no",
        "ProtectProc": "default",
        "ProtectSystem": "no",
        "RefuseManualStart": "no",
        "RefuseManualStop": "no",
        "ReloadResult": "success",
        "ReloadSignal": "1",
        "RemainAfterExit": "no",
        "RemoveIPC": "no",
        "Requires": "sysinit.target dbus.socket system.slice",
        "Restart": "no",
        "RestartKillSignal": "15",
        "RestartMaxDelayUSec": "infinity",
        "RestartMode": "normal",
        "RestartSteps": "0",
        "RestartUSec": "100ms",
        "RestartUSecNext": "100ms",
        "RestrictNamespaces": "no",
        "RestrictRealtime": "no",
        "RestrictSUIDSGID": "no",
        "Result": "success",
        "RootDirectoryStartOnly": "no",
        "RootEphemeral": "no",
        "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent",
        "RuntimeDirectoryMode": "0755",
        "RuntimeDirectoryPreserve": "no",
        "RuntimeMaxUSec": "infinity",
        "RuntimeRandomizedExtraUSec": "0",
        "SameProcessGroup": "no",
        "SecureBits": "0",
        "SendSIGHUP": "no",
        "SendSIGKILL": "yes",
        "SetLoginEnvironment": "no",
        "Slice": "system.slice",
        "StandardError": "inherit",
        "StandardInput": "null",
        "StandardOutput": "journal",
        "StartLimitAction": "none",
        "StartLimitBurst": "5",
        "StartLimitIntervalUSec": "10s",
        "StartupBlockIOWeight": "[not set]",
        "StartupCPUShares": "[not set]",
        "StartupCPUWeight": "[not set]",
        "StartupIOWeight": "[not set]",
        "StartupMemoryHigh": "infinity",
        "StartupMemoryLow": "0",
        "StartupMemoryMax": "infinity",
        "StartupMemorySwapMax": "infinity",
        "StartupMemoryZSwapMax": "infinity",
        "StateChangeTimestamp": "Sat 2024-07-27 08:36:11 EDT",
        "StateChangeTimestampMonotonic": "187126755",
        "StateDirectoryMode": "0755",
        "StatusErrno": "0",
        "StopWhenUnneeded": "no",
        "SubState": "running",
        "SuccessAction": "none",
        "SurviveFinalKillSignal": "no",
        "SyslogFacility": "3",
        "SyslogLevel": "6",
        "SyslogLevelPrefix": "yes",
        "SyslogPriority": "30",
        "SystemCallErrorNumber": "2147483646",
        "TTYReset": "no",
        "TTYVHangup": "no",
        "TTYVTDisallocate": "no",
        "TasksAccounting": "yes",
        "TasksCurrent": "1",
        "TasksMax": "22402",
        "TimeoutAbortUSec": "1min 30s",
        "TimeoutCleanUSec": "infinity",
        "TimeoutStartFailureMode": "terminate",
        "TimeoutStartUSec": "1min 30s",
        "TimeoutStopFailureMode": "terminate",
        "TimeoutStopUSec": "1min 30s",
        "TimerSlackNSec": "50000",
        "Transient": "no",
        "Type": "dbus",
        "UID": "[not set]",
        "UMask": "0022",
        "UnitFilePreset": "disabled",
        "UnitFileState": "enabled",
        "UtmpMode": "init",
        "WantedBy": "multi-user.target",
        "WatchdogSignal": "6",
        "WatchdogTimestampMonotonic": "0",
        "WatchdogUSec": "0"
    }
}

TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] *****
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101
Saturday 27 July 2024  08:36:50 -0400 (0:00:00.524)       0:00:18.304 ********* 
changed: [managed_node1] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => {
    "ansible_loop_var": "item",
    "changed": true,
    "item": {
        "ca": "self-sign",
        "dns": "www.example.com",
        "group": "ftp",
        "mode": "0620",
        "name": "mycert_fs_attrs_mode",
        "owner": "ftp"
    }
}

MSG:

Certificate requested (new). File attributes updated.
changed: [managed_node1] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => {
    "ansible_loop_var": "item",
    "changed": true,
    "item": {
        "ca": "self-sign",
        "dns": "www.example.com",
        "mode": "0600",
        "name": "certid_mode"
    }
}

MSG:

Certificate requested (new).

TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] ***
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152
Saturday 27 July 2024  08:36:52 -0400 (0:00:01.502)       0:00:19.806 ********* 
skipping: [managed_node1] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "cert",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": "ftp",
            "mode": "0620",
            "name": "mycert_fs_attrs_mode",
            "owner": "ftp"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "cert",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "mode": "0600",
            "name": "certid_mode"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "key",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": "ftp",
            "mode": "0620",
            "name": "mycert_fs_attrs_mode",
            "owner": "ftp"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "key",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "mode": "0600",
            "name": "certid_mode"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "ca",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "group": "ftp",
            "mode": "0620",
            "name": "mycert_fs_attrs_mode",
            "owner": "ftp"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}])  => {
    "ansible_loop_var": "item",
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "item": [
        "ca",
        {
            "ca": "self-sign",
            "dns": "www.example.com",
            "mode": "0600",
            "name": "certid_mode"
        }
    ],
    "skip_reason": "Conditional result was False"
}
skipping: [managed_node1] => {
    "changed": false
}

MSG:

All items skipped

TASK [fedora.linux_system_roles.certificate : Create return data] **************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160
Saturday 27 July 2024  08:36:52 -0400 (0:00:00.043)       0:00:19.850 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ******
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176
Saturday 27 July 2024  08:36:52 -0400 (0:00:00.019)       0:00:19.870 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "skip_reason": "Conditional result was False"
}

TASK [fedora.linux_system_roles.certificate : Remove files] ********************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181
Saturday 27 July 2024  08:36:52 -0400 (0:00:00.022)       0:00:19.892 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "certificate_test_mode | d(false)",
    "skip_reason": "Conditional result was False"
}

PLAY [Verify certificate] ******************************************************

TASK [Gathering Facts] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85
Saturday 27 July 2024  08:36:52 -0400 (0:00:00.040)       0:00:19.932 ********* 
ok: [managed_node1]

TASK [Verify each certificate] *************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112
Saturday 27 July 2024  08:36:53 -0400 (0:00:00.890)       0:00:20.823 ********* 
included: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs_mode.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0620'})
included: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 => (item={'path': '/etc/pki/tls/certs/certid_mode.crt', 'key_path': '/etc/pki/tls/private/certid_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'mode': '0600'})

TASK [Set virtualenv_path] *****************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2
Saturday 27 July 2024  08:36:53 -0400 (0:00:00.047)       0:00:20.871 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "__virtualenv_path": "/tmp/certificate-tests-venv"
    },
    "changed": false
}

TASK [Check if system is ostree] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9
Saturday 27 July 2024  08:36:53 -0400 (0:00:00.015)       0:00:20.886 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Set flag to indicate system is ostree] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14
Saturday 27 July 2024  08:36:53 -0400 (0:00:00.019)       0:00:20.906 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18
Saturday 27 July 2024  08:36:53 -0400 (0:00:00.022)       0:00:20.928 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "ansible_distribution_major_version == \"7\"",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28
Saturday 27 July 2024  08:36:53 -0400 (0:00:00.014)       0:00:20.943 ********* 
ok: [managed_node1] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: python3-cryptography python3-pyasn1

TASK [Retrieve certificate file stats] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38
Saturday 27 July 2024  08:36:54 -0400 (0:00:00.688)       0:00:21.632 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083811.4070804,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "9768d333a3ca14a2d88cbef6bec4fa71e0d90594",
        "ctime": 1722083811.526081,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 50,
        "gr_name": "ftp",
        "inode": 2224881,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0620",
        "mtime": 1722083811.4040804,
        "nlink": 1,
        "path": "/etc/pki/tls/certs/mycert_fs_attrs_mode.crt",
        "pw_name": "ftp",
        "readable": true,
        "rgrp": false,
        "roth": false,
        "rusr": true,
        "size": 1294,
        "uid": 14,
        "version": "2682522706",
        "wgrp": true,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if certificate file exists] ***************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43
Saturday 27 July 2024  08:36:54 -0400 (0:00:00.360)       0:00:21.993 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate file owner and group] *********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49
Saturday 27 July 2024  08:36:54 -0400 (0:00:00.019)       0:00:22.012 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate permissions] ******************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59
Saturday 27 July 2024  08:36:54 -0400 (0:00:00.028)       0:00:22.040 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve key file stats] *************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65
Saturday 27 July 2024  08:36:54 -0400 (0:00:00.025)       0:00:22.066 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083811.36108,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "cb5bcc43a7db7fe24a990baae2b71968d2aba832",
        "ctime": 1722083811.527081,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 50,
        "gr_name": "ftp",
        "inode": 430105,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0620",
        "mtime": 1722083811.4040804,
        "nlink": 1,
        "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key",
        "pw_name": "ftp",
        "readable": true,
        "rgrp": false,
        "roth": false,
        "rusr": true,
        "size": 1704,
        "uid": 14,
        "version": "3965089870",
        "wgrp": true,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if key file exists] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70
Saturday 27 July 2024  08:36:54 -0400 (0:00:00.365)       0:00:22.431 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key file owner and group] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76
Saturday 27 July 2024  08:36:54 -0400 (0:00:00.018)       0:00:22.450 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Parse certificate] *******************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.028)       0:00:22.478 ********* 
ok: [managed_node1] => {
    "certificate": {
        "extensions": {
            "authorityKeyIdentifier": {
                "critical": false,
                "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
            },
            "basicConstraints": {
                "critical": true,
                "value": {
                    "ca": false
                }
            },
            "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": false,
                "value": [
                    "digital_signature",
                    "key_encipherment"
                ]
            },
            "subjectAltName": {
                "critical": false,
                "value": [
                    {
                        "name": "DNS",
                        "value": "www.example.com"
                    }
                ]
            },
            "subjectKeyIdentifier": {
                "critical": false,
                "value": "93:F7:D1:51:D8:3B:34:6E:9A:11:5D:36:95:BB:D6:6D:C8:C3:20:66"
            }
        },
        "key_size": 2048,
        "signature_algorithm": {
            "algorithm": "sha256WithRSAEncryption",
            "signature": "D5:0B:99:52:0D:E2:E4:B1:79:8C:82:A0:C6:83:F6:C0:EF:72:32:CF:6C:4D:72:76:08:D9:86:F3:63:5A:D2:47:39:A9:BF:08:76:6A:E9:D1:88:8F:05:27:CB:3A:6A:44:8A:28:79:98:7F:3A:56:B6:CD:90:37:83:3D:0C:6D:18:C0:90:5F:08:E5:31:FA:92:FC:C9:F3:5D:19:7F:40:10:91:56:A1:65:0E:93:C4:6C:07:F4:17:DA:15:28:78:79:5A:8C:E4:17:77:ED:AA:31:BB:2B:F4:22:9D:FB:95:FB:DA:62:F9:3E:82:12:AE:4A:37:16:61:33:7A:3B:23:A9:4F:F0:14:47:1E:A6:35:F9:D0:14:8F:BC:88:17:5B:CC:0F:A7:28:21:E0:62:08:91:18:0D:12:38:F3:EE:1B:65:53:5C:C9:5B:C6:E4:C0:79:BA:16:FC:CB:1C:44:A9:DB:BF:C3:8F:EE:A9:DB:4D:A0:FB:58:70:44:8B:20:86:51:AF:56:94:F9:85:AD:4C:0E:D4:22:BE:56:E8:3B:00:60:02:C6:4D:E4:6B:3B:C8:FA:82:5C:2A:2E:53:95:C4:83:74:DA:87:D9:BE:38:A3:54:42:EC:E2:89:E0:9D:99:47:41:8D:E9:B3:AB:28:26:96:99:7D:A5:29:CE:0C:17:C4"
        },
        "subject": [
            {
                "name": "commonName",
                "oid": "2.5.4.3",
                "value": "www.example.com"
            }
        ],
        "validity": {
            "not_valid_after": "20250727123611Z",
            "not_valid_before": "20240727123651Z"
        }
    },
    "changed": false
}

TASK [Load certificate YAML to cert_issued variable] ***************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.396)       0:00:22.875 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "cert_issued": {
            "extensions": {
                "authorityKeyIdentifier": {
                    "critical": false,
                    "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
                },
                "basicConstraints": {
                    "critical": true,
                    "value": {
                        "ca": false
                    }
                },
                "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": false,
                    "value": [
                        "digital_signature",
                        "key_encipherment"
                    ]
                },
                "subjectAltName": {
                    "critical": false,
                    "value": [
                        {
                            "name": "DNS",
                            "value": "www.example.com"
                        }
                    ]
                },
                "subjectKeyIdentifier": {
                    "critical": false,
                    "value": "93:F7:D1:51:D8:3B:34:6E:9A:11:5D:36:95:BB:D6:6D:C8:C3:20:66"
                }
            },
            "key_size": 2048,
            "signature_algorithm": {
                "algorithm": "sha256WithRSAEncryption",
                "signature": "D5:0B:99:52:0D:E2:E4:B1:79:8C:82:A0:C6:83:F6:C0:EF:72:32:CF:6C:4D:72:76:08:D9:86:F3:63:5A:D2:47:39:A9:BF:08:76:6A:E9:D1:88:8F:05:27:CB:3A:6A:44:8A:28:79:98:7F:3A:56:B6:CD:90:37:83:3D:0C:6D:18:C0:90:5F:08:E5:31:FA:92:FC:C9:F3:5D:19:7F:40:10:91:56:A1:65:0E:93:C4:6C:07:F4:17:DA:15:28:78:79:5A:8C:E4:17:77:ED:AA:31:BB:2B:F4:22:9D:FB:95:FB:DA:62:F9:3E:82:12:AE:4A:37:16:61:33:7A:3B:23:A9:4F:F0:14:47:1E:A6:35:F9:D0:14:8F:BC:88:17:5B:CC:0F:A7:28:21:E0:62:08:91:18:0D:12:38:F3:EE:1B:65:53:5C:C9:5B:C6:E4:C0:79:BA:16:FC:CB:1C:44:A9:DB:BF:C3:8F:EE:A9:DB:4D:A0:FB:58:70:44:8B:20:86:51:AF:56:94:F9:85:AD:4C:0E:D4:22:BE:56:E8:3B:00:60:02:C6:4D:E4:6B:3B:C8:FA:82:5C:2A:2E:53:95:C4:83:74:DA:87:D9:BE:38:A3:54:42:EC:E2:89:E0:9D:99:47:41:8D:E9:B3:AB:28:26:96:99:7D:A5:29:CE:0C:17:C4"
            },
            "subject": [
                {
                    "name": "commonName",
                    "oid": "2.5.4.3",
                    "value": "www.example.com"
                }
            ],
            "validity": {
                "not_valid_after": "20250727123611Z",
                "not_valid_before": "20240727123651Z"
            }
        }
    },
    "changed": false
}

TASK [Verify certificate subject] **********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.019)       0:00:22.894 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate SAN] **************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.025)       0:00:22.919 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key size] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.019)       0:00:22.939 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Key Usage] ********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.023)       0:00:22.963 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Extended Key Usage] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.029)       0:00:22.992 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve auto-renew flag] ************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.026)       0:00:23.018 ********* 
ok: [managed_node1] => {
    "changed": false,
    "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'",
    "delta": "0:00:00.039252",
    "end": "2024-07-27 08:36:55.877881",
    "rc": 0,
    "start": "2024-07-27 08:36:55.838629"
}

STDOUT:

yes

TASK [Verify certificate auto-renew flag] **************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.388)       0:00:23.406 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Set virtualenv_path] *****************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.024)       0:00:23.430 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "__virtualenv_path": "/tmp/certificate-tests-venv"
    },
    "changed": false
}

TASK [Check if system is ostree] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.016)       0:00:23.447 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Set flag to indicate system is ostree] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14
Saturday 27 July 2024  08:36:55 -0400 (0:00:00.017)       0:00:23.464 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "not __certificate_is_ostree is defined",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18
Saturday 27 July 2024  08:36:56 -0400 (0:00:00.016)       0:00:23.480 ********* 
skipping: [managed_node1] => {
    "changed": false,
    "false_condition": "ansible_distribution_major_version == \"7\"",
    "skip_reason": "Conditional result was False"
}

TASK [Ensure python3 is installed] *********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28
Saturday 27 July 2024  08:36:56 -0400 (0:00:00.014)       0:00:23.494 ********* 
ok: [managed_node1] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do
lsrpackages: python3-cryptography python3-pyasn1

TASK [Retrieve certificate file stats] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38
Saturday 27 July 2024  08:36:56 -0400 (0:00:00.681)       0:00:24.176 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083812.1550846,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "518ba426be4cc7be3b3639cf37a9efb981b97e83",
        "ctime": 1722083812.1540847,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 0,
        "gr_name": "root",
        "inode": 2224882,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0600",
        "mtime": 1722083812.1540847,
        "nlink": 1,
        "path": "/etc/pki/tls/certs/certid_mode.crt",
        "pw_name": "root",
        "readable": true,
        "rgrp": false,
        "roth": false,
        "rusr": true,
        "size": 1294,
        "uid": 0,
        "version": "3765632856",
        "wgrp": false,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if certificate file exists] ***************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.360)       0:00:24.537 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate file owner and group] *********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.018)       0:00:24.555 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate permissions] ******************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.026)       0:00:24.582 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve key file stats] *************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.023)       0:00:24.606 ********* 
ok: [managed_node1] => {
    "changed": false,
    "stat": {
        "atime": 1722083812.1070843,
        "attr_flags": "",
        "attributes": [],
        "block_size": 4096,
        "blocks": 8,
        "charset": "us-ascii",
        "checksum": "5d4ea89ecc16b51c5ebcf0c2c01c848250d900c5",
        "ctime": 1722083812.1540847,
        "dev": 51714,
        "device_type": 0,
        "executable": false,
        "exists": true,
        "gid": 0,
        "gr_name": "root",
        "inode": 430104,
        "isblk": false,
        "ischr": false,
        "isdir": false,
        "isfifo": false,
        "isgid": false,
        "islnk": false,
        "isreg": true,
        "issock": false,
        "isuid": false,
        "mimetype": "text/plain",
        "mode": "0600",
        "mtime": 1722083812.1540847,
        "nlink": 1,
        "path": "/etc/pki/tls/private/certid_mode.key",
        "pw_name": "root",
        "readable": true,
        "rgrp": false,
        "roth": false,
        "rusr": true,
        "size": 1704,
        "uid": 0,
        "version": "3116245173",
        "wgrp": false,
        "woth": false,
        "writeable": true,
        "wusr": true,
        "xgrp": false,
        "xoth": false,
        "xusr": false
    }
}

TASK [Verify if key file exists] ***********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.363)       0:00:24.969 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key file owner and group] *****************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.017)       0:00:24.987 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Parse certificate] *******************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.025)       0:00:25.013 ********* 
ok: [managed_node1] => {
    "certificate": {
        "extensions": {
            "authorityKeyIdentifier": {
                "critical": false,
                "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
            },
            "basicConstraints": {
                "critical": true,
                "value": {
                    "ca": false
                }
            },
            "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": false,
                "value": [
                    "digital_signature",
                    "key_encipherment"
                ]
            },
            "subjectAltName": {
                "critical": false,
                "value": [
                    {
                        "name": "DNS",
                        "value": "www.example.com"
                    }
                ]
            },
            "subjectKeyIdentifier": {
                "critical": false,
                "value": "E4:22:8C:F3:A5:42:1E:6B:B9:6B:55:E1:1D:BB:3C:1E:78:89:60:32"
            }
        },
        "key_size": 2048,
        "signature_algorithm": {
            "algorithm": "sha256WithRSAEncryption",
            "signature": "4D:D3:6C:43:35:D8:E7:B3:0D:27:EE:9C:DD:B7:FE:78:41:B7:7B:C5:34:17:93:62:64:9C:05:D8:83:5C:FD:1B:59:CB:76:78:EF:2D:3D:AB:F6:E6:2B:A1:B3:68:A9:78:EF:7E:D5:EC:1C:D7:6A:FB:EE:82:3D:D9:DE:65:4F:23:0E:47:ED:F0:3F:D0:0C:A5:D3:54:AE:CE:5F:A2:13:E2:7A:35:7E:A8:E0:82:32:9A:3A:A9:06:56:2D:5E:CE:7D:60:EA:1F:96:BC:67:58:CE:CA:E8:8A:1D:C2:E7:01:B7:F8:2B:86:8C:08:36:12:36:0E:38:FC:93:46:96:47:CE:B6:38:40:CA:22:93:01:B6:E6:2E:95:A2:A0:92:B4:9A:23:DE:07:E9:D0:71:72:C4:39:EA:81:68:E2:0C:C8:C4:BA:8B:1B:23:A8:5E:C1:9E:FD:D2:5F:C9:B3:D3:54:AE:9D:15:C7:7E:8E:A7:9D:AF:06:4D:F8:43:87:D0:9D:6B:D7:8F:DA:2A:7C:C5:91:1D:D1:66:45:4D:83:14:F8:63:B0:3F:90:7A:A7:44:EC:97:8A:87:EF:63:AB:6B:3E:3E:4E:1F:E9:D7:31:E2:C8:B9:AC:2D:AD:0F:A4:07:59:35:A9:6A:05:7A:53:FF:AA:1D:7F:B2:36:0C:3C:28:EA:58"
        },
        "subject": [
            {
                "name": "commonName",
                "oid": "2.5.4.3",
                "value": "www.example.com"
            }
        ],
        "validity": {
            "not_valid_after": "20250727123611Z",
            "not_valid_before": "20240727123652Z"
        }
    },
    "changed": false
}

TASK [Load certificate YAML to cert_issued variable] ***************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.405)       0:00:25.419 ********* 
ok: [managed_node1] => {
    "ansible_facts": {
        "cert_issued": {
            "extensions": {
                "authorityKeyIdentifier": {
                    "critical": false,
                    "value": "C3:60:FB:9A:64:E5:B6:5A:C6:42:82:49:75:DE:7D:E1:9D:75:B5:AD"
                },
                "basicConstraints": {
                    "critical": true,
                    "value": {
                        "ca": false
                    }
                },
                "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": false,
                    "value": [
                        "digital_signature",
                        "key_encipherment"
                    ]
                },
                "subjectAltName": {
                    "critical": false,
                    "value": [
                        {
                            "name": "DNS",
                            "value": "www.example.com"
                        }
                    ]
                },
                "subjectKeyIdentifier": {
                    "critical": false,
                    "value": "E4:22:8C:F3:A5:42:1E:6B:B9:6B:55:E1:1D:BB:3C:1E:78:89:60:32"
                }
            },
            "key_size": 2048,
            "signature_algorithm": {
                "algorithm": "sha256WithRSAEncryption",
                "signature": "4D:D3:6C:43:35:D8:E7:B3:0D:27:EE:9C:DD:B7:FE:78:41:B7:7B:C5:34:17:93:62:64:9C:05:D8:83:5C:FD:1B:59:CB:76:78:EF:2D:3D:AB:F6:E6:2B:A1:B3:68:A9:78:EF:7E:D5:EC:1C:D7:6A:FB:EE:82:3D:D9:DE:65:4F:23:0E:47:ED:F0:3F:D0:0C:A5:D3:54:AE:CE:5F:A2:13:E2:7A:35:7E:A8:E0:82:32:9A:3A:A9:06:56:2D:5E:CE:7D:60:EA:1F:96:BC:67:58:CE:CA:E8:8A:1D:C2:E7:01:B7:F8:2B:86:8C:08:36:12:36:0E:38:FC:93:46:96:47:CE:B6:38:40:CA:22:93:01:B6:E6:2E:95:A2:A0:92:B4:9A:23:DE:07:E9:D0:71:72:C4:39:EA:81:68:E2:0C:C8:C4:BA:8B:1B:23:A8:5E:C1:9E:FD:D2:5F:C9:B3:D3:54:AE:9D:15:C7:7E:8E:A7:9D:AF:06:4D:F8:43:87:D0:9D:6B:D7:8F:DA:2A:7C:C5:91:1D:D1:66:45:4D:83:14:F8:63:B0:3F:90:7A:A7:44:EC:97:8A:87:EF:63:AB:6B:3E:3E:4E:1F:E9:D7:31:E2:C8:B9:AC:2D:AD:0F:A4:07:59:35:A9:6A:05:7A:53:FF:AA:1D:7F:B2:36:0C:3C:28:EA:58"
            },
            "subject": [
                {
                    "name": "commonName",
                    "oid": "2.5.4.3",
                    "value": "www.example.com"
                }
            ],
            "validity": {
                "not_valid_after": "20250727123611Z",
                "not_valid_before": "20240727123652Z"
            }
        }
    },
    "changed": false
}

TASK [Verify certificate subject] **********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.018)       0:00:25.437 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate SAN] **************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104
Saturday 27 July 2024  08:36:57 -0400 (0:00:00.026)       0:00:25.464 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify key size] *********************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112
Saturday 27 July 2024  08:36:58 -0400 (0:00:00.018)       0:00:25.483 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Key Usage] ********************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119
Saturday 27 July 2024  08:36:58 -0400 (0:00:00.023)       0:00:25.506 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Verify certificate Extended Key Usage] ***********************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130
Saturday 27 July 2024  08:36:58 -0400 (0:00:00.027)       0:00:25.533 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

TASK [Retrieve auto-renew flag] ************************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143
Saturday 27 July 2024  08:36:58 -0400 (0:00:00.026)       0:00:25.559 ********* 
ok: [managed_node1] => {
    "changed": false,
    "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'",
    "delta": "0:00:00.041515",
    "end": "2024-07-27 08:36:58.426992",
    "rc": 0,
    "start": "2024-07-27 08:36:58.385477"
}

STDOUT:

yes

TASK [Verify certificate auto-renew flag] **************************************
task path: /tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152
Saturday 27 July 2024  08:36:58 -0400 (0:00:00.395)       0:00:25.955 ********* 
ok: [managed_node1] => {
    "changed": false
}

MSG:

All assertions passed

PLAY RECAP *********************************************************************
managed_node1              : ok=101  changed=4    unreachable=0    failed=0    skipped=24   rescued=0    ignored=0   

Saturday 27 July 2024  08:36:58 -0400 (0:00:00.033)       0:00:25.988 ********* 
=============================================================================== 
fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.58s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 
fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.50s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 
Gathering Facts --------------------------------------------------------- 1.14s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 
Gathering Facts --------------------------------------------------------- 0.89s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 
Gathering Facts --------------------------------------------------------- 0.88s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 
Gathering Facts --------------------------------------------------------- 0.87s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 
Gathering Facts --------------------------------------------------------- 0.85s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 
fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.80s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 
fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.72s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 
fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.72s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 
fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.70s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 
fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.70s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 
Ensure python3 is installed --------------------------------------------- 0.69s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 
Ensure python3 is installed --------------------------------------------- 0.69s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 
Ensure python3 is installed --------------------------------------------- 0.68s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 
Ensure python3 is installed --------------------------------------------- 0.68s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 
Ensure user exists ------------------------------------------------------ 0.59s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 
fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.52s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 
Ensure group "somegroup" exists ----------------------------------------- 0.49s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 
Parse certificate ------------------------------------------------------- 0.49s
/tmp/tmp.xrVGQnknSk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86