ansible-role-cloudflare-ddns/molecule/default/converge.yml

30 lines
693 B
YAML
Raw Normal View History

2022-08-23 10:45:57 +02:00
---
- name: Converge
hosts: all
become: true
vars:
dns_domains:
auth:
2022-08-26 01:20:32 +02:00
scopedToken: "${MOLECULE_CF_TOKEN:-}"
domains:
2022-08-26 01:20:32 +02:00
- name: "${MOLECULE_CF_DOMAIN_NAME:-}"
type: A
proxied: true
create: true
2022-08-26 01:20:32 +02:00
zoneId: "${MOLECULE_CF_ZONE_ID:-}"
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'