Use list as package name source

This commit is contained in:
Adi Priyanto 2017-07-04 19:30:03 +07:00
parent 01d801c4b7
commit 929b61a321
4 changed files with 9 additions and 3 deletions

View File

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

View File

@ -1,6 +1,7 @@
---
- name: Install Certbot.
package: "name={{ certbot_package }} state=present"
package: "name={{ item }} state=present"
with_items: "{{ certbot_package }}"
- name: Set Certbot script variable.
set_fact:

View File

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

View File

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