I read the documenation to foreman ansible plugin and have some questions.
- Do I need ansible server to execute playbooks?
Or It is enough to install foreman-ansible plugin.
We have ansible server running with a dynamic inventory script. In our dynamic inventory script we set ansibe_password and ansible_user (host_vars) dynamically.
How can i use foreman to run playbooks and use my own dynamic inventory.
Can i override all ansible variables through foreman (over the parameter tab on a spezific host)?
Foreman and Proxy versions:
Foreman 1.21 rc4
Foreman and Proxy plugin versions:
Thanks dirk for your help.
Let me clarify one point a bit more
You can use roles and playbooks. Roles can be assigned to host or host group, basically defining a configuration policy that should be enforced on the host. This is helpful if you try to mimic traditional cfgmgmt approach like with puppet/chef/salt.
But playbooks can be also imported as job templates and executed on any hosts regardless of any assignment. This is especially useful for one-time runs, such as deployment of some apps. Playbooks in Foreman can be even extended with ERB (ruby templating extension, similar to jinja), that gets evaluated just before the playbook is handed off to ansible-playbook. That allows further customization based on Foreman data and even building UI on top of playbooks through template inputs. There are some playbooks shipped by default, which can be used as a good example.