mirror of
				https://gitlab.sectorq.eu/jaydee/ansible.git
				synced 2025-10-31 02:11:10 +01:00 
			
		
		
		
	upt playbook
This commit is contained in:
		| @@ -1,6 +1,7 @@ | |||||||
| - hosts: odroid_cluster | - hosts: odroid_cluster | ||||||
|   name: Check for reboot |   name: Check for reboot | ||||||
|   become: true |   become: true | ||||||
|  |   gather_facts: no | ||||||
|   tasks: |   tasks: | ||||||
|     - name: Check if file exists using stat module |     - name: Check if file exists using stat module | ||||||
|       stat: |       stat: | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| - hosts: odroid_cluster | - hosts: odroid_cluster | ||||||
|   name: Initial Adjustments |   name: Initial Adjustments | ||||||
|   become: true |   become: true | ||||||
|   gather_facts: true |   gather_facts: no | ||||||
|   vars: |   vars: | ||||||
|     iface: "eth0" |     iface: "eth0" | ||||||
|   tasks: |   tasks: | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| - hosts: odroid_cluster | - hosts: odroid_cluster | ||||||
|   name: Install omv |   name: Install omv | ||||||
|   become: true |   become: true | ||||||
|  |   gather_facts: no | ||||||
|   tasks: |   tasks: | ||||||
|     - name: Install ldap packages |     - name: Install ldap packages | ||||||
|       ansible.builtin.apt: |       ansible.builtin.apt: | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| - hosts: odroid_master | - hosts: odroid_master | ||||||
|   name: Setup info display |   name: Setup info display | ||||||
|   become: true |   become: true | ||||||
|  |   gather_facts: no | ||||||
|   tasks: |   tasks: | ||||||
|     - name: Install deps... |     - name: Install deps... | ||||||
|       ansible.builtin.apt: |       ansible.builtin.apt: | ||||||
|   | |||||||
| @@ -2,6 +2,7 @@ | |||||||
|   name: Install docker |   name: Install docker | ||||||
|   become: true |   become: true | ||||||
|   become_user: root |   become_user: root | ||||||
|  |   gather_facts: no | ||||||
|   tasks: |   tasks: | ||||||
|     - name: Install docker |     - name: Install docker | ||||||
|       ansible.builtin.apt: |       ansible.builtin.apt: | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| - hosts: odroid_cluster | - hosts: odroid_cluster | ||||||
|   name: Install apparmor |   name: Install apparmor | ||||||
|   become: true |   become: true | ||||||
|  |   gather_facts: no | ||||||
|   tasks: |   tasks: | ||||||
|     - name: Install apparmor |     - name: Install apparmor | ||||||
|       ansible.builtin.apt: |       ansible.builtin.apt: | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| - hosts: odroid_master | - hosts: odroid_master | ||||||
|   name: Install k3s |   name: Install k3s | ||||||
|   become: true |   become: true | ||||||
|  |   gather_facts: no | ||||||
|   tasks: |   tasks: | ||||||
|     - name: Install K3S |     - 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 -' |       ansible.builtin.shell: 'curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION="v1.24.1+k3s1" sh -s -' | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| - hosts: odroid_worker | - hosts: odroid_worker | ||||||
|   name: Setup k3s workers |   name: Setup k3s workers | ||||||
|   become: true |   become: true | ||||||
|  |   gather_facts: no | ||||||
|   vars: |   vars: | ||||||
|       K3S_TOKEN_HOLDER: "{{ hostvars['K3S_TOKEN_HOLDER']['token'] }}" |       K3S_TOKEN_HOLDER: "{{ hostvars['K3S_TOKEN_HOLDER']['token'] }}" | ||||||
|       # K3S_TOKEN_HOLDER: "K10e86c2dee93cc36d405fbeb34ef64e8867c097493ef2e0f2e95feb5bb30ded39b::server:5f3d5033ee0554caab810c863b0587d2" |       # K3S_TOKEN_HOLDER: "K10e86c2dee93cc36d405fbeb34ef64e8867c097493ef2e0f2e95feb5bb30ded39b::server:5f3d5033ee0554caab810c863b0587d2" | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| - hosts: odroid_cluster | - hosts: odroid_cluster | ||||||
|   name: Run script |   name: Run script | ||||||
|   become: true |   become: true | ||||||
|  |   gather_facts: no | ||||||
|   gather_facts: true |   gather_facts: true | ||||||
|   tasks: |   tasks: | ||||||
|     - name: Reconfigure logo |     - name: Reconfigure logo | ||||||
|   | |||||||
| @@ -1,4 +1,7 @@ | |||||||
| --- | --- | ||||||
|  | - name: Install dependency localy | ||||||
|  |   import_playbook: 00_local.yml | ||||||
|  |  | ||||||
| - name: Change creds | - name: Change creds | ||||||
|   import_playbook: 00_tst.yml |   import_playbook: 00_tst.yml | ||||||
|   when:  |   when:  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jaydee
					jaydee