summaryrefslogtreecommitdiffstats
path: root/roles/lacme/tasks/main.yml
blob: 4b95d4c5c38b4a43811e1abf000fd76dc19c3066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- name: Install dependencies for lacme
  apt: pkg={{ item }}
  with_items:
    - libjson-perl
    - libjson-xs-perl
    - libconfig-tiny-perl
    - libwww-perl
    - liblwp-protocol-https-perl
    - libnet-ssleay-perl

- name: Copy lacme
  copy: src=deb/lacme_0.1-1_all.deb
        dest=/tmp
  notify: Install lacme

- meta: flush_handlers

- name: Create a user 'lacme'
  user: name=lacme system=yes
        group=nogroup
        createhome=no
        home=/nonexistent
        shell=/usr/sbin/nologin
        password=!
        state=present

- name: Copy lacme/lacme-certs.conf
  copy: src=etc/lacme/lacme.conf
        dest=/etc/lacme/lacme.conf
        owner=root group=root
        mode=0644

- name: Copy lacme/lacme-certs.conf
  template: src=etc/lacme/lacme-certs.conf.j2
            dest=/etc/lacme/lacme-certs.conf
            owner=root group=root
            mode=0644