nginx load balancing internal/external working
This commit is contained in:
21
ansible/README.md
Normal file
21
ansible/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Ansible
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
pacman -S ansible ansible-core python-kubernetes
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
```bash
|
||||
ansible kubernetes -m ping -i inventory.yaml
|
||||
```
|
||||
|
||||
## Updates
|
||||
|
||||
```bash
|
||||
ansible-playbook -i ansible/inventory.yaml ansible/upgrade-kubernetes-nodes.yaml
|
||||
ansible-playbook -i ansible/inventory.yaml ansible/upgrade-colors.yaml
|
||||
ansible-playbook -i ansible/inventory.yaml ansible/upgrade-apt.yaml
|
||||
```
|
||||
@@ -9,7 +9,7 @@ kubernetes:
|
||||
|
||||
colors:
|
||||
hosts:
|
||||
orange:
|
||||
# orange:
|
||||
yellow:
|
||||
|
||||
apt:
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
- name: Update quadlets
|
||||
hosts: colors
|
||||
become: true
|
||||
become_user: root
|
||||
become_method: sudo
|
||||
tasks:
|
||||
- name: Copy quadlets with owner and permissions
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: /usr/share/containers/systemd/
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
with_items:
|
||||
- ../quadlets/iperf3.container
|
||||
- ../quadlets/pihole.container
|
||||
- name: Daemon-reload to trigger re-read of quadlets
|
||||
ansible.builtin.systemd_service:
|
||||
daemon_reload: true
|
||||
Reference in New Issue
Block a user