Merge branch 'dev' of https://git.halia.dev/athens-school/ansible into dev
This commit is contained in:
commit
a802758168
9
Makefile
9
Makefile
@ -1,13 +1,14 @@
|
||||
install: setup wg k3s
|
||||
install:
|
||||
ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=true enable_wireguard=true enable_k3s=true"
|
||||
|
||||
setup:
|
||||
ansible-playbook -i "inventory/hosts.yml" "init.yml"
|
||||
ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=true enable_wireguard=false enable_k3s=false"
|
||||
|
||||
wg:
|
||||
ansible-playbook -i "inventory/hosts.yml" "wireguard/wireguard.yml"
|
||||
ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=false enable_wireguard=true enable_k3s=false"
|
||||
|
||||
k3s:
|
||||
ansible-playbook -i "inventory/hosts.yml" "k3s-ansible/site.yml"
|
||||
ansible-playbook -i "inventory/hosts.yml" "init.yml" --extra-vars "enable_setup=false enable_wireguard=false enable_k3s=true"
|
||||
|
||||
uninstall:
|
||||
ansible-playbook -i "inventory/hosts.yml" "k3s-ansible/reset.yml"
|
||||
|
13
init.yml
13
init.yml
@ -1,4 +1,13 @@
|
||||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- node-configuration
|
||||
tasks:
|
||||
- name: Start basic node configuration
|
||||
include_role:
|
||||
name: node-configuration
|
||||
when: enable_setup|bool == true
|
||||
- name: Configure wireguard
|
||||
ansible.builtin.import_playbook: wireguard/wireguard.yml
|
||||
when: enable_wireguard|bool == true
|
||||
- name: Configure k3s
|
||||
ansible.builtin.import_playbook: wireguard/wireguard.yml
|
||||
when: enable_k3s|bool == true
|
||||
|
Loading…
Reference in New Issue
Block a user