Replace injected Ansible fact variables in bootstrap_os role#13264
Replace injected Ansible fact variables in bootstrap_os role#13264NikKumar811 wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: NikKumar811 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @NikKumar811. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
bacc51d to
327efc4
Compare
|
/ok-to-test |
| setup: | ||
| gather_subset: '!all' | ||
| filter: ansible_distribution_*version | ||
| filter: |
There was a problem hiding this comment.
Nit: rest of the repo uses ansible_*-prefixed patterns for setup's filter (e.g. roles/bootstrap_os/tasks/main.yml, playbooks/internal_facts.yml). Could we keep the prefix for consistency? Same for rhel.yml / opensuse.yml.
There was a problem hiding this comment.
Yes, right, I updated the remaining setup filters in centos.yml and rhel.yml back to the existing ansible_* pattern used elsewhere in the repo.
| setup: | ||
| gather_subset: '!all' | ||
| filter: ansible_distribution_*version | ||
| filter: |
There was a problem hiding this comment.
Thanks for tracing the history here. I removed the stale setup task from opensuse.yml since nothing in the file consumes those distribution version facts anymore.
13e34f9 to
c3205d6
Compare
|
@NikKumar811 could you rebase your PR? |
c3205d6 to
a7e2dd8
Compare
Rebased the PR |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR updates the bootstrap_os role to replace usage of injected Ansible fact variables (ansible_*) with ansible_facts[...]. This ensures compatibility with upcoming Ansible 2.24 changes, where fact injection will be disabled by default.
Which issue(s) this PR fixes:
Related to #13208
Special notes for your reviewer:
- adduser
- bastion-ssh-config
- bootstrap-os
Does this PR introduce a user-facing change?: