Running Ansible playbook on hosts only at build time

Problem: Assigning an Ansible role to a host group means that all Ansible roles are run when prompted

Expected outcome: I would like to automate the runnning of one/some Ansible roles only at build time and have others continuously without have to manually select them.

Foreman and Proxy versions: 2.3.2

Foreman and Proxy plugin versions: Ansible v6.1.1

Distribution and version: Ubuntu 18.04

thanks for bringing this up. We are currently on improving Ansible runs by supporting tags and I think this use case aligns with that effort. I have created Feature #32696: Specify a subset of assigned roles to run - Ansible - Foreman, feel free to edit.

Thanks! Looking forward to the feature