Last active
April 21, 2021 19:12
-
-
Save jenciso/ace52671f061fb538172023d4a572d39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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