Skip to content

Commit

Permalink
Merge pull request #12 from conorsch/support-check-mode
Browse files Browse the repository at this point in the history
Sets pip lookup command to always run
  • Loading branch information
Bob Renwick committed Feb 24, 2016
2 parents 20e2c23 + 441b2e7 commit 98e4fb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
- name: Check to see if pip is already installed.
command: "{{ pip }} --version"
ignore_errors: true
changed_when: false
changed_when: false # read-only task
always_run: true # for check mode
register: pip_is_installed

- name: Download pip.
Expand All @@ -27,6 +28,7 @@
shell: "{{ pip }} --version | awk '{print $2}'"
register: pip_installed_version
changed_when: false
always_run: true # for check mode
when: pip_version != None or pip_version != "LATEST"

- name: Install required version of pip.
Expand Down

0 comments on commit 98e4fb4

Please sign in to comment.