Skip to content

Commit

Permalink
added condition to only add bin directive to pip for xenial
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Clark authored and nsg committed Aug 4, 2017
1 parent 4067ec0 commit 00cff5b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
environment:
PYTHONPATH: "{{ graphite_install_path }}/lib:{{ graphite_install_path }}/webapp"
notify: restart carbon-cache
when: ansible_distribution_release == "xenial"

- name: Setup graphite with pip
pip: name={{ item }} state=present
with_items: "{{ graphite_install_requirements[graphite_install_version] }}"
environment:
PYTHONPATH: "{{ graphite_install_path }}/lib:{{ graphite_install_path }}/webapp"
notify: restart carbon-cache
when: ansible_distribution_release != "xenial"

- name: Set perms for graphite storage
file: path={{ graphite_install_path }}/storage owner={{ graphite_user }} recurse=yes state=directory
Expand Down

0 comments on commit 00cff5b

Please sign in to comment.