AWX - Inventories - Can't save

30 views
Skip to first unread message

Simon Pole

unread,
May 23, 2019, 9:01:22 AM5/23/19
to Ansible Project
Hi, 

I'm running AWX 4 and everything seems fine but when I go to inventories and add anything in the variables box I present me with a "Failed to add new inventory. Post returned status: 400" 

2019-05-23 13_59_21-Window.png

2019-05-23 13_59_39-Window.png


Vandana Thakur

unread,
May 23, 2019, 9:09:15 AM5/23/19
to ansible...@googlegroups.com, simon...@gmail.com
400 error is bad request . 


So i think the format in which you are passing the variable is incorrect . 

Like try the correct json format . 

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b469c63b-810d-4d0b-8d5b-24c88e7cfabb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

cavamagie

unread,
May 23, 2019, 9:29:15 AM5/23/19
to ansible...@googlegroups.com, simon...@gmail.com
if you enter
a valid variable?
lite
---
exa_var: true

works?

Vandana Thakur

unread,
May 23, 2019, 9:30:30 AM5/23/19
to ansible...@googlegroups.com
Yes i think so . Try once with this

Simon Pole

unread,
May 23, 2019, 10:05:10 AM5/23/19
to Ansible Project
Thanks for the input, I was being stupid. 
My vars on my computer where I've historically run the playbook have been:

ansible_user=xxxxxxx

on AWX is expects its in yaml as 

ansible_user: xxxxxxx

Cheers for the input!



On Thursday, 23 May 2019 14:30:30 UTC+1, new_ansible wrote:
Yes i think so . Try once with this
On Thu, 23 May 2019 at 18:59, cavamagie <cava...@gmail.com> wrote:
if you enter
a valid variable?
lite
---
exa_var: true

works?

Il giorno gio 23 mag 2019 alle ore 15:09 Vandana Thakur <vanda...@gmail.com> ha scritto:
400 error is bad request . 


So i think the format in which you are passing the variable is incorrect . 

Like try the correct json format . 
On Thu, 23 May 2019 at 18:31, Simon Pole <simon...@gmail.com> wrote:
Hi, 

I'm running AWX 4 and everything seems fine but when I go to inventories and add anything in the variables box I present me with a "Failed to add new inventory. Post returned status: 400" 

2019-05-23 13_59_21-Window.png

2019-05-23 13_59_39-Window.png


--
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 ansible...@googlegroups.com.

--
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 ansible...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.

--
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 ansible...@googlegroups.com.

Vandana Thakur

unread,
May 23, 2019, 10:07:00 AM5/23/19
to ansible...@googlegroups.com
Glad to help :)

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages