Merge branch '16-ansible-update-fixes' into 'development'
fix: "migrate role for Ansible Upgrade 2.14.5->2.16.1" Closes #16 and execution_environment#21 See merge request nofusscomputing/projects/ansible/kubernetes!15
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
state: restarted
|
||||
listen: kubernetes_restart
|
||||
when: |-
|
||||
{%- if
|
||||
not (
|
||||
nfc_kubernetes_no_restart
|
||||
or
|
||||
(
|
||||
@ -49,8 +49,5 @@
|
||||
and
|
||||
nfc_kubernetes_no_restart_slave
|
||||
)
|
||||
-%}
|
||||
false
|
||||
{%- else -%}
|
||||
true
|
||||
{%- endif %}
|
||||
)
|
||||
|
||||
|
||||
@ -12,30 +12,30 @@
|
||||
|
||||
|
||||
- name: Remove swapfile from /etc/fstab
|
||||
mount:
|
||||
ansible.posix.mount:
|
||||
name: "{{ item }}"
|
||||
fstype: swap
|
||||
state: absent
|
||||
with_items:
|
||||
- swap
|
||||
- none
|
||||
when:
|
||||
when:
|
||||
- ansible_os_family == 'Debian' # ansible_lsb.codename = bullseye, ansible_lsb.major_release = 11
|
||||
tags:
|
||||
- install
|
||||
|
||||
|
||||
- name: Disable swap
|
||||
command: swapoff -a
|
||||
ansible.builtin.command:
|
||||
cmd: swapoff -a
|
||||
changed_when: false
|
||||
when:
|
||||
#- ansible_swaptotal_mb > 0
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
tags:
|
||||
- install
|
||||
|
||||
- name: Check an armbian os system
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: /etc/default/armbian-zram-config
|
||||
register: armbian_stat_result
|
||||
|
||||
@ -48,8 +48,6 @@
|
||||
args:
|
||||
executable: bash
|
||||
changed_when: false
|
||||
# failed_when: false
|
||||
#notify: RebootHost # doesnt need to reboot as swapoff -a covers the deployment
|
||||
when: armbian_stat_result.stat.exists
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user