You've already forked ansible-docker
Compare commits
18 Commits
0.1.0
...
e7c0656086
Author | SHA1 | Date | |
---|---|---|---|
e7c0656086
|
|||
5042e0326f
|
|||
c5d8e1ad5d
|
|||
efe5ece345
|
|||
2e754b5b92
|
|||
aa5bcb5aa3
|
|||
9e9f46b54d
|
|||
436f2d969e
|
|||
91e93f7411
|
|||
c06beae2c2
|
|||
1d2a90f375
|
|||
50b836e00c
|
|||
c232c282db
|
|||
57b2aa7586
|
|||
f1c719cb08
|
|||
9888a6524c
|
|||
bd5ef263d7
|
|||
50511720eb
|
@ -3,9 +3,9 @@ name: Build
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- "opened"
|
- opened
|
||||||
- "reopened"
|
- reopened
|
||||||
- "synchronize"
|
- synchronize
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@ -17,7 +17,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
- uses: docker/setup-qemu-action@v3.6.0
|
- uses: docker/setup-qemu-action@v3.6.0
|
||||||
- uses: docker/setup-buildx-action@v3.10.0
|
- uses: docker/setup-buildx-action@v3.11.0
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
@ -33,7 +33,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
- uses: docker/setup-qemu-action@v3.6.0
|
- uses: docker/setup-qemu-action@v3.6.0
|
||||||
- uses: docker/setup-buildx-action@v3.10.0
|
- uses: docker/setup-buildx-action@v3.11.0
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
|
22
.gitea/workflows/markdown-linters.yaml
Normal file
22
.gitea/workflows/markdown-linters.yaml
Normal 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'
|
@ -11,7 +11,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
- uses: docker/setup-qemu-action@v3.6.0
|
- uses: docker/setup-qemu-action@v3.6.0
|
||||||
- uses: docker/setup-buildx-action@v3.10.0
|
- uses: docker/setup-buildx-action@v3.11.0
|
||||||
|
|
||||||
- uses: docker/login-action@v3.4.0
|
- uses: docker/login-action@v3.4.0
|
||||||
with:
|
with:
|
||||||
@ -19,9 +19,9 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
TAG=latest
|
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
|
||||||
|
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--file Dockerfile.archlinux \
|
--file Dockerfile.archlinux \
|
||||||
@ -34,7 +34,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v4.2.2
|
||||||
- uses: docker/setup-qemu-action@v3.6.0
|
- uses: docker/setup-qemu-action@v3.6.0
|
||||||
- uses: docker/setup-buildx-action@v3.10.0
|
- uses: docker/setup-buildx-action@v3.11.0
|
||||||
|
|
||||||
- uses: docker/login-action@v3.4.0
|
- uses: docker/login-action@v3.4.0
|
||||||
with:
|
with:
|
||||||
@ -42,19 +42,20 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
TAG=latest
|
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
|
||||||
|
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--file Dockerfile \
|
--file Dockerfile.rockylinux8 \
|
||||||
--push \
|
--push \
|
||||||
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
|
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
|
||||||
.
|
.
|
||||||
|
|
||||||
sync-to-hub-docker-io:
|
sync-to-hub-docker-io:
|
||||||
needs:
|
needs:
|
||||||
- push-manifest
|
- push-arch-linux
|
||||||
|
- push-rocky-linux-8
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Copy images to docker.io
|
- name: Copy images to docker.io
|
||||||
|
@ -6,6 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- README.md
|
- README.md
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-description-on-hub-docker-io:
|
update-description-on-hub-docker-io:
|
||||||
|
@ -45,19 +45,17 @@ MD012:
|
|||||||
# MD013/line-length - Line length
|
# MD013/line-length - Line length
|
||||||
MD013:
|
MD013:
|
||||||
# Number of characters
|
# Number of characters
|
||||||
line_length: 80
|
line_length: 120
|
||||||
# Number of characters for headings
|
# Number of characters for headings
|
||||||
heading_line_length: 80
|
heading_line_length: 120
|
||||||
# Number of characters for code blocks
|
# Number of characters for code blocks
|
||||||
code_block_line_length: 80
|
code_block_line_length: 120
|
||||||
# Include code blocks
|
# Include code blocks
|
||||||
code_blocks: false
|
code_blocks: false
|
||||||
# Include tables
|
# Include tables
|
||||||
tables: false
|
tables: false
|
||||||
# Include headings
|
# Include headings
|
||||||
headings: true
|
headings: true
|
||||||
# Include headings
|
|
||||||
headers: true
|
|
||||||
# Strict length checking
|
# Strict length checking
|
||||||
strict: false
|
strict: false
|
||||||
# Stern length checking
|
# Stern length checking
|
||||||
@ -70,11 +68,6 @@ MD022:
|
|||||||
# Blank lines below heading
|
# Blank lines below heading
|
||||||
lines_below: 1
|
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/single-title/single-h1 - Multiple top-level headings in the same document
|
||||||
MD025:
|
MD025:
|
||||||
# Heading level
|
# Heading level
|
||||||
@ -129,7 +122,6 @@ MD041:
|
|||||||
MD044:
|
MD044:
|
||||||
# List of proper names
|
# List of proper names
|
||||||
names: []
|
names: []
|
||||||
# - some-thing
|
|
||||||
# Include code blocks
|
# Include code blocks
|
||||||
code_blocks: false
|
code_blocks: false
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/library/rockylinux:8
|
FROM docker.io/library/rockylinux:9
|
||||||
|
|
||||||
RUN dnf update --assumeyes && \
|
RUN dnf update --assumeyes && \
|
||||||
dnf install --assumeyes bash-completion sudo && \
|
dnf install --assumeyes bash-completion sudo && \
|
||||||
|
18
README.md
18
README.md
@ -1,3 +1,21 @@
|
|||||||
# ansible
|
# ansible
|
||||||
|
|
||||||
[](https://hub.docker.com/r/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"
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user