add missing epel dependency
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-09-18 16:37:54 +02:00
parent d4f2d7693e
commit 998c2ff4dc
4 changed files with 19 additions and 11 deletions

View File

@ -1,4 +1,6 @@
---
certbot_packages_extra: []
certbot_initial_run_enabled: False
certbot_work_dir: /var/lib/letsencrypt
certbot_config_dir: /etc/letsencrypt

View File

@ -2,7 +2,7 @@
- name: Converge
hosts: all
vars:
python3_packages_extra:
certbot_packages_extra:
- epel-release
roles:

View File

@ -1,18 +1,21 @@
---
- name: Create certbot user '{{ certbot_user }}'
- block:
- name: Install certbot
package:
name: "{{ item }}"
state: present
loop: "{{ certbot_packages_extra + __certbot_packages }}"
- name: Create certbot user '{{ certbot_user }}'
user:
name: "{{ certbot_user }}"
become: True
become_user: root
when: not certbot_user == 'root'
become: True
become_user: root
- name: Deploy certbot
block:
- name: Install certbot
package:
name: certbot
state: present
- block:
- name: Create certbot environment
file:
path: "{{ item.name }}"

3
vars/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
__certbot_packages:
- certbot