21 Commits

Author SHA1 Message Date
7c30a30dc2 chore(deps): update docker.io/library/rockylinux docker tag to v9
Some checks failed
Lint Markdown files / markdown-lint (pull_request) Successful in 8s
Build / build-rocky-linux-8 (pull_request) Failing after 1m11s
Build / build-rocky-linux-9 (pull_request) Successful in 1m15s
Build / build-arch-linux (pull_request) Successful in 5m0s
2025-08-11 16:00:28 +00:00
59f432fa0b style(ci): add missing newline
All checks were successful
Build / build-arch-linux (push) Successful in 57s
Build / build-rocky-linux-8 (push) Successful in 1m56s
Build / build-rocky-linux-9 (push) Successful in 1m14s
Lint Markdown files / markdown-lint (push) Successful in 5s
Release / push-arch-linux (push) Successful in 2m15s
Release / push-rocky-linux-9 (push) Successful in 1m36s
Release / push-rocky-linux-8 (push) Successful in 10m37s
Release / sync-to-hub-docker-io (push) Successful in 1m26s
2025-08-11 15:47:25 +02:00
07795e86e8 feat(rockylinux-9): add support
Some checks failed
Build / build-arch-linux (push) Has been cancelled
Build / build-rocky-linux-8 (push) Has been cancelled
Build / build-rocky-linux-9 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
2025-08-11 15:46:30 +02:00
1a5d022476 Merge pull request 'chore(deps): update actions/checkout action to v4.3.0' (#49) from renovate/actions into master
Some checks failed
Build / build-arch-linux (push) Has been cancelled
Build / build-rocky-linux-8 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
2025-08-11 13:17:02 +00:00
4976750a8e chore(deps): update actions/checkout action to v4.3.0
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 33s
Build / build-arch-linux (pull_request) Successful in 6m41s
Build / build-rocky-linux-8 (pull_request) Successful in 9m49s
2025-08-11 13:00:17 +00:00
3d64edd9b7 fix(rockylinux): install ansible-lint
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 11s
Build / build-arch-linux (push) Successful in 5m44s
Build / build-rocky-linux-8 (push) Successful in 7m49s
2025-08-11 13:39:31 +02:00
93718043d7 Merge pull request 'chore(deps): update docker/login-action action to v3.5.0' (#47) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 10s
Build / build-arch-linux (push) Successful in 4m26s
Build / build-rocky-linux-8 (push) Successful in 5m2s
2025-08-04 16:09:54 +00:00
8574c58b01 chore(deps): update docker/login-action action to v3.5.0
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 9s
Build / build-arch-linux (pull_request) Successful in 4m4s
Build / build-rocky-linux-8 (pull_request) Successful in 5m23s
2025-08-04 16:00:13 +00:00
6054a2a421 chore(deps): update docker/setup-buildx-action action to v3.11.1
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 11s
Build / build-arch-linux (pull_request) Successful in 4m17s
Build / build-rocky-linux-8 (pull_request) Successful in 4m58s
Lint Markdown files / markdown-lint (push) Successful in 12s
Build / build-arch-linux (push) Successful in 3m34s
Build / build-rocky-linux-8 (push) Successful in 4m51s
2025-06-18 10:00:17 +00:00
5042e0326f chore(deps): update docker/setup-buildx-action action to v3.11.0
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
Build / build-arch-linux (pull_request) Successful in 14m11s
Build / build-rocky-linux-8 (pull_request) Successful in 9m32s
Lint Markdown files / markdown-lint (push) Successful in 10s
Build / build-arch-linux (push) Successful in 9m8s
Build / build-rocky-linux-8 (push) Successful in 5m25s
2025-06-16 13:01:08 +00:00
c5d8e1ad5d chore(deps): update davidanson/markdownlint-cli2-action action to v20
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 18s
Build / build-arch-linux (pull_request) Successful in 1m1s
Build / build-rocky-linux-8 (pull_request) Successful in 10m6s
Build / build-arch-linux (push) Successful in 57s
Lint Markdown files / markdown-lint (push) Successful in 17s
Build / build-rocky-linux-8 (push) Successful in 1m46s
2025-05-15 07:00:24 +00:00
efe5ece345 docs(README): migrate from docker.io to git.cryptic.systems
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 13s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 14s
Build / build-arch-linux (push) Successful in 12m8s
Build / build-rocky-linux-8 (push) Successful in 2m18s
2025-05-12 18:21:48 +02:00
2e754b5b92 style(markdownlint): update configuration
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 12s
Build / build-arch-linux (push) Successful in 12m29s
Build / build-rocky-linux-8 (push) Successful in 9m14s
2025-05-09 11:27:39 +02:00
aa5bcb5aa3 fix(ci): add workflow_dispatch
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 10s
Build / build-arch-linux (push) Successful in 11m34s
Build / build-rocky-linux-8 (push) Successful in 9m1s
2025-05-08 21:01:04 +02:00
9e9f46b54d fix(ci): style
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 10s
Build / build-arch-linux (push) Successful in 11m52s
Build / build-rocky-linux-8 (push) Successful in 8m27s
2025-05-08 18:17:18 +02:00
436f2d969e fix(ci): use markdown lint action
Some checks failed
Build / build-rocky-linux-8 (push) Has been cancelled
Build / build-arch-linux (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Successful in 16s
2025-05-08 18:12:01 +02:00
91e93f7411 fix(ci): use markdown lint action 2025-05-08 18:11:55 +02:00
c06beae2c2 fix(ci): adapt markdownlint
Some checks failed
Build / build-rocky-linux-8 (push) Has been cancelled
Build / build-arch-linux (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Successful in 11s
2025-05-08 18:06:02 +02:00
1d2a90f375 fix(ci): adapt markdownlint
Some checks failed
Build / build-arch-linux (push) Has been cancelled
Build / build-rocky-linux-8 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Successful in 10s
2025-05-08 18:03:54 +02:00
50b836e00c fix(ci): add markdownlint
Some checks failed
Build / build-rocky-linux-8 (push) Waiting to run
Lint Markdown files / markdown-lint (push) Successful in 10s
Build / build-arch-linux (push) Has been cancelled
2025-05-08 18:02:29 +02:00
c232c282db fix(ci): use container image tag from git tag
All checks were successful
Build / build-arch-linux (push) Successful in 12m1s
Build / build-rocky-linux-8 (push) Successful in 8m49s
Release / push-arch-linux (push) Successful in 18m43s
Release / push-rocky-linux-8 (push) Successful in 13m26s
Release / sync-to-hub-docker-io (push) Successful in 1m59s
2025-05-08 15:44:14 +02:00
9 changed files with 191 additions and 70 deletions

View File

@ -3,9 +3,9 @@ name: Build
on:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
- opened
- reopened
- synchronize
push:
branches:
- master
@ -15,31 +15,47 @@ jobs:
build-arch-linux:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.2.2
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.10.0
- uses: actions/checkout@v4.3.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- name: Build image
run: |
TAG=latest
- name: Build image
run: |
TAG=latest
docker buildx build \
--file Dockerfile.archlinux \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \
.
docker buildx build \
--file Dockerfile.archlinux \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \
.
build-rocky-linux-8:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.2.2
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.10.0
- uses: actions/checkout@v4.3.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- name: Build image
run: |
TAG=latest
- name: Build image
run: |
TAG=latest
docker buildx build \
--file Dockerfile.rockylinux8 \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
.
docker buildx build \
--file Dockerfile.rockylinux8 \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
.
build-rocky-linux-9:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.3.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- name: Build image
run: |
TAG=latest
docker buildx build \
--file Dockerfile.rockylinux9 \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-9 \
.

View File

@ -0,0 +1,22 @@
name: 'Lint Markdown files'
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- master
workflow_dispatch: {}
jobs:
markdown-lint:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.3.0
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
with:
globs: '**/*.md'

View File

@ -9,53 +9,77 @@ jobs:
push-arch-linux:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.2.2
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.10.0
- uses: actions/checkout@v4.3.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.4.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
- uses: docker/login-action@v3.5.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
- name: Build and push image
run: |
TAG=latest
- name: Build and push image
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \
--file Dockerfile.archlinux \
--push \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \
.
docker buildx build \
--file Dockerfile.archlinux \
--push \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \
.
push-rocky-linux-8:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.2.2
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.10.0
- uses: actions/checkout@v4.3.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.4.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
- uses: docker/login-action@v3.5.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
- name: Build and push image
run: |
TAG=latest
- name: Build and push image
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \
--file Dockerfile.rockylinux8 \
--push \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
.
docker buildx build \
--file Dockerfile.rockylinux8 \
--push \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
.
push-rocky-linux-9:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.3.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.5.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
- name: Build and push image
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \
--file Dockerfile.rockylinux9 \
--push \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-9 \
.
sync-to-hub-docker-io:
needs:
- push-arch-linux
- push-rocky-linux-8
- push-rocky-linux-9
runs-on: ubuntu-latest
steps:
- name: Copy images to docker.io
@ -65,7 +89,7 @@ jobs:
apt-get update --yes
apt-get install --yes skopeo
for suffix in archlinux rockylinux-8; do
for suffix in archlinux rockylinux-8 rockylinux-9; do
skopeo copy \
--all \
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
@ -74,4 +98,4 @@ jobs:
--src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/ansible:${TAG}-${suffix} \
docker://docker.io/volkerraschek/ansible:${TAG}-${suffix}
done
done

View File

@ -6,16 +6,17 @@ on:
- master
paths:
- README.md
workflow_dispatch: {}
jobs:
update-description-on-hub-docker-io:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v4.3.0
- uses: peter-evans/dockerhub-description@v4.0.2
with:
username: ${{ secrets.DOCKER_IO_USERNAME }}
password: ${{ secrets.DOCKER_IO_PASSWORD }}
repository: volkerraschek/ansible
readme-filepath: README.md
readme-filepath: README.md

View File

@ -68,11 +68,6 @@ MD022:
# Blank lines below heading
lines_below: 1
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
MD024:
# Only check sibling headings
allow_different_nesting: true
# MD025/single-title/single-h1 - Multiple top-level headings in the same document
MD025:
# Heading level
@ -127,7 +122,6 @@ MD041:
MD044:
# List of proper names
names: []
# - some-thing
# Include code blocks
code_blocks: false
@ -139,4 +133,4 @@ MD046:
# MD048/code-fence-style - Code fence style
MD048:
# Code fence syle
style: "backtick"
style: "backtick"

View File

@ -1,4 +1,4 @@
FROM docker.io/library/rockylinux:8
FROM docker.io/library/rockylinux:9
RUN dnf update --assumeyes && \
dnf install --assumeyes bash-completion sudo && \
@ -12,11 +12,12 @@ RUN dnf update --assumeyes && \
# We must change python to 3.12 (default 3.6), to be compliant with ansible-core. Furthermore, we must upgrade pip to
# latest version. Otherwise is still used pip for python 3.6. At least, we install boto3, which is required for the aws
# dynamic inventory manually, because the official python-boto3 package is for python 3.6.
# dynamic inventory manually, because the official python-boto3 package is for python 3.6. At least, we install
# ansible-lint via pip to be able to lint ansible roles.
RUN alternatives --set python3 /usr/bin/python3.12 && \
curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
python3 get-pip.py && \
pip install boto3
pip install ansible-lint boto3
# Create default ansible inventory file
RUN mkdir --parents /etc/ansible

30
Dockerfile.rockylinux9 Normal file
View File

@ -0,0 +1,30 @@
FROM docker.io/library/rockylinux:9
RUN dnf update --assumeyes && \
dnf install --assumeyes bash-completion sudo && \
dnf install --assumeyes epel-release && \
dnf install --assumeyes ansible-core && \
dnf install --assumeyes python3.12 python3-boto3 python3-botocore && \
dnf remove --assumeyes epel-release && \
dnf clean all
# We must change python to 3.12 (default 3.9), to be compliant with ansible-core. Furthermore, we must upgrade pip to
# latest version. Otherwise is still used pip for python 3.9. At least, we install boto3, which is required for the aws
# dynamic inventory manually, because the official python-boto3 package is for python 3.9. At least, we install
# ansible-lint via pip to be able to lint ansible roles.
RUN ln --symbolic --force /usr/bin/python3.12 /usr/bin/python3 && \
curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
python3 get-pip.py && \
pip install ansible-lint boto3
# Create default ansible inventory file
RUN mkdir --parents /etc/ansible
RUN echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
# Remove unnecessary getty and udev targets that result in high CPU usage when
# using multiple containers with molecule
# (https://github.com/ansible/molecule/issues/1104)
RUN rm --recursive --force /lib/systemd/system/systemd*udev* && \
rm --recursive --force /lib/systemd/system/getty.target
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run"]

View File

@ -21,6 +21,15 @@ ANSIBLE_RL8_IMAGE_VERSION?=latest
ANSIBLE_RL8_IMAGE_VERSION_SUFFIX=rockylinux-8
ANSIBLE_RL8_IMAGE_FULLY_QUALIFIED=${ANSIBLE_RL8_IMAGE_REGISTRY_HOST}/${ANSIBLE_RL8_IMAGE_NAMESPACE}/${ANSIBLE_RL8_IMAGE_REPOSITORY}:${ANSIBLE_RL8_IMAGE_VERSION}-${ANSIBLE_RL8_IMAGE_VERSION_SUFFIX}
# RockyLinux9
ANSIBLE_RL9_IMAGE_REGISTRY_HOST?=git.cryptic.systems
ANSIBLE_RL9_IMAGE_REGISTRY_USER?=volker.raschek
ANSIBLE_RL9_IMAGE_NAMESPACE?=${ANSIBLE_RL8_IMAGE_REGISTRY_USER}
ANSIBLE_RL9_IMAGE_REPOSITORY:=ansible
ANSIBLE_RL9_IMAGE_VERSION?=latest
ANSIBLE_RL9_IMAGE_VERSION_SUFFIX=rockylinux-9
ANSIBLE_RL9_IMAGE_FULLY_QUALIFIED=${ANSIBLE_RL9_IMAGE_REGISTRY_HOST}/${ANSIBLE_RL9_IMAGE_NAMESPACE}/${ANSIBLE_RL9_IMAGE_REPOSITORY}:${ANSIBLE_RL9_IMAGE_VERSION}-${ANSIBLE_RL9_IMAGE_VERSION_SUFFIX}
# BUILD ANSIBLE ARCHLINUX CONTAINER IMAGE
# ==============================================================================
PHONY:=container-image/build/arch-linux
@ -69,6 +78,30 @@ container-image/push/rocky-linux-8:
echo ${ANSIBLE_ARCH_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${ANSIBLE_ARCH_IMAGE_REGISTRY_HOST} --username ${ANSIBLE_ARCH_IMAGE_REGISTRY_USER} --password-stdin
${CONTAINER_RUNTIME} push ${ANSIBLE_ARCH_IMAGE_FULLY_QUALIFIED}
# BUILD ANSIBLE RL9 CONTAINER IMAGE
# ==============================================================================
PHONY:=container-image/build/rocky-linux-9
container-image/build/rocky-linux-9:
${CONTAINER_RUNTIME} build \
--file Dockerfile.rockylinux9 \
--no-cache \
--pull \
--tag ${ANSIBLE_RL9_IMAGE_FULLY_QUALIFIED} \
.
# DELETE ANSIBLE RL9 CONTAINER IMAGE
# ==============================================================================
PHONY:=container-image/delete/rocky-linux-9
container-image/delete/rocky-linux-9:
- ${CONTAINER_RUNTIME} image rm ${ANSIBLE_RL9_IMAGE_FULLY_QUALIFIED}
# PUSH ANSIBLE RL9 CONTAINER IMAGE
# ==============================================================================
PHONY+=container-image/push/rocky-linux-9
container-image/push/rocky-linux-9:
echo ${ANSIBLE_ARCH_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${ANSIBLE_ARCH_IMAGE_REGISTRY_HOST} --username ${ANSIBLE_ARCH_IMAGE_REGISTRY_USER} --password-stdin
${CONTAINER_RUNTIME} push ${ANSIBLE_ARCH_IMAGE_FULLY_QUALIFIED}
# PHONY
# ==============================================================================
# Declare the contents of the PHONY variable as phony. We keep that information

View File

@ -16,6 +16,6 @@ docker run \
--rm \
--volume $(pwd):$(pwd) \
--workdir $(pwd) \
git.cryptic.systems/volkerraschek/ansible:latest \
git.cryptic.systems/volker.raschek/ansible:latest \
bash -c "ansible-galaxy install -r requirements.yaml && ansible-playbook -i inventories/demo.aws_ec2.yaml aws.yaml"
```