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 9, 2019 in Ansible by Ali
• 11,360 points
6,292 views

1 answer to this question.

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 9, 2019 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, 2019 in Ansible by Sasha
669 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, 2019 in Ansible by Naina
2,584 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,504 views
+2 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, 2019 in Ansible by Rahul
367 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP