On Mon, 26 Aug 2019 at 14:34, Chrono 7 <chrono...@gmail.com> wrote:

> I get an error stating:
>
> ERROR! no action detected in task. This often indicates a misspelled
> module name, or incorrect module path.
>
> The error appears to have been in 'system_info.yaml': line 7, column 7,
> but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
>   tasks:
>     - name: Read the CSV & Set Values
>       ^ here
>
> That's with my file being reworked to:
>
> ---
>
> - name: Import CSV Containing Info For System(s) To Prep
>   hosts: 127.0.0.1
>
>   tasks:
>    - name: Read the CSV & Set Values
>      read_csv:
>      path: systems.csv
>      register: systems
>      delegate_to: localhost
>
>    - set_fact:
>        IP: "{{ systems.list.1.IPAddress }}"
>
>
>
Your indentation is wrong.

try:


---

- name: Import CSV Containing Info For System(s) To Prep
  hosts: 127.0.0.1

  tasks:
   - name: Read the CSV & Set Values
     read_csv:
       path: systems.csv
     register: systems
     delegate_to: localhost

   - set_fact:
       IP: "{{ systems.list.1.IPAddress }}"


-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPgjrhu5%3DHpAxVZ3bGzFTXHJbarpJpHW_ngAhXuups4Dg%40mail.gmail.com.

Reply via email to