Use systemd module instead of shell
Using ansible systemd module to daemon reload and service reload is the solution for the future. Let's embrace it! Change-Id: Ic8d4312c2c7fe10ef4edb5b77a2068a21d8550db Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
This commit is contained in:
parent
0119b814cb
commit
5f0defd39b
|
@ -13,12 +13,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Reload the systemd daemon
|
||||
command: "systemctl daemon-reload"
|
||||
when:
|
||||
- ansible_service_mgr == 'systemd'
|
||||
|
||||
- name: Restart memcached
|
||||
service:
|
||||
systemd:
|
||||
name: "memcached"
|
||||
state: "restarted"
|
||||
daemon_reload: yes
|
||||
|
|
|
@ -61,7 +61,6 @@
|
|||
- ansible_service_mgr == 'systemd'
|
||||
- memcached_connections > 1024
|
||||
notify:
|
||||
- Reload the systemd daemon
|
||||
- Restart memcached
|
||||
|
||||
- name: Configure soft file limits
|
||||
|
|
Loading…
Reference in New Issue