various tweaks and fixes

This commit is contained in:
2024-06-06 20:41:43 -04:00
parent 406b17c7d8
commit 642c0011ff
13 changed files with 155 additions and 68 deletions

7
nodes/README.md Normal file
View File

@@ -0,0 +1,7 @@
# Kubernetes Node Ansible
## Update Hosts
```bash
ansible-playbook -i ansible/inventory.yaml nodes/update_hosts.yaml
```

3
nodes/hosts Normal file
View File

@@ -0,0 +1,3 @@
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.20.0.1 democratic-csi-server.reeselink.com

13
nodes/update_hosts.yaml Normal file
View File

@@ -0,0 +1,13 @@
- name: Update /etc/hosts
hosts: kubernetes
become: true
become_user: root
become_method: sudo
tasks:
- name: Copy /etc/hosts
ansible.builtin.copy:
src: ./hosts
dest: /etc/hosts
owner: root
group: root
mode: '0644'