Skip to content

Commit 20e2c23

Browse files
author
Bob Renwick
committed
Merge pull request bobbyrenwick#10 from binary-data/binary-data-patch-replace-sudo-with-become
Replace deprecated "sudo" with "become"
2 parents 24bba35 + b8cbe9e commit 20e2c23

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ galaxy_info:
33
author: bobbyrenwick
44
description: An ansible role that ensures pip is installed at the version you specify.
55
license: WTFPL
6-
min_ansible_version: 1.2
6+
min_ansible_version: 1.9
77
#
88
# Below are all platforms currently available. Just uncomment
99
# the ones that apply to your role. If you don't see your

tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
- name: Install pip.
1616
command: "{{ python }} {{ pip_download_dest }}/get-pip.py"
17-
sudo: yes
17+
become: yes
1818
when: pip_is_installed.rc != 0
1919

2020
- name: Delete get-pip.py.
@@ -31,12 +31,12 @@
3131

3232
- name: Install required version of pip.
3333
command: "{{ pip }} install pip=={{ pip_version }}"
34-
sudo: yes
34+
become: yes
3535
when: pip_version != None and pip_installed_version.stdout != pip_version and "{{ pip_version | lower}}" != "latest"
3636

3737
- name: Upgrade to latest version of pip.
3838
command: "{{ pip }} install -U pip"
3939
register: pip_latest_output
40-
sudo: yes
40+
become: yes
4141
changed_when: pip_latest_output.stdout.find('Requirement already up-to-date') == -1
4242
when: pip_version == None or pip_version == "LATEST"

0 commit comments

Comments
 (0)