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/99bbfed292f52b5a88070b77931893fd%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to