Last active
August 29, 2015 14:22
Revisions
-
MicTech revised this gist
Jun 10, 2015 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -29,4 +29,10 @@ EC2 ``` ansible -i ec2.py -u ec2-user <region> -m ping --private-key private.pem ``` Restart machine ``` ansible -i ec2.py -u ec2-user <region> -a "/sbin/reboot" -f 10 --sudo --private-key private.pem ``` -
MicTech revised this gist
Jun 10, 2015 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,32 @@ Change location of hosts file - create your own ansible.cfg ``` [defaults] inventory = /path/to/hosts ``` Ping all hosts ``` ansible all -m ping --private-key private.pem -u ec2-user ``` EC2 ``` wget https://raw.githubusercontent.com/ansible/ansible/devel/plugins/inventory/ec2.py wget https://raw.githubusercontent.com/ansible/ansible/devel/plugins/inventory/ec2.ini ``` - create boto config with AWS keys ``` [Credentials] aws_access_key_id = <here> aws_secret_access_key = <here> ``` ``` ansible -i ec2.py -u ec2-user <region> -m ping --private-key private.pem ``` -
MicTech revised this gist
Jun 10, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,8 @@ Ping all hosts EC2 wget https://raw.githubusercontent.com/ansible/ansible/devel/plugins/inventory/ec2.py wget https://raw.githubusercontent.com/ansible/ansible/devel/plugins/inventory/ec2.ini - create boto config with AWS keys -
MicTech revised this gist
Jun 10, 2015 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,8 @@ EC2 - create boto config with AWS keys [Credentials] aws_access_key_id = <here> aws_secret_access_key = <here> ansible -i ec2.py -u ec2-user <region> -m ping --private-key private.pem -
MicTech revised this gist
Jun 10, 2015 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,15 @@ Change location of hosts file Ping all hosts ansible all -m ping --private-key private.pem -u ec2-user EC2 wget https://raw.githubusercontent.com/ansible/ansible/devel/plugins/inventory/ec2.py wget https://raw.githubusercontent.com/ansible/ansible/devel/plugins/inventory/ec2.ini - create boto config with AWS keys [Credentials] aws_access_key_id = <here> aws_secret_access_key = <here> -
MicTech revised this gist
Jun 10, 2015 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,8 @@ Change location of hosts file - create your own ansible.cfg [defaults] inventory = /path/to/hosts Ping all hosts ansible all -m ping --private-key private.pem -u ec2-user -
MicTech revised this gist
Jun 10, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ Change location of hosts file - create your own ansible.cfg [defaults] inventory = /path/to/hosts -
MicTech created this gist
Jun 10, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ Change location of hosts file - create your own ansible.cfg [defaults] inventory = /path/to/hosts