1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-15 03:35:27 +01:00
doorlockd-mirror/ansible/roles/acme_sh/tasks/main.yml
Ralf Ramsauer 24288092cb ansible: remove trailing whitespaces
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-08 22:54:37 +02:00

43 lines
889 B
YAML

---
- name: Install acme.sh
pacman:
name: acme.sh
state: present
- name: Install dependencies
pacman:
name: ['cronie','bind-tools']
state: present
- name: Enable and start cronie
service:
name: cronie
enabled: yes
state: started
- name: Run acem.sh --install
command: ./acme.sh --install
args:
chdir: /usr/share/acme.sh
- name: Create acme directory
file:
path: /etc/acme/
state: directory
- name: Copy nsupdate key
copy:
decrypt: yes
src: nsupdate.key
dest: /etc/acme/nsupdate.key
- name: Issue ssl certificate
command: acme.sh --issue --home "/etc/acme/" --test -d lock.binary.kitchen --dns dns_nsupdate
register: command_result
failed_when: command_result.stderr != ''
changed_when: command_result.rc == 0
environment:
NSUPDATE_SERVER: ns1.binary-kitchen.de
NSUPDATE_KEY: /etc/acme/nsupdate.key