fix: added condition for selinux related tasks

This commit is contained in:
xpk
2019-03-08 14:42:41 +08:00
parent 3104905bf5
commit f51bc4048d
+1
View File
@@ -18,6 +18,7 @@
- name: selinux stuff for xrdp - name: selinux stuff for xrdp
shell: "chcon --type=bin_t /usr/sbin/xrdp; chcon --type=bin_t /usr/sbin/xrdp-sesman" shell: "chcon --type=bin_t /usr/sbin/xrdp; chcon --type=bin_t /usr/sbin/xrdp-sesman"
when: ansible_selinux.status == "enabled"
- name: Enable and start xrdp service - name: Enable and start xrdp service
service: service: