Giter Site home page Giter Site logo

aws-ansible's Introduction

-- Links and sources: https://aws.amazon.com/blogs/mt/running-ansible-playbooks-using-ec2-systems-manager-run-command-and-state-manager/

https://medium.com/@jacoelho/ansible-in-aws-lambda-980bb8b5791b

http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html

https://viewsby.wordpress.com/2014/11/25/ansible-disable-gather-facts/

-- Local ansible execution ansible-playbook -i "localhost," -c local get_yumlist.yml

-- Playbook execution via SSM connection plugin cd ssm_plugin ansible-playbook -i hosts get_yumlist_sml.yml

-- Run Cmd aws ssm send-command --instance-ids "i-03a9ff4db1e58da23" --document-name "AWS-RunShellScript" --comment "IP config" --parameters "commands=ifconfig" --output text

aws ssm send-command --document-name "AWS-RunAnsiblePlaybook" --instance-ids "i-03a9ff4db1e58da23" "i-080feed63350968ce" "i-081c9adff8f0cde0d" --max-concurrency "3" --max-errors "1" --parameters '{"extravars":["SSM=True"],"check":["False"],"playbookurl":["s3://snap-ansible-testing/get_yumlist.yml"]}' --timeout-seconds 600 --region us-east-1 --output-s3-bucket-name "snap-ansible-testing"

-- Requirements Base should have ansible, ssm agent and boto3 installed sudo pip install ansible sudo pip install boto3

aws-ansible's People

Contributors

cnidus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.