Added Amazon Linux 2 support for deploying with docker (#5301)

This commit is contained in:
LuciferInLove
2019-11-11 18:05:41 +03:00
committed by Kubernetes Prow Robot
parent db5040e6ea
commit 4f70da2731
2 changed files with 20 additions and 1 deletions

View File

@@ -3,7 +3,9 @@
- name: Confirm selinux deployed
stat:
path: /etc/selinux/config
when: ansible_os_family == "RedHat"
when:
- ansible_os_family == "RedHat"
- "'Amazon' not in ansible_distribution"
register: slc
- name: Set selinux policy
@@ -12,6 +14,7 @@
state: "{{ preinstall_selinux_state }}"
when:
- ansible_os_family == "RedHat"
- "'Amazon' not in ansible_distribution"
- slc.stat.exists
changed_when: False
tags: