aboutsummaryrefslogblamecommitdiffstats
path: root/roles/rc/tasks/rc_alpine.yml
blob: 7d35528c0b2099d6de8aef5a6446cd4c395caa48 (plain) (tree)




















                                              

# openrc ~~ tasks/main.yml

---

- name: Generate rc script for desired service
  template:
    src: rc_alpine.j2
    dest: "{{ rc_alpine_dir }}/{{ rc_name }}"

- file:
    path: "{{ rc_alpine_dir }}/{{ rc_name }}"
    owner: "root"
    group: "{{ group_root }}"
    mode: "0755"

- service:
    name: "{{ rc_name }}"
    state: started
    enabled: true

remember that computers suck.