Hello community,

I have written the following ansible script

---
# Playbook file: loopplay.yml
-
    name: loopplay
    hosts: centos2
    tags:
        - loopplay
    tasks:
        -
            name: looptask
            user:
                name: "{{ item }}"
                state: present
                groups: "wheel"
            loop:
                - testuser1
                - testuser2
                


However, I keep on getting the following error:gg

The error appears to have been in 
> '/opt/ansible-projects/test_5af9a55448f0c8003531a07d_loopproject/loopplay.yml':
>  
> line 10, column 13, but may
> be elsewhere in the file depending on the exact syntax problem.
> The offending line appears to be:
> -
> name: looptask
> ^ here



Can someone let me know where I'm going wrong?


Thanks

-- 
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/f0ecd8ac-93d0-40eb-9399-d6204555fe72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to