Skip to content

Commit

Permalink
Detect OS type. First round of support for #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Perry committed Aug 17, 2016
1 parent 3b1b85b commit ff0f899
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions playbooks/roles/install/tasks/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
with_items:
- build-essential
- git
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
become: yes

- name: user desired packages
Expand All @@ -14,6 +15,7 @@
update_cache=yes
cache_valid_time=86400
with_items: user_packages
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
become: yes

- name: Make repos dir
Expand Down
5 changes: 3 additions & 2 deletions playbooks/roles/install/tasks/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
update_cache=yes
cache_valid_time=86400
with_items: python_packages
sudo: yes
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
become: yes

- name: Python tools and bits
pip:
name={{ item }}
with_items:
- virtualenv
- tox
sudo: yes
become: yes

0 comments on commit ff0f899

Please sign in to comment.