Commit e38efb90 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

fix vm-bootstrap role for Debian 10

/etc/rc.local doesn't exist anymore in Debian 10
parent 37431d02
...@@ -15,8 +15,11 @@ ...@@ -15,8 +15,11 @@
stat: path=/etc/opt/netconfig.sh stat: path=/etc/opt/netconfig.sh
register: netconfig_file register: netconfig_file
- name: replace /etc/rc.local - name: create cronjob for netconfig.sh at boot time
copy: src=/etc/opt/netconfig.sh dest=/etc/rc.local mode=755 cron:
name: "call netconfig.sh at reboot"
special_time: reboot
job: "/etc/opt/netconfig.sh"
when: netconfig_file.stat.exists == True when: netconfig_file.stat.exists == True
- name: call netconfig.sh - name: call netconfig.sh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment