I am trying to provision 2 ec2 instances on a private subnet using Ansible playbooks. My infrastructure includes:
- Bastion Host on a public subnet
- 2 EC2 instances on 2 private subnets
- NAT Gate for outgoing connections
- Application Load Balancer
My question is how to run the Ansible playbook from localhost to affect the private instances. Can I SSH forward the playbook or does the playbook have to reside in the bastion host and then use the private IPs as hosts?