Skip to content

Commit b84b4a5

Browse files
committed
📃 Add readme example
1 parent 260a554 commit b84b4a5

File tree

5 files changed

+31
-7
lines changed

5 files changed

+31
-7
lines changed

‎Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
5858
ARG TARGETARCH
5959

6060
# renovate: source=github-releases dep=google/go-containerregistry
61-
ARG crane_version=0.20.0
61+
ARG crane_version=0.20.1
6262

6363
RUN case ${TARGETARCH} in "arm64") amr64 ;; "amd64") file=x86_64 ;; esac \
6464
&& curl -fsSL "https://github.com/google/go-containerregistry/releases/download/v${crane_version}/go-containerregistry_Linux_${file}.tar.gz" \

‎README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,31 @@
66

77
## Documentation
88

9-
TBD
9+
The image includes a default inventory *(`/etc/ansible/hosts`)* named `controller` that
10+
runs on `localhost` without root privileges.
11+
12+
To use it, copy the following example playbook:
13+
14+
```yaml
15+
- name: Run something
16+
gather_facts: false
17+
hosts: controller
18+
19+
tasks:
20+
- name: Just saying hello
21+
ansible.builtin.debug:
22+
msg: Hello world! 👋
23+
```
24+
25+
### Run
26+
27+
```sh
28+
docker run --rm \
29+
-v ./playbooks:/workspace \
30+
ghcr.io/kloudkit/ansible-controller \
31+
-e FOO=bar \
32+
/workspace/play.yaml
33+
```
1034

1135
## License
1236

‎src/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible-core==2.17.1
1+
ansible-core==2.17.2
22
docker==7.1.0
33
kubernetes==30.1.0
44
netaddr==1.3.0

‎src/requirements.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ collections:
44
version: 1.5.4
55

66
- name: community.crypto
7-
version: 2.20.0
7+
version: 2.21.0
88

99
- name: community.general
10-
version: 9.1.0
10+
version: 9.2.0
1111

1212
- name: kubernetes.core
1313
version: 5.0.0

‎src/rootfs/etc/ansible/hosts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
workspace:
2+
controller:
33
hosts:
44
localhost:
55
vars:
66
ansible_connection: local
7-
ansible_become: true
7+
ansible_become: false

0 commit comments

Comments
 (0)