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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user