# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_example.yml **************************************************** 1 plays in /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml PLAY [Simple journald role invocation] ***************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:3 Tuesday 09 January 2024 16:57:32 +0000 (0:00:00.011) 0:00:00.011 ******* ok: [sut] META: ran handlers TASK [Run the role] ************************************************************ task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:12 Tuesday 09 January 2024 16:57:33 +0000 (0:00:00.492) 0:00:00.504 ******* TASK [linux-system-roles.journald : Set platform/version specific variables] *** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:3 Tuesday 09 January 2024 16:57:33 +0000 (0:00:00.014) 0:00:00.519 ******* included: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/set_vars.yml for sut TASK [linux-system-roles.journald : Ensure ansible_facts used by role] ********* task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/set_vars.yml:2 Tuesday 09 January 2024 16:57:33 +0000 (0:00:00.013) 0:00:00.532 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.journald : Check if system is ostree] ***************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/set_vars.yml:11 Tuesday 09 January 2024 16:57:33 +0000 (0:00:00.017) 0:00:00.550 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.journald : Set flag to indicate system is ostree] ***** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/set_vars.yml:16 Tuesday 09 January 2024 16:57:33 +0000 (0:00:00.191) 0:00:00.742 ******* ok: [sut] => { "ansible_facts": { "__journald_is_ostree": false }, "changed": false } TASK [linux-system-roles.journald : Ensure required packages are installed] **** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:6 Tuesday 09 January 2024 16:57:33 +0000 (0:00:00.019) 0:00:00.762 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [ "systemd-219-78.el7_9.9.x86_64 providing systemd is already installed" ] } TASK [linux-system-roles.journald : Ensure required services are enabled] ****** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:13 Tuesday 09 January 2024 16:57:34 +0000 (0:00:00.464) 0:00:01.227 ******* ok: [sut] => (item=systemd-journald.service) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "systemd-journald.service", "name": "systemd-journald.service", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ActiveEnterTimestampMonotonic": "6600796", "ActiveExitTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ActiveExitTimestampMonotonic": "6448458", "ActiveState": "active", "After": "system.slice systemd-journald.socket syslog.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-01-09 16:50:36 UTC", "AssertTimestampMonotonic": "6450468", "Before": "sysinit.target systemd-journal-flush.service", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "159990153423", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ConditionTimestampMonotonic": "6450467", "ControlGroup": "/system.slice/systemd-journald.service", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Journal Service", "DevicePolicy": "auto", "Documentation": "man:systemd-journald.service(8) man:journald.conf(5)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "382", "ExecMainStartTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ExecMainStartTimestampMonotonic": "6463691", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/lib/systemd/systemd-journald ; argv[]=/usr/lib/systemd/systemd-journald ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "4224", "FragmentPath": "/usr/lib/systemd/system/systemd-journald.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "systemd-journald.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2024-01-09 16:50:36 UTC", "InactiveEnterTimestampMonotonic": "6450315", "InactiveExitTimestamp": "Tue 2024-01-09 16:50:36 UTC", "InactiveExitTimestampMonotonic": "6463751", "JobTimeoutAction": "none", "JobTimeoutUSec": "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": "16384", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "382", "MemoryAccounting": "no", "MemoryCurrent": "9789440", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "systemd-journald.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "main", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RequiredBy": "systemd-journal-flush.service", "Requires": "systemd-journald.socket system.slice", "Restart": "always", "RestartUSec": "0", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StatusText": "Processing requests...", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "1", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "TriggeredBy": "systemd-journald.socket", "Type": "notify", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "static", "WantedBy": "initrd-switch-root.target sysinit.target", "Wants": "systemd-journald.socket", "WatchdogTimestamp": "Tue 2024-01-09 16:56:37 UTC", "WatchdogTimestampMonotonic": "367129194", "WatchdogUSec": "3min" } } ok: [sut] => (item=systemd-journal-flush.service) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "systemd-journal-flush.service", "name": "systemd-journal-flush.service", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ActiveEnterTimestampMonotonic": "6745339", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "-.mount systemd-journald.service systemd-journald.socket system.slice systemd-remount-fs.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-01-09 16:50:36 UTC", "AssertTimestampMonotonic": "6680174", "Before": "systemd-user-sessions.service systemd-tmpfiles-setup.service", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "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": "Tue 2024-01-09 16:50:36 UTC", "ConditionTimestampMonotonic": "6680173", "ControlGroup": "/system.slice/systemd-journal-flush.service", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Flush Journal to Persistent Storage", "DevicePolicy": "auto", "Documentation": "man:systemd-journald.service(8) man:journald.conf(5)", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ExecMainExitTimestampMonotonic": "6736987", "ExecMainPID": "402", "ExecMainStartTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ExecMainStartTimestampMonotonic": "6687920", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/bin/journalctl ; argv[]=/usr/bin/journalctl --flush ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/systemd-journal-flush.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "systemd-journal-flush.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-01-09 16:50:36 UTC", "InactiveExitTimestampMonotonic": "6687983", "JobTimeoutAction": "none", "JobTimeoutUSec": "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", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "0", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "systemd-journal-flush.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice -.mount systemd-journald.service", "RequiresMountsFor": "/var/log/journal", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "0", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "static", "WantedBy": "sysinit.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.journald : Create journald configuration drop-in directory] *** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:20 Tuesday 09 January 2024 16:57:34 +0000 (0:00:00.538) 0:00:01.765 ******* changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/systemd/journald.conf.d", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.journald : Configure persistent journal] ************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:28 Tuesday 09 January 2024 16:57:34 +0000 (0:00:00.191) 0:00:01.957 ******* included: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/persistent.yml for sut TASK [linux-system-roles.journald : Ensure persistent log store exists] ******** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/persistent.yml:3 Tuesday 09 January 2024 16:57:34 +0000 (0:00:00.022) 0:00:01.979 ******* changed: [sut] => { "changed": true, "gid": 190, "group": "systemd-journal", "mode": "02755", "owner": "root", "path": "/var/log/journal", "secontext": "unconfined_u:object_r:var_log_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.journald : Apply tmpfiles.d snippet on persistent log store] *** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/persistent.yml:11 Tuesday 09 January 2024 16:57:35 +0000 (0:00:00.142) 0:00:02.122 ******* ok: [sut] => { "changed": false, "cmd": [ "systemd-tmpfiles", "--create", "--prefix=/var/log/journal", "/usr/lib/tmpfiles.d/systemd.conf" ], "delta": "0:00:00.011646", "end": "2024-01-09 16:57:35.208201", "rc": 0, "start": "2024-01-09 16:57:35.196555" } TASK [linux-system-roles.journald : Configure volatile journal] **************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:32 Tuesday 09 January 2024 16:57:35 +0000 (0:00:00.193) 0:00:02.315 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.journald : Deploy journald configuration drop-in] ***** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:36 Tuesday 09 January 2024 16:57:35 +0000 (0:00:00.017) 0:00:02.333 ******* NOTIFIED HANDLER linux-system-roles.journald : Restart journald services for sut changed: [sut] => { "changed": true, "checksum": "06d17afee863716e9d3a638f3626fe8bfd903df0", "dest": "/etc/systemd/journald.conf.d/99-linux-system-roles-journald.conf", "gid": 0, "group": "root", "md5sum": "344fadfc7c1d3d9aecbcd5ab370fbd4c", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 145, "src": "/root/.ansible/tmp/ansible-tmp-1704819455.2793446-1692-73168825857599/source", "state": "file", "uid": 0 } RUNNING HANDLER [linux-system-roles.journald : Restart journald services] ****** task path: /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/handlers/main.yml:3 Tuesday 09 January 2024 16:57:35 +0000 (0:00:00.444) 0:00:02.778 ******* changed: [sut] => (item=systemd-journald.service) => { "ansible_loop_var": "item", "changed": true, "item": "systemd-journald.service", "name": "systemd-journald.service", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ActiveEnterTimestampMonotonic": "6600796", "ActiveExitTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ActiveExitTimestampMonotonic": "6448458", "ActiveState": "active", "After": "system.slice systemd-journald.socket syslog.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-01-09 16:50:36 UTC", "AssertTimestampMonotonic": "6450468", "Before": "sysinit.target systemd-journal-flush.service", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "159990153423", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ConditionTimestampMonotonic": "6450467", "ControlGroup": "/system.slice/systemd-journald.service", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Journal Service", "DevicePolicy": "auto", "Documentation": "man:systemd-journald.service(8) man:journald.conf(5)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "382", "ExecMainStartTimestamp": "Tue 2024-01-09 16:50:36 UTC", "ExecMainStartTimestampMonotonic": "6463691", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/lib/systemd/systemd-journald ; argv[]=/usr/lib/systemd/systemd-journald ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "4224", "FragmentPath": "/usr/lib/systemd/system/systemd-journald.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "systemd-journald.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2024-01-09 16:50:36 UTC", "InactiveEnterTimestampMonotonic": "6450315", "InactiveExitTimestamp": "Tue 2024-01-09 16:50:36 UTC", "InactiveExitTimestampMonotonic": "6463751", "JobTimeoutAction": "none", "JobTimeoutUSec": "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": "16384", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "382", "MemoryAccounting": "no", "MemoryCurrent": "9785344", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "systemd-journald.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "main", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RequiredBy": "systemd-journal-flush.service", "Requires": "systemd-journald.socket system.slice", "Restart": "always", "RestartUSec": "0", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StatusText": "Processing requests...", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "1", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "TriggeredBy": "systemd-journald.socket", "Type": "notify", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "static", "WantedBy": "initrd-switch-root.target sysinit.target", "Wants": "systemd-journald.socket", "WatchdogTimestamp": "Tue 2024-01-09 16:56:37 UTC", "WatchdogTimestampMonotonic": "367129194", "WatchdogUSec": "3min" } } changed: [sut] => (item=systemd-journal-flush.service) => { "ansible_loop_var": "item", "changed": true, "item": "systemd-journal-flush.service", "name": "systemd-journal-flush.service", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-01-09 16:57:36 UTC", "ActiveEnterTimestampMonotonic": "426470296", "ActiveExitTimestamp": "Tue 2024-01-09 16:57:35 UTC", "ActiveExitTimestampMonotonic": "425781707", "ActiveState": "active", "After": "-.mount systemd-journald.service systemd-journald.socket system.slice systemd-remount-fs.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-01-09 16:57:36 UTC", "AssertTimestampMonotonic": "426452850", "Before": "systemd-user-sessions.service systemd-tmpfiles-setup.service", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "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": "Tue 2024-01-09 16:57:36 UTC", "ConditionTimestampMonotonic": "426452848", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Flush Journal to Persistent Storage", "DevicePolicy": "auto", "Documentation": "man:systemd-journald.service(8) man:journald.conf(5)", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2024-01-09 16:57:36 UTC", "ExecMainExitTimestampMonotonic": "426465526", "ExecMainPID": "4880", "ExecMainStartTimestamp": "Tue 2024-01-09 16:57:36 UTC", "ExecMainStartTimestampMonotonic": "426457963", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/bin/journalctl ; argv[]=/usr/bin/journalctl --flush ; ignore_errors=no ; start_time=[Tue 2024-01-09 16:57:36 UTC] ; stop_time=[Tue 2024-01-09 16:57:36 UTC] ; pid=4880 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/systemd-journal-flush.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "systemd-journal-flush.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2024-01-09 16:57:35 UTC", "InactiveEnterTimestampMonotonic": "425781707", "InactiveExitTimestamp": "Tue 2024-01-09 16:57:36 UTC", "InactiveExitTimestampMonotonic": "426458014", "JobTimeoutAction": "none", "JobTimeoutUSec": "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", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "systemd-journal-flush.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice -.mount systemd-journald.service", "RequiresMountsFor": "/var/log/journal", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "static", "WantedBy": "sysinit.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } META: ran handlers TASK [Get systemd-journald service state] ************************************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:21 Tuesday 09 January 2024 16:57:36 +0000 (0:00:01.104) 0:00:03.882 ******* ok: [sut] => { "changed": false, "cmd": [ "systemctl", "show", "--property", "SubState", "systemd-journald.service" ], "delta": "0:00:00.006329", "end": "2024-01-09 16:57:36.907640", "rc": 0, "start": "2024-01-09 16:57:36.901311" } STDOUT: SubState=running TASK [Verify that systemd-journald is running] ********************************* task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:28 Tuesday 09 January 2024 16:57:36 +0000 (0:00:00.128) 0:00:04.010 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify that /var/log/journal/$MACHINE_ID/system.journal exists] ********** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:32 Tuesday 09 January 2024 16:57:36 +0000 (0:00:00.018) 0:00:04.028 ******* ok: [sut] => { "changed": false, "failed_when_result": false, "stat": { "atime": 1704819456.5422528, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16384, "charset": "binary", "checksum": "8a75cc4a8b96116e8a246937ccc568472a6544de", "ctime": 1704819456.9012504, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 190, "gr_name": "systemd-journal", "inode": 293601410, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "application/octet-stream", "mode": "0640", "mtime": 1704819456.9012504, "nlink": 1, "path": "/var/log/journal/88b40502d3634bfeb808a6697f1152ea/system.journal", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 8388608, "uid": 0, "version": "18446744073407989537", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify that system.journal is in online state] *************************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:38 Tuesday 09 January 2024 16:57:37 +0000 (0:00:00.163) 0:00:04.192 ******* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; journalctl --header --file /var/log/journal/88b40502d3634bfeb808a6697f1152ea/system.journal | grep -q 'State: ONLINE'\n", "delta": "0:00:00.006661", "end": "2024-01-09 16:57:37.229848", "rc": 0, "start": "2024-01-09 16:57:37.223187" } TASK [Verify that system.journal is compressed] ******************************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:47 Tuesday 09 January 2024 16:57:37 +0000 (0:00:00.140) 0:00:04.332 ******* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; journalctl --header --file /var/log/journal/88b40502d3634bfeb808a6697f1152ea/system.journal | grep -q COMPRESSED\n", "delta": "0:00:00.006252", "end": "2024-01-09 16:57:37.382606", "rc": 0, "start": "2024-01-09 16:57:37.376354" } TASK [Verify that system journal can have maximum size of 2.0G] **************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:56 Tuesday 09 January 2024 16:57:37 +0000 (0:00:00.153) 0:00:04.485 ******* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; journalctl -b -u systemd-journald -p info | grep max | tail -n 1 | grep -q -E 'max( allowed)? 2.0G'\n", "delta": "0:00:00.008415", "end": "2024-01-09 16:57:37.515806", "rc": 0, "start": "2024-01-09 16:57:37.507391" } TASK [Check generated files for ansible_managed, fingerprint] ****************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:64 Tuesday 09 January 2024 16:57:37 +0000 (0:00:00.132) 0:00:04.618 ******* included: /WORKDIR/git-add_syslog6wo40xia/tests/tasks/check_header.yml for sut TASK [Get file] **************************************************************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tasks/check_header.yml:3 Tuesday 09 January 2024 16:57:37 +0000 (0:00:00.034) 0:00:04.652 ******* ok: [sut] => { "changed": false, "content": "IyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogTUlUCgojCiMgQW5zaWJsZSBtYW5hZ2VkCiMKIyBzeXN0ZW1fcm9sZTpqb3VybmFsZAoKW0pvdXJuYWxdClN0b3JhZ2U9cGVyc2lzdGVudApTeXN0ZW1NYXhVc2U9MjA0OE0KICAgIApTcGxpdE1vZGU9dWlkCg==", "encoding": "base64", "source": "/etc/systemd/journald.conf.d/99-linux-system-roles-journald.conf" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /WORKDIR/git-add_syslog6wo40xia/tests/tasks/check_header.yml:9 Tuesday 09 January 2024 16:57:37 +0000 (0:00:00.187) 0:00:04.840 ******* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=21 changed=4 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Tuesday 09 January 2024 16:57:37 +0000 (0:00:00.025) 0:00:04.865 ******* =============================================================================== linux-system-roles.journald : Restart journald services ----------------- 1.10s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/handlers/main.yml:3 linux-system-roles.journald : Ensure required services are enabled ------ 0.54s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:13 Gathering Facts --------------------------------------------------------- 0.49s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:3 --------------------- linux-system-roles.journald : Ensure required packages are installed ---- 0.46s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:6 linux-system-roles.journald : Deploy journald configuration drop-in ----- 0.44s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:36 linux-system-roles.journald : Apply tmpfiles.d snippet on persistent log store --- 0.19s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/persistent.yml:11 linux-system-roles.journald : Check if system is ostree ----------------- 0.19s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/set_vars.yml:11 linux-system-roles.journald : Create journald configuration drop-in directory --- 0.19s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:20 Get file ---------------------------------------------------------------- 0.19s /WORKDIR/git-add_syslog6wo40xia/tests/tasks/check_header.yml:3 ---------------- Verify that /var/log/journal/$MACHINE_ID/system.journal exists ---------- 0.16s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:32 -------------------- Verify that system.journal is compressed -------------------------------- 0.15s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:47 -------------------- linux-system-roles.journald : Ensure persistent log store exists -------- 0.14s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/persistent.yml:3 Verify that system.journal is in online state --------------------------- 0.14s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:38 -------------------- Verify that system journal can have maximum size of 2.0G ---------------- 0.13s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:56 -------------------- Get systemd-journald service state -------------------------------------- 0.13s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:21 -------------------- Check generated files for ansible_managed, fingerprint ------------------ 0.03s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:64 -------------------- Check for presence of ansible managed header, fingerprint --------------- 0.03s /WORKDIR/git-add_syslog6wo40xia/tests/tasks/check_header.yml:9 ---------------- linux-system-roles.journald : Configure persistent journal -------------- 0.02s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/main.yml:28 linux-system-roles.journald : Set flag to indicate system is ostree ----- 0.02s /WORKDIR/git-add_syslog6wo40xia/tests/roles/linux-system-roles.journald/tasks/set_vars.yml:16 Verify that systemd-journald is running --------------------------------- 0.02s /WORKDIR/git-add_syslog6wo40xia/tests/tests_example.yml:28 -------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---