Skip to content

Commit a742dda

Browse files
committed
modernization and updates but only just barely
1 parent 152b97e commit a742dda

File tree

6 files changed

+23
-27
lines changed

6 files changed

+23
-27
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# file: python/defaults/main.yml
1+
---
22

33
python_prefix_dir: "/usr/local"
44
python_binary: "{{python_prefix_dir}}/bin/python"

meta/main.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
# file: python/meta/main.yml
2-
1+
---
32
galaxy_info:
4-
author: pjan vandaele
3+
author: ANXS crew
54
company: ANXS
65
description: "Installs python, pip, setuptools and virtualenv"
7-
min_ansible_version: 2.3
6+
min_ansible_version: 2.7
87
license: MIT
98
platforms:
10-
- name: Ubuntu
11-
versions:
12-
- all
9+
- name: Ubuntu
10+
versions:
11+
- all
1312
categories:
14-
- system
15-
- development
13+
- system
14+
- development
1615

1716
dependencies: []

tasks/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# file: python/tasks/main.yml
2-
3-
- include: package.yml
4-
- include: pip.yml
5-
- include: virtualenv.yml
1+
---
2+
- include_tasks: "package.yml"
3+
- include_tasks: "pip.yml"
4+
- include_tasks: "virtualenv.yml"

tasks/package.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# file: python/tasks/default.yml
2-
3-
- name: python | Get the distribution specific variables
1+
---
2+
- name: "Get the distribution specific variables"
43
include_vars: "{{ansible_os_family}}.yml"
54

6-
- name: python | Make sure the packages are installed (Debian)
5+
- name: "Make sure the packages are installed (Debian)"
76
apt:
87
pkg: "{{python_packages}}"
98
state: present

tasks/pip.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# file: python/tasks/pip.yml
2-
3-
- name: python | pip | Fetch the pip install script
1+
---
2+
- name: "Fetch the pip install script"
43
get_url:
54
dest: "/tmp/get-pip.py"
65
url: "{{get_pip_url}}"
76

8-
- name: python | pip | install pip
9-
command: python /tmp/get-pip.py creates="{{python_pip_location}}"
7+
- name: "install pip"
8+
command: python /tmp/get-pip.py
9+
creates: "{{python_pip_location}}"
1010

11-
- name: python | pip | update setuptools
11+
- name: "update setuptools"
1212
pip:
1313
name: "setuptools{% if python_setuptools_version is defined %}=={{python_setuptools_version}}{% endif %}"
1414
state: present

vars/Debian.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# file: python/vars/Debian.yml
2-
1+
---
32
python_packages:
43
- python
54
- python-dev

0 commit comments

Comments
 (0)