mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-08 03:07:14 +02:00
Optimized tests für run once
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: "An Ansible role to automate Let’s Encrypt SSL certificate issuance and renewal for Nginx"
|
||||
@@ -10,17 +9,15 @@ galaxy_info:
|
||||
https://www.veen.world
|
||||
min_ansible_version: "2.9"
|
||||
platforms:
|
||||
- name: Archlinux
|
||||
versions:
|
||||
- rolling
|
||||
- name: Archlinux
|
||||
versions:
|
||||
- rolling
|
||||
galaxy_tags:
|
||||
- letsencrypt
|
||||
- nginx
|
||||
- ssl
|
||||
- certificate
|
||||
- security
|
||||
- letsencrypt
|
||||
- nginx
|
||||
- ssl
|
||||
- certificate
|
||||
- security
|
||||
repository: "https://github.com/kevinveenbirkenbach/infinito-nexus"
|
||||
issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues"
|
||||
documentation: "https://docs.infinito.nexus"
|
||||
dependencies:
|
||||
- srv-web-6-6-tls-renew
|
||||
|
@@ -1,13 +1,21 @@
|
||||
- block:
|
||||
- name: create nginx letsencrypt config file
|
||||
template:
|
||||
src: "letsencrypt.conf.j2"
|
||||
dest: "{{nginx.directories.http.global}}letsencrypt.conf"
|
||||
notify: restart openresty
|
||||
|
||||
- name: "Set CAA records for all base domains"
|
||||
include_tasks: 01_set-caa-records.yml
|
||||
when: dns_provider == 'cloudflare'
|
||||
|
||||
- include_tasks: utils/run_once.yml
|
||||
- name: Load former meta dependencies once
|
||||
block:
|
||||
- name: Include moved dependency 'srv-web-6-6-tls-renew'
|
||||
include_role:
|
||||
name: srv-web-6-6-tls-renew
|
||||
- set_fact:
|
||||
run_once_srv_web_7_7_letsencrypt: true
|
||||
when: run_once_srv_web_7_7_letsencrypt is not defined
|
||||
- block:
|
||||
- name: create nginx letsencrypt config file
|
||||
template:
|
||||
src: "letsencrypt.conf.j2"
|
||||
dest: "{{nginx.directories.http.global}}letsencrypt.conf"
|
||||
notify: restart openresty
|
||||
|
||||
- name: "Set CAA records for all base domains"
|
||||
include_tasks: 01_set-caa-records.yml
|
||||
when: dns_provider == 'cloudflare'
|
||||
|
||||
- include_tasks: utils/run_once.yml
|
||||
when: run_once_srv_web_7_7_letsencrypt is not defined
|
||||
|
Reference in New Issue
Block a user