File tree 2 files changed +27
-3
lines changed 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
## Documentation
8
8
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
+ ```
10
34
11
35
## License
12
36
Original file line number Diff line number Diff line change 1
1
---
2
- workspace :
2
+ controller :
3
3
hosts:
4
4
localhost:
5
5
vars:
6
6
ansible_connection: local
7
- ansible_become: true
7
+ ansible_become: false
You canโt perform that action at this time.
0 commit comments