2020-03-21 11:31:56 +00:00
|
|
|
actions = {
|
|
|
|
'systemd-reload': {
|
|
|
|
'command': '/usr/bin/systemctl daemon-reload',
|
|
|
|
'cascade_skip': False,
|
|
|
|
'triggered': True,
|
2020-03-27 12:46:10 +00:00
|
|
|
'needed_by': {
|
|
|
|
'svc_systemd:',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'systemd-hostname': {
|
|
|
|
'command': 'hostnamectl set-hostname {}'.format(node.hostname),
|
|
|
|
'unless': '[ "$(hostnamectl --static)" = "{}" ]'.format(node.hostname),
|
|
|
|
# Provided by 'hostname' bundle
|
|
|
|
'needs': {
|
|
|
|
'file:/etc/hosts',
|
|
|
|
},
|
2020-03-21 11:31:56 +00:00
|
|
|
},
|
|
|
|
}
|