refactor(tasks): ensure module FQCN is used
!15 nofusscomputing/infrastructure/configuration-management/project-production!17
This commit is contained in:
@ -12,30 +12,30 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Remove swapfile from /etc/fstab
|
- name: Remove swapfile from /etc/fstab
|
||||||
mount:
|
ansible.posix.mount:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
fstype: swap
|
fstype: swap
|
||||||
state: absent
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- swap
|
- swap
|
||||||
- none
|
- none
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'Debian' # ansible_lsb.codename = bullseye, ansible_lsb.major_release = 11
|
- ansible_os_family == 'Debian' # ansible_lsb.codename = bullseye, ansible_lsb.major_release = 11
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
|
||||||
|
|
||||||
- name: Disable swap
|
- name: Disable swap
|
||||||
command: swapoff -a
|
ansible.builtin.command:
|
||||||
|
cmd: swapoff -a
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
#- ansible_swaptotal_mb > 0
|
|
||||||
- ansible_os_family == 'Debian'
|
- ansible_os_family == 'Debian'
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
|
||||||
- name: Check an armbian os system
|
- name: Check an armbian os system
|
||||||
stat:
|
ansible.builtin.stat:
|
||||||
path: /etc/default/armbian-zram-config
|
path: /etc/default/armbian-zram-config
|
||||||
register: armbian_stat_result
|
register: armbian_stat_result
|
||||||
|
|
||||||
@ -48,8 +48,6 @@
|
|||||||
args:
|
args:
|
||||||
executable: bash
|
executable: bash
|
||||||
changed_when: false
|
changed_when: false
|
||||||
# failed_when: false
|
|
||||||
#notify: RebootHost # doesnt need to reboot as swapoff -a covers the deployment
|
|
||||||
when: armbian_stat_result.stat.exists
|
when: armbian_stat_result.stat.exists
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user