-
Notifications
You must be signed in to change notification settings - Fork 5
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 deploy-bm-hypervisor.yml to playbooks/infra #28
Added deploy-bm-hypervisor.yml to playbooks/infra #28
Conversation
d041087
to
e012ac6
Compare
/hold |
Could you please drop the commit store external dependencies under collection directory? |
5745d04
to
ad8cb02
Compare
hosts: bastion | ||
gather_facts: true | ||
vars: | ||
iso_mount_path: "{{ dest_iso_dir }}/mount" |
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.
Where is dest_iso_dir
declared?
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's declared in inventory file of bastion and stored in our vault.
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.
WDYT about adding an example inventory file so new users will know what it should look like?
|
||
- name: Activate OS | ||
ansible.builtin.command: | ||
"{{ activate_system_cmd }}" |
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.
Where is this declared?
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.
In host variable file stored in our vault.
state: present | ||
autoconnect: true | ||
|
||
- name: Reload NetworkManager connections |
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.
Should we use nmcli module here?
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.
Well it restarts external interface which is used by Ansible. I've tried multiple ways to restart it via nmcli module but Ansilbe lost connection and execution failed. Looks like the only way to restart external connection is to transfer script to the host and execute it. That's the root cause of using shell module.
58ad59c
to
e661c4d
Compare
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.
/lgtm
e661c4d
to
d89979d
Compare
/lgtm |
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.
Looks good. Maybe we can add a small readme to playbooks/infra
to explain what is this playbook for?
changed_when: true | ||
|
||
- name: Gather facts | ||
ansible.builtin.gather_facts: |
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 please add true
here, just for clarity and readability?
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 causes linting error.
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.
Correct. Adding gather_facts
as task like here is true implicitly. The expected value is a dict, not a boolean.
d89979d
to
60050e7
Compare
Added inline Readme to the top of playbook as comment. Please review. |
- Implemented Kickstart automation for hypervisor installation. - Configured iDRAC boot for baremetal provisioning. - Added necessary configurations and templates for network and disk settings. - Integrated automation for seamless OS installation with zero intervention. - Updated .gitignore file - Updated requirements.yml - Added ansible.cfg file
60050e7
to
6c8def1
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: natifridman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/unhold |
No description provided.