Skip to content

Commit 7e72158

Browse files
committed
chore: update tasks names
1 parent c9b0856 commit 7e72158

File tree

4 files changed

+22
-23
lines changed

4 files changed

+22
-23
lines changed

tasks/debian/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: Install additional python versions | Install system dependencies
2+
- name: Install Python | Install system dependencies
33
ansible.builtin.apt:
44
pkg: "{{ python_system_dependecies }}"
55
state: "{{ apt_install_state | default('latest') }}"
@@ -8,15 +8,15 @@
88
tags:
99
- python-install-system-dependecies
1010

11-
- name: Install additional python versions | Set release version
11+
- name: Install Python | Set release version
1212
ansible.builtin.set_fact:
1313
ubuntu_release: "{{ ansible_facts['distribution_version'] | replace('.', '') }}"
1414
when: ansible_facts['distribution'] == "Ubuntu"
1515
tags:
1616
- python-install-set-facts
1717
- python-install-setup-versions
1818

19-
- name: Install additional python versions | Download deb package
19+
- name: Install Python | Download deb package
2020
ansible.builtin.get_url:
2121
url: "https://cdn.rstudio.com/python/ubuntu-{{ ubuntu_release }}/pkgs/python-{{ item }}_1_amd64.deb"
2222
dest: "/tmp/Python-{{ item }}.deb"
@@ -26,7 +26,7 @@
2626
- python-install-download-archives
2727
- python-install-setup-versions
2828

29-
- name: Install additional python versions | Install deb package
29+
- name: Install Python | Install deb package
3030
ansible.builtin.apt:
3131
deb: "/tmp/Python-{{ item }}.deb"
3232
loop: "{{ python_versions }}"

tasks/install-jupyter.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
---
2-
- name: Combine jupyter packages
2+
- name: Install Python | Combine Jupyter packages
33
ansible.builtin.set_fact:
44
python_jupyter_packages: "{{ python_jupyter_packages + python_jupyter_workbench_packages }}"
55
when: python_jupyter_workbench
66

7-
- name: Install jupyter packages (virtualenv method)
7+
- name: Install Python | Install Jupyter packages (virtualenv method)
88
ansible.builtin.pip:
99
name: "{{ python_jupyter_packages }}"
1010
virtualenv_command: "/opt/python/{{ python_jupyter_python_version }}/bin/python -m venv"
1111
virtualenv: "{{ python_jupyter_virtualenv_path }}"
1212
when: python_jupyter_install_method == "virtualenv"
1313

14-
- name: Install jupyter packages (system method)
14+
- name: Install Python | Install Jupyter packages (system method)
1515
ansible.builtin.pip:
1616
name: "{{ python_jupyter_packages }}"
1717
executable: pip3
1818
when: python_jupyter_install_method == "system"
1919

20-
- name: Set path to jupyter-nbextension
20+
- name: Install Python | Set path to jupyter-nbextension
2121
ansible.builtin.set_fact:
2222
jupyter_nbextension_path: "{{ (python_jupyter_install_method == 'virtualenv') | ternary(python_jupyter_virtualenv_path + '/bin/', '') }}jupyter-nbextension"
2323
jupyter_etc_nbconfig: "{{ (python_jupyter_install_method == 'virtualenv') | ternary('/opt/jupyter', '/usr') }}/etc/jupyter/nbconfig"
2424

25-
- name: Install Workbench's jupyter plugin
25+
- name: Install Python | Install Workbench's Jupyter plugin
2626
ansible.builtin.command: |
2727
{{ jupyter_nbextension_path }} install --sys-prefix --py rsp_jupyter
2828
register: command_result
2929
# jupyter-nbextension returns the needed information in stderr
3030
changed_when: "'Copying:' in command_result.stderr"
3131
when: python_jupyter_workbench
3232

33-
- name: Enable Workbench's jupyter plugin
33+
- name: Install Python | Enable Workbench's Jupyter plugin
3434
ansible.builtin.shell: |
3535
grep 'rsp_jupyter/index' {{ jupyter_etc_nbconfig }}/notebook.json || echo "File doesn't exist yet"
3636
{{ jupyter_nbextension_path }} enable --sys-prefix --py rsp_jupyter

tasks/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tasks file
22
---
3-
- name: Include variables
3+
- name: Install Python | Include variables
44
ansible.builtin.include_vars: "{{ item }}"
55
with_first_found:
66
- "_{{ ansible_distribution_release }}.yml"
@@ -10,18 +10,18 @@
1010
tags:
1111
- configuration
1212

13-
- name: Create download directory
13+
- name: Install Python | Create download directory
1414
ansible.builtin.file:
1515
path: "{{ downloads_path }}"
1616
state: directory
1717
owner: root
1818
group: root
1919
mode: 0755
2020

21-
- name: Include tasks
21+
- name: Install Python | Include installation tasks
2222
ansible.builtin.include_tasks: '{{ ansible_os_family | lower }}/main.yml'
2323

24-
- name: Install python | Upgrade tools
24+
- name: Install Python | Upgrade tools
2525
ansible.builtin.command: >
2626
/opt/python/{{ item }}/bin/pip install --upgrade \
2727
pip setuptools wheel
@@ -31,24 +31,24 @@
3131
tags:
3232
- python-install-upgrade-tools
3333

34-
- name: Install python | Make available as a Jupyter Kernel
34+
- name: Install Python | Make available as a Jupyter Kernel
3535
when: python_jupyter_kernel
3636
tags:
3737
- python-install-jupyter-kernel
3838
block:
39-
- name: Install python | Install ipykernel
39+
- name: Install Python | Install ipykernel
4040
ansible.builtin.pip:
4141
executable: "/opt/python/{{ item }}/bin/pip"
4242
name: ipykernel
4343
loop: "{{ python_versions }}"
4444

45-
- name: Install python | Check if kernel.json exists
45+
- name: Install Python | Check if kernel.json exists
4646
ansible.builtin.stat:
4747
path: "/usr/local/share/jupyter/kernels/py{{ item }}/kernel.json"
4848
loop: "{{ python_versions }}"
4949
register: kernel_json
5050

51-
- name: Install python | Make available as a Jupyter Kernel
51+
- name: Install Python | Run ipykernel install
5252
ansible.builtin.command: >
5353
/opt/python/{{ item }}/bin/python -m ipykernel install \
5454
--name py{{ item }} --display-name "Python {{ item }}"
@@ -58,5 +58,5 @@
5858
register: command_result
5959
changed_when: kernel_json.results[index].stat.exists == false
6060

61-
- name: Include tasks | Jupyter installation
61+
- name: Install Python | Include Jupyter installation tasks
6262
ansible.builtin.include_tasks: './install-jupyter.yml'

tasks/redhat/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
3-
- name: Install python | Install dependecies
2+
- name: Install Python | Install dependecies
43
ansible.builtin.yum:
54
name: "{{ system_dependecies }}"
65

7-
- name: Install python | Download rpm package
6+
- name: Install Python | Download rpm package
87
ansible.builtin.get_url:
98
url: "{{ python_download_url }}/python-{{ item }}-1-1.x86_64.rpm"
109
dest: "{{ downloads_path }}/python-{{ item }}-1-1.x86_64.rpm"
@@ -14,7 +13,7 @@
1413
- python-install-download-archives
1514
- python-install-setup-versions
1615

17-
- name: Install python | Install rpm package
16+
- name: Install Python | Install rpm package
1817
ansible.builtin.yum:
1918
name: "{{ downloads_path }}/python-{{ item }}-1-1.x86_64.rpm"
2019
disable_gpg_check: true

0 commit comments

Comments
 (0)