diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2017-05-31 17:39:57 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2017-05-31 17:39:57 +0200 |
commit | e136d3edbdb6749d4559939dc9fcbc11d166e34c (patch) | |
tree | 36e051f5675b003c38bac4fc6eec738698125437 /roles/common/tasks | |
parent | 789f4f2e1b01873b200b973584d1501ba32e3bfd (diff) |
/lib/systemd/system → /etc/systemd/system
Diffstat (limited to 'roles/common/tasks')
-rw-r--r-- | roles/common/tasks/bacula.yml | 4 | ||||
-rw-r--r-- | roles/common/tasks/stunnel.yml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/common/tasks/bacula.yml b/roles/common/tasks/bacula.yml index 35666bd..73a2fa1 100644 --- a/roles/common/tasks/bacula.yml +++ b/roles/common/tasks/bacula.yml @@ -38,35 +38,35 @@ --privkey=/etc/bacula/ssl/{{ inventory_hostname_short }}.pem --ou=BaculaFD --cn={{ inventory_hostname }} --dns={{ inventory_hostname }} -t rsa -b 4096 -h sha512 register: r changed_when: r.rc == 0 failed_when: r.rc > 1 notify: - Restart bacula-fd tags: - genkey - name: Copy the master public key for data encryption copy: src=certs/bacula/data-master.pem dest=/etc/bacula/ssl/master.pem owner=root group=root mode=0644 tags: - genkey - name: Copy bacula-fd.service - copy: src=lib/systemd/system/bacula-fd.service - dest=/lib/systemd/system/bacula-fd.service + copy: src=etc/systemd/system/bacula-fd.service + dest=/etc/systemd/system/bacula-fd.service owner=root group=root mode=0644 notify: - systemctl daemon-reload - Restart bacula-fd - meta: flush_handlers - name: Enable bacula-fd service: name=bacula-fd enabled=yes - name: Start bacula-fd service: name=bacula-fd state=started diff --git a/roles/common/tasks/stunnel.yml b/roles/common/tasks/stunnel.yml index 68469cd..7cb8823 100644 --- a/roles/common/tasks/stunnel.yml +++ b/roles/common/tasks/stunnel.yml @@ -1,20 +1,20 @@ - name: Install stunnel4 apt: pkg=stunnel4 - name: Set 'ENABLED=0' in /etc/default/stunnel4 lineinfile: dest=/etc/default/stunnel4 regexp='^(\s*#)?\s*ENABLED=' line='ENABLED=0' owner=root group=root mode=0644 - name: Copy stunnel4 service file - copy: src=lib/systemd/system/{{ item }} - dest=/lib/systemd/system/{{ item }} + copy: src=etc/systemd/system/{{ item }} + dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644 notify: - systemctl daemon-reload with_items: - stunnel4.service - stunnel4@.service |