How should network segmentation and bastions be designed around Ansible?
IntermediateProductionSecurity and Secrets
Answer
Place the control node (or AWX execution nodes) in a management network with a narrow security group, allowing outbound SSH/WinRM only to managed subnets, and managed hosts only accept SSH from that source. For isolated networks, use a bastion with ProxyJump, or AAP automation mesh with receptor nodes inside the isolated segments so the controller never opens connections directly.
[private:vars]
ansible_ssh_common_args='-o [email protected]'
Avoid agent forwarding to a shared bastion. Keys on the bastion are a bigger risk than the jump itself.
More on Security and Secrets
How do you set up a secure automation user and SSH access?BeginnerHow do you give the automation user sudo with least privilege?IntermediateWhat are the alternatives to Ansible Vault for secrets, and when do you use them?IntermediateHow do you read AWS Secrets Manager and SSM parameters in a playbook?IntermediateHow do you integrate HashiCorp Vault with Ansible?AdvancedHow do you stop secrets from leaking into logs and output?Beginner