2025-05-16 05:42:29 -04:00

27 lines
550 B
INI

# inventory.ini
# Define your target hosts
[target_hosts]
server1 ansible_host=192.168.8.54
server2 ansible_host=10.0.0.15
webserver ansible_host=example.com
# Group variables for target_hosts
[target_hosts:vars]
ansible_user=root
#ansible_ssh_private_key_file=/var/lib/jenkins/
# Or use password authentication
# ansible_password=your_password
# Optional: You can create additional host groups
[development]
server1
[production]
server2
webserver
# Optional: You can set variables specific to environments
[production:vars]
cleanup_after=true