Ansible Architecture
Ansible Architecture
Control Node
Requirements
- Linux/Unix operating system
- Python 3.9 or later
- SSH client configuration
- Ansible installation
Components
- Ansible Core
- Inventory files
- Configuration files
- Playbooks and roles
Managed Nodes
Requirements
- SSH server enabled
- Python interpreter
- SFTP or SCP access
- Appropriate permissions
Supported Platforms
- Linux/Unix systems
- Windows servers
- Network devices
- Cloud platforms
SSH-based Communication
Authentication Methods
- Password authentication
- SSH key-based auth
- Privilege escalation
- Custom SSH settings
Connection Types
- SSH (default)
- WinRM for Windows
- Local connections
- Custom plugins
Agentless Architecture Benefits
Simplified Management
- No agent installation
- Lower maintenance overhead
- Reduced security risks
- Easy troubleshooting
Enhanced Security
- Standard SSH security
- No additional ports
- Existing security policies
- Centralized control
Flexibility
- Multi-platform support
- Easy adoption
- Quick deployment
- Scalable implementation
Practical Exercise
Setting Up Control Node
- Install required packages
- Configure SSH keys
- Test connectivity
Managing Target Systems
- Add systems to inventory
- Verify SSH access
- Test basic commands
Key Takeaways
- Control node manages all automation
- Managed nodes need minimal setup
- SSH provides secure communication
- Agentless design simplifies deployment