Skip to content

Instantly share code, notes, and snippets.

@jenciso
Last active April 21, 2021 19:12
Show Gist options
  • Save jenciso/ace52671f061fb538172023d4a572d39 to your computer and use it in GitHub Desktop.
Save jenciso/ace52671f061fb538172023d4a572d39 to your computer and use it in GitHub Desktop.
sudo amazon-linux-extras install -y epel
sudo yum install -y ansible
mkdir ~/ansible
cat << 'EOF' > ~/.ansible.cfg
[defaults]
inventory=~/ansible/hosts
roles_path= ~/ansible/roles
retry_files_enabled=False
host_key_checking=False
remote_user=ec2-user
[privilege_escalation]
become=True
become_method=sudo
become_user=root
EOF
ansible --version
ansible-config view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment