I first time configurating ansible. I use ansible-playbook 1.7.2, ubuntu 14.10 (this last version ansible in my ububntu). I am configured playbook and task, created inventory file.
I started ansible follow command
ansible-playbook -i /etc/ansible/inventory /etc/ansible/roles/preconf/tasks/test_new.yml -v --list-hosts --list-tasks
contents my inventory file
[testserver]
10.95.46.117 ansible_ssh_port=5555 ansible_ssh_host=10.95.46.117 ansible_ssh_use
and receipt error:
ERROR: Invalid ini entry: This - need more than 1 value to unpack
In what my error? What i do wrong?
I first time configurating ansible. I use ansible-playbook 1.7.2, ubuntu 14.10 (last version in my ubuntu). I am configured playbook and task, created inventory file.
I started ansible follow command
ansible-playbook -i /etc/ansible/inventory /etc/ansible/roles/preconf/tasks/test_new.yml -v --list-hosts --list-tasks
my inventary file
[testserver]
10.95.46.117 ansible_ssh_port=5555 ansible_ssh_host=10.95.46.117 ansible_ssh_us
and receipt error:
[testserver]
10.95.46.117
[testserver:vars]
ansible_ssh_port=5555
ansible_connection=YourConnectionType (can be ssh or winrm)
ansible_ssh_user=YourUserName
ansible_ssh_pass=SuperSecretPassword123
Can you upload your actual inventory file somewhere for us to download and take a look? I've just tested and one way that error can happen is if there's trailing, non-ascii whitespace.
-Toshio
--
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/36dc39ef-e619-47ad-988e-db63a9a2abb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
As suggested by the documentation ( http://docs.ansible.com/ansible/intro_configuration.html#sudo-user ), i would say the remote. just to be clear, your remote is a Linux/Unix machine? double check your indentation in your playbook to be sure nothing is wrong here.can you try: ansible 10.95.46.117 -m pingMaybe consider to upgrade your ansible version (and your ubuntu)What i don't understand is that you have an error related to syntax while i can't find anything unusual..
c# ping 10.95.46.117
PING 10.95.46.117 (10.95.46.117) 56(84) bytes of data.
64 bytes from 10.95.46.117: icmp_seq=1 ttl=64 time=0.682 ms
64 bytes from 10.95.46.117: icmp_seq=2 ttl=64 time=0.404 ms
^C
--- 10.95.46.117 ping statistics ---
# ansible 10.95.46.117 -m ping
ERROR: Invalid ini entry: This - need more than 1 value to unpack
# ansible --version
ansible 1.7.2
# apt-cache showpkg ansible
Package: ansible
Versions:
1.7.2+dfsg-1
Can you upload your actual inventory file somewhere for us to download and take a look? I've just tested and one way that error can happen is if there's trailing, non-ascii whitespace
have you tried to name your inventory "hosts" and to store it at /etc/ansible ?
so you will not have to make the -i thing when you want to run your playbook
Are there any fresh ideas? I'm confused, if everything is correct, why does not work?Which repository can use for upgrade ansible?
--
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/ebd0a020-cd34-4834-b772-01ba1a506920%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Very first line of this inventory file has:
w This is the default ansible 'hosts' file.
Looks like the "#" was replaced with a "w" at some point. I get the
same error you do until I replace the "w" with a "#".