playbooks/alicloud_dns_sync.yml

17 lines
409 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- hosts: localhost
gather_facts: no
# 动态加载 DNS 配置文件
vars_files:
- vars/dns_records_svc_plus.yaml # ← 可以切换成不同环境
# 如果你想在命令行覆盖 AK/SK则可以使用 --extra-vars
vars:
alicloud_access_key: "{{ aliyun_ak | default('') }}"
alicloud_secret_key: "{{ aliyun_sk | default('') }}"
roles:
- role: vhosts/alicloud_dns_sync