this is a bug, please open a ticket in github using https://raw.githubusercontent.com/ansible/ansible/devel/ISSUE_TEMPLATE.md
On Thu, Feb 11, 2016 at 11:16 AM, Ben Friedman <[email protected]> wrote: > I'm interfacing with a REST API using the URI module. I need to wait > until the return data from the API has a parameter set to a certain > string. I also have to use 'no_log: true' so that the URI module does not > print sensitive data(uri username/password) to the screen as other > systems(jenkins) are calling this playbook. > > Everything was fine until Ansible 2.0. Now with 2.0, even with no_log > set, the URI module will print the request body along with the username and > password to screen on FAILED attempts, even though it's waiting for the > 'UNTIL' condition to be true. > > Is there any way to disable this output? > > Sample task: > > - name: wait until the resource responds with a status of ON > uri: > url: "{{ url }}/resources/{{ item.split('.')[0] }}" > method: GET > user: "{{ user }}" > password: "{{ pass }}" > return_content: yes > validate_certs: no > register: statusCode_output > until: statusCode_output.json.statusCode == "ON" > retries: 30 > delay: 60 > no_log: True > with_items: groups.created_hosts > > So, the functionality still works with 2.0. However, every 60 seconds, until > the condition is true, it prints this to the screen. I've truncated the data > but basically it's the entire request body, along with my username/password, > and the response from the API > > > TASK [resource_project_management : wait until the resource responds with a > statusCode of ON] *** > > *FAILED - RETRYING: TASK: resource_project_management : wait until the > resource responds with a statusCode of ON (29 retries left). Result was: > {u'status': 200, .........* > > > -- > 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/6bf00791-ae7e-4f37-81ac-484cb5ddaf07%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/6bf00791-ae7e-4f37-81ac-484cb5ddaf07%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- ---------- Brian Coca -- 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/CACVha7d2R1gWo4g5N3eO0BY5vFbJoPXvxqZzdW0n_FE_j30tBQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
