GK
Size: a a a
GK
VL
GK
РО
A
- name: restart sshd
service:
name: ssh
state: restarted
A
A
A
name
на указывать /usr/sbin/sshd
или /lib/systemd/system/ssh.service
?A
IB
IB
- name: restart service cron on centos, in all cases, also issue daemon-reload to pick up config changes
systemd:
state: restarted
daemon_reload: yes
name: crond
A
A
systemd
NH
service
в случае с systemd
должен дёргать по имени юнита.Г
ЕС
A
VL
ansible-playbook -i first main.yml
AM
DZ