2017-06-21 13:38:55 +02:00
|
|
|
# Install a docker based mariadb.
|
|
|
|
---
|
|
|
|
- name: install service file.
|
|
|
|
template:
|
|
|
|
src: files/memcached.service
|
|
|
|
dest: /etc/systemd/system/memcached.service
|
|
|
|
mode: 644
|
|
|
|
owner: root
|
|
|
|
group: root
|
2017-09-29 16:40:38 +02:00
|
|
|
|
2017-06-21 13:38:55 +02:00
|
|
|
- name: install service file
|
|
|
|
command: systemctl daemon-reload
|
2017-09-29 16:40:38 +02:00
|
|
|
|
|
|
|
- name: start service at boot.
|
|
|
|
command: systemctl reenable memcached.service
|
|
|
|
|
2017-06-21 13:38:55 +02:00
|
|
|
- name: make sure service is started
|
|
|
|
systemd:
|
|
|
|
name: memcached.service
|
|
|
|
state: started
|