Skip to content

Commit

Permalink
Consistency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Mar 15, 2021
1 parent 7eec35d commit 86bbf38
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# defaults file for pip
# defaults file
---
pip_python_version_major: 2
pip_python_version: "{{ pip_python_version_major }}"
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# handlers file for pip
# handlers file
---
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# meta file for pip
# meta file
---
galaxy_info:
namespace: oefenweb
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tasks file for pip
# tasks file
---
- name: install dependencies
apt:
Expand Down Expand Up @@ -90,7 +90,7 @@
- name: download (latest) pip
get_url:
url: "{{ pip_download_url }}"
dest: "{{ pip_download_path }}/{{ pip_download_url | basename }}-{{ pip_python_version | string }}"
dest: "{{ pip_download_path }}/{{ pip_download_url | basename }}-{{ pip_python_version_major | string }}"
owner: root
group: root
mode: 0644
Expand Down
2 changes: 1 addition & 1 deletion tests/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# test file for pip
# test file
---
- hosts: localhost
connection: local
Expand Down
2 changes: 1 addition & 1 deletion tests/vagrant.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# test file for pip
# test file
---
- hosts: all
remote_user: vagrant
Expand Down
2 changes: 1 addition & 1 deletion tests/vars/_default.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# vars file for pip
# vars file
---
pip_python_version_major: 3
2 changes: 1 addition & 1 deletion tests/vars/_jessie.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# vars file for pip
# vars file
---
pip_python_version_major: 2
2 changes: 1 addition & 1 deletion tests/vars/_stretch.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# vars file for pip
# vars file
---
pip_python_version_major: 2
2 changes: 1 addition & 1 deletion tests/vars/_xenial.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# vars file for pip
# vars file
---
pip_python_version_major: 2
6 changes: 3 additions & 3 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# vars file for pip
# vars file
---
pip_dependencies:
- "python{{ pip_python_version is version('3', '>=') | ternary('3', '') }}"
- "python{{ pip_python_version is version('3', '>=') | ternary('3', '') }}-dev"
- "python{{ pip_python_version_major is version('3', '>=') | ternary('3', '') }}"
- "python{{ pip_python_version_major is version('3', '>=') | ternary('3', '') }}-dev"
- curl

pip_download_path: /var/lib/ansible/pip/downloads

0 comments on commit 86bbf38

Please sign in to comment.