*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 8aafa7c4 authored by entlein's avatar entlein
Browse files

not using the restart handler, maybe it is the reason it consistently breaks

parent d6047e6f
No related branches found
No related tags found
1 merge request!1Restore main as the default branch
...@@ -33,11 +33,20 @@ ...@@ -33,11 +33,20 @@
template: template:
src: config.yaml.j2 src: config.yaml.j2
dest: /etc/rancher/rke2/config.yaml dest: /etc/rancher/rke2/config.yaml
notify: # notify:
- restart rke2 # - restart rke2
- name: enable rke2 - name: enable rke2
ansible.builtin.systemd: ansible.builtin.systemd:
name: "rke2-{{ node_type }}" name: "rke2-{{ node_type }}"
enabled: yes enabled: yes
masked: no masked: no
- name: restart rke2
throttle: 1
ansible.builtin.systemd:
name: "rke2-{{ node_type }}"
masked: no
enabled: yes
state: restarted
daemon_reload: yes
\ No newline at end of file
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
# when: ( 'master' in group_names ) # when: ( 'master' in group_names )
# ignore_errors: True # ignore_errors: True
- name: Sleep for another 30 seconds so that the OS-CCM has had time to boot up # - name: Sleep for another 30 seconds so that the OS-CCM has had time to boot up
ansible.builtin.wait_for: # ansible.builtin.wait_for:
timeout: 30 # timeout: 30
delegate_to: localhost # delegate_to: localhost
# - name: Wait for all control-plane pods to become created # - name: Wait for all control-plane pods to become created
...@@ -39,8 +39,7 @@ ...@@ -39,8 +39,7 @@
# when: ('master' in group_names) # when: ('master' in group_names)
# ignore_errors: True # ignore_errors: True
- name: Enable SELinux
# - name: Enable SELinux selinux:
# selinux: policy: targeted
# policy: targeted state: enforcing
# state: enforcing \ No newline at end of file
\ No newline at end of file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
template: template:
src: 'registry_mirrors.j2' src: 'registry_mirrors.j2'
dest: '/etc/rancher/rke2/registries.yaml' dest: '/etc/rancher/rke2/registries.yaml'
notify: # notify:
- restart rke2 # - restart rke2
when: registry_mirrors is defined and registry_mirrors | length > 0 when: registry_mirrors is defined and registry_mirrors | length > 0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment