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 "#". 

I fixed this error. But now a new error:

~#  ansible-playbook -i /etc/ansible/inventory 
/etc/ansible/roles/preconf/tasks/test_new.yml -vvvv
ERROR: Syntax Error while loading YAML script, 
/etc/ansible/roles/preconf/tasks/test_new.yml
Note: The error may actually appear before this position: line 5, column 8

  sudo_user:user
   task:
       ^

mu config /etc/ansible/roles/preconf/tasks/test_new.yml

---
- host:10.95.46.117
  sudo:True
  sudo_user:user
   task:
       - name: install freeradius
                apt:pkg=freeradius
       - name: copy config
                copy:src="/etc/ansible/roles/preconf/templates/freeradius" 
dest="/etc/"
                      owner=root group=freeradius mode=0755
                 notify:
                     - restart freeradius


# ansible 10.95.46.117 -m ping
ERROR: Invalid ini entry: This - need more than 1 value to unpack

# 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.454 ms



-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/74b23a5d-0957-45ed-8f03-2be9e2e8a696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to