various tweaks and fixes
This commit is contained in:
7
nodes/README.md
Normal file
7
nodes/README.md
Normal 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
3
nodes/hosts
Normal 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
13
nodes/update_hosts.yaml
Normal 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'
|
||||
Reference in New Issue
Block a user