From 3d6f8dd75db3bcd63b5931d9f852bfab67710167 Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Mon, 25 Nov 2024 14:20:38 +0100 Subject: [PATCH 1/2] chore: Use Renovate to update README dependencies --- .github/renovate.json | 47 +++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 15 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 0b90a475b..4b5ce34ee 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -5,20 +5,37 @@ "prConcurrentLimit": 0, "prHourlyLimit": 0, "schedule": ["* 0-7 * * 1"], + "packageRules": [ + { + "groupName": "Ansible collections", + "matchManagers": [ + "ansible-galaxy", + "regex" + ] + } + ], "ansible-galaxy": { "fileMatch": ["(^|/)[\\w-]*requirements([_.]\\w+)?\\.ya?ml$"], "packageRules": [ { - "matchPackageNames": ["*"], - "groupName": "Ansible collections" + "matchPackageNames": ["*"] }, { - "matchUpdateTypes": ["minor", "patch"], + "automerge": true, "matchCurrentVersion": "!/^0/", - "automerge": true + "matchUpdateTypes": ["minor", "patch"] } ] }, + "customManagers": [ + { + "customType": "regex", + "datasourceTemplate": "galaxy-collection", + "fileMatch": ["README.md"], + "matchStrings": ["- name: (?\\w+\\.\\w+)(?:\\s+#.*)?\\s+version: (?\\d+\\.\\d+\\.\\d+)"], + "versioningTemplate": "semver" + } + ], "dockerfile": { "ignorePaths": ["molecule/**/Dockerfile.j2"] }, @@ -26,24 +43,24 @@ "addLabels": ["skip-changelog"], "packageRules": [ { + "groupName": "GitHub Actions", "matchPackageNames": [ "actions/**", "github/**" - ], - "groupName": "GitHub Actions" + ] }, { - "matchPackageNames": ["docker/**"], - "groupName": "Docker Actions" + "groupName": "Docker Actions", + "matchPackageNames": ["docker/**"] }, { "enabled": false, "matchUpdateTypes": ["digest"] }, { + "automerge": true, "matchUpdateTypes": ["minor", "patch"], - "matchCurrentVersion": "!/^0/", - "automerge": true + "matchCurrentVersion": "!/^0/" } ] }, @@ -51,18 +68,18 @@ "fileMatch": ["(^|/)[\\w-]*requirements([_.]\\w+)?\\.(txt|pip)$"], "packageRules": [ { - "matchPackageNames": ["*"], - "groupName": "Python dependencies" + "groupName": "Python dependencies", + "matchPackageNames": ["*"] }, { - "matchPackageNames": ["ansible-core"], "groupName": "Ansible core", + "matchPackageNames": ["ansible-core"], "separateMinorPatch": true }, { + "automerge": true, "matchUpdateTypes": ["patch"], - "matchCurrentVersion": "!/^0/", - "automerge": true + "matchCurrentVersion": "!/^0/" } ] } From 82f91415dabdbd372fcd71ea0bc92618f9eb56ba Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:58:15 +0000 Subject: [PATCH 2/2] chore(deps): update ansible collections --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 680b29ad5..0a0732026 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,11 @@ This will also ensure you are deploying/running this role with a fully tested ve - name: ansible.posix version: 1.5.4 - name: community.general - version: 9.2.0 + version: 10.0.1 - name: community.crypto # Only required if you plan to install NGINX Plus version: 2.21.1 - name: community.docker # Only required if you plan to use Molecule (see below) - version: 3.11.0 + version: 4.1.0 ``` - You will need to run this role as a root user using Ansible's `become` parameter. Make sure you have set up the appropriate permissions on your target hosts.