role.systemd-rc-local/tasks/main.yml

20 lines
296 B
YAML
Raw Permalink Normal View History

2018-04-22 12:59:43 +00:00
---
- 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