summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/stunnel.yml
blob: 7cb88236608c0dc37b561be4d15c7734f9226903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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=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