Skip to content

Instantly share code, notes, and snippets.

@MrHassanMurtaza
Created October 4, 2021 13:49
Show Gist options
  • Save MrHassanMurtaza/88d6cc57038ab12dc87b0d1408fa0092 to your computer and use it in GitHub Desktop.
Save MrHassanMurtaza/88d6cc57038ab12dc87b0d1408fa0092 to your computer and use it in GitHub Desktop.
User data with ansible
#!/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