Skip to content

Commit

Permalink
Added missing become:true in edpm_bootstrap handlers tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Alfieri <[email protected]>
  • Loading branch information
rebtoor committed Oct 8, 2023
1 parent 405121d commit cbc75c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/edpm_bootstrap/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---

- name: Setup linux swap area on file if needed
become: true
ansible.builtin.command: mkswap "{{ edpm_bootstrap_swap_path }}"
register: _mkswap_command
changed_when: _mkswap_command.rc == 0
failed_when: _mkswap_command.rc != 0
listen: "create and activate swap"

- name: Activate swap
become: true
ansible.builtin.command: swapon "{{ edpm_bootstrap_swap_path }}"
register: _swapon_command
changed_when: _swapon_command.rc == 0
Expand Down

0 comments on commit cbc75c0

Please sign in to comment.