Hi All,
---
- name: Weblogic Server control
hosts: "servername"
tasks:
- name: Ansible Id
shell:
cmd: |
echo "{{ ansible_password }}" | /usr/local/bin/sudo -S su -
sudousername
echo "{{ ansible_password }}" | /usr/local/bin/sudo -S su -
sudousername << EOF
id
EOF
register: shell_out
- debug:
var: shell_out
When i execute above playbook ansible it prints password in debug
output.Can anyone tell me any other approach to avoid printing passwords
other than no_logs option.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/b4792e2c-9551-44cf-9dbd-b4dda772163f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.