Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles PLAY [Ensure that the role declares all parameters in defaults] **************** TASK [Gathering Facts] ********************************************************* Thursday 25 July 2024 15:31:48 -0400 (0:00:00.025) 0:00:00.025 ********* ok: [managed_node1] TASK [Run role] **************************************************************** Thursday 25 July 2024 15:31:49 -0400 (0:00:00.927) 0:00:00.952 ********* TASK [fedora.linux_system_roles.nbde_server : Set version specific variables] *** Thursday 25 July 2024 15:31:49 -0400 (0:00:00.030) 0:00:00.983 ********* included: /var/ARTIFACTS/work-generalgyj4pjdo/plans/general/tree/tmp.hDM9NGFo9m/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] *** Thursday 25 July 2024 15:31:49 -0400 (0:00:00.087) 0:00:01.070 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Check if system is ostree] ******* Thursday 25 July 2024 15:31:50 -0400 (0:00:00.044) 0:00:01.114 ********* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.nbde_server : Set flag to indicate system is ostree] *** Thursday 25 July 2024 15:31:50 -0400 (0:00:00.468) 0:00:01.582 ********* ok: [managed_node1] => { "ansible_facts": { "__nbde_server_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.nbde_server : Set platform/version specific variables] *** Thursday 25 July 2024 15:31:50 -0400 (0:00:00.045) 0:00:01.628 ********* 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": [ "/var/ARTIFACTS/work-generalgyj4pjdo/plans/general/tree/tmp.hDM9NGFo9m/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] *** Thursday 25 July 2024 15:31:50 -0400 (0:00:00.057) 0:00:01.685 ********* included: /var/ARTIFACTS/work-generalgyj4pjdo/plans/general/tree/tmp.hDM9NGFo9m/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] ******** Thursday 25 July 2024 15:31:50 -0400 (0:00:00.111) 0:00:01.797 ********* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "tang-6-2.el7.x86_64 providing tang is already installed" ] } TASK [fedora.linux_system_roles.nbde_server : Ensure keys are rotated] ********* Thursday 25 July 2024 15:31:51 -0400 (0:00:00.756) 0:00:02.553 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Ensure we have keys] ************* Thursday 25 July 2024 15:31:51 -0400 (0:00:00.041) 0:00:02.594 ********* 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] *** Thursday 25 July 2024 15:31:51 -0400 (0:00:00.437) 0:00:03.031 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage firewall and SELinux for port] *** Thursday 25 July 2024 15:31:51 -0400 (0:00:00.042) 0:00:03.074 ********* included: /var/ARTIFACTS/work-generalgyj4pjdo/plans/general/tree/tmp.hDM9NGFo9m/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] ******************** Thursday 25 July 2024 15:31:52 -0400 (0:00:00.052) 0:00:03.126 ********* 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] *** Thursday 25 July 2024 15:31:52 -0400 (0:00:00.023) 0:00:03.150 ********* 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] *** Thursday 25 July 2024 15:31:52 -0400 (0:00:00.405) 0:00:03.556 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory] *** Thursday 25 July 2024 15:31:52 -0400 (0:00:00.021) 0:00:03.578 ********* 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] *** Thursday 25 July 2024 15:31:52 -0400 (0:00:00.468) 0:00:04.046 ********* 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] *** Thursday 25 July 2024 15:31:52 -0400 (0:00:00.022) 0:00:04.068 ********* ok: [managed_node1] => { "ansible_facts": { "__nbde_server_port_changed": false }, "changed": false } TASK [Ensure the desired port is added to firewalld] *************************** Thursday 25 July 2024 15:31:53 -0400 (0:00:00.029) 0:00:04.097 ********* 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] *** Thursday 25 July 2024 15:31:53 -0400 (0:00:00.022) 0:00:04.119 ********* 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] *** Thursday 25 July 2024 15:31:53 -0400 (0:00:00.021) 0:00:04.141 ********* 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": "Thu 2024-07-25 15:30:53 EDT", "ActiveEnterTimestampMonotonic": "1045724929", "ActiveExitTimestamp": "Thu 2024-07-25 15:30:53 EDT", "ActiveExitTimestampMonotonic": "1045724661", "ActiveState": "active", "After": "-.slice sysinit.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2024-07-25 15:30:53 EDT", "AssertTimestampMonotonic": "1045724712", "Backlog": "128", "Before": "multi-user.target sockets.target shutdown.target tangd@0.service", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2024-07-25 15:30:53 EDT", "ConditionTimestampMonotonic": "1045724710", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "IOScheduling": "0", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2024-07-25 15:30:53 EDT", "InactiveEnterTimestampMonotonic": "1045724661", "InactiveExitTimestamp": "Thu 2024-07-25 15:30:53 EDT", "InactiveExitTimestampMonotonic": "1045724929", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "ListenStream": "[::]:80", "LoadState": "loaded", "Mark": "-1", "MaxConnections": "64", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "NAccepted": "0", "NConnections": "0", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveOnStop": "no", "Requires": "-.slice sysinit.target", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "SocketMode": "0666", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StopWhenUnneeded": "no", "SubState": "listening", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "Triggers": "tangd@0.service", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target" } } TASK [Assert that the role declares all parameters in defaults] **************** Thursday 25 July 2024 15:31:53 -0400 (0:00:00.649) 0:00:04.791 ********* ok: [managed_node1] => (item=nbde_server_provider) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_provider" } MSG: All assertions passed ok: [managed_node1] => (item=nbde_server_deploy_keys) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_deploy_keys" } MSG: All assertions passed ok: [managed_node1] => (item=nbde_server_fetch_keys) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_fetch_keys" } MSG: All assertions passed ok: [managed_node1] => (item=nbde_server_rotate_keys) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_rotate_keys" } MSG: All assertions passed ok: [managed_node1] => (item=nbde_server_keys_dir) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_keys_dir" } MSG: All assertions passed TASK [Cleanup] ***************************************************************** Thursday 25 July 2024 15:31:53 -0400 (0:00:00.066) 0:00:04.858 ********* included: /var/ARTIFACTS/work-generalgyj4pjdo/plans/general/tree/tmp.hDM9NGFo9m/ansible_collections/fedora/linux_system_roles/tests/nbde_server/tasks/cleanup.yml for managed_node1 TASK [Remove control node files/directories] *********************************** Thursday 25 July 2024 15:31:53 -0400 (0:00:00.029) 0:00:04.887 ********* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Remove managed node files/directories] *********************************** Thursday 25 July 2024 15:31:53 -0400 (0:00:00.021) 0:00:04.909 ********* skipping: [managed_node1] => (item={u'path': u'', u'remove_dir': u'true'}) => { "ansible_loop_var": "item", "changed": false, "item": { "path": "", "remove_dir": "true" }, "skip_reason": "Conditional result was False" } changed: [managed_node1] => (item={u'path': u'/var/db/tang', u'remove_dir': u'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.004787", "end": "2024-07-25 15:31:54.291701", "item": { "path": "/var/db/tang", "remove_dir": "false" }, "rc": 0, "start": "2024-07-25 15:31:54.286914" } STDERR: + '[' false = true ']' + rm -rf /var/db/tang/EOXUUo77k4VAOGq1gtWEmDFIa0A.jwk /var/db/tang/ReYQrPqzon2P_pnwzaozB_RSKKk.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: [managed_node1] => (item={u'path': u'/var/cache/tang', u'remove_dir': u'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.004527", "end": "2024-07-25 15:31:54.587383", "item": { "path": "/var/cache/tang", "remove_dir": "false" }, "rc": 0, "start": "2024-07-25 15:31:54.582856" } STDERR: + '[' false = true ']' + rm -rf '/var/cache/tang/*' '/var/cache/tang/.*' PLAY RECAP ********************************************************************* managed_node1 : ok=16 changed=2 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Thursday 25 July 2024 15:31:54 -0400 (0:00:00.811) 0:00:05.721 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 0.93s Remove managed node files/directories ----------------------------------- 0.81s fedora.linux_system_roles.nbde_server : Ensure tang is installed -------- 0.76s fedora.linux_system_roles.nbde_server : Ensure required services are enabled and at the right state --- 0.65s fedora.linux_system_roles.nbde_server : Check if system is ostree ------- 0.47s fedora.linux_system_roles.nbde_server : Manage tangd custom port systemd directory --- 0.47s fedora.linux_system_roles.nbde_server : Ensure we have keys ------------- 0.44s fedora.linux_system_roles.nbde_server : Stat the tangd custom port systemd directory --- 0.41s fedora.linux_system_roles.nbde_server : Include the appropriate provider tasks --- 0.11s fedora.linux_system_roles.nbde_server : Set version specific variables --- 0.09s Assert that the role declares all parameters in defaults ---------------- 0.07s fedora.linux_system_roles.nbde_server : Set platform/version specific variables --- 0.06s fedora.linux_system_roles.nbde_server : Manage firewall and SELinux for port --- 0.05s fedora.linux_system_roles.nbde_server : Set flag to indicate system is ostree --- 0.05s fedora.linux_system_roles.nbde_server : Ensure ansible_facts used by role --- 0.04s fedora.linux_system_roles.nbde_server : Perform key management (fetch/deploy) tasks --- 0.04s fedora.linux_system_roles.nbde_server : Ensure keys are rotated --------- 0.04s Run role ---------------------------------------------------------------- 0.03s Cleanup ----------------------------------------------------------------- 0.03s fedora.linux_system_roles.nbde_server : Set flag to to tell main that the port has changed --- 0.03s