Commit 08e8b525 by Kevin Falcone

We need to have the unit for ansible2's service to stop

It won't find the old init script and use it the way Ansible1's
service.py did.
parent 086c51d0
......@@ -79,6 +79,27 @@
- install
- install:base
- name: Add mongod systemd configuration on 16.04
template:
src: "etc/systemd/system/mongod.service.j2"
dest: "/etc/systemd/system/mongod.service"
notify:
- restart mongo
when: ansible_distribution_release == 'xenial'
tags:
- install
- install:configuration
- name: enable mongod systemd unit on 16.04
systemd:
name: mongod
enabled: yes
daemon_reload: yes
when: ansible_distribution_release == 'xenial'
tags:
- install
- install:configuration
- name: Stop mongod service
service:
name: mongod
......@@ -118,27 +139,6 @@
- install
- install:configuration
- name: Add mongod systemd configuration on 16.04
template:
src: "etc/systemd/system/mongod.service.j2"
dest: "/etc/systemd/system/mongod.service"
notify:
- restart mongo
when: ansible_distribution_release == 'xenial'
tags:
- install
- install:configuration
- name: enable mongod systemd unit on 16.04
systemd_2_2:
name: mongod
enabled: yes
daemon_reload: yes
when: ansible_distribution_release == 'xenial'
tags:
- install
- install:configuration
- name: Start mongo service
service:
name: mongod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment