Skip to content

Commit

Permalink
Merge pull request #415 from rebtoor/fix-broken-handlers-bootstrap
Browse files Browse the repository at this point in the history
Added missing `become:true` in `edpm_bootstrap` handlers tasks
  • Loading branch information
openshift-ci[bot] authored Oct 8, 2023
2 parents 405121d + cbc75c0 commit 9916aee
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 9916aee

Please sign in to comment.