Rolle aktualisiert: pip (#462)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #462
This commit is contained in:
Michael Grote 2023-02-17 11:51:37 +01:00
parent 4e8d17b092
commit e049d339a4
8 changed files with 22 additions and 11 deletions

View File

@ -1,2 +1,3 @@
skip_list:
- '106'
- 'yaml'
- 'role-name'

View File

@ -12,6 +12,7 @@ onlyLabels: []
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- bug
- pinned
- security
- planned

View File

@ -29,12 +29,11 @@ jobs:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install yamllint ansible-lint
run: pip3 install yamllint
- name: Lint code.
run: |
yamllint .
ansible-lint
molecule:
name: Molecule
@ -42,9 +41,8 @@ jobs:
strategy:
matrix:
distro:
- centos8
- centos7
- fedora32
- rockylinux8
- fedora34
- ubuntu2004
- ubuntu1804
- debian10

View File

@ -32,7 +32,9 @@ jobs:
python-version: '3.x'
- name: Install Ansible.
run: pip3 install ansible-base
run: pip3 install ansible-core
- name: Trigger a new import on Galaxy.
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
run: >-
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }}
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)

View File

@ -1,3 +1,5 @@
*.retry
*/__pycache__
*.pyc
.cache

View File

@ -39,7 +39,7 @@ A list of packages to install with pip. Examples below:
- name: docker
state: absent
# Or update a package ot the latest version.
# Or update a package to the latest version.
- name: docker
state: latest
@ -51,6 +51,10 @@ A list of packages to install with pip. Examples below:
- name: docker
virtualenv: /my_app/venv
# Or pass through any extra arguments.
- name: my_special_package_from_my_special_repo
extra_args: --extra-index-url https://my-domain/pypi/pypi-master/simple
## Dependencies
None.

View File

@ -1,4 +1,5 @@
---
role_name_check: 1
dependency:
name: galaxy
driver:
@ -8,7 +9,8 @@ platforms:
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
provisioner:

View File

@ -10,5 +10,6 @@
version: "{{ item.version | default(omit) }}"
virtualenv: "{{ item.virtualenv | default(omit) }}"
state: "{{ item.state | default(omit) }}"
extra_args: "{{ item.extra_args | default(omit) }}"
executable: "{{ pip_executable }}"
with_items: "{{ pip_install_packages }}"
loop: "{{ pip_install_packages }}"