Initial commit
This commit is contained in:
commit
fb06fdadb3
13
files/rc.local
Normal file
13
files/rc.local
Normal 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
19
tasks/main.yml
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue