|
@@ -13,9 +13,17 @@
|
|
# limitations under the License.
|
|
# limitations under the License.
|
|
---
|
|
---
|
|
|
|
|
|
|
|
+- name: Include control_plane_common vars
|
|
|
|
+ include_vars: ../../control_plane_common/vars/main.yml
|
|
|
|
+ tags: install
|
|
|
|
+
|
|
|
|
+- name: Include provision_cobbler vars
|
|
|
|
+ include_vars: ../../provision_cobbler/vars/main.yml
|
|
|
|
+ tags: install
|
|
|
|
+
|
|
- name: Install xorriso package - rocky
|
|
- name: Install xorriso package - rocky
|
|
package:
|
|
package:
|
|
- name: xorriso
|
|
|
|
|
|
+ name: "{{ iso_package }}"
|
|
state: present
|
|
state: present
|
|
tags: install
|
|
tags: install
|
|
when:
|
|
when:
|
|
@@ -24,7 +32,7 @@
|
|
|
|
|
|
- name: Install xorriso package - leap
|
|
- name: Install xorriso package - leap
|
|
zypper:
|
|
zypper:
|
|
- name: xorriso
|
|
|
|
|
|
+ name: "{{ iso_package }}"
|
|
state: present
|
|
state: present
|
|
tags: install
|
|
tags: install
|
|
when: os_supported_leap in ansible_distribution | lower
|
|
when: os_supported_leap in ansible_distribution | lower
|
|
@@ -33,9 +41,7 @@
|
|
command: ansible-galaxy collection install {{ item }}
|
|
command: ansible-galaxy collection install {{ item }}
|
|
changed_when: true
|
|
changed_when: true
|
|
tags: install
|
|
tags: install
|
|
- with_items:
|
|
|
|
- - community.general
|
|
|
|
- - dellemc.openmanage
|
|
|
|
|
|
+ with_items: "{{ idrac_collections }}"
|
|
|
|
|
|
- name: Install omsdk using pip
|
|
- name: Install omsdk using pip
|
|
pip:
|
|
pip:
|
|
@@ -49,10 +55,23 @@
|
|
register: check_mount_iso
|
|
register: check_mount_iso
|
|
tags: install
|
|
tags: install
|
|
|
|
|
|
|
|
+- name: Include provision_cobbler vars
|
|
|
|
+ include_tasks: ../../provision_cobbler/tasks/mount_iso.yml
|
|
|
|
+ when: not check_mount_iso.stat.exists
|
|
|
|
+
|
|
|
|
+- name: Recheck iso mount folder
|
|
|
|
+ stat:
|
|
|
|
+ path: "{{ iso_mount_path }}{{ grub_cfg_path }}"
|
|
|
|
+ register: recheck_mount_iso
|
|
|
|
+ when: not check_mount_iso.stat.exists
|
|
|
|
+ tags: install
|
|
|
|
+
|
|
- name: Incorrect iso mount
|
|
- name: Incorrect iso mount
|
|
fail:
|
|
fail:
|
|
msg: "{{ iso_mount_check_fail_msg }}"
|
|
msg: "{{ iso_mount_check_fail_msg }}"
|
|
- when: not check_mount_iso.stat.exists
|
|
|
|
|
|
+ when:
|
|
|
|
+ - not check_mount_iso.stat.exists
|
|
|
|
+ - not recheck_mount_iso.stat.exists
|
|
register: iso_mount_fail
|
|
register: iso_mount_fail
|
|
tags: install
|
|
tags: install
|
|
|
|
|