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,430 points
147 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 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
20 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
165 views
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
150 views
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
26 views