but I'd like to find way to put it inside the module itself. The reason it's not there yet is that if we use a "count" of 2 or higher when calling the module, to deploy more than one node, the SSH keys can only be added once to the project and will give an error when trying to apply a second time.
After discussion, SSH keys should probably be managed by the ansible code. The only SSH key to add through TF should be the one to allow ansible to connect.
Find a way to add SSH keys through the module. Problem with the count repetition right now.
Presently, we can add a block like this outside before, or after, calling the module
but I'd like to find way to put it inside the module itself. The reason it's not there yet is that if we use a "count" of 2 or higher when calling the module, to deploy more than one node, the SSH keys can only be added once to the project and will give an error when trying to apply a second time.