当我运行 ansible 剧本时
ansible-playbook --ask-vault-pass -i vdc-inventory complete_provision.yaml -vvv
我设置的密码发送给所有人module_args
:
changed: [localhost] => {
"changed": true,
"invocation": {
"module_args": {
...
"org": "system",
"password": "xxx",
...
}
},
"msg": "ABC has been created"
}
那很不好。它甚至没有被编辑。
更新 1
运行剧本时,环境变量设置为:
- hosts: localhost
connection: local
environment:
env_user: "{{ VCD_USER_NAME }}"
env_password: "{{ VCD_USER_PASSWORD }}"
env_host: "{{ VCD_URL }}"
它们实际上是模块参数......