Skip to content

Instantly share code, notes, and snippets.

@hgfranco
Last active April 22, 2019 14:58
Show Gist options
  • Select an option

  • Save hgfranco/963ebc62f6dbdd9730926dbe2d1fd5f0 to your computer and use it in GitHub Desktop.

Select an option

Save hgfranco/963ebc62f6dbdd9730926dbe2d1fd5f0 to your computer and use it in GitHub Desktop.
Run ansible AWS adhoc command
AWS_PROFILE=francotech ansible -i inventory/ec2.py -a "sudo systemctl restart httpd" tag_name_webserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment