From 51b94d0bf957fe1f425fec54bdcac6598222795c Mon Sep 17 00:00:00 2001 From: mikeeq Date: Wed, 3 Jan 2024 14:11:44 +0100 Subject: [PATCH] change some pipelines v2 --- playbooks/vms.yml | 34 +++++++++---------- .../apps/letsencrypt-coredns/tasks/cert.yml | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/playbooks/vms.yml b/playbooks/vms.yml index ccbece3d..f4f5c8c8 100644 --- a/playbooks/vms.yml +++ b/playbooks/vms.yml @@ -35,24 +35,24 @@ # vars: # hosts_to_deploy: vms -# - name: Provision DNS1 -# hosts: -# - dns1 -# become: true -# roles: -# - servers/network-static-dns -# - apps/docker -# - servers/apps/coredns -# - servers/apps/letsencrypt-coredns +- name: Provision DNS1 + hosts: + - dns1 + become: true + roles: + - servers/network-static-dns + - apps/docker + - servers/apps/coredns + - servers/apps/letsencrypt-coredns -# - name: Provision DNS2 -# hosts: -# - dns2 -# become: true -# roles: -# - servers/network-static-dns -# - apps/docker -# - servers/apps/adguard-home +- name: Provision DNS2 + hosts: + - dns2 + become: true + roles: + - servers/network-static-dns + - apps/docker + - servers/apps/adguard-home # - name: Provision GW1 # hosts: diff --git a/roles/servers/apps/letsencrypt-coredns/tasks/cert.yml b/roles/servers/apps/letsencrypt-coredns/tasks/cert.yml index af655560..efe7a150 100644 --- a/roles/servers/apps/letsencrypt-coredns/tasks/cert.yml +++ b/roles/servers/apps/letsencrypt-coredns/tasks/cert.yml @@ -53,7 +53,7 @@ when: le_challenge.changed - name: Check if DNS records propagated - shell: dig @127.0.0.1 -i txt {{ item.value['dns-01'].record }} | grep -w "{{ item.value['dns-01'].resource_value }}" + shell: dig @127.0.0.1 -i txt {{ item.value['dns-01'].record }} | grep -w -- "{{ item.value['dns-01'].resource_value }}" loop: "{{ le_challenge.challenge_data | dict2items }}" retries: 5 changed_when: false