Ansible lint: task names

Change-Id: Iecbc2fe5fa3391dca5a3cc7e575314b95942114b
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
This commit is contained in:
Mark Goddard 2020-01-13 10:37:35 +00:00
parent fe217e98c0
commit a6cb008c54
8 changed files with 27 additions and 12 deletions

View File

@ -25,7 +25,8 @@
set_fact:
osds_cache_bootstrap: "{{ (osd_cache_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).disks|from_json }}"
- pause:
- name: Prompting before wiping existing partitions
pause:
prompt: |
WARNING: It seems {{ item.device }} is marked to be wiped and partitioned for Ceph data and
a co-located journal, but appears to contain other existing partitions (>1).
@ -86,7 +87,8 @@
- "kolla_logs:/var/log/kolla/"
with_indexed_items: "{{ osds_bootstrap|default([]) }}"
- pause:
- name: Prompting before wiping existing partitions
pause:
prompt: |
WARNING: It seems {{ item.device }} is marked to be wiped and partitioned for Ceph data and
a co-located journal, but appears to contain other existing partitions (>1).

View File

@ -1,5 +1,6 @@
---
- set_fact:
- name: Start Glance upgrade
set_fact:
glance_upgrading: True
# Upgrade first node (NEW NODE in the Glance documentation)
@ -113,5 +114,6 @@
when:
- not use_preconfigured_databases | bool
- set_fact:
- name: Finish Glance upgrade
set_fact:
glance_upgrading: False

View File

@ -225,7 +225,8 @@
failed_when: false
when: container_facts['haproxy'] is defined
- set_fact:
- name: Setting haproxy stat fact
set_fact:
haproxy_stat: "{{ haproxy_stat_shell.stdout|default('') }}"
- name: Checking free port for Aodh API HAProxy

View File

@ -12,7 +12,8 @@
- item.value.enabled | bool
with_dict: "{{ horizon_services }}"
- set_fact:
- name: Set empty custom policy
set_fact:
custom_policy: []
- include_tasks: policy_item.yml

View File

@ -22,5 +22,6 @@
notify:
- Bootstrap MariaDB cluster
- set_fact:
- name: Store bootstrap host name into facts
set_fact:
bootstrap_host: "{{ inventory_hostname }}"

View File

@ -1,5 +1,6 @@
---
- fail:
- name: Cheching for mariadb cluster
fail:
msg: "MariaDB cluster was not found. Is your inventory correct?"
when: not has_cluster | bool
@ -95,7 +96,8 @@
when:
- mariadb_recover_inventory_name is not defined
- set_fact:
- name: Store bootstrap and master hostnames into facts
set_fact:
bootstrap_host: "{{ mariadb_recover_inventory_name }}"
master_host: "{{ mariadb_recover_inventory_name }}"
changed_when: true

View File

@ -25,7 +25,9 @@
register: qdrouterd_hostnames
with_items: "{{ groups['qdrouterd'] }}"
- fail: msg="Hostname has to resolve to IP address of api_interface"
- name: Check if hostname resolves to IP address of api_interface
fail:
msg: "Hostname has to resolve to IP address of api_interface"
with_items: "{{ qdrouterd_hostnames.results }}"
when:
- "item.stdout.find('api' | kolla_address(item['item'])) == -1"

View File

@ -59,7 +59,9 @@
register: rabbitmq_hostnames
with_items: "{{ groups['rabbitmq'] }}"
- fail: msg="Hostname has to resolve to IP address of api_interface"
- name: Check if rabbit hostname resolves to IP address of api_interface
fail:
msg: "Hostname has to resolve to IP address of api_interface"
with_items: "{{ rabbitmq_hostnames.results }}"
when:
- "item.stdout.find('api' | kolla_address(item['item'])) == -1"
@ -118,7 +120,9 @@
when:
- enable_outward_rabbitmq | bool
- fail: msg="Hostname has to resolve to IP address of api_interface"
- name: Check if rabbit hostname resolves to IP address of api_interface
fail:
msg: "Hostname has to resolve to IP address of api_interface"
with_items: "{{ outward_rabbitmq_hostnames.results }}"
when:
- enable_outward_rabbitmq | bool