Ansible external source of variable files - how to handle

32 Views Asked by At

I'm migrating my playbooks from Jenkins to Ansible Tower.

I have two git repos:

  • main-automation: it contains the playbooks/roles with the business logic
  • runtime-attributes: Operations take care of hundreds of yaml dictonaries with software configurations. They are splitted in many files. They change quite often and last version should be used at runtime by the playbooks for configuring the nodes. This repo can be considered as an extended inventory.

Currently

  • before running the playbooks in main-automation, Jenkins clones runtime-attributes in <playbook_dir>/files/runtime-attributes
  • main-automation playbook loads the dictionaries using include_vars

What is the best approach when we migrate to Ansible Tower or using Ansible in general? Riccardo

0

There are 0 best solutions below