mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Flip setenforce boolean (#22752)
* Flip setenforce boolean * Update example task name
This commit is contained in:
@@ -282,8 +282,8 @@ of arguments and don't use the ``key=value`` form. This makes
|
||||
them work as simply as you would expect::
|
||||
|
||||
tasks:
|
||||
- name: disable selinux
|
||||
command: /sbin/setenforce 0
|
||||
- name: enable selinux
|
||||
command: /sbin/setenforce 1
|
||||
|
||||
The **command** and **shell** module care about return codes, so if you have a command
|
||||
whose successful exit code is not zero, you may wish to do this::
|
||||
|
||||
Reference in New Issue
Block a user