-
Notifications
You must be signed in to change notification settings - Fork 121
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
Adding role to configure hostname #249
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.
LGTM. One comment below regarding the use of become
.
roles/config-hostname/README.md
Outdated
|
||
``` | ||
--- | ||
ansible_become: True |
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. Only comment I have is around ansible_become
. I know in other roles we've gone down the path of just using become
on the necessary tasks. Did we want to do this here as well?
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.
Since all of these tasks requires elevated privileges, I think I could go either way. I can add a block
to enforce it though - it's fine.
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
* Adding role to configure hostname * Updated README * Updated to have a default value for 'hostname' * Updating based on Tyler's feedback
What does this PR do?
In preparation to "decouple" casl-ansible from the openshift-ansible-contrib repo, this role introduces the option to configure the hostname of a vm/instance/host.
This PR re-introduces the functionality of the hostnames role, with some clean-up and improvements.
See role's README for further details.
How should this be tested?
Update the inventory in the role's tests directory to mach your target host, then run the
test.yml
playbookIs there a relevant Issue open for this?
N/A
Other Relevant info, PRs, etc.
N/A
People to notify
cc: @redhat-cop/infra-ansible