Files
fedora-infra_ansible/roles/abrt/faf-pre/tasks/ssl.yml
Ryan Lerch 47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00

29 lines
726 B
YAML

---
- name: Check whether we need to initialize letsencrypt first
stat: path="/etc/letsencrypt/live/{{ item.key }}"
register: le_stat_checks
with_dict: "{{ letsencrypt.certificates }}"
when:
- letsencrypt is defined
- name: Stop httpd when letsencrypt has not been run
service:
name: httpd
state: stopped
when:
- letsencrypt is defined
- not item.stat.exists
with_items: "{{ le_stat_checks.results }}"
- name: Install letsencrypt ssl certificates for dev
include_role: name=copr/certbot
tags:
- config
- name: Install retrace ssl vhost
ansible.builtin.template: src="httpd/retrace_ssl.conf.j2" dest="/etc/httpd/conf.d/retrace_ssl.conf"
when: letsencrypt is defined
tags:
- config