Include many vars in one go

18 views
Skip to first unread message

James Morgan

unread,
Jun 21, 2016, 5:31:34 AM6/21/16
to Ansible Project
Hi,

Is it possible to load many files in one go? In a similar way to the yum module?

My issue is that I have ~80 application files that I load from vars.

  pre_tasks:
    - name: Load default application config
      include_vars: "{{ item }}"
      with_fileglob: "{{ playbook_dir }}/vars/app_default-*.yml"
      no_log: True

When I do this with large inventories of 100's of boxes it logs a line for every include which is a lot.

I would prefer if I could load all in one go per host.

I have added no_log: True to reduce the noise but its still pretty noisey

Many thanks

James
Reply all
Reply to author
Forward
0 new messages