https://github.com/ilyes512/ansible
Multiple Ansible images with different kind of tools ready for K8s interactions
https://github.com/ilyes512/ansible
ansible docker docker-image k8s kubernetes
Last synced: 10 months ago
JSON representation
Multiple Ansible images with different kind of tools ready for K8s interactions
- Host: GitHub
- URL: https://github.com/ilyes512/ansible
- Owner: Ilyes512
- Created: 2019-03-07T21:46:28.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-04-15T21:02:18.000Z (about 1 year ago)
- Last Synced: 2025-04-15T21:37:22.038Z (about 1 year ago)
- Topics: ansible, docker, docker-image, k8s, kubernetes
- Language: Shell
- Homepage:
- Size: 132 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible
[](https://github.com/Ilyes512/ansible/actions?query=workflow%3A%22Build+Images%22)
Multiple Ansible images with different kind of tools ready for K8s interactions.
## Pulling the images
```
docker pull ghcr.io/ilyes512/ansible:latest
docker pull ghcr.io/ilyes512/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**: `/ansible`
**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/ilyes512/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