group_vars/all: "become: false" triggers reserved-name warning, is a no-op on current ansible-core #13643
Labels
No labels
announcement
anubis
authentication
aws
backlog
blocked
bodhi
ci
cloud
communishift
copr
database
day-to-day
dc-move
deprecated
dev
discourse
dns
downloads
easyfix
epel
firmitas
forgejo_migration
Gain
High
Gain
Low
Gain
Medium
gitlab
greenwave
hardware
help wanted
high-trouble
koji
koschei
lists
low-trouble
medium-trouble
mirrorlists
monitoring
Needs investigation
odcs
OpenShift
ops
outage
packager_workflow_blocker
pagure
permissions
Priority
Needs Review
Priority
Next Meeting
Priority
🔥 URGENT 🔥
Priority
Waiting on Assignee
Priority
Waiting on External
Priority
Waiting on Reporter
rabbitmq
release-monitoring
releng
request-for-resources
s390x
security
SMTP
sprint-0
sprint-1
src.fp.o
staging
unfreeze
waiverdb
websites-general
wiki
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/tickets#13643
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of request
Hi folks,
inventory/group_vars/all:38 defines
become: falseas a group variable:Every ansible-core >= 2.14 run that points -i at the inventory directory
emits:
(e.g. roles/copr/backend/templates/resalloc/pools.yaml.expand.sh prints
it twice per run).
What I verified:
become=True from [privilege_escalation] in ansible.cfg (tested with a
minimal playbook; sudo is still invoked). It is a no-op there, and the
warning is not even displayed on 2.16.
variables since the templating rewrite), and the warning shows.
It presumably worked as a var->keyword fallback in ancient ansible,
which is why the comment above it says "by default set become to false
here".
Since the default for become is false anyway, the variable looks safe to
drop. If a global default is actually wanted,
ansible_become: falseis the sanctioned variable form and does not warn.
Caveat worth a double-check before removing: whether rbac-playbook or
/etc/ansible/ansible.cfg on batcave01 relies on it somehow (could not
check the wrapper from outside).
Affected Service or System
No response
Deadline
No response
Additional Context or Error Logs
No response
Yeah, this was added in the distant mists of time (~10years ago).
I have no problem removing it. I don't think anything depends on it.
That said, perhaps we should wait until after freeze just in case...
Can you do a quick pr so we don't forget to do it after freeze?
PR proposed ^^