Skip to content

Instantly share code, notes, and snippets.

@chaunceyt
Created August 11, 2016 05:12
Show Gist options
  • Select an option

  • Save chaunceyt/cdc977ae9a2f285c3d796673e4708789 to your computer and use it in GitHub Desktop.

Select an option

Save chaunceyt/cdc977ae9a2f285c3d796673e4708789 to your computer and use it in GitHub Desktop.

Revisions

  1. chaunceyt created this gist Aug 11, 2016.
    12 changes: 12 additions & 0 deletions ec2_user_data.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash

    yum update -y
    yum -y install git.x86_64

    cd /opt
    git clone -v https://github.com/ansible/ansible.git --recursive
    source /opt/ansible/hacking/env-setup
    echo "localhost" > ~/ansible_hosts
    export ANSIBLE_HOSTS=~/ansible_hosts

    /opt/ansible/bin/ansible-pull -C elkstack -U https://github.com/chaunceyt/ansible-playbooks.git