# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml PLAY [Test role include variable override] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:2 Thursday 25 July 2024 16:33:04 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] META: ran handlers TASK [Create var file in caller that can override the one in called role] ****** task path: /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:6 Thursday 25 July 2024 16:33:05 +0000 (0:00:00.674) 0:00:00.687 ********* changed: [sut -> localhost] => (item=CentOS-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS-9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.5784807-2868-22612493540415/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS_9.yml", "gid": 1001, "group": "jenkins", "item": "CentOS_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.9469714-2868-175124208321738/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS.yml", "gid": 1001, "group": "jenkins", "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.1627512-2868-259052720753120/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/RedHat.yml", "gid": 1001, "group": "jenkins", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.3864074-2868-102644829910605/source", "state": "file", "uid": 1000090000 } TASK [Include role] ************************************************************ task path: /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:43 Thursday 25 July 2024 16:33:06 +0000 (0:00:01.050) 0:00:01.738 ********* TASK [Include role] ************************************************************ task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/tasks/main.yml:4 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.012) 0:00:01.750 ********* TASK [linux-system-roles.nbde_server : Set version specific variables] ********* task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main.yml:6 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.013) 0:00:01.764 ********* included: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml for sut TASK [linux-system-roles.nbde_server : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:2 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.024) 0:00:01.788 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Check if system is ostree] ************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:11 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.011) 0:00:01.799 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.nbde_server : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:16 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.165) 0:00:01.964 ********* ok: [sut] => { "ansible_facts": { "__nbde_server_is_ostree": false }, "changed": false } TASK [linux-system-roles.nbde_server : Set platform/version specific variables] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:20 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.013) 0:00:01.978 ********* ok: [sut] => { "ansible_facts": { "__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": [ "tang" ], "__nbde_server_services": [ "tangd.socket" ], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang" }, "ansible_included_var_files": [ "/WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/vars/default.yml" ], "changed": false } TASK [linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main.yml:9 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.015) 0:00:01.994 ********* included: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml for sut TASK [linux-system-roles.nbde_server : Ensure tang is installed] *************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 Thursday 25 July 2024 16:33:06 +0000 (0:00:00.018) 0:00:02.013 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.nbde_server : Ensure keys are rotated] **************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:9 Thursday 25 July 2024 16:33:07 +0000 (0:00:00.890) 0:00:02.903 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Ensure we have keys] ******************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:18 Thursday 25 July 2024 16:33:07 +0000 (0:00:00.010) 0:00:02.913 ********* changed: [sut] => { "arguments": { "cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update" }, "changed": true, "state": "keys-created" } TASK [linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:27 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.240) 0:00:03.153 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Manage firewall and SELinux for port] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:32 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.009) 0:00:03.163 ********* included: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml for sut TASK [Ensure tang port is labeled tangd_port_t for SELinux] ******************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:2 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.015) 0:00:03.179 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Stat the tangd custom port systemd directory] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:14 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.010) 0:00:03.189 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.nbde_server : Get a list of files in the tangd custom directory] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:19 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.162) 0:00:03.351 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Manage tangd custom port systemd directory] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:35 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.009) 0:00:03.360 ********* ok: [sut] => { "changed": false, "path": "/etc/systemd/system/tangd.socket.d", "state": "absent" } TASK [linux-system-roles.nbde_server : Creates the file with the port entry that we want tangd to listen to] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:46 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.244) 0:00:03.605 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Set flag to to tell main that the port has changed] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:55 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.010) 0:00:03.616 ********* ok: [sut] => { "ansible_facts": { "__nbde_server_port_changed": false }, "changed": false } TASK [Ensure the desired port is added to firewalld] *************************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:61 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.011) 0:00:03.628 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Reload the daemons so the new changes take effect] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:36 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.008) 0:00:03.636 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:41 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.010) 0:00:03.646 ********* ok: [sut] => (item=tangd.socket) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": { "Accept": "yes", "AccessSELinuxContext": "system_u:object_r:tangd_unit_file_t:s0", "ActiveEnterTimestamp": "Thu 2024-07-25 16:32:50 UTC", "ActiveEnterTimestampMonotonic": "458194204", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket system.slice sysinit.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Thu 2024-07-25 16:32:50 UTC", "AssertTimestampMonotonic": "458178819", "Backlog": "4096", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "4482000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "no", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2024-07-25 16:32:50 UTC", "ConditionTimestampMonotonic": "458178757", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlGroupId": "4472", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "Documentation": "\"man:tang(8)\"", "DynamicUser": "no", "ExecStartPre": "{ path=/usr/bin/chown ; argv[]=/usr/bin/chown -R tang:tang /var/db/tang ; ignore_errors=yes ; start_time=[Thu 2024-07-25 16:32:50 UTC] ; stop_time=[Thu 2024-07-25 16:32:50 UTC] ; pid=8929 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FlushPending": "no", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "FreezerState": "running", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Thu 2024-07-25 16:32:50 UTC", "InactiveExitTimestampMonotonic": "458188514", "InvocationID": "73971a23a5d6403597104fafcbceeb0e", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "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": "13964", "LimitNPROCSoft": "13964", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13964", "LimitSIGPENDINGSoft": "13964", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "8192", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PassCredentials": "no", "PassPacketInfo": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "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", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Thu 2024-07-25 16:32:50 UTC", "StateChangeTimestampMonotonic": "458194204", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "22342", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Timestamping": "off", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "sockets.target", "WatchdogSignal": "6", "Writable": "no" } } TASK [caller : Test variable override] ***************************************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/tasks/main.yml:8 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.419) 0:00:04.066 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Cleanup role files] ****************************************************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:50 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.010) 0:00:04.077 ********* included: /WORKDIR/git-include_roleqhe2a55r/tests/tasks/cleanup.yml for sut TASK [Remove control node files/directories] *********************************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/tasks/cleanup.yml:2 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.012) 0:00:04.089 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Remove managed node files/directories] *********************************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/tasks/cleanup.yml:9 Thursday 25 July 2024 16:33:08 +0000 (0:00:00.009) 0:00:04.099 ********* skipping: [sut] => (item={'path': '', 'remove_dir': 'true'}) => { "ansible_loop_var": "item", "changed": false, "item": { "path": "", "remove_dir": "true" }, "skip_reason": "Conditional result was False" } changed: [sut] => (item={'path': '/var/db/tang', 'remove_dir': 'false'}) => { "ansible_loop_var": "item", "changed": true, "cmd": "set -euxo pipefail\nif [ \"false\" = true ]; then\n rm -rf \"/var/db/tang\"\nelse\n rm -rf \"/var/db/tang\"/* \"/var/db/tang\"/.* || :\nfi\n", "delta": "0:00:00.004590", "end": "2024-07-25 16:33:09.202530", "item": { "path": "/var/db/tang", "remove_dir": "false" }, "rc": 0, "start": "2024-07-25 16:33:09.197940" } STDERR: + '[' false = true ']' + rm -rf /var/db/tang/lhnfGvRpH1KP2CU-2k40X4fYZLrpFInVeL-79TPsTtg.jwk /var/db/tang/Un_9vicd5yvvWGMG2WzsN2wAASfuqLpAbANdWzXeg4I.jwk /var/db/tang/. /var/db/tang/.. rm: refusing to remove '.' or '..' directory: skipping '/var/db/tang/.' rm: refusing to remove '.' or '..' directory: skipping '/var/db/tang/..' + : changed: [sut] => (item={'path': '/var/cache/tang', 'remove_dir': 'false'}) => { "ansible_loop_var": "item", "changed": true, "cmd": "set -euxo pipefail\nif [ \"false\" = true ]; then\n rm -rf \"/var/cache/tang\"\nelse\n rm -rf \"/var/cache/tang\"/* \"/var/cache/tang\"/.* || :\nfi\n", "delta": "0:00:00.004276", "end": "2024-07-25 16:33:09.368132", "item": { "path": "/var/cache/tang", "remove_dir": "false" }, "rc": 0, "start": "2024-07-25 16:33:09.363856" } STDERR: + '[' false = true ']' + rm -rf '/var/cache/tang/*' '/var/cache/tang/.*' TASK [Cleanup test files] ****************************************************** task path: /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:54 Thursday 25 July 2024 16:33:09 +0000 (0:00:00.420) 0:00:04.520 ********* changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS-9.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.5784807-2868-22612493540415/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS-9.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.5784807-2868-22612493540415/source', '_original_basename': 'tmpbkxj23oy', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'CentOS-9', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS-9.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmpbkxj23oy", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS-9.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.5784807-2868-22612493540415/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.5784807-2868-22612493540415/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS-9.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS_9.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.9469714-2868-175124208321738/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS_9.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.9469714-2868-175124208321738/source', '_original_basename': 'tmp7hyxjrji', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'CentOS_9', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS_9.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmp7hyxjrji", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS_9.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.9469714-2868-175124208321738/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925185.9469714-2868-175124208321738/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS_9.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.1627512-2868-259052720753120/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.1627512-2868-259052720753120/source', '_original_basename': 'tmpz7yebdi5', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'CentOS', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmpz7yebdi5", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.1627512-2868-259052720753120/source", "unsafe_writes": false, "validate": null } }, "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.1627512-2868-259052720753120/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/CentOS.yml", "state": "absent" } changed: [sut -> localhost] => (item={'diff': [], 'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/RedHat.yml', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.3864074-2868-102644829910605/source', 'md5sum': '5a57da448a1d752b982858b38aab344d', 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'changed': True, 'uid': 1000090000, 'gid': 1001, 'owner': 'jenkins', 'group': 'jenkins', 'mode': '0600', 'state': 'file', 'size': 23, 'invocation': {'module_args': {'dest': '/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/RedHat.yml', 'mode': '0600', 'src': '/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.3864074-2868-102644829910605/source', '_original_basename': 'tmpmd9ja7ko', 'follow': False, 'checksum': '870b2314d3f4184a363b31373f07abb444f26444', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None, 'regexp': None, 'delimiter': None}}, 'failed': False, 'item': 'RedHat', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/RedHat.yml", "diff": [], "failed": false, "gid": 1001, "group": "jenkins", "invocation": { "module_args": { "_original_basename": "tmpmd9ja7ko", "attributes": null, "backup": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "content": null, "delimiter": null, "dest": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/RedHat.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": "0600", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.3864074-2868-102644829910605/source", "unsafe_writes": false, "validate": null } }, "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1721925186.3864074-2868-102644829910605/source", "state": "file", "uid": 1000090000 }, "path": "/WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/vars/RedHat.yml", "state": "absent" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=18 changed=4 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Thursday 25 July 2024 16:33:09 +0000 (0:00:00.424) 0:00:04.945 ********* =============================================================================== Create var file in caller that can override the one in called role ------ 1.05s /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:6 -- linux-system-roles.nbde_server : Ensure tang is installed --------------- 0.89s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 Gathering Facts --------------------------------------------------------- 0.68s /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:2 -- Cleanup test files ------------------------------------------------------ 0.42s /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:54 - Remove managed node files/directories ----------------------------------- 0.42s /WORKDIR/git-include_roleqhe2a55r/tests/tasks/cleanup.yml:9 ------------------- linux-system-roles.nbde_server : Ensure required services are enabled and at the right state --- 0.42s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:41 linux-system-roles.nbde_server : Manage tangd custom port systemd directory --- 0.24s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:35 linux-system-roles.nbde_server : Ensure we have keys -------------------- 0.24s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:18 linux-system-roles.nbde_server : Check if system is ostree -------------- 0.17s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:11 linux-system-roles.nbde_server : Stat the tangd custom port systemd directory --- 0.16s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:14 linux-system-roles.nbde_server : Set version specific variables --------- 0.02s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main.yml:6 linux-system-roles.nbde_server : Include the appropriate provider tasks --- 0.02s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main.yml:9 linux-system-roles.nbde_server : Set platform/version specific variables --- 0.02s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:20 linux-system-roles.nbde_server : Manage firewall and SELinux for port --- 0.02s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/main-tang.yml:32 linux-system-roles.nbde_server : Set flag to indicate system is ostree --- 0.01s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:16 Include role ------------------------------------------------------------ 0.01s /WORKDIR/git-include_roleqhe2a55r/tests/roles/caller/tasks/main.yml:4 --------- Cleanup role files ------------------------------------------------------ 0.01s /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:50 - Include role ------------------------------------------------------------ 0.01s /WORKDIR/git-include_roleqhe2a55r/tests/tests_include_vars_from_parent.yml:43 - linux-system-roles.nbde_server : Set flag to to tell main that the port has changed --- 0.01s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/tangd-custom-port.yml:55 linux-system-roles.nbde_server : Ensure ansible_facts used by role ------ 0.01s /WORKDIR/git-include_roleqhe2a55r/tests/roles/linux-system-roles.nbde_server/tasks/set_vars.yml:2 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---