Skip to content

Commit

Permalink
Merge pull request #4 from Spredzy/use_package
Browse files Browse the repository at this point in the history
Install: use package instead of pip for not FreeBSD OS
  • Loading branch information
Spredzy authored Dec 7, 2016
2 parents 3b46755 + 27fcd64 commit 973aa01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
3 changes: 3 additions & 0 deletions tasks/FreeBSD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
with_items:
- py27-pip
- py27-setuptools_scm

- name: Install lecm
pip: name=lecm
8 changes: 1 addition & 7 deletions tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,4 @@

---
- name: Install required dependencies
yum: name={{ item }}
with_items:
- gcc
- python-devel
- libffi-devel
- openssl-devel
- python-pip
package: name=epel-release
5 changes: 3 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
- name: Install required dependencies
include: '{{ ansible_os_family }}.yml'

- name: Install lecm from Pip
pip: name=lecm
- name: Install lecm
package: name=lecm
when: ansible_os_family != 'FreeBSD'


- name: Configure globals for lecm
Expand Down

0 comments on commit 973aa01

Please sign in to comment.