mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
459 B
YAML
13 lines
459 B
YAML
13 years ago
|
---
|
||
|
# This is a demo of how to manage the selinux context using the file module
|
||
|
- hosts: test
|
||
|
user: root
|
||
|
tasks:
|
||
|
- name: Change setype of /etc/exports to non-default value
|
||
|
action: file path=/etc/exports setype=etc_t
|
||
|
- name: Change seuser of /etc/exports to non-default value
|
||
|
action: file path=/etc/exports seuser=unconfined_u
|
||
|
- name: Set selinux context back to default value
|
||
|
action: file path=/etc/exports context=default
|
||
|
|