mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
16 lines
441 B
YAML
16 lines
441 B
YAML
---
|
|
- name: Load a tasks file based on the OS type.
|
|
include: "{{ item }}"
|
|
with_first_found:
|
|
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
|
- "{{ ansible_distribution }}.yml"
|
|
- "{{ ansible_os_family }}.yml"
|
|
ignore_errors: true
|
|
|
|
- name: Install Certbot.
|
|
package: "name={{ certbot_package }} state=present"
|
|
|
|
- name: Set Certbot script variable.
|
|
set_fact:
|
|
certbot_script: "{{ certbot_package }}"
|