static_websites: Remove SELinux context from install directory

This patch removes installing an SELinux context for the install directory, which only holds the docker-compose.yml and explicitly setting the seuser / setype. 
This is now consistent with all other docker-compose.yml deployments.
This commit is contained in:
saibotk 2020-08-14 05:20:15 +02:00
parent 2d916fbaa1
commit dc95ba9fb4
No known key found for this signature in database
GPG key ID: A3299C587D5DF523

View file

@ -17,22 +17,10 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
- name: Update default SELinux contexts
sefcontext:
target: '{{ item }}(/.*)?'
seuser: "system_u"
setype: "var_t"
state: present
with_items:
- "{{ static_websites_install_location }}"
become: true
- name: Create directory - name: Create directory
file: file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
seuser: "system_u"
setype: "var_t"
with_items: with_items:
- "{{ static_websites_install_location }}" - "{{ static_websites_install_location }}"
become: true become: true