Prefire A name
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
Nikolai Rodionov 2024-05-09 12:43:40 +02:00
parent 9478dd21ed
commit 9d73894ae3
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
1 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,17 @@
set_fact:
public_ip: 0.0.0.0
# It's repeated twice to avoid mounting the real ip when it should be removed
- name: Prefire A record
community.general.cloudflare_dns:
api_token: "{{ api_token }}"
record: "{{ env }}"
zone: "badhouseplants.net"
type: A
value: "{{ public_ip }}"
state: present
- name: Configre A record
community.general.cloudflare_dns:
api_token: "{{ api_token }}"