|
@@ -14,46 +14,37 @@
|
|
|
---
|
|
|
|
|
|
- name: Include control_plane_common vars
|
|
|
- include_vars: ../../control_plane_common/vars/main.yml
|
|
|
- tags: install
|
|
|
+ include_vars: ../../control_plane_common/vars/main.yml
|
|
|
|
|
|
- name: Include provision_cobbler vars
|
|
|
include_vars: ../../provision_cobbler/vars/main.yml
|
|
|
- tags: install
|
|
|
|
|
|
- name: Install xorriso package - rocky
|
|
|
package:
|
|
|
name: "{{ iso_package }}"
|
|
|
state: present
|
|
|
- tags: install
|
|
|
- when:
|
|
|
- - ansible_distribution | lower == os_supported_centos or
|
|
|
- ansible_distribution | lower == os_supported_rocky
|
|
|
+ when: os_supported_leap not in mgmt_os
|
|
|
|
|
|
- name: Install xorriso package - leap
|
|
|
zypper:
|
|
|
name: "{{ iso_package }}"
|
|
|
state: present
|
|
|
- tags: install
|
|
|
- when: os_supported_leap in ansible_distribution | lower
|
|
|
+ when: os_supported_leap in mgmt_os
|
|
|
|
|
|
- name: Install ansible-galaxy modules
|
|
|
command: ansible-galaxy collection install {{ item }}
|
|
|
changed_when: true
|
|
|
- tags: install
|
|
|
with_items: "{{ idrac_collections }}"
|
|
|
|
|
|
- name: Install omsdk using pip
|
|
|
pip:
|
|
|
name: omsdk
|
|
|
state: present
|
|
|
- tags: install
|
|
|
|
|
|
- name: Check iso mount folder
|
|
|
stat:
|
|
|
path: "{{ iso_mount_path }}{{ grub_cfg_path }}"
|
|
|
register: check_mount_iso
|
|
|
- tags: install
|
|
|
|
|
|
- name: Include provision_cobbler vars
|
|
|
include_tasks: ../../provision_cobbler/tasks/mount_iso.yml
|
|
@@ -64,7 +55,6 @@
|
|
|
path: "{{ iso_mount_path }}{{ grub_cfg_path }}"
|
|
|
register: recheck_mount_iso
|
|
|
when: not check_mount_iso.stat.exists
|
|
|
- tags: install
|
|
|
|
|
|
- name: Incorrect iso mount
|
|
|
fail:
|
|
@@ -72,8 +62,7 @@
|
|
|
when:
|
|
|
- not check_mount_iso.stat.exists
|
|
|
- not recheck_mount_iso.stat.exists
|
|
|
- register: iso_mount_fail
|
|
|
- tags: install
|
|
|
+ register: iso_mount_fail
|
|
|
|
|
|
- name: Copy management station ip to {{ management_station_ip_file }}
|
|
|
lineinfile:
|
|
@@ -81,4 +70,3 @@
|
|
|
line: "{{ mngmnt_network_ip }}"
|
|
|
mode: "{{ file_permission }}"
|
|
|
create: yes
|
|
|
- tags: install
|