path: is not indented?

On Mon, Aug 26, 2019 at 10:34 PM 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 }}"
>
> I'm just trying to store values from a CSV file to a variable, I haven't
> had any luck so far unfortunately.
>
>
> ---
>
> - 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 }}"
>
> --
> 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/bc158058-cd37-45f2-86df-a0aff57d356b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/bc158058-cd37-45f2-86df-a0aff57d356b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Karl Auer

Email  : ka...@2pisoftware.com
Website: http://2pisoftware.com

GPG/PGP : 301B 1F4E 624D AD99 242C 7A68 EC24 7113 E854 4A4E
Previous: 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816

-- 
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/CA%2B%2BT08T4KhrrCQUhqJGQq0kzBxamKq%2BPbBRTQBtBFW57DWancw%40mail.gmail.com.

Reply via email to