Danny Bessems
1428fe73f7
All checks were successful
continuous-integration/drone/push Build is passing
35 lines
816 B
YAML
35 lines
816 B
YAML
- name: Create destination folder
|
|
ansible.builtin.file:
|
|
path: /opt/firstboot
|
|
state: directory
|
|
|
|
- name: Create firstboot script file
|
|
ansible.builtin.template:
|
|
src: firstboot.j2
|
|
dest: /opt/firstboot/firstboot.sh
|
|
owner: root
|
|
group: root
|
|
mode: o+x
|
|
|
|
- name: Create @reboot crontab job
|
|
ansible.builtin.cron:
|
|
name: firstboot
|
|
special_time: reboot
|
|
job: "/opt/firstboot/firstboot.sh >/dev/tty1 2>&1"
|
|
|
|
- name: Copy payload folder (common)
|
|
ansible.builtin.copy:
|
|
src: ansible_payload/common/
|
|
dest: /opt/firstboot/ansible/
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
|
|
- name: Copy payload folder (per appliancetype)
|
|
ansible.builtin.copy:
|
|
src: ansible_payload/{{ appliancetype }}/
|
|
dest: /opt/firstboot/ansible/
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|