Not sure what you mean my removing the parentheses and text between.
Doesn't that equal blank??
This is my complete yml file>
---
- name: Get Existing UCS Information
hosts: ucs
connection: local
gather_facts: no
tasks:
- name: Pull WWPNs from UCS
getucswwpns:
hosts= {{ inventory_hostname }}
ucs_usercwcw="config"
ucs_passcwcw="config"
outputfilecw=output.txt
logfile=log.txt
This is the complete error msg.
ERROR! no action detected in task. This often indicates a misspelled module
name, or incorrect module path.
The error appears to have been in '/etc/ansible/ucs/autozone.yml': line 8,
column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Pull WWPNs from UCS
^ here
The error appears to have been in '/etc/ansible/ucs/autozone.yml': line 8,
column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Pull WWPNs from UCS
^ here
On Thursday, September 7, 2017 at 9:24:56 AM UTC-4, Kai Stian Olstad wrote:
>
> On 05.09.2017 20:51, Kenny Barnes wrote:
> > Keep getting an error when running the following playbook. Copied from
> > gethub and watch youtube running the same w/o error.
> >
> > ---
> > - name: Get Existing UCS Information
> > hosts: ucs (Runs on UCS group in the inv file)
> > connection: local
> > gather_facts: no
> >
> > tasks:
> > - name: Pull WWPNs from UCS
> > getucswwpns:
> > host={{ inventory_hostname }}
> > ucs_user="config"
> > ucs_pass="config"
> > outputfile=output.txt
> > logfile=log.txt
> >
> >
> > Error:
> >
> > The offending line appears to be:
> >
> > tasks:
> > - name: Pull WWPNs from UCS
> > ^ here
> >
> >
> > Any help appreciated.
>
> The problem is that you have not shown you complete error message, the
> part you have is not relevant at all.
> If you look at you output is also say something like "the error might be
> else in the file".
>
> If you had provided the completa error message you probably would had a
> answer much sooner.
> But my guess is that your problem is the hosts: line, remove the
> parentheses and the text between.
>
> --
> Kai Stian Olstad
>
--
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/4edbc079-f0dc-40ce-b6f4-c3d66e8398cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.