+ cd /tmp/tmp957b2cxs/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_server-5-4c9913a-fedora-30-c21e1k8z/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp957b2cxs/_setup.yml /tmp/tmp957b2cxs/tests/tests_default.yml ansible-playbook 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp957b2cxs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp957b2cxs/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp957b2cxs/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp957b2cxs/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp957b2cxs/tests/tests_default.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [nbde_server : Set version-specific variables] **************************** task path: /tmp/tmp957b2cxs/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmp957b2cxs/vars/Fedora-30.yml) => {"ansible_facts": {"__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_package_list": ["tang", "rsync"], "__nbde_server_service": "tangd.socket"}, "ansible_included_var_files": ["/tmp/tmp957b2cxs/vars/Fedora-30.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp957b2cxs/vars/Fedora-30.yml"} TASK [nbde_server : Include the appropriate provider tasks] ******************** task path: /tmp/tmp957b2cxs/tasks/main.yml:12 included: /tmp/tmp957b2cxs/tasks/main-tang.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [nbde_server : Ensure tang is installed] ********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:2 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-10-4.fc30.x86_64", "Installed: http-parser-2.9.3-1.fc30.x86_64", "Installed: tang-7-3.fc30.x86_64", "Installed: libjose-10-4.fc30.x86_64"]} TASK [nbde_server : Ensure tang is enabled and started] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:8 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "enabled": true, "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target tangd-keygen.service system.slice tangd-update.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "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", "InactiveExitTimestampMonotonic": "0", "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "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", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "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": "sysinit.target tangd-keygen.service tangd-update.path system.slice tangd-update.service", "RestrictNamespaces": "no", "RestrictRealtime": "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]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2343", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [nbde_server : Ensure tang is enabled but stopped] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:16 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure keys are rotated] *********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:24 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we have keys] *************************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:32 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false} TASK [nbde_server : Ensure we fetch the server keys] *************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:40 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we fetch the created keys for deploying] ************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:51 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we copy specific keys to tang] ********************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:63 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we deploy the specific keys to tang] **************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:72 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [include_tasks] *********************************************************** task path: /tmp/tmp957b2cxs/tests/tests_default.yml:9 included: /tmp/tmp957b2cxs/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Gather state of required packages] *************************************** task path: /tmp/tmp957b2cxs/tests/verify-role-results.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [Check whether required packages are installed] *************************** task path: /tmp/tmp957b2cxs/tests/verify-role-results.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Gather state of service when it should be enabled and started] *********** task path: /tmp/tmp957b2cxs/tests/verify-role-results.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "enabled": true, "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestamp": "Mon 2020-04-20 13:52:12 UTC", "ActiveEnterTimestampMonotonic": "76672105", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice tangd-keygen.service sysinit.target tangd-update.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2020-04-20 13:52:12 UTC", "AssertTimestampMonotonic": "76668967", "Backlog": "128", "Before": "multi-user.target shutdown.target tangd@0.service sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2020-04-20 13:52:12 UTC", "ConditionTimestampMonotonic": "76668967", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "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": "Mon 2020-04-20 13:52:12 UTC", "InactiveExitTimestampMonotonic": "76672105", "InvocationID": "b5292b4ba5384f879e28366d58be77df", "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "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": "0", "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", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "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 tangd-keygen.service sysinit.target tangd-update.path tangd-update.service", "RestrictNamespaces": "no", "RestrictRealtime": "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": "Mon 2020-04-20 13:52:12 UTC", "StateChangeTimestampMonotonic": "76672105", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "2343", "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", "WatchdogSignal": "6", "Writable": "no"}} TASK [Check whether service is enabled and started when it should be] ********** task path: /tmp/tmp957b2cxs/tests/verify-role-results.yml:22 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Gather state of service when it should be enabled and stopped] *********** task path: /tmp/tmp957b2cxs/tests/verify-role-results.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check whether service is enabled and stopped when it should be] ********** task path: /tmp/tmp957b2cxs/tests/verify-role-results.yml:36 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Include the appropriate provider verification tasks] ********************* task path: /tmp/tmp957b2cxs/tests/verify-role-results.yml:41 included: /tmp/tmp957b2cxs/tests/verify-tang-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Gather state of keys] **************************************************** task path: /tmp/tmp957b2cxs/tests/verify-tang-results.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false} TASK [Check whether there are keys] ******************************************** task path: /tmp/tmp957b2cxs/tests/verify-tang-results.yml:10 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=15 changed=2 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 + cd /tmp/tmp957b2cxs/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_server-5-4c9913a-fedora-30-c21e1k8z/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp957b2cxs/_setup.yml /tmp/tmp957b2cxs/tests/tests_default_vars.yml ansible-playbook 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp957b2cxs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp957b2cxs/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp957b2cxs/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default_vars.yml *********************************************** 1 plays in /tmp/tmp957b2cxs/tests/tests_default_vars.yml PLAY [Ensure that the role declares all parameters in defaults] **************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp957b2cxs/tests/tests_default_vars.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [nbde_server : Set version-specific variables] **************************** task path: /tmp/tmp957b2cxs/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmp957b2cxs/vars/Fedora-30.yml) => {"ansible_facts": {"__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_package_list": ["tang", "rsync"], "__nbde_server_service": "tangd.socket"}, "ansible_included_var_files": ["/tmp/tmp957b2cxs/vars/Fedora-30.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp957b2cxs/vars/Fedora-30.yml"} TASK [nbde_server : Include the appropriate provider tasks] ******************** task path: /tmp/tmp957b2cxs/tasks/main.yml:12 included: /tmp/tmp957b2cxs/tasks/main-tang.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [nbde_server : Ensure tang is installed] ********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:2 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-10-4.fc30.x86_64", "Installed: http-parser-2.9.3-1.fc30.x86_64", "Installed: tang-7-3.fc30.x86_64", "Installed: libjose-10-4.fc30.x86_64"]} TASK [nbde_server : Ensure tang is enabled and started] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:8 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "enabled": true, "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "tangd-keygen.service sysinit.target system.slice tangd-update.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "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", "InactiveExitTimestampMonotonic": "0", "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "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", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "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": "tangd-keygen.service sysinit.target system.slice tangd-update.service tangd-update.path", "RestrictNamespaces": "no", "RestrictRealtime": "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]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2343", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [nbde_server : Ensure tang is enabled but stopped] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:16 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure keys are rotated] *********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:24 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we have keys] *************************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:32 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false} TASK [nbde_server : Ensure we fetch the server keys] *************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:40 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we fetch the created keys for deploying] ************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:51 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we copy specific keys to tang] ********************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:63 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we deploy the specific keys to tang] **************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:72 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [assert] ****************************************************************** task path: /tmp/tmp957b2cxs/tests/tests_default_vars.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=nbde_server_provider) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_provider", "msg": "All assertions passed" } ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=nbde_server_deploy_keys) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_deploy_keys", "msg": "All assertions passed" } ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=nbde_server_fetch_keys) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_fetch_keys", "msg": "All assertions passed" } ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=nbde_server_rotate_keys) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_rotate_keys", "msg": "All assertions passed" } ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=nbde_server_keys_dir) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_server_keys_dir", "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=8 changed=2 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 + cd /tmp/tmp957b2cxs/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_server-5-4c9913a-fedora-30-c21e1k8z/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp957b2cxs/_setup.yml /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml ansible-playbook 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp957b2cxs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp957b2cxs/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp957b2cxs/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_nbde_server_rotate_keys.yml ************************************ 1 plays in /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml PLAY [Verify behavior of nbde_server_rotate_keys] ****************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [nbde_server : Set version-specific variables] **************************** task path: /tmp/tmp957b2cxs/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmp957b2cxs/vars/Fedora-30.yml) => {"ansible_facts": {"__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_package_list": ["tang", "rsync"], "__nbde_server_service": "tangd.socket"}, "ansible_included_var_files": ["/tmp/tmp957b2cxs/vars/Fedora-30.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp957b2cxs/vars/Fedora-30.yml"} TASK [nbde_server : Include the appropriate provider tasks] ******************** task path: /tmp/tmp957b2cxs/tasks/main.yml:12 included: /tmp/tmp957b2cxs/tasks/main-tang.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [nbde_server : Ensure tang is installed] ********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:2 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-10-4.fc30.x86_64", "Installed: http-parser-2.9.3-1.fc30.x86_64", "Installed: tang-7-3.fc30.x86_64", "Installed: libjose-10-4.fc30.x86_64"]} TASK [nbde_server : Ensure tang is enabled and started] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:8 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "enabled": true, "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target tangd-keygen.service tangd-update.service system.slice", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "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", "InactiveExitTimestampMonotonic": "0", "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "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", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "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": "tangd-update.path sysinit.target tangd-keygen.service tangd-update.service system.slice", "RestrictNamespaces": "no", "RestrictRealtime": "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]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2343", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [nbde_server : Ensure tang is enabled but stopped] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:16 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure keys are rotated] *********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:24 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "state": "keys-created"} TASK [nbde_server : Ensure we have keys] *************************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:32 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we fetch the server keys] *************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:40 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we fetch the created keys for deploying] ************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:51 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we copy specific keys to tang] ********************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:63 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we deploy the specific keys to tang] **************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:72 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather keys] ************************************************************* task path: /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "examined": 4, "files": [{"atime": 1587390860.1379611, "ctime": 1587390860.1289613, "dev": 64513, "gid": 991, "gr_name": "tang", "inode": 3194, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1587390860.1289613, "nlink": 1, "path": "/var/db/tang/jgnFF-TAD8ClgIXxxhddG8B0_p4.jwk", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 354, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1587390860.1349611, "ctime": 1587390860.1329613, "dev": 64513, "gid": 991, "gr_name": "tang", "inode": 3195, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1587390860.1329613, "nlink": 1, "path": "/var/db/tang/03X5ZgWQlOC4lKLcIEBijS2CpBQ.jwk", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 349, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 2, "msg": ""} TASK [nbde_server : Set version-specific variables] **************************** task path: /tmp/tmp957b2cxs/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmp957b2cxs/vars/Fedora-30.yml) => {"ansible_facts": {"__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_package_list": ["tang", "rsync"], "__nbde_server_service": "tangd.socket"}, "ansible_included_var_files": ["/tmp/tmp957b2cxs/vars/Fedora-30.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp957b2cxs/vars/Fedora-30.yml"} TASK [nbde_server : Include the appropriate provider tasks] ******************** task path: /tmp/tmp957b2cxs/tasks/main.yml:12 included: /tmp/tmp957b2cxs/tasks/main-tang.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [nbde_server : Ensure tang is installed] ********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [nbde_server : Ensure tang is enabled and started] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "enabled": true, "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestamp": "Mon 2020-04-20 13:54:19 UTC", "ActiveEnterTimestampMonotonic": "63640559", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target tangd-keygen.service tangd-update.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2020-04-20 13:54:19 UTC", "AssertTimestampMonotonic": "63637179", "Backlog": "128", "Before": "tangd@0.service sockets.target multi-user.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2020-04-20 13:54:19 UTC", "ConditionTimestampMonotonic": "63637179", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "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": "Mon 2020-04-20 13:54:19 UTC", "InactiveExitTimestampMonotonic": "63640559", "InvocationID": "621c4c588ecc449885fe1fad59f838a3", "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "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": "0", "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", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "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 tangd-keygen.service tangd-update.path tangd-update.service", "RestrictNamespaces": "no", "RestrictRealtime": "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": "Mon 2020-04-20 13:54:19 UTC", "StateChangeTimestampMonotonic": "63640559", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "2343", "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", "WatchdogSignal": "6", "Writable": "no"}} TASK [nbde_server : Ensure tang is enabled but stopped] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:16 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure keys are rotated] *********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:24 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we have keys] *************************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:32 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false} TASK [nbde_server : Ensure we fetch the server keys] *************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:40 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we fetch the created keys for deploying] ************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:51 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we copy specific keys to tang] ********************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:63 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we deploy the specific keys to tang] **************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:72 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather keys after running with nbde_server_rotate_keys not set] ********** task path: /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "examined": 4, "files": [{"atime": 1587390860.1379611, "ctime": 1587390860.1289613, "dev": 64513, "gid": 991, "gr_name": "tang", "inode": 3194, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1587390860.1289613, "nlink": 1, "path": "/var/db/tang/jgnFF-TAD8ClgIXxxhddG8B0_p4.jwk", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 354, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1587390860.1349611, "ctime": 1587390860.1329613, "dev": 64513, "gid": 991, "gr_name": "tang", "inode": 3195, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1587390860.1329613, "nlink": 1, "path": "/var/db/tang/03X5ZgWQlOC4lKLcIEBijS2CpBQ.jwk", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 349, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 2, "msg": ""} TASK [Check whether keys changed - nbde_server_rotate_keys not set] ************ task path: /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml:42 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [nbde_server : Set version-specific variables] **************************** task path: /tmp/tmp957b2cxs/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmp957b2cxs/vars/Fedora-30.yml) => {"ansible_facts": {"__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_package_list": ["tang", "rsync"], "__nbde_server_service": "tangd.socket"}, "ansible_included_var_files": ["/tmp/tmp957b2cxs/vars/Fedora-30.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp957b2cxs/vars/Fedora-30.yml"} TASK [nbde_server : Include the appropriate provider tasks] ******************** task path: /tmp/tmp957b2cxs/tasks/main.yml:12 included: /tmp/tmp957b2cxs/tasks/main-tang.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [nbde_server : Ensure tang is installed] ********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [nbde_server : Ensure tang is enabled and started] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "enabled": true, "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestamp": "Mon 2020-04-20 13:54:19 UTC", "ActiveEnterTimestampMonotonic": "63640559", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target tangd-keygen.service tangd-update.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2020-04-20 13:54:19 UTC", "AssertTimestampMonotonic": "63637179", "Backlog": "128", "Before": "tangd@0.service sockets.target multi-user.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2020-04-20 13:54:19 UTC", "ConditionTimestampMonotonic": "63637179", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "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": "Mon 2020-04-20 13:54:19 UTC", "InactiveExitTimestampMonotonic": "63640559", "InvocationID": "621c4c588ecc449885fe1fad59f838a3", "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "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": "0", "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", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "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 tangd-keygen.service tangd-update.path tangd-update.service", "RestrictNamespaces": "no", "RestrictRealtime": "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": "Mon 2020-04-20 13:54:19 UTC", "StateChangeTimestampMonotonic": "63640559", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "2343", "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", "WatchdogSignal": "6", "Writable": "no"}} TASK [nbde_server : Ensure tang is enabled but stopped] ************************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:16 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure keys are rotated] *********************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:24 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "state": "keys-created"} TASK [nbde_server : Ensure we have keys] *************************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:32 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we fetch the server keys] *************************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:40 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we fetch the created keys for deploying] ************ task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:51 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we copy specific keys to tang] ********************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:63 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [nbde_server : Ensure we deploy the specific keys to tang] **************** task path: /tmp/tmp957b2cxs/tasks/main-tang.yml:72 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather keys after running with nbde_server_rotate_keys set] ************** task path: /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "examined": 6, "files": [{"atime": 1587390869.9189613, "ctime": 1587390869.9169612, "dev": 64513, "gid": 991, "gr_name": "tang", "inode": 3337, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1587390869.9169612, "nlink": 1, "path": "/var/db/tang/Kt0uKCRt_OtCw1rDP2DHGjPQbGc.jwk", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 349, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}, {"atime": 1587390869.9219613, "ctime": 1587390869.9119613, "dev": 64513, "gid": 991, "gr_name": "tang", "inode": 3279, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1587390869.9119613, "nlink": 1, "path": "/var/db/tang/xH-yEuBm3O2hgTMYYM1SEReXxuo.jwk", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 354, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}], "matched": 2, "msg": ""} TASK [Check whether keys changed - nbde_server_rotate_keys set] **************** task path: /tmp/tmp957b2cxs/tests/tests_nbde_server_rotate_keys.yml:63 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=22 changed=4 unreachable=0 failed=0 skipped=19 rescued=0 ignored=0