Skip to content

Commit

Permalink
Updated action and container, newer components.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Nov 11, 2023
1 parent 1b983b7 commit 4a99907
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -4,7 +4,7 @@ about: Create a report to help me improve

---

## Describe the bug
# Describe the bug

A clear and concise description of what the bug is.

Expand All @@ -13,7 +13,6 @@ A clear and concise description of what the bug is.
Please paste the playbook you are using. (Consider `requirements.yml` and
optionally the command you've invoked.)


```yaml
---
YOUR PLAYBOOK HERE
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Expand Up @@ -4,7 +4,7 @@ about: Suggest an idea for this project

---

## Proposed feature
# Proposed feature

A clear and concise description of what you want to happen.

Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/molecule.yml
Expand Up @@ -42,9 +42,11 @@ jobs:
- image: "debian"
tag: "bullseye"
- image: "fedora"
tag: "37"
tag: "38"
- image: "fedora"
tag: "latest"
- image: "fedora"
tag: "rawhide"
- image: "opensuse"
tag: "latest"
- image: "ubuntu"
Expand All @@ -58,12 +60,12 @@ jobs:
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: disable apparmor for mysql
run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
- name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
# - name: disable apparmor for mysql
# run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
# - name: parse apparmor for mysql
# run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule
uses: robertdebock/molecule-action@6.0.0
uses: robertdebock/molecule-action@6.0.1
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
6 changes: 4 additions & 2 deletions .gitlab-ci.yml
@@ -1,5 +1,5 @@
---
image: "robertdebock/github-action-molecule:6.0.0"
image: "robertdebock/github-action-molecule:6.0.1"

variables:
PY_COLORS: 1
Expand All @@ -25,9 +25,11 @@ molecule:
- image: "debian"
tag: "bullseye"
- image: "fedora"
tag: "37"
tag: "38"
- image: "fedora"
tag: "latest"
- image: "fedora"
tag: "rawhide"
- image: "opensuse"
tag: "latest"
- image: "ubuntu"
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Expand Up @@ -11,7 +11,8 @@ repos:
rev: v1.32.0
hooks:
- id: yamllint
args: [-c=.yamllint]
args:
- -c=.yamllint

- repo: https://github.com/robertdebock/pre-commit
rev: v1.5.2
Expand Down
16 changes: 8 additions & 8 deletions README.md
@@ -1,4 +1,4 @@
# [upgrade](#upgrade)
# Ansible role [upgrade](#upgrade)

Upgrade a package only if it is installed otherwise do nothing.

Expand Down Expand Up @@ -77,13 +77,13 @@ This role has been tested on these [container images](https://hub.docker.com/u/r

|container|tags|
|---------|----|
|[Alpine](https://hub.docker.com/repository/docker/robertdebock/alpine/general)|all|
|[Amazon](https://hub.docker.com/repository/docker/robertdebock/amazonlinux/general)|Candidate|
|[EL](https://hub.docker.com/repository/docker/robertdebock/enterpriselinux/general)|8, 9|
|[Debian](https://hub.docker.com/repository/docker/robertdebock/debian/general)|all|
|[Fedora](https://hub.docker.com/repository/docker/robertdebock/fedora/general)|all|
|[opensuse](https://hub.docker.com/repository/docker/robertdebock/opensuse/general)|all|
|[Ubuntu](https://hub.docker.com/repository/docker/robertdebock/ubuntu/general)|all|
|[Alpine](https://hub.docker.com/r/robertdebock/alpine)|all|
|[Amazon](https://hub.docker.com/r/robertdebock/amazonlinux)|Candidate|
|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|8, 9|
|[Debian](https://hub.docker.com/r/robertdebock/debian)|all|
|[Fedora](https://hub.docker.com/r/robertdebock/fedora/)|all|
|[opensuse](https://hub.docker.com/r/robertdebock/opensuse)|all|
|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all|

The minimum version of Ansible required is 2.12, tests have been done to:

Expand Down
5 changes: 2 additions & 3 deletions requirements.txt
@@ -1,6 +1,5 @@
# Pinning ansible-compat version due to [bug](https://github.com/ansible-community/molecule/issues/3903)
ansible-compat == 3.0.2
molecule == 5.*
ansible-compat == 4.*
molecule == 6.*
molecule-plugins[docker] == 23.*
ansible-lint == 6.*
paramiko == 3.*
5 changes: 4 additions & 1 deletion tox.ini
Expand Up @@ -3,7 +3,10 @@
#
[tox]
minversion = 4.2.4
envlist = py3-ansible{6,7,8}
# Ansible 6 and 7 are disabled, causing issues with Fedora:
# https://github.com/ansible/ansible/issues/81199#event-9773321055
# envlist = py3-ansible{6,7,8}
envlist = py3-ansible{8}

skipsdist = true

Expand Down

0 comments on commit 4a99907

Please sign in to comment.