Skip to content

Instantly share code, notes, and snippets.

@alexolinux
Last active May 14, 2024 10:31
Show Gist options
  • Save alexolinux/2591b553c94ba22c97979ac461c137c5 to your computer and use it in GitHub Desktop.
Save alexolinux/2591b553c94ba22c97979ac461c137c5 to your computer and use it in GitHub Desktop.
ansible.cfg to be used in the current directory ("development environment")
#https://docs.ansible.com/ansible/latest/reference_appendices/config.html
#ansible-config init --disabled > ansible.cfg
[defaults]
#https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html
inventory = ./hosts
remote_tmp = ~/.ansible/tmp
local_tmp = ~/.ansible/tmp
host_key_checking = False
log_path = ./ansible.log
private_key_file = ~/.ssh/id_rsa
[privilege_escalation]
become=True
become_method=sudo
become_user=root
become_ask_pass=False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment