linter: add name to blocks

A later version of ansible-lint enforces names on blocks.  This is
generally a good rule; fix a few missing blocks here.

Change-Id: Ia87a0c21ec0ed1662e37cbc9e17a0df344b54e57
This commit is contained in:
Ian Wienand 2022-07-28 11:14:11 +10:00
parent 8cdf719bb3
commit 76037c434e
4 changed files with 8 additions and 4 deletions

View File

@ -10,7 +10,8 @@
# the remote host, which puts the fact into the hostvars of that host. # the remote host, which puts the fact into the hostvars of that host.
# Now that we're running on localhost, we need to reach in to the remote # Now that we're running on localhost, we need to reach in to the remote
# hosts vars to get the value. # hosts vars to get the value.
- block: - name: Upload to NPM
block:
- name: Upload to npm - name: Upload to npm
include_role: include_role:
name: upload-npm name: upload-npm

View File

@ -1,6 +1,7 @@
- hosts: localhost - hosts: localhost
tasks: tasks:
- block: - name: Upload to AFS
block:
- name: Create AFS token - name: Create AFS token
include_role: include_role:
name: create-afs-token name: create-afs-token

View File

@ -1,6 +1,7 @@
- hosts: localhost - hosts: localhost
tasks: tasks:
- block: - name: Upload to AFS
block:
- name: Create AFS token - name: Create AFS token
include_role: include_role:
name: create-afs-token name: create-afs-token

View File

@ -3,7 +3,8 @@
name: set-zuul-log-path-fact name: set-zuul-log-path-fact
# Always upload (true), never upload (false) or only on failure ('failure') # Always upload (true), never upload (false) or only on failure ('failure')
- when: zuul_site_upload_logs | default(true) | bool or - name: Upload logs
when: zuul_site_upload_logs | default(true) | bool or
(zuul_site_upload_logs == 'failure' and not zuul_success | bool) (zuul_site_upload_logs == 'failure' and not zuul_success | bool)
block: block: