ansible-roles/ghn-gcore/ghn-gcoreboot/tasks/main.yml

20 lines
638 B
YAML

---
# Install the gcore boot script
- name: Install the gcore boot script
template: src=gcore.j2 dest=/etc/init.d/{{ item }} owner=root group=root mode=0755
with_items: 'gcore'
when:
- gcoreboot_install
tags: [ 'gcoreboot' ]
- name: Enable the gcore boot script
file: src=/etc/init.d/{{ item }} dest=/etc/rc2.d/S95gcore state=link
file: src=/etc/init.d/{{ item }} dest=/etc/rc3.d/S95gcore state=link
file: src=/etc/init.d/{{ item }} dest=/etc/rc0.d/K25gcore state=link
file: src=/etc/init.d/{{ item }} dest=/etc/rc1.d/K25gcore state=link
with_items: 'gcore'
when:
- gcoreboot_install
tags: [ 'gcoreboot' ]