Initial commit

This commit is contained in:
Sven Velt 2018-04-22 14:59:43 +02:00
commit fb06fdadb3
2 changed files with 32 additions and 0 deletions

13
files/rc.local Normal file
View file

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

19
tasks/main.yml Normal file
View file

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