https://github.com/specsnl/ansible
Multiple Ansible images with different kind of tools ready for K8s interactions
https://github.com/specsnl/ansible
ansible docker docker-image k8s kubernetes
Last synced: 20 days ago
JSON representation
Multiple Ansible images with different kind of tools ready for K8s interactions
- Host: GitHub
- URL: https://github.com/specsnl/ansible
- Owner: specsnl
- Created: 2019-03-07T21:46:28.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2026-06-07T09:17:53.000Z (25 days ago)
- Last Synced: 2026-06-07T10:14:30.661Z (25 days ago)
- Topics: ansible, docker, docker-image, k8s, kubernetes
- Language: Shell
- Homepage:
- Size: 219 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible
[](https://github.com/specsnl/ansible/actions/workflows/main.yml)
Multiple Ansible images with different kind of tools ready for K8s interactions.
## Pulling the images
```
docker pull ghcr.io/specsnl/ansible:ansible-latest
docker pull ghcr.io/specsnl/ansible/k8s:latest
```
## Task commands
Available [Task](https://taskfile.dev/#/) commands:
```
* build: Build and run new.Dockerfile
* lint: Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
* requirements: Update requirements.txt file
* a:shell: Interactive shell with Ansible
* scripts:check-versions: Check kubctl and kubectx versions
```
## Misc
**Workdir**: `/workspace`
**Environment variables**:
`KUBECONFIG_OVERRIDE`: If this env variable is set, it will put the contents of the variable in a (new) file at
`/root/.kube/context-override`. The path of the new file is then set as the value of `KUBECONFIG`-env.
Example:
```bash
docker run --rm --tty --env KUBECONFIG_OVERRIDE="`kind get kubeconfig --internal`" \
ghcr.io/specsnl/ansible/k8s:latest kubectl get nodes
```
Quote:
> kind is a tool for running local Kubernetes clusters using Docker container "nodes".
For more info see: https://github.com/kubernetes-sigs/kind