lb-manager.yml
475 Bytes
---
- hosts: 127.0.0.1
vars:
qcloud_key: "{{ lookup('hashi_vault', 'secret=yoho/ops/qcloud token=6GbUnoyubwn2nJgaehFaUPH3 url=http://10.66.107.2:8200') }}"
module: testsearch_to_az2
tasks:
- fail: msg="module is not defined'"
when: module is not defined
- name: Execute module "{{ module }}"
shell: cd ../scripts/lb_manager/; python lb_switch.py --secretid="{{ qcloud_key.SecretId }}" --secretkey="{{ qcloud_key.SecretKey }}" --module="{{ module }}"