Skip to content

Commit

Permalink
fix: make updating Python tools idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
koralowiec committed Feb 16, 2023
1 parent 4c0344e commit 8f6dada
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 @@ -21,10 +21,12 @@
- name: Include tasks
ansible.builtin.include_tasks: '{{ ansible_os_family | lower }}/main.yml'

- name: Install python | Upgrade tools # noqa no-changed-when
- name: Install python | Upgrade tools
ansible.builtin.command: >
/opt/python/{{ item }}/bin/pip install --upgrade \
pip setuptools wheel
loop: "{{ python_versions }}"
register: command_result
changed_when: "'Successfully installed' in command_result.stdout"
tags:
- python-install-upgrade-tools

0 comments on commit 8f6dada

Please sign in to comment.