feat(core): change namespace
All checks were successful
test / Linting (push) Successful in 9s
test / Molecule tests (default, debian11) (push) Successful in 41s
test / Molecule tests (default, debian12) (push) Successful in 42s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 47s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 52s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m0s
test / Molecule tests (default, ubuntu2004) (push) Successful in 50s
test / Molecule tests (default, ubuntu2204) (push) Successful in 48s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m18s

This commit is contained in:
Bertrand Lanson 2024-02-05 22:27:12 +01:00
parent 879f0f11fe
commit a82b5054ec
12 changed files with 31 additions and 29 deletions

View File

@ -13,6 +13,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Publish
uses: ednxzu/galaxy-import-role@v1
uses: ednxzu/galaxy-import-role@v2
with:
galaxy-api-key: ${{ secrets.GALAXY_API_TOKEN }}
repository-owner: ednxzu
repository-name: manage_pip_packages

View File

@ -31,12 +31,12 @@ manage_pip_packages_allow_break_system_packages: false # by default, set to fals
This variable allow you to pass the `--break_system_packages` to pip.
> **Warning**
> This is not recommended, and is only here if you have no other choice to install packages that aren't supported by the package manager, on distros that enforce the [PEP668](https://peps.python.org/pep-0668/). Chances are you can probably use [manage_pipx_packages](https://github.com/ednxzu/manage_pipx_packages) to install packages using pipx, avoiding the potential damages to your system.
> This is not recommended, and is only here if you have no other choice to install packages that aren't supported by the package manager, on distros that enforce the [PEP668](https://peps.python.org/pep-0668/). Chances are you can probably use [manage_pipx_packages](https://github.com/ednz_cloud/manage_pipx_packages) to install packages using pipx, avoiding the potential damages to your system.
Dependencies
------------
`ednxzu.manage_apt_packages` to install python3 and pip (if selected).
`ednz_cloud.manage_apt_packages` to install python3 and pip (if selected).
Example Playbook
----------------
@ -45,7 +45,7 @@ Example Playbook
# calling the role inside a playbook with either the default or group_vars/host_vars
- hosts: servers
roles:
- ednxzu.manage_pip_packages
- ednz_cloud.manage_pip_packages
```
```yaml
@ -54,7 +54,7 @@ Example Playbook
tasks:
- name: "Install ansible with pip"
ansible.builtin.include_role:
name: ednxzu.manage_pip_packages
name: ednz_cloud.manage_pip_packages
vars:
manage_pip_packages_install_prereqs: false
manage_pip_packages_list:

View File

@ -1,12 +1,12 @@
---
# meta file for manage_pip_packages
galaxy_info:
namespace: 'ednxzu'
role_name: 'manage_pip_packages'
author: 'Bertrand Lanson'
description: 'Package management for python on debian-based distros.'
license: 'license (BSD, MIT)'
min_ansible_version: '2.10'
namespace: "ednz_cloud"
role_name: "manage_pip_packages"
author: "Bertrand Lanson"
description: "Package management for python on debian-based distros."
license: "license (BSD, MIT)"
min_ansible_version: "2.10"
platforms:
- name: Ubuntu
versions:
@ -17,10 +17,10 @@ galaxy_info:
- bullseye
- bookworm
galaxy_tags:
- 'ubuntu'
- 'debian'
- 'python3'
- 'pip'
- 'packages'
- "ubuntu"
- "debian"
- "python3"
- "pip"
- "packages"
dependencies: []

View File

@ -3,6 +3,6 @@
hosts: all
become: true
tasks:
- name: "Include ednxzu.manage_pip_packages"
- name: "Include ednz_cloud.manage_pip_packages"
ansible.builtin.include_role:
name: "ednxzu.manage_pip_packages"
name: "ednz_cloud.manage_pip_packages"

View File

@ -1,4 +1,4 @@
---
# requirements file for molecule
roles:
- name: ednxzu.manage_apt_packages
- name: ednz_cloud.manage_apt_packages

View File

@ -3,6 +3,6 @@
hosts: all
become: true
tasks:
- name: "Include ednxzu.manage_pip_packages"
- name: "Include ednz_cloud.manage_pip_packages"
ansible.builtin.include_role:
name: "ednxzu.manage_pip_packages"
name: "ednz_cloud.manage_pip_packages"

View File

@ -1,4 +1,4 @@
---
# requirements file for molecule
roles:
- name: ednxzu.manage_apt_packages
- name: ednz_cloud.manage_apt_packages

View File

@ -3,6 +3,6 @@
hosts: all
become: true
tasks:
- name: "Include ednxzu.manage_pip_packages"
- name: "Include ednz_cloud.manage_pip_packages"
ansible.builtin.include_role:
name: "ednxzu.manage_pip_packages"
name: "ednz_cloud.manage_pip_packages"

View File

@ -1,4 +1,4 @@
---
# requirements file for molecule
roles:
- name: ednxzu.manage_apt_packages
- name: ednz_cloud.manage_apt_packages

View File

@ -3,6 +3,6 @@
hosts: all
become: true
tasks:
- name: "Include ednxzu.manage_pip_packages"
- name: "Include ednz_cloud.manage_pip_packages"
ansible.builtin.include_role:
name: "ednxzu.manage_pip_packages"
name: "ednz_cloud.manage_pip_packages"

View File

@ -1,4 +1,4 @@
---
# requirements file for molecule
roles:
- name: ednxzu.manage_apt_packages
- name: ednz_cloud.manage_apt_packages

View File

@ -2,7 +2,7 @@
# task/prerequisites file for manage_pip_packages
- name: "Install python3 and pip"
ansible.builtin.include_role:
name: ednxzu.manage_apt_packages
name: ednz_cloud.manage_apt_packages
vars:
manage_apt_packages_list: "{{ manage_pip_packages_required_packages }}"