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:
Jean-Philippe Evrard 2017-01-19 10:53:38 +00:00
parent 0119b814cb
commit 5f0defd39b
2 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -61,7 +61,6 @@
- ansible_service_mgr == 'systemd'
- memcached_connections > 1024
notify:
- Reload the systemd daemon
- Restart memcached
- name: Configure soft file limits