GithubHelp home page GithubHelp logo

ansible-role-aws-cli's Introduction

Ansible Role: AWS CLI

An Ansible Galaxy role for installing or updating AWS Command Line Interface.

Role Variables

The role defaults (see defaults/main.yml) use Amazon's official installer URL for the 64-bit Linux package:

aws_cli_url: https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip

To specify a different location for the installer package, override the aws_cli_url role variable in your playbook:

aws_cli_url: https://...

If AWS CLI is already installed at the default location of /usr/local/bin/aws this role will make no changes. To always update to the latest available version of AWS CLI, override the aws_cli_update role variable default:

aws_cli_update: true

This role creates a temporary directory under /tmp where the AWS CLI installer and associated files are extracted before the AWS CLI install script is executed. The temporary directory is removed after the script completes. If the /tmp directory on the target host(s) resides on a filesystem that is mounted with the noexec option, installation will fail with a 'Permission denied' error as the install script cannot be executed in this scenario. Specify an alternative path in this case, using the aws_cli_temp_dir role variable, to a directory without execution restrictions:

aws_cli_temp_dir: "/home/{{ ansible_user }}"

Using the above value, the temporary directory will be created inside /home/{{ ansible_user }} rather than /tmp, and will be removed at the end of the role.

Example Requirements File

- src: https://github.com/companieshouse/ansible-role-aws-cli
  name: aws-cli
  version: "n.n.n"

Example Playbook

- hosts: servers
  roles:
    - aws-cli

License

MIT

ansible-role-aws-cli's People

Contributors

marcransome avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.