|
@@ -29,43 +29,22 @@
|
|
fail:
|
|
fail:
|
|
msg: "{{ control_plane_installation_required }}"
|
|
msg: "{{ control_plane_installation_required }}"
|
|
|
|
|
|
-- name: Saving management station os
|
|
|
|
- set_fact:
|
|
|
|
- mgmt_os: "{{ ansible_facts['distribution'] | lower }}"
|
|
|
|
-
|
|
|
|
-- block:
|
|
|
|
- - name: Fetch SElinux mode
|
|
|
|
- command: sestatus
|
|
|
|
- register: sestatus_current
|
|
|
|
- changed_when: false
|
|
|
|
-
|
|
|
|
- - name: Check SELinux status
|
|
|
|
- debug:
|
|
|
|
- msg: "{{ selinux_warning }}"
|
|
|
|
- when: '"SELinux status: disabled" in sestatus_current.stdout_lines'
|
|
|
|
-
|
|
|
|
- - name: Set SElinux to permissive mode
|
|
|
|
- command: setenforce 0
|
|
|
|
- when: '"SELinux status: enabled" in sestatus_current.stdout_lines'
|
|
|
|
-
|
|
|
|
- when: os_supported_leap not in mgmt_os
|
|
|
|
-
|
|
|
|
-- name: Check that the base_vars.yml exists
|
|
|
|
|
|
+- name: Check that the telemetry_base_vars.yml exists
|
|
stat:
|
|
stat:
|
|
path: "{{ base_vars_file }}"
|
|
path: "{{ base_vars_file }}"
|
|
register: stat_result
|
|
register: stat_result
|
|
|
|
|
|
-- name: Fail if base_vars.yml file doesn't exist
|
|
|
|
|
|
+- name: Fail if telemetry_base_vars.yml file doesn't exist
|
|
fail:
|
|
fail:
|
|
msg: "{{ fail_msg_base_vars }}"
|
|
msg: "{{ fail_msg_base_vars }}"
|
|
when: not stat_result.stat.exists
|
|
when: not stat_result.stat.exists
|
|
|
|
|
|
-- name: Check that telemetry/login_vars.yml exists
|
|
|
|
|
|
+- name: Check that telemetry_login_vars.yml exists
|
|
stat:
|
|
stat:
|
|
path: "{{ login_vars_file }}"
|
|
path: "{{ login_vars_file }}"
|
|
register: stat_result
|
|
register: stat_result
|
|
|
|
|
|
-- name: Fail if telemetry/login_vars.yml file doesn't exist
|
|
|
|
|
|
+- name: Fail if telemetry_login_vars.yml file doesn't exist
|
|
fail:
|
|
fail:
|
|
msg: "{{ fail_msg_login_vars }}"
|
|
msg: "{{ fail_msg_login_vars }}"
|
|
when: not stat_result.stat.exists
|
|
when: not stat_result.stat.exists
|