Skip to content

Commit

Permalink
[feat] ansible compatibility: update deprecated syntax
Browse files Browse the repository at this point in the history
  Update deprecated syntax for version_compare to make this role compatible with
  current versions of ansible (>2.5)
  • Loading branch information
Svetlin Kalendzhiev committed Jan 27, 2021
1 parent b607eb1 commit 036f93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
package:
name: "python3-pip"
state: "present"
when: "ansible_python_version | version_compare('3.0.0', '>=')"
when: "ansible_python_version is version_compare('3.0.0', '>=')"

- name: "Install pip to manage python packages"
package:
name: "python-pip"
state: "present"
when: "ansible_python_version | version_compare('3.0.0', '<=')"
when: "ansible_python_version is version_compare('3.0.0', '<=')"

- name: "Install the passlib python library"
pip:
Expand Down

0 comments on commit 036f93c

Please sign in to comment.