From a92cf99ada8f50532f003d4e15aca36a3a57fc79 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 7 Feb 2026 05:19:48 -0600 Subject: [PATCH] update --- .gitlab-ci.yml | 2 +- ansible/k3s.yaml | 33 +++++++++++++++++++++++++++++++++ invintory.yaml | 14 +++++++++++++- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 ansible/k3s.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f63eb50..8c03978 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,6 +41,6 @@ ansible-k3s-dev: extends: .ansible script: - ansible-galaxy install -r $CI_PROJECT_DIR/ansible/roles/k3s/requirements.yaml - - ansible-playbook $CI_PROJECT_DIR/ansible/base.yaml -l dev-cluster + - ansible-playbook $CI_PROJECT_DIR/ansible/k3s.yaml -l dev-cluster rules: - if: '$SCRIPT == "k3s-dev"' diff --git a/ansible/k3s.yaml b/ansible/k3s.yaml new file mode 100644 index 0000000..5f60012 --- /dev/null +++ b/ansible/k3s.yaml @@ -0,0 +1,33 @@ +- hosts: master + gather_facts: yes + become: yes + roles: + - base + +- hosts: node + gather_facts: yes + become: yes + roles: + - base + +#- hosts: dev-cluster +# gather_facts: yes +# become: yes +# roles: +# - k3s/prereq +# - k3s/download +# +#- hosts: master +# become: yes +# roles: +# - k3s/master +# +#- hosts: node +# become: yes +# roles: +# - k3s/node +# +#- hosts: master +# become: yes +# roles: +# - post \ No newline at end of file diff --git a/invintory.yaml b/invintory.yaml index 2b74425..e48c6b2 100644 --- a/invintory.yaml +++ b/invintory.yaml @@ -56,4 +56,16 @@ dmz-cluster: infra-cluster: children: infra-master: - infra-node: \ No newline at end of file + infra-node: + +master: + children: + infra-master: + dmz-master: + dev-master: + +node: + children: + infra-node: + dmz-node: + dev-node: