diff --git a/tasks/FreeBSD.yml b/tasks/FreeBSD.yml index d4daf1a..a46e39c 100644 --- a/tasks/FreeBSD.yml +++ b/tasks/FreeBSD.yml @@ -19,3 +19,6 @@ with_items: - py27-pip - py27-setuptools_scm + +- name: Install lecm + pip: name=lecm diff --git a/tasks/RedHat.yml b/tasks/RedHat.yml index aac621f..ca5c5f3 100644 --- a/tasks/RedHat.yml +++ b/tasks/RedHat.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 5bf77ab..97b03dd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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