Fix Opensuse not working with ansible_distribution (#7551)

This commit is contained in:
Florian Ruynat 2021-04-26 17:37:02 +02:00 committed by GitHub
parent 324c95d37f
commit c16efc9ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -32,13 +32,13 @@ spec:
imagePullPolicy: {{ k8s_image_pull_policy }}
env:
- name: WATCH_NAMESPACE
{%- if ingress_ambassador_multi_namespaces %}
{% if ingress_ambassador_multi_namespaces %}
value: ''
{%- else %}
{% else %}
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{%- end %}
{% endif %}
- name: POD_NAME
valueFrom:
fieldRef:

View file

@ -24,7 +24,7 @@
- name: Stop if unknown OS
assert:
that: ansible_distribution in ['RedHat', 'CentOS', 'Fedora', 'Ubuntu', 'Debian', 'Flatcar Container Linux by Kinvolk', 'Suse', 'ClearLinux', 'OracleLinux', 'AlmaLinux']
that: ansible_distribution in ['RedHat', 'CentOS', 'Fedora', 'Ubuntu', 'Debian', 'Flatcar Container Linux by Kinvolk', 'Suse', 'openSUSE Leap', 'ClearLinux', 'OracleLinux', 'AlmaLinux']
msg: "{{ ansible_distribution }} is not a known OS"
when: not ignore_assert_errors