1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- ---
- - name: Install genisoimage package
- package:
- name: genisoimage
- state: present
- tags: install
- - name: Install ansible-galaxy modules
- command: ansible-galaxy collection install {{ item }}
- changed_when: true
- with_items:
- - community.general
- - dellemc.openmanage
- - name: Install omsdk using pip
- pip:
- name: omsdk
- state: present
- tags: install
- - name: Check iso mount folder
- stat:
- path: "{{ iso_mount_path }}{{ isolinux_cfg_path }}"
- register: check_mount_iso
- tags: install
- - name: Incorrect iso mount
- fail:
- msg: "{{ iso_mount_check_fail_msg }}"
- when: not check_mount_iso.stat.exists
- register: iso_mount_fail
- tags: install
- - name: Copy management station ip to {{ management_station_ip_file }}
- lineinfile:
- path: "{{ role_path }}/../provision_idrac/files/{{ management_station_ip_file }}"
- line: "{{ mngmnt_network_ip }}"
- mode: "{{ file_permission }}"
- create: yes
|