add missing epel dependency
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d4f2d7693e
commit
998c2ff4dc
@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
certbot_packages_extra: []
|
||||||
|
|
||||||
certbot_initial_run_enabled: False
|
certbot_initial_run_enabled: False
|
||||||
certbot_work_dir: /var/lib/letsencrypt
|
certbot_work_dir: /var/lib/letsencrypt
|
||||||
certbot_config_dir: /etc/letsencrypt
|
certbot_config_dir: /etc/letsencrypt
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
vars:
|
vars:
|
||||||
python3_packages_extra:
|
certbot_packages_extra:
|
||||||
- epel-release
|
- epel-release
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
@ -1,18 +1,21 @@
|
|||||||
---
|
---
|
||||||
|
- block:
|
||||||
|
- name: Install certbot
|
||||||
|
package:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
loop: "{{ certbot_packages_extra + __certbot_packages }}"
|
||||||
|
|
||||||
- name: Create certbot user '{{ certbot_user }}'
|
- name: Create certbot user '{{ certbot_user }}'
|
||||||
user:
|
user:
|
||||||
name: "{{ certbot_user }}"
|
name: "{{ certbot_user }}"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
when: not certbot_user == 'root'
|
when: not certbot_user == 'root'
|
||||||
|
become: True
|
||||||
|
become_user: root
|
||||||
|
|
||||||
- name: Deploy certbot
|
- block:
|
||||||
block:
|
|
||||||
- name: Install certbot
|
|
||||||
package:
|
|
||||||
name: certbot
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Create certbot environment
|
- name: Create certbot environment
|
||||||
file:
|
file:
|
||||||
path: "{{ item.name }}"
|
path: "{{ item.name }}"
|
||||||
|
3
vars/main.yml
Normal file
3
vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
__certbot_packages:
|
||||||
|
- certbot
|
Loading…
Reference in New Issue
Block a user