-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ansible scripts to install RHEL Auto Install OS on Dell servers #90
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline
d630cd8
to
80e490c
Compare
Fixed the scripts as per the all the suggestions |
80e490c
to
4d6a787
Compare
ansible/install_os.yml
Outdated
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
- name: Run OS installation on servers | ||
hosts: hostbmcs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just put here dh1bm,dh4bmc ?
and avoid all switch cases later in the code ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modified the hosts as well to dh1bmc and dh4bmc
ansible/install_os.yml
Outdated
tasks: | ||
- name: Find the URL for the DellOSDeploymentService | ||
when: inventory_hostname in ['dh1bmc', 'dh4bmc'] | ||
ansible.builtin.uri: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to find url every time ? Isn’t it fixed for dell ? Show me what this returns…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is fixed, I have used the guide from Dell while building this: https://infohub.delltechnologies.com/es-es/l/dell-poweredge-getting-started-with-redfish-ansible-modules/operating-system-deployment-56/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to simplify, if this is fixed URL, just hard code it, no need to discover it, too complex
4d6a787
to
cad3ddd
Compare
ansible/install_os.yml
Outdated
protocol: http | ||
hostname: "{{ hostvars['mgmt']['ansible_host'] }}" | ||
iso_path: "" | ||
iso_name: "{{ ubuntu_iso }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iso_name: "{{ ubuntu_iso }}" | |
iso_name: "ubuntu-22.04-autoinstall.iso" |
ansible/install_os.yml
Outdated
idrac_osd_command_allowable_values: | ||
- "BootToNetworkISO" | ||
- "GetAttachStatus" | ||
- "DetachISOImage" | ||
idrac_osd_command_default: "GetAttachStatus" | ||
get_attach_status_code: | ||
drivers_attach_status: | ||
"0": "NotAttached" | ||
"1": "Attached" | ||
iso_attach_status: | ||
"0": "NotAttached" | ||
"1": "Attached" | ||
idrac_https_port: 443 | ||
expose_duration: 1080 | ||
command: "{{ idrac_osd_command_default }}" | ||
validate_certs: false | ||
force_basic_auth: true | ||
idrac_user: "root" | ||
ubuntu_iso: ubuntu-22.04-autoinstall.iso |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all those vars, where do you use them?
Signed-off-by: sakethanne <[email protected]>
cad3ddd
to
0c58694
Compare
Added ansible scripts to install Ubuntu Auto Install OS on Dell servers