Skip to content

Commit

Permalink
Added failed_when in "Disable the selinux" task
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Bazhin <[email protected]>
  • Loading branch information
FactorT authored Feb 8, 2023
1 parent c5fe1e2 commit cddafd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/linux/dashboards/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
selinux:
state: disabled
when: (ansible_distribution != "Ubuntu") and (ansible_distribution != "Amazon")
register: result
failed_when: result.msg | default('ok', True) is not search('(^ok$|libselinux-python|(SELinux state changed))')

- name: Populate the nodes to /etc/hosts
import_tasks: etchosts.yml
Expand Down

0 comments on commit cddafd6

Please sign in to comment.