Skip to content

Commit

Permalink
Always disable or enable the mesos-master and mesos-slave services (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
veger authored and ernestas-poskus committed Nov 16, 2016
1 parent 7f0aaef commit 1f270a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/mesos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
- Reload daemon
- Restart mesos-slave

- name: Disable mesos-master service
service: name=mesos-master enabled=no
when: mesos_install_mode == "slave" and systemd_check.stat.exists == true
- name: Enable/Disable mesos-master service
service: name=mesos-master enabled="{{ (mesos_install_mode == 'slave') | ternary('no', 'yes') }}"
when: systemd_check.stat.exists == true

- name: Disable mesos-slave service
service: name=mesos-slave enabled=no
when: mesos_install_mode == "master" and systemd_check.stat.exists == true
- name: Enable/Disable mesos-slave service
service: name=mesos-slave enabled="{{ (mesos_install_mode == 'master') | ternary('no', 'yes') }}"
when: systemd_check.stat.exists == true

0 comments on commit 1f270a4

Please sign in to comment.