Install extra packages which are listed on certbot_package_extras variable

This commit is contained in:
Adi Priyanto 2017-07-06 21:37:44 +07:00
parent 929b61a321
commit 2e5fbd02f5
6 changed files with 15 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.retry
tests/test.sh
meta/.galaxy_install_info

View File

@ -1,4 +1,7 @@
---
# Additional packages/plugins for Certbot
certbot_package_extras: []
# Certbot auto-renew cron job configuration (for certificate renewals).
certbot_auto_renew: true
certbot_auto_renew_user: "{{ ansible_user }}"

View File

@ -1 +0,0 @@
{install_date: 'Tue Jul 4 10:56:19 2017', version: 2.0.0}

View File

@ -1,7 +1,15 @@
---
- name: Define certbot_packages.
set_fact:
certbot_packages: "{{ [ certbot_package ] }}"
- name: Define extra certbot_packages.
set_fact:
certbot_packages: "{{ certbot_packages | list + certbot_package_extras | list }}"
- name: Install Certbot.
package: "name={{ item }} state=present"
with_items: "{{ certbot_package }}"
with_items: "{{ certbot_packages }}"
- name: Set Certbot script variable.
set_fact:

View File

@ -1,2 +1 @@
certbot_package:
- letsencrypt
certbot_package: letsencrypt

View File

@ -1,5 +1,2 @@
---
certbot_package:
- certbot
- certbot-apache
- certbot-nginx
certbot_package: certbot