Skip to content

Commit

Permalink
https://github.com/ansible/ansible-lint/pull/2505
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Sep 30, 2022
1 parent d85073b commit b09a3c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,20 @@
- { dest: "{{ swap_file }}", mode: "0600" }

- name: format swap file
filesystem:
community.general.filesystem:
dev: "{{ swap_file }}"
fstype: "swap"

- name: mount swap with /etc/fstab
mount:
ansible.posix.mount:
src: "{{ swap_file }}"
path: none
fstype: "swap"
opts: "sw"
state: "present"

- name: tweak sysctl entries
sysctl:
ansible.posix.sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
state: "{{ item.state }}"
Expand Down

0 comments on commit b09a3c7

Please sign in to comment.