domain.modify.yml
506 Bytes
---
- hosts: localhost
vars_files:
- extra_vars/all.yml
vars:
qcloud_key: "{{ lookup('hashi_vault', 'secret=yoho/ops/qcloud token='+'{{vault.token}}'+' url='+'{{vault.server}}') }}"
tasks:
- name: 修改域名映射的IP或CNAME
domain_modify:
secretId: "{{ qcloud_key.SecretId }}"
secretKey: "{{ qcloud_key.SecretKey }}"
domain_name: "www.yohotest.xyz"
#value: "java-public-lb-862332839.cn-north-1.elb.amazonaws.com.cn"
value: '1.1.1.1'