---
- name: insert the CIRB first boot script
copy: src=cirb-first-boot dest=/usr/sbin/cirb-first-boot owner=root group=root mode=755
- name: insert CIRB first boot systemd script
copy: src=cirb-first-boot.service dest=/usr/lib/systemd/system/cirb-first-boot.service owner=root group=root mode=644
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "7"
- name: insert CIRB first boot upstart script
copy: src=cirb-first-boot.conf dest=/etc/init/cirb-first-boot.conf owner=root group=root mode=644
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "6"
- name: enable the CIRB first boot service
service: name=cirb-first-boot state=stopped enabled=yes