Ansible lint: task names
Change-Id: Iecbc2fe5fa3391dca5a3cc7e575314b95942114b Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
This commit is contained in:
parent
fe217e98c0
commit
a6cb008c54
@ -25,7 +25,8 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
osds_cache_bootstrap: "{{ (osd_cache_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).disks|from_json }}"
|
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: |
|
prompt: |
|
||||||
WARNING: It seems {{ item.device }} is marked to be wiped and partitioned for Ceph data and
|
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).
|
a co-located journal, but appears to contain other existing partitions (>1).
|
||||||
@ -86,7 +87,8 @@
|
|||||||
- "kolla_logs:/var/log/kolla/"
|
- "kolla_logs:/var/log/kolla/"
|
||||||
with_indexed_items: "{{ osds_bootstrap|default([]) }}"
|
with_indexed_items: "{{ osds_bootstrap|default([]) }}"
|
||||||
|
|
||||||
- pause:
|
- name: Prompting before wiping existing partitions
|
||||||
|
pause:
|
||||||
prompt: |
|
prompt: |
|
||||||
WARNING: It seems {{ item.device }} is marked to be wiped and partitioned for Ceph data and
|
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).
|
a co-located journal, but appears to contain other existing partitions (>1).
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- set_fact:
|
- name: Start Glance upgrade
|
||||||
|
set_fact:
|
||||||
glance_upgrading: True
|
glance_upgrading: True
|
||||||
|
|
||||||
# Upgrade first node (NEW NODE in the Glance documentation)
|
# Upgrade first node (NEW NODE in the Glance documentation)
|
||||||
@ -113,5 +114,6 @@
|
|||||||
when:
|
when:
|
||||||
- not use_preconfigured_databases | bool
|
- not use_preconfigured_databases | bool
|
||||||
|
|
||||||
- set_fact:
|
- name: Finish Glance upgrade
|
||||||
|
set_fact:
|
||||||
glance_upgrading: False
|
glance_upgrading: False
|
||||||
|
@ -225,7 +225,8 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
when: container_facts['haproxy'] is defined
|
when: container_facts['haproxy'] is defined
|
||||||
|
|
||||||
- set_fact:
|
- name: Setting haproxy stat fact
|
||||||
|
set_fact:
|
||||||
haproxy_stat: "{{ haproxy_stat_shell.stdout|default('') }}"
|
haproxy_stat: "{{ haproxy_stat_shell.stdout|default('') }}"
|
||||||
|
|
||||||
- name: Checking free port for Aodh API HAProxy
|
- name: Checking free port for Aodh API HAProxy
|
||||||
|
@ -12,7 +12,8 @@
|
|||||||
- item.value.enabled | bool
|
- item.value.enabled | bool
|
||||||
with_dict: "{{ horizon_services }}"
|
with_dict: "{{ horizon_services }}"
|
||||||
|
|
||||||
- set_fact:
|
- name: Set empty custom policy
|
||||||
|
set_fact:
|
||||||
custom_policy: []
|
custom_policy: []
|
||||||
|
|
||||||
- include_tasks: policy_item.yml
|
- include_tasks: policy_item.yml
|
||||||
|
@ -22,5 +22,6 @@
|
|||||||
notify:
|
notify:
|
||||||
- Bootstrap MariaDB cluster
|
- Bootstrap MariaDB cluster
|
||||||
|
|
||||||
- set_fact:
|
- name: Store bootstrap host name into facts
|
||||||
|
set_fact:
|
||||||
bootstrap_host: "{{ inventory_hostname }}"
|
bootstrap_host: "{{ inventory_hostname }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- fail:
|
- name: Cheching for mariadb cluster
|
||||||
|
fail:
|
||||||
msg: "MariaDB cluster was not found. Is your inventory correct?"
|
msg: "MariaDB cluster was not found. Is your inventory correct?"
|
||||||
when: not has_cluster | bool
|
when: not has_cluster | bool
|
||||||
|
|
||||||
@ -95,7 +96,8 @@
|
|||||||
when:
|
when:
|
||||||
- mariadb_recover_inventory_name is not defined
|
- 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 }}"
|
bootstrap_host: "{{ mariadb_recover_inventory_name }}"
|
||||||
master_host: "{{ mariadb_recover_inventory_name }}"
|
master_host: "{{ mariadb_recover_inventory_name }}"
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
@ -25,7 +25,9 @@
|
|||||||
register: qdrouterd_hostnames
|
register: qdrouterd_hostnames
|
||||||
with_items: "{{ groups['qdrouterd'] }}"
|
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 }}"
|
with_items: "{{ qdrouterd_hostnames.results }}"
|
||||||
when:
|
when:
|
||||||
- "item.stdout.find('api' | kolla_address(item['item'])) == -1"
|
- "item.stdout.find('api' | kolla_address(item['item'])) == -1"
|
||||||
|
@ -59,7 +59,9 @@
|
|||||||
register: rabbitmq_hostnames
|
register: rabbitmq_hostnames
|
||||||
with_items: "{{ groups['rabbitmq'] }}"
|
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 }}"
|
with_items: "{{ rabbitmq_hostnames.results }}"
|
||||||
when:
|
when:
|
||||||
- "item.stdout.find('api' | kolla_address(item['item'])) == -1"
|
- "item.stdout.find('api' | kolla_address(item['item'])) == -1"
|
||||||
@ -118,7 +120,9 @@
|
|||||||
when:
|
when:
|
||||||
- enable_outward_rabbitmq | bool
|
- 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 }}"
|
with_items: "{{ outward_rabbitmq_hostnames.results }}"
|
||||||
when:
|
when:
|
||||||
- enable_outward_rabbitmq | bool
|
- enable_outward_rabbitmq | bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user