diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-06-15 18:00:57 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-06-15 18:00:57 +0200 |
commit | 97e78349145156ca6565ee5b2af54983a6fdd3a6 (patch) | |
tree | b5eb26c93c323425d8a8a008ef1f7750f61e1ded /roles/lacme/tasks | |
parent | bf6d69d38578245302525395f5f53ac40f441f0c (diff) |
Rename letsencrypt-tiny to lacme.
Diffstat (limited to 'roles/lacme/tasks')
-rw-r--r-- | roles/lacme/tasks/main.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/roles/lacme/tasks/main.yml b/roles/lacme/tasks/main.yml new file mode 100644 index 0000000..4b95d4c --- /dev/null +++ b/roles/lacme/tasks/main.yml @@ -0,0 +1,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 |