diff options
author | binary <me@rgoncalves.se> | 2020-12-02 18:53:37 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-12-02 18:53:37 +0100 |
commit | 10146429f96478f8f243727d7cdb23a3fd9e046d (patch) | |
tree | 4a442b7edf354e2cd206e407493dd662ab4af544 /roles/rc/tasks | |
parent | d607fd2bbd87b5c485a2da961bd03a0d1ae2edcd (diff) | |
download | infrastructure-10146429f96478f8f243727d7cdb23a3fd9e046d.tar.gz |
Add freebsd rc.
Diffstat (limited to 'roles/rc/tasks')
-rw-r--r-- | roles/rc/tasks/rc_freebsd.yml | 16 | ||||
-rw-r--r-- | roles/rc/tasks/rc_openbsd.yml | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/roles/rc/tasks/rc_freebsd.yml b/roles/rc/tasks/rc_freebsd.yml new file mode 100644 index 0000000..472c35e --- /dev/null +++ b/roles/rc/tasks/rc_freebsd.yml @@ -0,0 +1,16 @@ + +# openrc ~~ tasks/main.yml + +--- + +- name: Generate rc script for desired service + template: + src: rc_freebsd.j2 + dest: "{{ rc_bsd_dir }}/{{ rc_name }}" + +- file: + path: "{{ rc_bsd_dir }}/{{ rc_name }}" + owner: "{{ user_root }}" + group: "{{ group_root }}" + mode: 0555 + diff --git a/roles/rc/tasks/rc_openbsd.yml b/roles/rc/tasks/rc_openbsd.yml index 2055de0..ca566ba 100644 --- a/roles/rc/tasks/rc_openbsd.yml +++ b/roles/rc/tasks/rc_openbsd.yml @@ -6,10 +6,10 @@ - name: Generate rc script for desired service template: src: rc_openbsd.j2 - dest: "{{ rc_openbsd_dir }}/{{ rc_name }}" + dest: "{{ rc_bsd_dir }}/{{ rc_name }}" - file: - path: "{{ rc_openbsd_dir }}/{{ rc_name }}" + path: "{{ rc_bsd_dir }}/{{ rc_name }}" owner: "{{ user_root }}" group: "{{ group_root }}" mode: 0555 |