We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_fact
ansible 2.5.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/mnt/data/ansible/my_modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
COMMAND_WARNINGS(/etc/ansible/ansible.cfg) = False DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = [u'/mnt/data/ansible/my_modules'] DEPRECATION_WARNINGS(/etc/ansible/ansible.cfg) = True PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30 RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False SYSTEM_WARNINGS(/etc/ansible/ansible.cfg) = False
CentOS 7 with Ansible Tower installed
A Warning appears each time I changed during playbook vars like ansible_user or ansible_winrm_transport
Create ´user.yml´:
- name: Test playbook hosts: all connection: local gather_facts: no tasks: - set_fact: ansible_user: toto
Run this command with any single host inventory (same issue when multiples hosts of course):
ansible-playbook -i inventory user.yml -vvvvv
See comments at the end of 'Actual Results'
A warning line appears as you can see below when I change ansible_* vars:
[...] TASK [set_fact] *********************************************************************************************************************************************************************************************** task path: /mnt/data/test/ansible/user.yml:13 [WARNING]: Removed restricted key from module data: ansible_user = toto ok: [vm0050568e0362.RES.ROOT.CORP] => { "ansible_facts": { "ansible_user": "toto" }, "changed": false } META: ran handlers META: ran handlers [...]
I just upgraded from 2.4.2 to 2.5 and I haven't this issue before.
For information, I changed during a specific role these vars:
The main problem is that it clearly displays the new values of variables, including the password:
The text was updated successfully, but these errors were encountered:
dupe of #37535
Sorry, something went wrong.
Thanks for quick support and sorry for dupe ;)
No branches or pull requests
ISSUE TYPE
COMPONENT NAME
set_fact
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
CentOS 7 with Ansible Tower installed
SUMMARY
A Warning appears each time I changed during playbook vars like ansible_user or ansible_winrm_transport
STEPS TO REPRODUCE
Create ´user.yml´:
Run this command with any single host inventory (same issue when multiples hosts of course):
EXPECTED RESULTS
See comments at the end of 'Actual Results'
ACTUAL RESULTS
A warning line appears as you can see below when I change ansible_* vars:
I just upgraded from 2.4.2 to 2.5 and I haven't this issue before.
For information, I changed during a specific role these vars:
And I have this warning appears for each of them.
The main problem is that it clearly displays the new values of variables, including the password:
The text was updated successfully, but these errors were encountered: