This commit is contained in:
@ -1,7 +1,7 @@
|
||||
- name: Copy firstboot script file
|
||||
ansible.builtin.copy:
|
||||
src: firstboot.sh
|
||||
dest: /opt/firstboot.sh
|
||||
- name: Create firstboot script file
|
||||
ansible.builtin.template:
|
||||
src: firstboot.j2
|
||||
dest: /opt/firstboot/firstboot.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: o+x
|
||||
@ -9,4 +9,14 @@
|
||||
ansible.builtin.cron:
|
||||
name: "firstboot"
|
||||
special_time: reboot
|
||||
job: "/opt/firstboot.sh"
|
||||
job: "/opt/firstboot/firstboot.sh"
|
||||
- name: Copy payload folder
|
||||
ansible.builtin.copy:
|
||||
src: ansible_payload/
|
||||
dest: /opt/firstboot/ansible/
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
- name: Install ansible-galaxy collection
|
||||
ansible.builtin.shell:
|
||||
cmd: ansible-galaxy collection install community.general
|
Reference in New Issue
Block a user