Hello guys,

below is my playbook, actually i have csv file called subnetsheet in my git
repo where i have kept my playbook, in my first task i am reading my yaml
file and then based on the value "location_network" i am reading CSV file
and get some of the data which was working as i am expected.

here my question is can i keep my CSV file in a different git repo, if yes
how can i call that csv file from this current repo.
I am trying to keep a single csv file as I have branches. If I modify the
csv data in amy of those branch it's getting conflicting so I want to keep
a single csv file. If anyone has any idea pls help me.

  tasks:
    - name: read vm_data
      set_fact:
        vm_data: "{{ lookup('file', 'variables/vm_data.yaml') | from_yaml
}}"
      tags:
        - read-vm_data

    - name: getting IP_scope
      getip_scope:
        csv_file: template/subnetsheet.csv
        location_network: "{{ location_network }}"
      register: vm_data
      tags:
        - get-ip-sco

regards,
Thirumalai Raja.

-- 
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/CALyK%3Dg86kQLgx%3DAPaQ8%2B%3D83n7s5-3mcxOP%2B36%2Bykn18eg%2BUECA%40mail.gmail.com.

Reply via email to