This is preparation for a later version of ansbile-lint, which finds
missing names on blocks. This seems a reasonable rule, and the
Ansible manual says [1]
Names for blocks have been available since Ansible 2.3. We recommend
using names in all tasks, within blocks or elsewhere, for better
visibility into the tasks being executed when you run the playbook.
This simply adds a name tag for blocks that are missing it. This
should have no operational change, but allows us to update the linter
in a follow-on change.
[1] https://docs.ansible.com/ansible/latest/user_guide/playbooks_blocks.html
Change-Id: I92ed4616775650aced352bc9088a07e919f1a25f
The version-from-git role doesn't properly handle tag-less repos. Update
it to handle that case too.
Change-Id: I358037fd34f5dc202a6761b9e6f81bbe7870f3f2
When there is no commit since the tag, we don't want the scm_sha part of
project_ver, but just the scm_tag. This patch fix the logic.
Change-Id: I89e59049fe65ebc49fc03f205affa68b8fa5beb9
Add tags to tell ansible-lint to ignore the problems found since
those are false positives.
Needed-By: I16186c929e7d0e6e34b35271559e555255a52b00
Change-Id: I59e5d41a9539671ee5aab9b9036379eb9101d021