ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles 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_nbde_server_rotate_keys.yml ************************************ 1 plays in /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml PLAY [Verify behavior of nbde_server_rotate_keys] ****************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:6 Tuesday 24 September 2024 14:46:34 -0400 (0:00:00.028) 0:00:00.029 ***** ok: [managed-node1] META: ran handlers TASK [Ensure we have keys] ***************************************************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:12 Tuesday 24 September 2024 14:46:35 -0400 (0:00:00.883) 0:00:00.912 ***** TASK [fedora.linux_system_roles.nbde_server : Set version specific variables] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main.yml:6 Tuesday 24 September 2024 14:46:35 -0400 (0:00:00.027) 0:00:00.940 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.nbde_server : Ensure ansible_facts used by role] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:2 Tuesday 24 September 2024 14:46:35 -0400 (0:00:00.024) 0:00:00.964 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Check if system is ostree] ******* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:10 Tuesday 24 September 2024 14:46:35 -0400 (0:00:00.035) 0:00:01.000 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.nbde_server : Set flag to indicate system is ostree] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:15 Tuesday 24 September 2024 14:46:36 -0400 (0:00:00.526) 0:00:01.526 ***** ok: [managed-node1] => { "ansible_facts": { "__nbde_server_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.nbde_server : Set platform/version specific variables] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:19 Tuesday 24 September 2024 14:46:36 -0400 (0:00:00.055) 0:00:01.582 ***** ok: [managed-node1] => { "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": [ "/tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/vars/default.yml" ], "changed": false } TASK [fedora.linux_system_roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main.yml:9 Tuesday 24 September 2024 14:46:36 -0400 (0:00:00.066) 0:00:01.648 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml for managed-node1 TASK [fedora.linux_system_roles.nbde_server : Ensure tang is installed] ******** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:2 Tuesday 24 September 2024 14:46:36 -0400 (0:00:00.067) 0:00:01.716 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.nbde_server : Ensure keys are rotated] ********* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:8 Tuesday 24 September 2024 14:46:39 -0400 (0:00:03.072) 0:00:04.789 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Ensure we have keys] ************* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:17 Tuesday 24 September 2024 14:46:39 -0400 (0:00:00.052) 0:00:04.841 ***** changed: [managed-node1] => { "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 [fedora.linux_system_roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:26 Tuesday 24 September 2024 14:46:40 -0400 (0:00:00.536) 0:00:05.378 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage firewall and SELinux for port] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:30 Tuesday 24 September 2024 14:46:40 -0400 (0:00:00.046) 0:00:05.424 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml for managed-node1 TASK [Ensure tang port is labeled tangd_port_t for SELinux] ******************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:2 Tuesday 24 September 2024 14:46:40 -0400 (0:00:00.062) 0:00:05.487 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Stat the tangd custom port systemd directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:14 Tuesday 24 September 2024 14:46:40 -0400 (0:00:00.021) 0:00:05.508 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.nbde_server : Get a list of files in the tangd custom directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:19 Tuesday 24 September 2024 14:46:40 -0400 (0:00:00.347) 0:00:05.856 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:35 Tuesday 24 September 2024 14:46:40 -0400 (0:00:00.015) 0:00:05.871 ***** ok: [managed-node1] => { "changed": false, "path": "/etc/systemd/system/tangd.socket.d", "state": "absent" } TASK [fedora.linux_system_roles.nbde_server : Creates the file with the port entry that we want tangd to listen to] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:44 Tuesday 24 September 2024 14:46:41 -0400 (0:00:00.443) 0:00:06.314 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Set flag to to tell main that the port has changed] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:53 Tuesday 24 September 2024 14:46:41 -0400 (0:00:00.015) 0:00:06.329 ***** ok: [managed-node1] => { "ansible_facts": { "__nbde_server_port_changed": false }, "changed": false } TASK [Ensure the desired port is added to firewalld] *************************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:57 Tuesday 24 September 2024 14:46:41 -0400 (0:00:00.017) 0:00:06.347 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Reload the daemons so the new changes take effect] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:34 Tuesday 24 September 2024 14:46:41 -0400 (0:00:00.026) 0:00:06.373 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:39 Tuesday 24 September 2024 14:46:41 -0400 (0:00:00.015) 0:00:06.389 ***** ok: [managed-node1] => (item=tangd.socket) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": { "Accept": "yes", "ActiveEnterTimestamp": "Tue 2024-09-24 14:46:05 EDT", "ActiveEnterTimestampMonotonic": "235206344", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-09-24 14:46:05 EDT", "AssertTimestampMonotonic": "235203414", "Backlog": "128", "Before": "sockets.target multi-user.target shutdown.target tangd@0.service", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-09-24 14:46:05 EDT", "ConditionTimestampMonotonic": "235203412", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FlushPending": "no", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "FreezerState": "running", "GID": "[not set]", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-09-24 14:46:05 EDT", "InactiveExitTimestampMonotonic": "235206344", "InvocationID": "c74b0d78761f42b49cccab9c4fcc123d", "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": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassPacketInfo": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "system.slice sysinit.target", "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", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2024-09-24 14:46:05 EDT", "StateChangeTimestampMonotonic": "235206344", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22406", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "Triggers": "tangd@0.service", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Writable": "no" } } TASK [Gather keys] ************************************************************* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:17 Tuesday 24 September 2024 14:46:41 -0400 (0:00:00.659) 0:00:07.048 ***** ok: [managed-node1] => { "changed": false, "examined": 2, "files": [ { "atime": 1727203600.0660152, "ctime": 1727203600.0730152, "dev": 51713, "gid": 991, "gr_name": "tang", "inode": 299892993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0400", "mtime": 1727203600.0660152, "nlink": 1, "path": "/var/db/tang/9LqU06VfjC7YE7aTutqrPKBb3O8.jwk", "pw_name": "tang", "rgrp": false, "roth": false, "rusr": true, "size": 354, "uid": 994, "wgrp": false, "woth": false, "wusr": false, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1727203600.0710151, "ctime": 1727203600.0730152, "dev": 51713, "gid": 991, "gr_name": "tang", "inode": 299892994, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0400", "mtime": 1727203600.0710151, "nlink": 1, "path": "/var/db/tang/Srvco4TlKsdtAQ3YbEFRjDn7wgU.jwk", "pw_name": "tang", "rgrp": false, "roth": false, "rusr": true, "size": 349, "uid": 994, "wgrp": false, "woth": false, "wusr": false, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 2 } TASK [Run with nbde_server_rotate_keys not set to check keys] ****************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:28 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.444) 0:00:07.493 ***** TASK [fedora.linux_system_roles.nbde_server : Set version specific variables] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main.yml:6 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.019) 0:00:07.513 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.nbde_server : Ensure ansible_facts used by role] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:2 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.018) 0:00:07.532 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Check if system is ostree] ******* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:10 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.015) 0:00:07.547 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Set flag to indicate system is ostree] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:15 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.013) 0:00:07.560 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Set platform/version specific variables] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:19 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.014) 0:00:07.575 ***** ok: [managed-node1] => { "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": [ "/tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/vars/default.yml" ], "changed": false } TASK [fedora.linux_system_roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main.yml:9 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.022) 0:00:07.598 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml for managed-node1 TASK [fedora.linux_system_roles.nbde_server : Ensure tang is installed] ******** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:2 Tuesday 24 September 2024 14:46:42 -0400 (0:00:00.022) 0:00:07.620 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.nbde_server : Ensure keys are rotated] ********* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:8 Tuesday 24 September 2024 14:46:45 -0400 (0:00:02.830) 0:00:10.450 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Ensure we have keys] ************* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:17 Tuesday 24 September 2024 14:46:45 -0400 (0:00:00.027) 0:00:10.478 ***** ok: [managed-node1] => { "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": false, "state": "keys-created" } TASK [fedora.linux_system_roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:26 Tuesday 24 September 2024 14:46:45 -0400 (0:00:00.327) 0:00:10.805 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage firewall and SELinux for port] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:30 Tuesday 24 September 2024 14:46:45 -0400 (0:00:00.014) 0:00:10.820 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml for managed-node1 TASK [Ensure tang port is labeled tangd_port_t for SELinux] ******************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:2 Tuesday 24 September 2024 14:46:45 -0400 (0:00:00.024) 0:00:10.845 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Stat the tangd custom port systemd directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:14 Tuesday 24 September 2024 14:46:45 -0400 (0:00:00.014) 0:00:10.860 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.nbde_server : Get a list of files in the tangd custom directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:19 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.416) 0:00:11.276 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:35 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.015) 0:00:11.291 ***** ok: [managed-node1] => { "changed": false, "path": "/etc/systemd/system/tangd.socket.d", "state": "absent" } TASK [fedora.linux_system_roles.nbde_server : Creates the file with the port entry that we want tangd to listen to] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:44 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.359) 0:00:11.650 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Set flag to to tell main that the port has changed] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:53 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.014) 0:00:11.665 ***** ok: [managed-node1] => { "ansible_facts": { "__nbde_server_port_changed": false }, "changed": false } TASK [Ensure the desired port is added to firewalld] *************************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:57 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.015) 0:00:11.681 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Reload the daemons so the new changes take effect] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:34 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.013) 0:00:11.695 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:39 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.012) 0:00:11.708 ***** ok: [managed-node1] => (item=tangd.socket) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": { "Accept": "yes", "ActiveEnterTimestamp": "Tue 2024-09-24 14:46:05 EDT", "ActiveEnterTimestampMonotonic": "235206344", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-09-24 14:46:05 EDT", "AssertTimestampMonotonic": "235203414", "Backlog": "128", "Before": "sockets.target multi-user.target shutdown.target tangd@0.service", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-09-24 14:46:05 EDT", "ConditionTimestampMonotonic": "235203412", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FlushPending": "no", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "FreezerState": "running", "GID": "[not set]", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-09-24 14:46:05 EDT", "InactiveExitTimestampMonotonic": "235206344", "InvocationID": "c74b0d78761f42b49cccab9c4fcc123d", "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": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassPacketInfo": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "system.slice sysinit.target", "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", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2024-09-24 14:46:05 EDT", "StateChangeTimestampMonotonic": "235206344", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22406", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "Triggers": "tangd@0.service", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Writable": "no" } } TASK [Gather keys after running with nbde_server_rotate_keys not set] ********** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:35 Tuesday 24 September 2024 14:46:46 -0400 (0:00:00.483) 0:00:12.192 ***** ok: [managed-node1] => { "changed": false, "examined": 2, "files": [ { "atime": 1727203600.0660152, "ctime": 1727203600.0730152, "dev": 51713, "gid": 991, "gr_name": "tang", "inode": 299892993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0400", "mtime": 1727203600.0660152, "nlink": 1, "path": "/var/db/tang/9LqU06VfjC7YE7aTutqrPKBb3O8.jwk", "pw_name": "tang", "rgrp": false, "roth": false, "rusr": true, "size": 354, "uid": 994, "wgrp": false, "woth": false, "wusr": false, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1727203600.0710151, "ctime": 1727203600.0730152, "dev": 51713, "gid": 991, "gr_name": "tang", "inode": 299892994, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0400", "mtime": 1727203600.0710151, "nlink": 1, "path": "/var/db/tang/Srvco4TlKsdtAQ3YbEFRjDn7wgU.jwk", "pw_name": "tang", "rgrp": false, "roth": false, "rusr": true, "size": 349, "uid": 994, "wgrp": false, "woth": false, "wusr": false, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 2 } TASK [Check whether keys changed - nbde_server_rotate_keys not set] ************ task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:46 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.367) 0:00:12.559 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Run with nbde_server_rotate_keys set to check keys] ********************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:50 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.017) 0:00:12.577 ***** TASK [fedora.linux_system_roles.nbde_server : Set version specific variables] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main.yml:6 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.020) 0:00:12.597 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.nbde_server : Ensure ansible_facts used by role] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:2 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.017) 0:00:12.615 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Check if system is ostree] ******* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:10 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.015) 0:00:12.631 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Set flag to indicate system is ostree] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:15 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.012) 0:00:12.644 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Set platform/version specific variables] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:19 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.014) 0:00:12.658 ***** ok: [managed-node1] => { "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": [ "/tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/vars/default.yml" ], "changed": false } TASK [fedora.linux_system_roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main.yml:9 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.024) 0:00:12.683 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml for managed-node1 TASK [fedora.linux_system_roles.nbde_server : Ensure tang is installed] ******** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:2 Tuesday 24 September 2024 14:46:47 -0400 (0:00:00.022) 0:00:12.705 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.nbde_server : Ensure keys are rotated] ********* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:8 Tuesday 24 September 2024 14:46:50 -0400 (0:00:02.830) 0:00:15.536 ***** changed: [managed-node1] => { "arguments": { "cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-rotated", "update": "/usr/libexec/tangd-update" }, "changed": true, "state": "keys-rotated" } TASK [fedora.linux_system_roles.nbde_server : Ensure we have keys] ************* task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:17 Tuesday 24 September 2024 14:46:50 -0400 (0:00:00.396) 0:00:15.932 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:26 Tuesday 24 September 2024 14:46:50 -0400 (0:00:00.019) 0:00:15.952 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage firewall and SELinux for port] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:30 Tuesday 24 September 2024 14:46:50 -0400 (0:00:00.024) 0:00:15.976 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml for managed-node1 TASK [Ensure tang port is labeled tangd_port_t for SELinux] ******************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:2 Tuesday 24 September 2024 14:46:50 -0400 (0:00:00.042) 0:00:16.018 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Stat the tangd custom port systemd directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:14 Tuesday 24 September 2024 14:46:50 -0400 (0:00:00.033) 0:00:16.051 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.nbde_server : Get a list of files in the tangd custom directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:19 Tuesday 24 September 2024 14:46:51 -0400 (0:00:00.416) 0:00:16.468 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:35 Tuesday 24 September 2024 14:46:51 -0400 (0:00:00.024) 0:00:16.492 ***** ok: [managed-node1] => { "changed": false, "path": "/etc/systemd/system/tangd.socket.d", "state": "absent" } TASK [fedora.linux_system_roles.nbde_server : Creates the file with the port entry that we want tangd to listen to] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:44 Tuesday 24 September 2024 14:46:51 -0400 (0:00:00.366) 0:00:16.859 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Set flag to to tell main that the port has changed] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:53 Tuesday 24 September 2024 14:46:51 -0400 (0:00:00.021) 0:00:16.881 ***** ok: [managed-node1] => { "ansible_facts": { "__nbde_server_port_changed": false }, "changed": false } TASK [Ensure the desired port is added to firewalld] *************************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:57 Tuesday 24 September 2024 14:46:51 -0400 (0:00:00.026) 0:00:16.908 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Reload the daemons so the new changes take effect] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:34 Tuesday 24 September 2024 14:46:51 -0400 (0:00:00.021) 0:00:16.929 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:39 Tuesday 24 September 2024 14:46:51 -0400 (0:00:00.022) 0:00:16.951 ***** ok: [managed-node1] => (item=tangd.socket) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": { "Accept": "yes", "ActiveEnterTimestamp": "Tue 2024-09-24 14:46:05 EDT", "ActiveEnterTimestampMonotonic": "235206344", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-09-24 14:46:05 EDT", "AssertTimestampMonotonic": "235203414", "Backlog": "128", "Before": "sockets.target multi-user.target shutdown.target tangd@0.service", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-09-24 14:46:05 EDT", "ConditionTimestampMonotonic": "235203412", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FlushPending": "no", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "FreezerState": "running", "GID": "[not set]", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-09-24 14:46:05 EDT", "InactiveExitTimestampMonotonic": "235206344", "InvocationID": "c74b0d78761f42b49cccab9c4fcc123d", "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": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassPacketInfo": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "system.slice sysinit.target", "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", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2024-09-24 14:46:05 EDT", "StateChangeTimestampMonotonic": "235206344", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22406", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "Triggers": "tangd@0.service", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Writable": "no" } } TASK [Gather keys after running with nbde_server_rotate_keys set] ************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:57 Tuesday 24 September 2024 14:46:52 -0400 (0:00:00.519) 0:00:17.471 ***** ok: [managed-node1] => { "changed": false, "examined": 4, "files": [ { "atime": 1727203610.6380424, "ctime": 1727203610.6450424, "dev": 51713, "gid": 991, "gr_name": "tang", "inode": 299892995, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0400", "mtime": 1727203610.6380424, "nlink": 1, "path": "/var/db/tang/jmCZZEcqIjhf6enkw5GaY-lGg_Y.jwk", "pw_name": "tang", "rgrp": false, "roth": false, "rusr": true, "size": 354, "uid": 994, "wgrp": false, "woth": false, "wusr": false, "xgrp": false, "xoth": false, "xusr": false }, { "atime": 1727203610.6430423, "ctime": 1727203610.6450424, "dev": 51713, "gid": 991, "gr_name": "tang", "inode": 299892996, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0400", "mtime": 1727203610.6430423, "nlink": 1, "path": "/var/db/tang/oLULoDpQV4ChNI6f8nKHGZtu_cI.jwk", "pw_name": "tang", "rgrp": false, "roth": false, "rusr": true, "size": 349, "uid": 994, "wgrp": false, "woth": false, "wusr": false, "xgrp": false, "xoth": false, "xusr": false } ], "matched": 2 } TASK [Check whether keys changed - nbde_server_rotate_keys set] **************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:68 Tuesday 24 September 2024 14:46:52 -0400 (0:00:00.344) 0:00:17.815 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Cleanup] ***************************************************************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:72 Tuesday 24 September 2024 14:46:52 -0400 (0:00:00.032) 0:00:17.848 ***** included: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tasks/cleanup.yml for managed-node1 TASK [Remove control node files/directories] *********************************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tasks/cleanup.yml:2 Tuesday 24 September 2024 14:46:52 -0400 (0:00:00.023) 0:00:17.872 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Remove managed node files/directories] *********************************** task path: /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tasks/cleanup.yml:9 Tuesday 24 September 2024 14:46:52 -0400 (0:00:00.018) 0:00:17.890 ***** skipping: [managed-node1] => (item={'path': '', 'remove_dir': 'true'}) => { "ansible_loop_var": "item", "changed": false, "item": { "path": "", "remove_dir": "true" }, "skip_reason": "Conditional result was False" } changed: [managed-node1] => (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.004223", "end": "2024-09-24 14:46:53.048712", "item": { "path": "/var/db/tang", "remove_dir": "false" }, "rc": 0, "start": "2024-09-24 14:46:53.044489" } STDERR: + '[' false = true ']' + rm -rf /var/db/tang/jmCZZEcqIjhf6enkw5GaY-lGg_Y.jwk /var/db/tang/oLULoDpQV4ChNI6f8nKHGZtu_cI.jwk /var/db/tang/. /var/db/tang/.. /var/db/tang/.9LqU06VfjC7YE7aTutqrPKBb3O8.jwk /var/db/tang/.Srvco4TlKsdtAQ3YbEFRjDn7wgU.jwk rm: refusing to remove '.' or '..' directory: skipping '/var/db/tang/.' rm: refusing to remove '.' or '..' directory: skipping '/var/db/tang/..' + : changed: [managed-node1] => (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.004391", "end": "2024-09-24 14:46:53.372682", "item": { "path": "/var/cache/tang", "remove_dir": "false" }, "rc": 0, "start": "2024-09-24 14:46:53.368291" } STDERR: + '[' false = true ']' + rm -rf '/var/cache/tang/*' '/var/cache/tang/.*' META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node1 : ok=40 changed=3 unreachable=0 failed=0 skipped=29 rescued=0 ignored=0 Tuesday 24 September 2024 14:46:53 -0400 (0:00:00.777) 0:00:18.668 ***** =============================================================================== fedora.linux_system_roles.nbde_server : Ensure tang is installed -------- 3.07s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:2 fedora.linux_system_roles.nbde_server : Ensure tang is installed -------- 2.83s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:2 fedora.linux_system_roles.nbde_server : Ensure tang is installed -------- 2.83s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:2 Gathering Facts --------------------------------------------------------- 0.88s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:6 Remove managed node files/directories ----------------------------------- 0.78s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tasks/cleanup.yml:9 fedora.linux_system_roles.nbde_server : Ensure required services are enabled and at the right state --- 0.66s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:39 fedora.linux_system_roles.nbde_server : Ensure we have keys ------------- 0.54s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:17 fedora.linux_system_roles.nbde_server : Check if system is ostree ------- 0.53s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/set_vars.yml:10 fedora.linux_system_roles.nbde_server : Ensure required services are enabled and at the right state --- 0.52s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:39 fedora.linux_system_roles.nbde_server : Ensure required services are enabled and at the right state --- 0.48s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:39 Gather keys ------------------------------------------------------------- 0.44s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:17 fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory --- 0.44s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:35 fedora.linux_system_roles.nbde_server : Stat the tangd custom port systemd directory --- 0.42s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:14 fedora.linux_system_roles.nbde_server : Stat the tangd custom port systemd directory --- 0.42s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:14 fedora.linux_system_roles.nbde_server : Ensure keys are rotated --------- 0.40s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/main-tang.yml:8 Gather keys after running with nbde_server_rotate_keys not set ---------- 0.37s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:35 fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory --- 0.37s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:35 fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory --- 0.36s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:35 fedora.linux_system_roles.nbde_server : Stat the tangd custom port systemd directory --- 0.35s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/roles/nbde_server/tasks/tangd-custom-port.yml:14 Gather keys after running with nbde_server_rotate_keys set -------------- 0.34s /tmp/collections-8kb/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tests_nbde_server_rotate_keys.yml:57