You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some digging into the the source of ansible a bit more, it seems like a few features are going to be trickier to implement than originally anticipated, most notably the following:
vault password encryption / decryption
become password
tags
I think a better approach would be to focus on generating an inventory file, similar to how vagrant and packer do, uploading said inventory file and then running ansible-playbook on the host itself. It seems like this would allow us to have better feature parity with ansible and would vastly simplify the setup!
Here's how I could see all this working out...
specify config args which match the arguments that can be passed into ansible-playbook in the terraform module itself
add the ability to customize, via terraform variables the following: hostgroups, groups, vars, roles, tags etc. Basically, let's attempt to match feature parity of what an inventory file can hold
Generate, from our configuration, a json inventory file and then upload it to the host.
Run ansible-playbook on the host itself, using our uploaded configuration file.
We would still end up wanting to give users the ability to specify #5, but I think this would be a good solution to #9.
The text was updated successfully, but these errors were encountered:
After some digging into the the source of ansible a bit more, it seems like a few features are going to be trickier to implement than originally anticipated, most notably the following:
I think a better approach would be to focus on generating an inventory file, similar to how
vagrant
andpacker
do, uploading said inventory file and then runningansible-playbook
on the host itself. It seems like this would allow us to have better feature parity withansible
and would vastly simplify the setup!Here's how I could see all this working out...
ansible-playbook
in the terraform module itselfansible-playbook
on the host itself, using our uploaded configuration file.We would still end up wanting to give users the ability to specify #5, but I think this would be a good solution to #9.
The text was updated successfully, but these errors were encountered: