Rolle aktualisiert: pip (#462)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: #462
This commit is contained in:
parent
4e8d17b092
commit
e049d339a4
8 changed files with 22 additions and 11 deletions
|
@ -1,2 +1,3 @@
|
||||||
skip_list:
|
skip_list:
|
||||||
- '106'
|
- 'yaml'
|
||||||
|
- 'role-name'
|
||||||
|
|
1
roles/geerlingguy.pip/.github/stale.yml
vendored
1
roles/geerlingguy.pip/.github/stale.yml
vendored
|
@ -12,6 +12,7 @@ onlyLabels: []
|
||||||
|
|
||||||
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
||||||
exemptLabels:
|
exemptLabels:
|
||||||
|
- bug
|
||||||
- pinned
|
- pinned
|
||||||
- security
|
- security
|
||||||
- planned
|
- planned
|
||||||
|
|
|
@ -29,12 +29,11 @@ jobs:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install test dependencies.
|
- name: Install test dependencies.
|
||||||
run: pip3 install yamllint ansible-lint
|
run: pip3 install yamllint
|
||||||
|
|
||||||
- name: Lint code.
|
- name: Lint code.
|
||||||
run: |
|
run: |
|
||||||
yamllint .
|
yamllint .
|
||||||
ansible-lint
|
|
||||||
|
|
||||||
molecule:
|
molecule:
|
||||||
name: Molecule
|
name: Molecule
|
||||||
|
@ -42,9 +41,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
distro:
|
distro:
|
||||||
- centos8
|
- rockylinux8
|
||||||
- centos7
|
- fedora34
|
||||||
- fedora32
|
|
||||||
- ubuntu2004
|
- ubuntu2004
|
||||||
- ubuntu1804
|
- ubuntu1804
|
||||||
- debian10
|
- debian10
|
||||||
|
|
|
@ -32,7 +32,9 @@ jobs:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install Ansible.
|
- name: Install Ansible.
|
||||||
run: pip3 install ansible-base
|
run: pip3 install ansible-core
|
||||||
|
|
||||||
- name: Trigger a new import on Galaxy.
|
- 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)
|
||||||
|
|
2
roles/geerlingguy.pip/.gitignore
vendored
2
roles/geerlingguy.pip/.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
*.retry
|
*.retry
|
||||||
*/__pycache__
|
*/__pycache__
|
||||||
*.pyc
|
*.pyc
|
||||||
|
.cache
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ A list of packages to install with pip. Examples below:
|
||||||
- name: docker
|
- name: docker
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# Or update a package ot the latest version.
|
# Or update a package to the latest version.
|
||||||
- name: docker
|
- name: docker
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
@ -51,6 +51,10 @@ A list of packages to install with pip. Examples below:
|
||||||
- name: docker
|
- name: docker
|
||||||
virtualenv: /my_app/venv
|
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
|
## Dependencies
|
||||||
|
|
||||||
None.
|
None.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
role_name_check: 1
|
||||||
dependency:
|
dependency:
|
||||||
name: galaxy
|
name: galaxy
|
||||||
driver:
|
driver:
|
||||||
|
@ -8,7 +9,8 @@ platforms:
|
||||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
||||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||||
|
cgroupns_mode: host
|
||||||
privileged: true
|
privileged: true
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
provisioner:
|
provisioner:
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
version: "{{ item.version | default(omit) }}"
|
version: "{{ item.version | default(omit) }}"
|
||||||
virtualenv: "{{ item.virtualenv | default(omit) }}"
|
virtualenv: "{{ item.virtualenv | default(omit) }}"
|
||||||
state: "{{ item.state | default(omit) }}"
|
state: "{{ item.state | default(omit) }}"
|
||||||
|
extra_args: "{{ item.extra_args | default(omit) }}"
|
||||||
executable: "{{ pip_executable }}"
|
executable: "{{ pip_executable }}"
|
||||||
with_items: "{{ pip_install_packages }}"
|
loop: "{{ pip_install_packages }}"
|
||||||
|
|
Loading…
Reference in a new issue