Giter VIP home page Giter VIP logo

ansible-aws-cli's Introduction

DEPRECATION NOTICE

We have moved away from Ansible and are in the process of removing or transferring ownership of our Ansible repositories. If you rely on this repository directly, please make arrangements to replace this dependency with your own fork.

AWS CLI role for Ansible

Installs and configures the AWS CLI for conveniently interacting with AWS services such as S3.

Requirements

  • Tested on Ubuntu 12.04 Server;
  • Ansible 2.0+

Role Variables

The default variables are as follows:

aws_output_format: 'json'
aws_region: 'ap-southeast-2'
aws_access_key_id: 'YOUR_ACCESS_KEY_ID'
aws_secret_access_key: 'YOUR_SECRET_ACCESS_KEY'

Example Playbook

- hosts: 'servers'
  roles:
    - role: 'dstil.aws-cli'
      aws_output_format: 'json'
      aws_region: 'ap-southeast-2'
      aws_access_key_id: 'SUPER_SECRET_ACCESS_KEY_ID'   # Don't version this or put it on pastebin
      aws_secret_access_key: 'SUPER_SECRET_ACCESS_KEY'  # Ditto

License

This playbook is provided 'as-is' under the conditions of the BSD license. No fitness for purpose is guaranteed or implied.

ansible-aws-cli's People

Contributors

apj avatar darkraiden avatar johanmeiring avatar maxgutman avatar miguelaferreira avatar opichon avatar retlehs avatar rohanliston avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-aws-cli's Issues

aws-cli can't install pip

This is the terminal output:

TASK [aws-cli : Install AWS CLI] ***********************************************************
task path: /Volumes/B/Documentos/trellis3/ansible/vendor/roles/aws-cli/tasks/main.yml:9
Using module file /Library/Python/2.7/site-packages/ansible/modules/packaging/language/pip.py
<188.166.148.220> ESTABLISH SSH CONNECTION FOR USER: root
<188.166.148.220> SSH: EXEC ssh -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/Users/aitor/.ansible/cp/9954a5df53 188.166.148.220 '/bin/sh -c '"'"'python3 && sleep 0'"'"''
<188.166.148.220> (1, '\n{"msg": "Unable to find any of pip3 to use.  pip needs to be installed.", "failed": true, "invocation": {"module_args": {"name": ["awscli"], "state": "latest", "virtualenv_site_packages": false, "virtualenv_command": "virtualenv", "use_mirrors": true, "editable": false, "version": null, "requirements": null, "virtualenv": null, "virtualenv_python": null, "extra_args": null, "chdir": null, "executable": null, "umask": null}}}\n', '')
System info:
  Ansible 2.7.2; Darwin
  Trellis 1.0.2: March 13th, 2019
---------------------------------------------------
Unable to find any of pip3 to use.  pip needs to be installed.
fatal: [188.166.148.220]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "chdir": null, 
            "editable": false, 
            "executable": null, 
            "extra_args": null, 
            "name": [
                "awscli"
            ], 
            "requirements": null, 
            "state": "latest", 
            "umask": null, 
            "use_mirrors": true, 
            "version": null, 
            "virtualenv": null, 
            "virtualenv_command": "virtualenv", 
            "virtualenv_python": null, 
            "virtualenv_site_packages": false
        }
    }
}

Doesnt work with ubuntu 14.04

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu3) but it is not going to be installed
Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
Recommends: python-dev-all (>= 2.6) but it is not installable
Recommends: python-wheel but it is not installable

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.