This commit is contained in:
2025-08-15 08:43:12 +02:00
parent 236d558cff
commit 02aad24b0e
11 changed files with 69 additions and 0 deletions

2
.bashrc Normal file
View File

@@ -0,0 +1,2 @@
alias ll='ls -al'
alias p='ansible-playbook'

5
.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
.venv
uv.lock
README.me
pyproject.toml
ansible.pub

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/uv.lock

13
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
/docker-ansible.iml
/misc.xml
/modules.xml
/inspectionProfiles/profiles_settings.xml
/vcs.xml

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:3
LABEL authors="bwr"
RUN pip install ansible
COPY .bashrc /root/
COPY ansible.key known_hosts /root/.ssh/
COPY kube-cluster \
playbooks \
roles \
/
ENTRYPOINT ["/bin/bash"]

7
ansible.key Normal file
View File

@@ -0,0 +1,7 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACCvpHXr7SA9UN4oUYwikZovA7CCWnv/nShNO2IcWCNEvgAAAJA7DvWQOw71
kAAAAAtzc2gtZWQyNTUxOQAAACCvpHXr7SA9UN4oUYwikZovA7CCWnv/nShNO2IcWCNEvg
AAAECdNtXI68foHVvXfr8FMOoA75LaPIDJ7KbSAVm7XYEtua+kdevtID1Q3ihRjCKRmi8D
sIJae/+dKE07YhxYI0S+AAAAB0Fuc2libGUBAgMEBQY=
-----END OPENSSH PRIVATE KEY-----

1
ansible.pub Normal file
View File

@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK+kdevtID1Q3ihRjCKRmi8DsIJae/+dKE07YhxYI0S+ Ansible

0
known_hosts Normal file
View File

5
kube-cluster/ansible.cfg Normal file
View File

@@ -0,0 +1,5 @@
[defaults]
inventory = hosts.yaml
private_key_file = /root/.ssh/ansible.key
remote_user = ansible
roles_path = roles:../roles

14
kube-cluster/hosts.yaml Normal file
View File

@@ -0,0 +1,14 @@
all:
vars:
timezone_name: UTC
nodes:
hosts:
node0:
ansible_host: node0.pi-cluster.bwr.net
node1:
ansible_host: node1.pi-cluster.bwr.net
node2:
ansible_host: node2.pi-cluster.bwr.net
node3:
ansible_host: node3.pi-cluster.bwr.net

8
pyproject.toml Normal file
View File

@@ -0,0 +1,8 @@
[project]
name = "docker-ansible"
version = "0.1.0"
description = "Add your description here"
requires-python = ">=3.13"
dependencies = [
"ansible>=11.9.0",
]