Import ansible role versionned from git by lifecycle environment

Hi,

I am looking to use an ansible rôle versioned per environment cycle from the git branches (Library, dev, test, preprod, prod)

Regards,

I find a answer at Ansible as configuration management tool

hi @mipsou,

unfortunately the linked thread references a video that is no longer available.

We currently have our puppet repo set up with one branch per environment. We now want to migrate to ansible and I am not sure how to map this to ansible. The main issue here is that we think that we need a way to develop and test new roles and new versions of roles before putting them to production.

Hi @cbergmann

You can have a look at foreman_ansible_director and smart_proxy_ansible_director which is a new plugin to import Ansible content from Galaxy/git, version control it similar to Katello, and then run against hosts by using Ansible Execution Environments.

Docs: PR 4730 in foreman-documentation (draft as of June 1st)

Hi @maximilian thanks for the tip. I will look into this when I have some time.