Rename roles/post-install to roles/postinstall #238
Labels
No labels
Ansible
basic support
Ansible
NFS server
Ansible/pxe
Ansible/Wildfly
distribution
bug
distribution
release test
distribution
rfe
documentation
improvement
documentation
new
documentation
review request
documentation
update required
meeting
need info
project
backup&restore
project
home server spin-off
project
LocalKDC
project
strengthening updates
status
in progress
status
on hold
status
pending activity
Working Group Organization
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
server/tickets#238
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?
The name
post-installworks most of the time, but according toansible-lintit's an invalid role name, which suggests it could get flagged by other linters, including ones in Ansible Galaxy, for example.It would be prudent to switch role/collection names to use
snake_case, since Ansible borrows so many Python idioms in its conventions anyway. Sopost-installwould be renamed topostinstall.EDIT: changed
post_installtopostinstall.Renameto Renameroles/post-installtoroles/post_installlroles/post-installtoroles/post_installI actually prefer "postinstall" over "post_install"
@eseyman wrote in #238 (comment):
Oh, good point! And that's consistent with the RH style guide anyway. I'm going to update the issue.
Renameto Renameroles/post-installtoroles/post_installroles/post-installtoroles/postinstallThe original point still stands that we should use snake_case for role names, but it doesn't matter in this case.
For the record, the default configuration of ansible-lint enforces: "Role names must contain only lowercase alphanumeric characters and the underscore _ character. Role names must also start with an alphabetic character."
Oh, excellent. So I guess some kind of change is required to make the tool happy anyway. 😄
Closing as already complete.