Use systemd module instead of command
This commit is contained in:
parent
0654fb8ced
commit
8eae5bba63
|
@ -14,7 +14,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
|
||||
### Changed
|
||||
|
||||
* Removed all "warn: False" args in command, shell and other modules as it's been depreciated and will give a hard fail in ansible-core 2.14.0.
|
||||
* Use systemd module instead of command
|
||||
* Removed all "warn: False" args in command, shell and other modules as it's been deprecated and will give a hard fail in ansible-core 2.14.0.
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
systemd:
|
||||
daemon-reload: yes
|
||||
|
||||
|
||||
- name: restart apparmor
|
||||
service:
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
systemd:
|
||||
daemon-reload: yes
|
||||
|
||||
- name: restart docker
|
||||
service:
|
||||
|
|
|
@ -7,4 +7,5 @@
|
|||
daemon_reload: yes
|
||||
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
systemd:
|
||||
daemon-reload: yes
|
|
@ -16,7 +16,8 @@
|
|||
daemon_reload: yes
|
||||
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
systemd:
|
||||
daemon-reload: yes
|
||||
|
||||
- name: Restart minifirewall
|
||||
command: /etc/init.d/minifirewall restart
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
daemon_reload: yes
|
||||
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
systemd:
|
||||
daemon-reload: yes
|
||||
|
||||
- name: restart munin-node
|
||||
service:
|
||||
|
|
Loading…
Reference in a new issue