Compare commits

..

1 Commits

Author SHA1 Message Date
vincent
c9f5641698 feat: K3S cluster instalation.
Some checks failed
continuous-integration/drone/push Build is failing
2024-11-10 10:42:41 +01:00
8 changed files with 21 additions and 11 deletions

View File

@ -0,0 +1 @@
k3s_cluster_group: homelab

View File

@ -1,2 +1,3 @@
nomad_datacenter: homelab
k3s_consul_service: true
system_wol_enable: True

View File

@ -1,10 +1,4 @@
---
- name: Consul install
hosts: all
roles:
- role: ansible-consul
become: true
- name: Vault install
hosts: homelab
roles:
@ -46,8 +40,6 @@
- name: nomad
hosts: all
vars:
unseal_keys_dir_output: ~/vaultunseal
roles:
- role: ansible-nomad
become: true

View File

@ -0,0 +1,8 @@
---
- name: Consul install
hosts: all
roles:
- role: ansible-consul
become: true

View File

@ -0,0 +1,5 @@
---
- name: k3s
hosts: all
roles:
- role: ansible-k3s

View File

@ -45,5 +45,7 @@ roles:
- src: git@git.ducamps.eu:2222/ansible-roles/ansible-role-pureftpd.git
scm: git
- src: https://github.com/PowerDNS/pdns_recursor-ansible.git
- src: ssh://git@git.ducamps.eu:2222/ansible-roles/ansible-k3s.git
scm: git
collections:
- name: vladgh.samba

View File

@ -2,7 +2,9 @@
- import_playbook: playbooks/server.yml
- import_playbook: playbooks/dhcpd.yml
- import_playbook: playbooks/dns.yml
- import_playbook: playbooks/HashicorpStack.yml
- import_playbook: playbooks/consul.yml
- import_playbook: playbooks/kube.yml
#- import_playbook: playbooks/HashicorpStack.yml
- import_playbook: playbooks/nas.yml
- import_playbook: playbooks/autofs.yml
- import_playbook: playbooks/sssd.yml

View File

@ -85,8 +85,7 @@ exclude_patterns:
- '*nomad/registry'
- '*nomad/pacoloco'
- '*nomad/pihole'
- '*nomad/jellyfin/*'
- '*.log*'
- '*nomad/jellyfin/config/data/library*'
match_archives: '*'
archive_name_format: '{{ env "node.datacenter" }}-{now:%Y-%m-%dT%H:%M:%S.%f}'