2022-08-23 10:45:57 +02:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
2022-08-24 11:28:01 +02:00
|
|
|
become: true
|
|
|
|
vars:
|
|
|
|
dns_domains:
|
|
|
|
auth:
|
2022-08-26 01:20:32 +02:00
|
|
|
scopedToken: "${MOLECULE_CF_TOKEN:-}"
|
2022-08-24 11:28:01 +02:00
|
|
|
domains:
|
2022-08-26 01:20:32 +02:00
|
|
|
- name: "${MOLECULE_CF_DOMAIN_NAME:-}"
|
2022-08-24 11:28:01 +02:00
|
|
|
type: A
|
|
|
|
proxied: true
|
|
|
|
create: true
|
2022-08-26 01:20:32 +02:00
|
|
|
zoneId: "${MOLECULE_CF_ZONE_ID:-}"
|
|
|
|
|
2022-08-24 11:28:01 +02:00
|
|
|
pre_tasks:
|
|
|
|
- name: Update apt cache.
|
|
|
|
apt: update_cache=yes cache_valid_time=600
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: Install python requests
|
|
|
|
pip:
|
|
|
|
name:
|
|
|
|
- requests
|
|
|
|
roles:
|
|
|
|
- role: laurivan.cloudflare_ddns
|
2022-08-26 01:20:32 +02:00
|
|
|
post_tasks:
|
|
|
|
- name: Update apt cache.
|
|
|
|
apt: update_cache=yes cache_valid_time=600
|
|
|
|
when: ansible_os_family == 'Debian'
|