Le 07/09/2017 à 03:17, Kenny Barnes a écrit :
> I have moved the alignment every way possible it seams.  Will continue
> to read...
>
> On Tue, Sep 5, 2017 at 4:41 PM, Jean-Yves LENHOF
> <[email protected] <mailto:[email protected]>> wrote:
>
>
>
>     Le 05/09/2017 à 22:26, Kenny Barnes a écrit :
>     > Thanks but I moved like so and now get another error.
>     >
>     >  tasks:
>     >   - name: Pull WWPNs from UCS
>     >      getucswwpns:
>     >        host={{ inventory_hostname }}
>     >        ucs_user="config"
>     >        ucs_pass="config"
>     >        outputfile=output.txt
>     >        logfile=log.txt
>     >
>     >
>     > The offending line appears to be:
>     >
>     >   - name: Pull WWPNs from UCS
>     >      getucswwpns:
>     >                           ^ here
>
>     Hi,
>
>     All your problems lies to some wrong indentation...
>
>     Please read :
>     http://docs.ansible.com/ansible/latest/YAMLSyntax.html
>     <http://docs.ansible.com/ansible/latest/YAMLSyntax.html>
>     and
>     
> http://docs.ansible.com/ansible/latest/playbooks_roles.html#task-versus-play-includes
>     
> <http://docs.ansible.com/ansible/latest/playbooks_roles.html#task-versus-play-includes>
>
>     in your last error, getucswwpns need to be aligned to name...
>
>     Regards,
>
>     JYL
>

There's also a problem with ":" and "="

If you put arguments on multiple lines you need to use ":" and not
"="...  (preferred way for readability)

Documentation about it here :
http://docs.ansible.com/ansible/latest/playbooks_intro.html#playbook-language-example

If you put arguments on the same line than your module you need to use "="

Regards,

JYL

-- 
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/c3ea773e-dc17-a754-0827-19d72885be7e%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to