Fix ansible-lint errors
Add jinja[spacing] to warn list and fix name[play] issues. Change-Id: Ie9d1d92e8c2fc2e69e0d1fd14ec859ebc67f6a38
This commit is contained in:
parent
0cd55eae06
commit
6af32ae579
@ -6,3 +6,4 @@ warn_list:
|
|||||||
- command-instead-of-shell # Use shell only when shell functionality is required
|
- command-instead-of-shell # Use shell only when shell functionality is required
|
||||||
- experimental # all rules tagged as experimental
|
- experimental # all rules tagged as experimental
|
||||||
- fqcn-builtins # Use FQCN for builtin actions.
|
- fqcn-builtins # Use FQCN for builtin actions.
|
||||||
|
- jinja[spacing] # Jinja2 spacing could be improved
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Cleanup Tenks state
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- cleanup-state
|
- cleanup-state
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- name: Deploy Tenks
|
||||||
|
hosts: all
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Register Nova flavors
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- flavor-registration
|
- flavor-registration
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Load current Tenks state
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- host-setup
|
- host-setup
|
||||||
tasks:
|
tasks:
|
||||||
@ -8,7 +9,8 @@
|
|||||||
file: "{{ state_file_path }}"
|
file: "{{ state_file_path }}"
|
||||||
name: tenks_state
|
name: tenks_state
|
||||||
|
|
||||||
- hosts: hypervisors
|
- name: Run hypervisor setup
|
||||||
|
hosts: hypervisors
|
||||||
tags:
|
tags:
|
||||||
- host-setup
|
- host-setup
|
||||||
vars:
|
vars:
|
||||||
@ -17,7 +19,8 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- include_tasks: hypervisor_setup.yml
|
- include_tasks: hypervisor_setup.yml
|
||||||
|
|
||||||
- hosts: libvirt
|
- name: Set up libvirt and vbmc
|
||||||
|
hosts: libvirt
|
||||||
tags:
|
tags:
|
||||||
- host-setup
|
- host-setup
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Load current Tenks state
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- node-bmc
|
- node-bmc
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Enroll nodes in Ironic
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- node-enrolment
|
- node-enrolment
|
||||||
- node-enrollment
|
- node-enrollment
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Load current Tenks state
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- node-instantiation
|
- node-instantiation
|
||||||
tasks:
|
tasks:
|
||||||
@ -8,7 +9,8 @@
|
|||||||
file: "{{ state_file_path }}"
|
file: "{{ state_file_path }}"
|
||||||
name: tenks_state
|
name: tenks_state
|
||||||
|
|
||||||
- hosts: libvirt
|
- name: Instantiate libvirt VMs
|
||||||
|
hosts: libvirt
|
||||||
tags:
|
tags:
|
||||||
- node-instantiation
|
- node-instantiation
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Load current Tenks state
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- node-networking
|
- node-networking
|
||||||
tasks:
|
tasks:
|
||||||
@ -8,7 +9,8 @@
|
|||||||
file: "{{ state_file_path }}"
|
file: "{{ state_file_path }}"
|
||||||
name: tenks_state
|
name: tenks_state
|
||||||
|
|
||||||
- hosts: hypervisors
|
- name: Configure hypervisor networking
|
||||||
|
hosts: hypervisors
|
||||||
tags:
|
tags:
|
||||||
- node-networking
|
- node-networking
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- name: Wait for resources
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- resource-wait
|
- resource-wait
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
---
|
---
|
||||||
# Ensure we have facts about all hypervisors before scheduling begins.
|
- name: Ensure we have facts about all hypervisors before scheduling begins.
|
||||||
- hosts: hypervisors
|
hosts: hypervisors
|
||||||
tags:
|
tags:
|
||||||
- schedule
|
- schedule
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
|
||||||
- hosts: localhost
|
- name: Update Tenks state
|
||||||
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- schedule
|
- schedule
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- name: Teardown Tenks resources
|
||||||
|
hosts: all
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
tasks:
|
tasks:
|
||||||
|
Loading…
Reference in New Issue
Block a user