Skip to content

Commit

Permalink
Merge pull request #5 from clouddrove/PR-1
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Sohan Yadav committed Jun 4, 2020
2 parents 180416c + e370711 commit de01c03
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# defaults file for ansible-role-commomn
zsh_theme: steeef
state: present
aws: true
8 changes: 8 additions & 0 deletions tasks/aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

- name: install python packages
apt:
name:
- awscli
- iotop
state: present
14 changes: 2 additions & 12 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,9 @@

- name: install system packages and utils
apt:
pkg: ['ntp', 'openssl', 'git', 'telnet', 'figlet', 'git-core', 'htop', 'wget', 'python-pip',
'vim', 'zip', 'vim-common', 'curl', 'rsyslog', 'libjson-xs-perl']
pkg: [ 'ntp', 'openssl', 'git', 'telnet', 'figlet', 'git-core', 'htop', 'wget', 'python3-pip',
'zip', 'vim', 'vim-common', 'curl', 'rsyslog', 'libjson-xs-perl']
state: "{{ state }}"
- name: Install AWS CLI
pip:
name: awscli
state: present
update_cache: true
cache_valid_time: 5400
changed_when: false

- name: install python packages
pip:
name:
- awscli
- iotop
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---

- import_tasks: install.yml

- import_tasks: aws.yml
when: aws
- import_tasks: zsh.yml
vars:
user: ubuntu
Expand Down

0 comments on commit de01c03

Please sign in to comment.