I am creating some Ubuntu VMs in Azure with Terraform. I am then configuring the VMs with ansible.
When terraform creates the VM it creates an admin user
resource "azurerm_virtual_machine" "main" {
...
...
os_profile {
computer_name = "hostname"
admin_username = "testadmin"
admin_password = "Password1234!"
}
I will need a user to run the application and a user to run ansible.
Should the admin user that terraform creates be the ansible user and then get ansible to create the application user?