library/roles/letsencrypt-acmetool-client: New variable, default, true. If set to false the repository package installation is skipped. Useful to manage unsupported distributions.

This commit is contained in:
Andrea Dell'Amico 2016-05-28 15:04:01 +02:00
parent 1309a27c2e
commit b861552351
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,7 @@
---
letsencrypt_acme_install: False
# Set to false if a binary installation is needed (unsupported distributions)
letsencrypt_pkg_install: True
letsencrypt_acme_ppa_repo: 'ppa:hlandau/rhea'
letsencrypt_acme_debian_repo: 'deb http://ppa.launchpad.net/hlandau/rhea/ubuntu xenial main'
letsencrypt_acme_debian_repo_key: '9862409EF124EC763B84972FF5AC9651EDB58DFA'

View File

@ -4,6 +4,7 @@
when:
- letsencrypt_acme_install
- is_ubuntu
- letsencrypt_pkg_install
notify: Initialize letsencrypt acmetool
tags: letsencrypt
@ -12,6 +13,7 @@
when:
- letsencrypt_acme_install
- is_debian
- letsencrypt_pkg_install
tags: letsencrypt
- name: Install the letsencrypt acmetool repo on debian
@ -19,6 +21,7 @@
when:
- letsencrypt_acme_install
- is_debian
- letsencrypt_pkg_install
notify: Initialize letsencrypt acmetool
tags: letsencrypt
@ -34,7 +37,9 @@
- name: Install the letsencrypt acmetool package
apt: pkg=acmetool state=installed
when: letsencrypt_acme_install
when:
- letsencrypt_acme_install
- letsencrypt_pkg_install
tags: letsencrypt
- name: Create the letsencrypt acme config directory