diff --git a/ansible/group_vars/all/k3s b/ansible/group_vars/all/k3s new file mode 100644 index 0000000..4330a5a --- /dev/null +++ b/ansible/group_vars/all/k3s @@ -0,0 +1 @@ +k3s_cluster_group: homelab diff --git a/ansible/group_vars/homelab/homelab b/ansible/group_vars/homelab/homelab index 815e5bb..f00cbb6 100644 --- a/ansible/group_vars/homelab/homelab +++ b/ansible/group_vars/homelab/homelab @@ -1,2 +1,3 @@ nomad_datacenter: homelab +k3s_consul_service: true system_wol_enable: True diff --git a/ansible/playbooks/HashicorpStack.yml b/ansible/playbooks/HashicorpStack.yml index 69ea565..598d982 100644 --- a/ansible/playbooks/HashicorpStack.yml +++ b/ansible/playbooks/HashicorpStack.yml @@ -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 diff --git a/ansible/playbooks/consul.yml b/ansible/playbooks/consul.yml new file mode 100644 index 0000000..d8162f3 --- /dev/null +++ b/ansible/playbooks/consul.yml @@ -0,0 +1,8 @@ +--- +- name: Consul install + hosts: all + roles: + - role: ansible-consul + become: true + + diff --git a/ansible/playbooks/kube.yml b/ansible/playbooks/kube.yml new file mode 100644 index 0000000..ee9231c --- /dev/null +++ b/ansible/playbooks/kube.yml @@ -0,0 +1,5 @@ +--- +- name: k3s + hosts: all + roles: + - role: ansible-k3s diff --git a/ansible/roles/requirements.yml b/ansible/roles/requirements.yml index 8f69c7d..7d362d6 100644 --- a/ansible/roles/requirements.yml +++ b/ansible/roles/requirements.yml @@ -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 diff --git a/ansible/site.yml b/ansible/site.yml index 72a6192..8e08466 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -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