Error saying "conflicting action statements: user, uri"

0 votes

I'm running an ansible playbook but I end up with this error:

conflicting action statements: user, uri

playbook:

- name: install
  hosts:  director.0
  gather_facts: no
  tasks:
- name: elastic cluster ready wait 
uri:
  url: https://mlaascloudui.{{ lookup('env','ENV') }}.pre.mls.eu.gs.aws.cloud.vwgroup.com/api/v1/clusters/elasticsearch/{{elasticClusterDetails.elasticsea$
  method: GET
  user: admin
  password: "{{****}}"
  force_basic_auth: yes
  register: result
  until: result['status']|default(0) == 412
  retries: 60
  delay: 10
- name: watcher
Jan 8 in Ansible by Ali
• 10,380 points
71 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

YAML files are very sensitive about the spacing. You've made a small spacing mistake. 

uri should be under "- name". Change that and it should work fine. 

answered Jan 8 by krishti

Related Questions In Ansible

+1 vote
1 answer
0 votes
1 answer

Error saying "KeyError: 'ApiVersion'" - Ansible

The reason behind this error is that ...READ MORE

answered Jan 8 in Ansible by Sasha
13 views
0 votes
1 answer

Error saying "Failed to find required executable npm in paths"

Hey @Thomas,  Seems like those extra paths have ...READ MORE

answered Jan 10 in Ansible by Naina
85 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying "DistributionNotFound jinja2<2.9"

Hey @Kiara, update your distribution instead of jinja ...READ MORE

answered Jan 14 in Ansible by Rahul
13 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.