upt playbook

This commit is contained in:
jaydee 2023-10-26 19:19:10 +02:00
parent d3857e83d3
commit 9f7a94730c
10 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,7 @@
- hosts: odroid_cluster
name: Check for reboot
become: true
gather_facts: no
tasks:
- name: Check if file exists using stat module
stat:

View File

@ -1,7 +1,7 @@
- hosts: odroid_cluster
name: Initial Adjustments
become: true
gather_facts: true
gather_facts: no
vars:
iface: "eth0"
tasks:

View File

@ -1,6 +1,7 @@
- hosts: odroid_cluster
name: Install omv
become: true
gather_facts: no
tasks:
- name: Install ldap packages
ansible.builtin.apt:

View File

@ -1,6 +1,7 @@
- hosts: odroid_master
name: Setup info display
become: true
gather_facts: no
tasks:
- name: Install deps...
ansible.builtin.apt:

View File

@ -2,6 +2,7 @@
name: Install docker
become: true
become_user: root
gather_facts: no
tasks:
- name: Install docker
ansible.builtin.apt:

View File

@ -1,6 +1,7 @@
- hosts: odroid_cluster
name: Install apparmor
become: true
gather_facts: no
tasks:
- name: Install apparmor
ansible.builtin.apt:

View File

@ -1,6 +1,7 @@
- hosts: odroid_master
name: Install k3s
become: true
gather_facts: no
tasks:
- name: Install K3S
ansible.builtin.shell: 'curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION="v1.24.1+k3s1" sh -s -'

View File

@ -1,6 +1,7 @@
- hosts: odroid_worker
name: Setup k3s workers
become: true
gather_facts: no
vars:
K3S_TOKEN_HOLDER: "{{ hostvars['K3S_TOKEN_HOLDER']['token'] }}"
# K3S_TOKEN_HOLDER: "K10e86c2dee93cc36d405fbeb34ef64e8867c097493ef2e0f2e95feb5bb30ded39b::server:5f3d5033ee0554caab810c863b0587d2"

View File

@ -1,6 +1,7 @@
- hosts: odroid_cluster
name: Run script
become: true
gather_facts: no
gather_facts: true
tasks:
- name: Reconfigure logo

View File

@ -1,4 +1,7 @@
---
- name: Install dependency localy
import_playbook: 00_local.yml
- name: Change creds
import_playbook: 00_tst.yml
when: