ansible -- vars_files directory

42 views
Skip to first unread message

Gonzalo Fernandez

unread,
Jun 8, 2015, 2:39:56 PM6/8/15
to ansible...@googlegroups.com
Hi

I am writing a playbook which looks like the following:

- name:  test

  hosts: 127.0.0.1

  connection: local

  gather_facts: yes


  vars_files:

    - vars/directory/file.yml


  roles:


I wonder if there is anyway of defining a "vars_files" with JUST a directory so it will read all the files within the directory rather than defining one by one?

I would like to get this as dynamic as I could so I wonder if this is possible?

ideas/tips please?

Thanks!
Reply all
Reply to author
Forward
0 new messages