Created
October 4, 2021 13:49
-
-
Save MrHassanMurtaza/88d6cc57038ab12dc87b0d1408fa0092 to your computer and use it in GitHub Desktop.
User data with ansible
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
#!/bin/sh | |
#exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 | |
sudo apt update -y | |
sudo apt install -y software-properties-common | |
sudo add-apt-repository --yes --update ppa:ansible/ansible | |
sudo apt install -y ansible python3-pip vim git | |
pip3 install boto3 botocore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment