Giter Club home page Giter Club logo

ansible-for-aws's People

Contributors

aterreno avatar yankurniawan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-for-aws's Issues

Progress and plans to adapt for Ansible 2.0

Hello,

This book looks interesting but I am somewhat concerned that it appears unfinished. Also, 2.0 is almost here with lots of new (aws) modules. I'd like to know what your plans are before I throw money at this.

Thanks in advance

key creation and saving

hi,
When a key is created using ec2_key module and the following snippet:

  tasks:  
    - name: create key pair  
      local_action:  
        module: ec2_key  
        region: "{{ region }}"
        name: "{{ keyname }}"
#        state: absent
      register: mykey
    - name: write to file
      local_action: command echo -e "{{ item.value.private_key }}" > ~/.ssh/"{{ keyname }}".pem && chmod 600 ~/.ssh/"{{ keyname }}".pem

The .pem file cannot be used for ssh-ing into the ec2 machines anymore as the local_action command adds the "-e" flag given to "echo" also to the .pem key, because of which the key becomes like:

 $ cat ~/.ssh/new-bad-key.pem 
-e -----BEGIN RSA PRIVATE KEY-----
BlahBlah
-----END RSA PRIVATE KEY-----

Can you please fix this part?

Library modules dont respect environment variable

The library module for vpc_lookup and probably the other one as well, sets the AWS credentials to only what is specified within Ansible unlike the standard AWS modules which will respect the AWS environment jobs. Using Environment variable is much more practice and probably slightly more secure rather than them being hard coded

Typo in launch_ec2.yml

In the code for launch_ec2.yml it specifies instance_type: t1.micro. In your book it correctly says t2.micro.

root?

Picked up a copy and reading through it now. I'm shocked to see how all code examples show work being done as root. Kinda has the "I expect my readers to use their systems like windoze" smell to it....

Rather than telling readers to create files under /etc/ansible as root, it would be more responsible to have them create files in their home directory and make use of -i and use sudo properly.

I mean, what about firing up vi to create or edit a .yml file requires root privileges? This is just irresponsible and teaches users very, very poor habits and a total disrespect for best practices as far as *nix is concerned.

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.