Fix ansible-lint errors

Add jinja[spacing] to warn list and fix name[play] issues.

Change-Id: Ie9d1d92e8c2fc2e69e0d1fd14ec859ebc67f6a38
This commit is contained in:
Michal Nasiadka 2022-09-06 07:56:29 +02:00
parent 0cd55eae06
commit 6af32ae579
12 changed files with 33 additions and 17 deletions

View File

@ -6,3 +6,4 @@ warn_list:
- command-instead-of-shell # Use shell only when shell functionality is required
- experimental # all rules tagged as experimental
- fqcn-builtins # Use FQCN for builtin actions.
- jinja[spacing] # Jinja2 spacing could be improved

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Cleanup Tenks state
hosts: localhost
tags:
- cleanup-state
tasks:

View File

@ -1,5 +1,6 @@
---
- hosts: all
- name: Deploy Tenks
hosts: all
tags:
- always
tasks:

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Register Nova flavors
hosts: localhost
tags:
- flavor-registration
tasks:

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Load current Tenks state
hosts: localhost
tags:
- host-setup
tasks:
@ -8,7 +9,8 @@
file: "{{ state_file_path }}"
name: tenks_state
- hosts: hypervisors
- name: Run hypervisor setup
hosts: hypervisors
tags:
- host-setup
vars:
@ -17,7 +19,8 @@
tasks:
- include_tasks: hypervisor_setup.yml
- hosts: libvirt
- name: Set up libvirt and vbmc
hosts: libvirt
tags:
- host-setup
tasks:

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Load current Tenks state
hosts: localhost
tags:
- node-bmc
tasks:

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Enroll nodes in Ironic
hosts: localhost
tags:
- node-enrolment
- node-enrollment

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Load current Tenks state
hosts: localhost
tags:
- node-instantiation
tasks:
@ -8,7 +9,8 @@
file: "{{ state_file_path }}"
name: tenks_state
- hosts: libvirt
- name: Instantiate libvirt VMs
hosts: libvirt
tags:
- node-instantiation
vars:

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Load current Tenks state
hosts: localhost
tags:
- node-networking
tasks:
@ -8,7 +9,8 @@
file: "{{ state_file_path }}"
name: tenks_state
- hosts: hypervisors
- name: Configure hypervisor networking
hosts: hypervisors
tags:
- node-networking
vars:

View File

@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Wait for resources
hosts: localhost
tags:
- resource-wait
tasks:

View File

@ -1,11 +1,12 @@
---
# Ensure we have facts about all hypervisors before scheduling begins.
- hosts: hypervisors
- name: Ensure we have facts about all hypervisors before scheduling begins.
hosts: hypervisors
tags:
- schedule
gather_facts: true
- hosts: localhost
- name: Update Tenks state
hosts: localhost
tags:
- schedule
tasks:

View File

@ -1,5 +1,6 @@
---
- hosts: all
- name: Teardown Tenks resources
hosts: all
tags:
- always
tasks: