Extend ansible roles #2
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
3
ansible/roles/firstboot/files/firstboot.sh
Normal file
3
ansible/roles/firstboot/files/firstboot.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
# FOO
|
12
ansible/roles/firstboot/tasks/main.yml
Normal file
12
ansible/roles/firstboot/tasks/main.yml
Normal file
@ -0,0 +1,12 @@
|
||||
- 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
|
||||
job: "/opt/firstboot.sh"
|
Reference in New Issue
Block a user