aboutsummaryrefslogblamecommitdiffstats
path: root/roles/rc/tasks/rc_openbsd.yml
blob: 3d89e55550dc6be510cc76f6067266619b205f56 (plain) (tree)




















                                              

# openrc ~~ tasks/main.yml

---

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

- file:
    path: "{{ rc_openbsd_dir }}/{{ rc_name }}"
    owner: "root"
    group: "{{ group_root }}"
    mode: "0555"

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

remember that computers suck.