@@ -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
@@ -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