library/roles/ubuntu-deb-general/tasks/pki-basics.yml: Add the 'ca' tag to the tasks that create the /etc/pki directory tree.

This commit is contained in:
Andrea Dell'Amico 2017-01-20 18:31:31 +01:00
parent 2a18f55e34
commit 37b22b5f6b
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
---
- name: Ensure that the PKI directory exists
file: path={{ pki_dir }} state=directory owner=root group=root mode=0755
tags: [ 'pki', 'ssl', 'letsencrypt' ]
tags: [ 'pki', 'ssl', 'ca', 'letsencrypt' ]
- name: Ensure that the PKI subdirectories exist
file: path={{ pki_dir }}/{{ item }} state=directory owner=root group=root mode=0755
with_items: '{{ pki_subdirs }}'
tags: [ 'pki', 'ssl', 'letsencrypt' ]
tags: [ 'pki', 'ssl', 'ca', 'letsencrypt' ]
- name: When we are going to install letsencrypt certificates, create a preliminary path and a self signed cert. Check if a certificate already exists. If so, skip all the related tasks
stat: path={{ letsencrypt_acme_user_home | default(omit) }}/live/{{ ansible_fqdn }}