Packer.Images/ansible/roles/firstboot/tasks/main.yml

13 lines
290 B
YAML
Raw Normal View History

2021-06-08 19:56:06 +00:00
- name: Copy firstboot script file
ansible.builtin.copy:
src: firstboot.sh
dest: /opt/firstboot.sh
owner: root
group: root
mode: o+x
- name: Create @reboot crontab job
ansible.builtin.cron:
name: "firstboot"
special_time: reboot
2021-06-08 19:57:07 +00:00
job: "/opt/firstboot.sh"