mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 06:20:26 +08:00
Replaces references to template: with ansible.builtin.template Signed-off-by: Ryan Lerch <rlerch@redhat.com>
29 lines
726 B
YAML
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
|