Fix duplicate service code

Move code block up a level so we don't duplicated logic in redhat.yaml
and debian.yaml

Change-Id: Ie0b8ac7af7d67ec7e0ea8c0468eff13ebeaba600
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger
2015-11-21 19:23:39 -05:00
parent bc6fcdc900
commit 7b4be1fc02
3 changed files with 7 additions and 14 deletions

View File

@@ -17,3 +17,10 @@
- include: service/redhat.yaml
when: ansible_os_family == 'RedHat'
- name: Enable nodepool service.
service:
enabled: yes
name: nodepool
notify:
- Restart nodepool

View File

@@ -21,10 +21,3 @@
copy:
dest: /etc/default/nodepool
src: ../../files/etc/default/nodepool
- name: Enable nodepool service.
service:
enabled: yes
name: nodepool
notify:
- Restart nodepool

View File

@@ -21,10 +21,3 @@
copy:
dest: /etc/sysconfig/nodepool
src: ../../files/nodepool.sysconfig
- name: Enable nodepool service.
service:
enabled: yes
name: nodepool
notify:
- Restart nodepool