Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
out/
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
language: python
python: "2.7"
sudo: required
install:
- pip install ansible
- ansible --version
- printf '[defaults]\nroles_path=../' > ansible.cfg
script:
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Ansible Role for AWSCLI
==============================

This is an Ansible role for awscli: https://github.com/aws/aws-cli. This role installs awscli using pip, sets up awscli's config file, and also enables auto completion for awscli commands.
This is an Ansible role for installing awscli: https://github.com/aws/aws-cli.
This role installs awscli using pip, sets up awscli's config file, and also enables auto completion for awscli commands.

Requirements
------------
Expand All @@ -11,28 +12,21 @@ pip (python-pip on Ubuntu/Debian) needs to be installed for this role to work.
Role Variables
--------------

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
* awscli_user: ubuntu
* awscli_group: ubuntu
* awscli_user_home: /home/ubuntu

Dependencies
------------

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
None

Example Playbook
----------------

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
roles:
- { role: username.rolename, x: 42 }
See test/test.yaml

License
-------

BSD

Author Information
------------------

An optional section for the role authors to include contact information, or a website (HTML is not allowed).
24 changes: 12 additions & 12 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
galaxy_info:
author: your name
description:
company: your company (optional)
author: Sylvain Mougenot
description: role for installing awscli (fork from hyao/ansible-awscli to fix deprecation)
# company: your company (optional)
# Some suggested licenses:
# - BSD (default)
# - MIT
Expand All @@ -11,19 +11,19 @@ galaxy_info:
# - Apache
# - CC-BY
license: license (GPLv2, CC-BY, etc)
min_ansible_version: 1.2
min_ansible_version: 2.4
#
# Below are all platforms currently available. Just uncomment
# the ones that apply to your role. If you don't see your
# platform on this list, let us know and we'll get it added!
#
#platforms:
#- name: EL
# versions:
platforms:
- name: EL
versions:
# - all
# - 5
# - 6
# - 7
- 6
- 7
#- name: GenericUNIX
# versions:
# - all
Expand Down Expand Up @@ -65,8 +65,8 @@ galaxy_info:
# - 9.1
# - 9.1
# - 9.2
#- name: Ubuntu
# versions:
- name: Ubuntu
versions:
# - all
# - lucid
# - maverick
Expand All @@ -76,7 +76,7 @@ galaxy_info:
# - quantal
# - raring
# - saucy
# - trusty
- trusty
#- name: SLES
# versions:
# - all
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

- name: pip install awscli
pip: name=awscli state=latest
sudo: yes
become: yes

- name: enable tab completion for awscli
lineinfile:
Expand Down
1 change: 1 addition & 0 deletions tests/inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
5 changes: 5 additions & 0 deletions tests/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- ansible-awscli