# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Ensure that the rule runs with ssh] ************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [gather facts from sut] *************************************************** ok: [sut -> sut] TASK [Print message that this test is skipped on EL 6] ************************* skipping: [sut] => {} TASK [Run the role. If reboot is not required - the play succeeds.] ************ TASK [linux-system-roles.kdump : Install kexec-tools] ************************** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.kdump : Ensure that kdump is enabled] ***************** ok: [sut] => { "changed": false, "enabled": true, "name": "kdump", "status": { "ActiveEnterTimestamp": "Tue 2022-01-04 08:02:05 UTC", "ActiveEnterTimestampMonotonic": "43821516", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target network-online.target systemd-journald.socket system.slice remote-fs.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-01-04 08:01:49 UTC", "AssertTimestampMonotonic": "27785812", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-01-04 08:01:49 UTC", "ConditionTimestampMonotonic": "27785774", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/kdump.service", "ControlPID": "0", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-01-04 08:02:05 UTC", "ExecMainExitTimestampMonotonic": "43820839", "ExecMainPID": "1042", "ExecMainStartTimestamp": "Tue 2022-01-04 08:01:49 UTC", "ExecMainStartTimestampMonotonic": "27786713", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; 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/kdump.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-01-04 08:01:49 UTC", "InactiveExitTimestampMonotonic": "27786759", "InvocationID": "e9ef3d35091d473aaf7824b1e4646118", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14166", "LimitNPROCSoft": "14166", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14166", "LimitSIGPENDINGSoft": "14166", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "0", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-01-04 08:02:05 UTC", "StateChangeTimestampMonotonic": "43821516", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "22665", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.kdump : Include SSH tasks] **************************** included: /WORKDIR/dist-git-kdump-change-recursive-link-to-role-dir-links-CHbrn9/tests/roles/linux-system-roles.kdump/tasks/ssh.yml for sut TASK [linux-system-roles.kdump : Check whether key exists] ********************* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.kdump : Create key] *********************************** changed: [sut] => { "changed": true, "cmd": [ "/usr/bin/ssh-keygen", "-t", "rsa", "-f", "/root/.ssh/kdump_id_rsa", "-N", "" ], "delta": "0:00:00.558860", "end": "2022-01-04 08:06:19.186697", "rc": 0, "start": "2022-01-04 08:06:18.627837" } STDOUT: Generating public/private rsa key pair. Your identification has been saved in /root/.ssh/kdump_id_rsa. Your public key has been saved in /root/.ssh/kdump_id_rsa.pub. The key fingerprint is: SHA256:pV09PDQS/kHTt0iwcRG5qEQwjCXZ3Zbaezhn0KcpDUQ root@ip-10-29-163-157.us-east-1.aws.redhat.com The key's randomart image is: +---[RSA 3072]----+ | .*+o oE==O. | | o.o.o *+O oo| | . *.* O o| | * * = * | | S o * = | | . = B | | * | | | | | +----[SHA256]-----+ TASK [linux-system-roles.kdump : Fetch key] ************************************ ok: [sut] => { "changed": false, "content": "c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCZ1FERTJDZjRndlp1YlN5OEpQeEtjcFlkaG1NVUFheUxnQkdJa284T0FZTnNnRUdFNkJ5S0V4U3Zxa0ZtUjZQQ2h5Y0tZRmd1VEhiZERNQjVlSVNhM2lFTmR6ZzlSVTM4QW0rdmtOK1pRRDJPMHd1dndjWVVnOHI1ZFhPQzFUUitvQ3N2MTVXRjRZV2c3cDcxZ3JyYUMzVStJU2srcGtiNEVLcm1GTWV3dGJxSEFsQmlGVWRQWmlTeEN2dVJCb2grNEhHZlNZSDBkcDdtQldCbmR1QnVLRUZ0N1Q0R3FiN1NQUzZGMC9QUEp2bDdzU1RtT1dFZGpSYlI0NXdlTWJ6U1cvcGFHTUFRUkZZZFhMRkZEU1FOZVlIZWp5cWxDem55YzZaUkFkYmRzZnBnNFo4cGk3NDhsaXNjWGZ0ZDljcTNGT3gxL0NHaWZzTkc3c2tnLzdXemh5eEE4K0hpdzhOWmJ0bVZVUmY3d1ArV1E4Yjk3clhQV3JkWDVMVTgzNGd3N3dtNUwyMjEwWWlna0hWZGQ5bnluczVCbWRWWGJFc0RJUVZ4eTYzU3VxYjlUSWZjN1RuSkxuYldpRGpXZ2IxbVBkdUczNkdmbFRtMVhkNkg0OVdMeGtkeU1NVXZQVE0wdDNGWWtoQzlmcWl3RFVZZWd3SjlKZ2hVNnB4TUUyc3NwRE09IHJvb3RAaXAtMTAtMjktMTYzLTE1Ny51cy1lYXN0LTEuYXdzLnJlZGhhdC5jb20K", "encoding": "base64", "source": "/root/.ssh/kdump_id_rsa.pub" } TASK [linux-system-roles.kdump : Get userinfo for "root"] ********************** ok: [sut -> sut] => { "append": false, "changed": false, "comment": "root", "group": 0, "home": "/root", "move_home": false, "name": "root", "shell": "/bin/bash", "state": "present", "uid": 0 } TASK [linux-system-roles.kdump : Set authorized_keys file path] **************** ok: [sut] => { "ansible_facts": { "__kdump_authorized_keys_path": "/root/.ssh/authorized_keys" }, "changed": false } TASK [linux-system-roles.kdump : Get the authorized_keys file for the user] **** ok: [sut -> sut] => { "changed": false, "stat": { "atime": 1641283373.1377769, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "73fa8017a2d86a54aaa3b7cf4504a005b0d33e52", "ctime": 1641283309.2934546, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7660612, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1641283309.2934546, "nlink": 1, "path": "/root/.ssh/authorized_keys", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 990, "uid": 0, "version": "1469525835", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Get the authorized_keys contents, if any] ***** ok: [sut -> sut] => { "changed": false, "content": "c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDK0t3VmZOaDRFRmlSdG16U2NTbGxHWEo5cXFpWXYzR2hPcTAvYkMxZnhNbzczSExaN2NVZ3NqTm0rY2xjcWl2NjEwMXNmc0REWExzanJRVDBsdWZuVjltSFE3dmo2RU1KaGpIWjdjK0h2N2JpQ0NCckFMRUhiOVhhUHVEOEVmKzkxMmRBaDNYSnFweHVmTTlzZEgyQ1BjM0l2VmpUSFMrc1NMYThJRmNsbWVackxLeEFPcFlHVFBoMGVua2VVLzk3MUswRDBYcU9wRmtBSHFBK2dUQnFxZmNVemFYbTFHeS9NRlJBMndQTnEyMkM1RXJaYUVaSFZOYXBvSmNva1lZMXNjL0JROElBWEdyUmhlRURxMVVha2pMNDNQcGhLeDZSM05DR3F4TkpmMngwR1VmTWkrZjJpWlByNWY3Q2xGZnp6QnhIcW9oM2tHWWNvWWVVZHFuTmwgMW1pbnV0ZXRpcEByZWRoYXQuY29tCnNzaC1yc2EgQUFBQUIzTnphQzF5YzJFQUFBQURBUUFCQUFBQkFRRFdtU2VaaUlscXRZR2lQUjBjbzgrNzUwTm4vMzZZam5XZlc3WTE4UFBNanN4ZUFVRTA1RWd4Z0ZSaEFvcFVIVlFDTEpMbVFuUHM4K2ZWZWNCbVhYWVhYOW0xaEdIQmY2Q2ZwNHZyN1Y5M3RPaVBMbFRqTlplOElOUzZyVHhrNHJTN2E4cmNhK0NhSHNvTzFlMCtSdEw4SXFWRzhjT2ZhU1hWSDdKeWlpcHpGclNwQ0E2UGRrelI0dkxEVTJBSUcvR0hiUTBlTkNtUklhZCtiY3BPK3NtaG5VSlgxYWlGVDJDOVJvOE1GaXZOeDl6Ly85MjlEb2NVZVhvV1YyQXcvUUE0VGZ5WFh6SGhoTGI3UUFnSHZwVWpLRXRXYVdVdGxNaUVjSEtRcXRmK2pRd2d5QkJGWURSOFFRU1VKL0hyamFnd3U2WlRQd1VWS1A5clNvMkpaNEdWIHRmdC1hcnRlbWlzLW1hc3Rlci1rZXkKZWNkc2Etc2hhMi1uaXN0cDI1NiBBQUFBRTJWalpITmhMWE5vWVRJdGJtbHpkSEF5TlRZQUFBQUlibWx6ZEhBeU5UWUFBQUJCQklaUUY5dEFsZUo5L1NDclV5U01ZWkFlUFlMVitMS0xjbi90ZjdXQ3MxeVgydGlGNENDMUtpWWxjemI2SmRZYmhCREZzVjJvNVhBUTREVlRYdU1BN0R3PSAxbWludXRldGlwQHJlZGhhdC5jb20K", "encoding": "base64", "source": "/root/.ssh/authorized_keys" } TASK [linux-system-roles.kdump : Write new authorized_keys if needed] ********** changed: [sut -> sut] => { "changed": true, "checksum": "f9429a29e13a8afdddae878be22aa27ea1726b93", "dest": "/root/.ssh/authorized_keys", "gid": 0, "group": "root", "md5sum": "de152bd5b25dedb37095a8c8aab3c282", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:ssh_home_t:s0", "size": 1591, "src": "/root/.ansible/tmp/ansible-tmp-1641283580.6044385-4631-245137218954177/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Fetch the servers public key] ***************** ok: [sut -> sut] => { "changed": false, "content": "c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCZ1FDN05JeEExRmNSd0tiMGRyTGw5RXMrMlhJbTB1QVMxVDErTlNZVzBZNXJnRFVDQ0k2WFRkeFZ1WVhDRUhjOUw1bWMyYWxwOHpYaW1HeVJXbStrT1JpcmFCc3NhRXJickVOUjE0VE4xeThNRng0MHNqWkk2L1NmS0doNldTOGpuVWFpMTl3aW1OQnM2RjZjRXFTTlNsQTQvMWxObXZ5dytRU0NJNTVJSER5dDc1KzBSa1ZSVnljLzNGeUYyOTB5cUduMUZ3Q0tiNEdZUWw5bTZXOW0xYU1PMUlJdWhRaEhMT0J3UGZRSWtIbEJVRTE0a1EvSkYzTEY2MFoyNXN6clBJVStLWExGUGRmTFJ6dmtBZ0Q1WUF6QWZGS1IrOGZIazBvVDBmNW9yWklyZTQ5bFhiT081K0YwSzloRVFSdHAxa2d0QlBtei9aeEMvcWVNSXRhYmZDYm1kNThkM0wybXRiK0xNTUE5YlRicURIMlNxY2JoWVNPbnpqYkVGWVFReDNlY3duVlh2UEx0L2REWEt3MkIySlpzSmZxaUlDZzdsY2NydG5Wck9SVWRSVmE2dDNselRJSWovM2V5THRBaGdLWnUzTjFTRVNMZytxTW9ZTzg1czZjbEZsejJmWm9nZkVjdmpMSG9ncHhNV2M5WGk3QXlURU5PbFQzbmk3c2xoNzg9IHJvb3RAaXAtMTAtMjktMTYzLTE1Ny51cy1lYXN0LTEuYXdzLnJlZGhhdC5jb20K", "encoding": "base64", "source": "/etc/ssh/ssh_host_rsa_key.pub" } TASK [linux-system-roles.kdump : Add the servers public key to known_hosts on managed node] *** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "hash_host": false, "key": "10.29.163.157 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC7NIxA1FcRwKb0drLl9Es+2XIm0uAS1T1+NSYW0Y5rgDUCCI6XTdxVuYXCEHc9L5mc2alp8zXimGyRWm+kORiraBssaErbrENR14TN1y8MFx40sjZI6/SfKGh6WS8jnUai19wimNBs6F6cEqSNSlA4/1lNmvyw+QSCI55IHDyt75+0RkVRVyc/3FyF290yqGn1FwCKb4GYQl9m6W9m1aMO1IIuhQhHLOBwPfQIkHlBUE14kQ/JF3LF60Z25szrPIU+KXLFPdfLRzvkAgD5YAzAfFKR+8fHk0oT0f5orZIre49lXbOO5+F0K9hEQRtp1kgtBPmz/ZxC/qeMItabfCbmd58d3L2mtb+LMMA9bTbqDH2SqcbhYSOnzjbEFYQQx3ecwnVXvPLt/dDXKw2B2JZsJfqiICg7lccrtnVrORUdRVa6t3lzTIIj/3eyLtAhgKZu3N1SESLg+qMoYO85s6clFlz2fZogfEcvjLHogpxMWc9Xi7AyTENOlT3ni7slh78= root@ip-10-29-163-157.us-east-1.aws.redhat.com\n", "mode": "0644", "name": "10.29.163.157", "owner": "root", "path": "/etc/ssh/ssh_known_hosts", "secontext": "system_u:object_r:etc_t:s0", "size": 614, "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists] ***** ok: [sut] => { "changed": false, "stat": { "atime": 1641283309.664443, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 24, "charset": "us-ascii", "checksum": "8ee23509e24173d1d8d601431a180a75bf2b6f3b", "ctime": 1634204497.575367, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 575765, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1634204497.575367, "nlink": 1, "path": "/etc/kdump.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 8550, "uid": 0, "version": "126791146", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Generate /etc/kdump.conf] ********************* changed: [sut] => { "backup_file": "/etc/kdump.conf.8433.2022-01-04@08:06:22~", "changed": true, "checksum": "cccdf59bd49d11b830f14a93a93dd88fb31df812", "dest": "/etc/kdump.conf", "gid": 0, "group": "root", "md5sum": "70de52c3dc34fe31b99dde560bcf513b", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:kdump_etc_t:s0", "size": 78, "src": "/root/.ansible/tmp/ansible-tmp-1641283582.2526774-4650-64475791244166/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Get mode of /etc/sysconfig/kdump if it exists] *** ok: [sut] => { "changed": false, "stat": { "atime": 1641283309.511448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b9175d428489ae1e4ee7ba446bbb74a069d1dffa", "ctime": 1634204497.4153671, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4872841, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1630026119.0, "nlink": 1, "path": "/etc/sysconfig/kdump", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 2478, "uid": 0, "version": "3029619074", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Generate /etc/sysconfig/kdump] **************** changed: [sut] => { "backup_file": "/etc/sysconfig/kdump.8556.2022-01-04@08:06:23~", "changed": true, "checksum": "f72fdd79ebc820e4c57c8ac11d104f2a7fea10e0", "dest": "/etc/sysconfig/kdump", "gid": 0, "group": "root", "md5sum": "ea1a0b5f83daa6e4cda906836f2d2405", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 377, "src": "/root/.ansible/tmp/ansible-tmp-1641283583.16011-4663-75907895880520/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Find out reserved memory for the crash kernel] *** ok: [sut] => { "changed": false, "content": "MTY3NzcyMTYwCg==", "encoding": "base64", "source": "/sys/kernel/kexec_crash_size" } TASK [linux-system-roles.kdump : Set the kdump_reboot_required fact] *********** ok: [sut] => { "ansible_facts": { "kdump_reboot_required": false }, "changed": false } TASK [linux-system-roles.kdump : Fail if reboot is required and kdump_reboot_ok is false] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Reboot the managed node] ********************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Clear the kdump_reboot_required flag] ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Ensure that kdump is started] ***************** ok: [sut] => { "changed": false, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-01-04 08:02:05 UTC", "ActiveEnterTimestampMonotonic": "43821516", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target network-online.target systemd-journald.socket system.slice remote-fs.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-01-04 08:01:49 UTC", "AssertTimestampMonotonic": "27785812", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-01-04 08:01:49 UTC", "ConditionTimestampMonotonic": "27785774", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/kdump.service", "ControlPID": "0", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-01-04 08:02:05 UTC", "ExecMainExitTimestampMonotonic": "43820839", "ExecMainPID": "1042", "ExecMainStartTimestamp": "Tue 2022-01-04 08:01:49 UTC", "ExecMainStartTimestampMonotonic": "27786713", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; 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/kdump.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-01-04 08:01:49 UTC", "InactiveExitTimestampMonotonic": "27786759", "InvocationID": "e9ef3d35091d473aaf7824b1e4646118", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14166", "LimitNPROCSoft": "14166", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14166", "LimitSIGPENDINGSoft": "14166", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "0", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-01-04 08:02:05 UTC", "StateChangeTimestampMonotonic": "43821516", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "22665", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } RUNNING HANDLER [linux-system-roles.kdump : restart kdump] ********************* changed: [sut] => { "changed": true, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-01-04 08:02:05 UTC", "ActiveEnterTimestampMonotonic": "43821516", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target network-online.target systemd-journald.socket system.slice remote-fs.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-01-04 08:01:49 UTC", "AssertTimestampMonotonic": "27785812", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-01-04 08:01:49 UTC", "ConditionTimestampMonotonic": "27785774", "ConfigurationDirectoryMode": "0755", "ControlGroup": "/system.slice/kdump.service", "ControlPID": "0", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-01-04 08:02:05 UTC", "ExecMainExitTimestampMonotonic": "43820839", "ExecMainPID": "1042", "ExecMainStartTimestamp": "Tue 2022-01-04 08:01:49 UTC", "ExecMainStartTimestampMonotonic": "27786713", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; 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/kdump.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-01-04 08:01:49 UTC", "InactiveExitTimestampMonotonic": "27786759", "InvocationID": "e9ef3d35091d473aaf7824b1e4646118", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14166", "LimitNPROCSoft": "14166", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14166", "LimitSIGPENDINGSoft": "14166", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "0", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-01-04 08:02:05 UTC", "StateChangeTimestampMonotonic": "43821516", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "22665", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } PLAY RECAP ********************************************************************* sut : ok=23 changed=6 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---