Housekeeping;Disable crontab w/ reboot-followup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c0953acefe
commit
990534618b
@ -6,3 +6,4 @@
|
|||||||
roles:
|
roles:
|
||||||
- vapp
|
- vapp
|
||||||
- network
|
- network
|
||||||
|
- cleanup
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
- name: Disable crontab job
|
||||||
|
ansible.builtin.cron:
|
||||||
|
name: firstboot
|
||||||
|
state: absent
|
||||||
|
- name: Reboot host
|
||||||
|
reboot:
|
@ -1,3 +1,6 @@
|
|||||||
|
- name: Set hostname
|
||||||
|
ansible.builtin.hostname:
|
||||||
|
name: "{{ ovfproperties['guestinfo.hostname'] }}"
|
||||||
- name: Create netplan configuration file
|
- name: Create netplan configuration file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: netplan.j2
|
src: netplan.j2
|
||||||
|
@ -18,3 +18,4 @@
|
|||||||
((item.values() | list)[0].values() | list)[1]})
|
((item.values() | list)[0].values() | list)[1]})
|
||||||
}}
|
}}
|
||||||
loop: "{{ ovfenv.matches }}"
|
loop: "{{ ovfenv.matches }}"
|
||||||
|
no_log: true
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
mode: o+x
|
mode: o+x
|
||||||
- name: Create @reboot crontab job
|
- name: Create @reboot crontab job
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: "firstboot"
|
name: firstboot
|
||||||
special_time: reboot
|
special_time: reboot
|
||||||
job: "/opt/firstboot/firstboot.sh"
|
job: "/opt/firstboot/firstboot.sh"
|
||||||
- name: Copy payload folder
|
- name: Copy payload folder
|
||||||
|
Loading…
Reference in New Issue
Block a user