18 lines
465 B
YAML
18 lines
465 B
YAML
|
|
- name: Update certbot certs
|
|
hosts: yellow
|
|
become: true
|
|
become_user: root
|
|
become_method: sudo
|
|
vars_files:
|
|
- vars.yaml
|
|
tasks:
|
|
- name: Ensure nginx, certbot, and nginx-mod-stream are installed
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- certbot
|
|
state: present
|
|
- name: Get certs for all terminate domains
|
|
ansible.builtin.shell: /usr/bin/certbot certonly --standalone -d '{{ item.external_domain }}' -n
|
|
loop: "{{ terminate_ssl }}"
|