Initial commit. Add Inventory

This commit is contained in:
Lukas Greve
2025-10-24 12:32:10 +02:00
commit 7f68835677
5 changed files with 172 additions and 0 deletions

21
ansible.cfg Normal file
View File

@@ -0,0 +1,21 @@
# This file aontains Ansible-wide settings that apply to all operations
[defaults]
# Specifies the inventory file to use for inventory management
inventory = ./inventory.ini
# Enable host key checking for SSH connections
host_key_checking = True
# Specifies the private key file to use for SSH authentication
private_key_file = ~/.ssh/terraform_key
# Sets the default user for SSH connections
remote_user = groot
# Enables privilege escalation using sudo
become = yes
# Specifies the privilege escalation method to use
become_method = sudo
# -o ControlMaster=auto
# Enables SSH connection multiplexing. Creates a master SSH connection that can be reused for multiple subsequent connections to the same host
# -o ControlPersist=60s
# Sets the persistence time for the master connection to 60 seconds
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s