summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/tasks')
-rw-r--r--roles/common/tasks/bacula.yml4
-rw-r--r--roles/common/tasks/stunnel.yml4
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