commit fb06fdadb314810873f2a5a43e8505c87514cb92 Author: Sven Velt Date: Sun Apr 22 14:59:43 2018 +0200 Initial commit diff --git a/files/rc.local b/files/rc.local new file mode 100644 index 0000000..ec7e087 --- /dev/null +++ b/files/rc.local @@ -0,0 +1,13 @@ +#!/bin/sh -e +# +# rc.local -- Added for compatibility with systemd +# +# Enable with: +# +# $ systemctl unmask rc-local +# $ systemctl enable rc-local +# $ systemctl start rc-local +# + +exit 0 + diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..18363e0 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,19 @@ +--- +- name: Copy /etc/rc.local if not exists + copy: + src: rc.local + dest: /etc/rc.local + owner: root + group: root + mode: "0755" + force: no + backup: yes + register: rclocalcreated + + +- name: Enable rc-local + service: + name: rc-local + enabled: yes + state: restarted +