22 Commits

Author SHA1 Message Date
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
57b2aa7586 fix(ci): add missing Dockerfile suffix
Some checks failed
Build / build-rocky-linux-8 (push) Has been cancelled
Build / build-arch-linux (push) Has been cancelled
Release / push-arch-linux (push) Successful in 17m50s
Release / push-rocky-linux-8 (push) Successful in 14m39s
Release / sync-to-hub-docker-io (push) Failing after 27s
2025-05-08 14:48:30 +02:00
f1c719cb08 fix(ci): add missing Dockerfile suffix
Some checks failed
Build / build-rocky-linux-8 (push) Has been cancelled
Build / build-arch-linux (push) Has been cancelled
Release / push-arch-linux (push) Successful in 16m51s
Release / push-rocky-linux-8 (push) Failing after 54s
Release / sync-to-hub-docker-io (push) Has been skipped
2025-05-08 12:46:21 +02:00
9888a6524c docs(ci): rename step 2025-05-08 12:31:07 +02:00
bd5ef263d7 fix(ci): specify dependency correctly
Some checks failed
Build / build-arch-linux (push) Has been cancelled
Build / build-rocky-linux-8 (push) Has been cancelled
Release / push-arch-linux (push) Successful in 19m0s
Release / push-rocky-linux-8 (push) Failing after 1m4s
Release / sync-to-hub-docker-io (push) Has been skipped
2025-05-08 12:24:29 +02:00
50511720eb docs(README): add example
Some checks are pending
Build / build-arch-linux (push) Waiting to run
Build / build-rocky-linux-8 (push) Waiting to run
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 10s
2025-05-08 12:23:22 +02:00
395be4db9e fix(ci): replace drone with gitea actions
Some checks failed
Update Docker Hub Description / update-description-on-hub-docker-io (push) Failing after 11s
Build / build-arch-linux (push) Successful in 9m54s
Build / build-rocky-linux-8 (push) Has been cancelled
Release / push-arch-linux (push) Has been cancelled
Release / push-rocky-linux-8 (push) Has been cancelled
Release / sync-to-hub-docker-io (push) Has been cancelled
2025-05-08 12:07:07 +02:00
8044e5941e fix(rockylinux-8): upgrade python, pip and boto3 2025-05-08 11:58:15 +02:00
7 changed files with 198 additions and 15 deletions

View File

@ -0,0 +1,45 @@
name: Build
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- master
workflow_dispatch: {}
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.11.1
- name: Build image
run: |
TAG=latest
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.11.1
- name: Build image
run: |
TAG=latest
docker buildx build \
--file Dockerfile.rockylinux8 \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
.

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.2.2
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
with:
globs: '**/*.md'

View File

@ -0,0 +1,77 @@
name: Release
on:
push:
tags:
- "**"
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.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.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.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.rockylinux8 \
--push \
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
.
sync-to-hub-docker-io:
needs:
- push-arch-linux
- push-rocky-linux-8
runs-on: ubuntu-latest
steps:
- name: Copy images to docker.io
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
apt-get update --yes
apt-get install --yes skopeo
for suffix in archlinux rockylinux-8; do
skopeo copy \
--all \
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/ansible:${TAG}-${suffix} \
docker://docker.io/volkerraschek/ansible:${TAG}-${suffix}
done

View File

@ -0,0 +1,22 @@
name: Update Docker Hub Description
on:
push:
branches:
- 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: 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

View File

@ -45,19 +45,17 @@ MD012:
# MD013/line-length - Line length
MD013:
# Number of characters
line_length: 80
line_length: 120
# Number of characters for headings
heading_line_length: 80
heading_line_length: 120
# Number of characters for code blocks
code_block_line_length: 80
code_block_line_length: 120
# Include code blocks
code_blocks: false
# Include tables
tables: false
# Include headings
headings: true
# Include headings
headers: true
# Strict length checking
strict: false
# Stern length checking
@ -70,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
@ -129,7 +122,6 @@ MD041:
MD044:
# List of proper names
names: []
# - some-thing
# Include code blocks
code_blocks: false
@ -141,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:9
FROM docker.io/library/rockylinux:8
RUN dnf update --assumeyes && \
dnf install --assumeyes bash-completion sudo && \
@ -10,6 +10,14 @@ RUN dnf update --assumeyes && \
dnf install --assumeyes python3-boto3 python3-botocore && \
dnf clean all
# 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.
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
# Create default ansible inventory file
RUN mkdir --parents /etc/ansible
RUN echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

View File

@ -1,4 +1,21 @@
# ansible-archlinux-docker
# ansible
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/ansible-archlinux-docker/status.svg)](https://drone.cryptic.systems/volker.raschek/ansible-archlinux-docker)
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/ansible-archlinux)](https://hub.docker.com/r/volkerraschek/ansible-archlinux)
This container image can be used to execute ansible. It contains the latest versions of ansible-core, ansible-lint and
python-boto3 to interact with AWS dynamic inventory.
Here is an example. The environment variables as well as the path to the playbook and inventory must of course be
adapted to your own needs.
```bash
docker run \
--env AWS_ACCESS_KEY_ID \
--env AWS_SECRET_ACCESS_KEY \
--env AWS_SESSION_TOKEN \
--rm \
--volume $(pwd):$(pwd) \
--workdir $(pwd) \
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"
```