Use "name:" instead of "role:" for *_role modules

Both include_role and import_role expect role's name to be given
via "name" param instead of "role".
This worked but caused errors with ansible-lint.
See: https://review.opendev.org/694779

Change-Id: I388d4ae27111e430d38df1abcb6c6127d90a06e0
This commit is contained in:
Radosław Piliszek 2020-03-02 10:01:17 +01:00
parent 9995f2d89d
commit 266fd61ad7
124 changed files with 174 additions and 174 deletions

View File

@ -194,7 +194,7 @@
serial: '{{ kolla_serial|default("0") }}'
tasks:
- import_role:
role: nova-cell
name: nova-cell
tasks_from: reload
when:
- enable_nova | bool
@ -236,7 +236,7 @@
serial: '{{ kolla_serial|default("0") }}'
tasks:
- import_role:
role: nova
name: nova
tasks_from: online_data_migrations
when:
- enable_nova | bool
@ -259,7 +259,7 @@
serial: '{{ kolla_serial|default("0") }}'
tasks:
- import_role:
role: nova-cell
name: nova-cell
tasks_from: online_data_migrations
when:
- enable_nova | bool

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ aodh_services }}"
tags: always

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ barbican_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ barbican_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ blazar_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ blazar_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ ceilometer_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ chrony_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ cinder_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ cinder_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ cloudkitty_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ cloudkitty_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ collectd_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ common_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ congress_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ congress_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ cyborg_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ cyborg_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ designate_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ designate_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ elasticsearch_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ elasticsearch_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ etcd_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ freezer_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ freezer_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ glance_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ glance_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ gnocchi_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ gnocchi_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ grafana_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ grafana_services }}"
service_name: "{{ project_name }}"

View File

@ -85,7 +85,7 @@
- name: Load and persist keepalived module
import_role:
role: module-load
name: module-load
vars:
modules:
- {'name': ip_vs }

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ haproxy_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ heat_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ heat_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ horizon_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ horizon_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ influxdb_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ influxdb_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: Load and persist iscsi_tcp module
import_role:
role: module-load
name: module-load
vars:
modules:
- {'name': iscsi_tcp}

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ ironic_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ ironic_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: Load and persist configfs module
import_role:
role: module-load
name: module-load
vars:
modules:
- name: configfs

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ iscsi_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ kafka_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ karbor_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ karbor_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ keystone_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ keystone_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ kibana_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ kibana_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ kuryr_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ magnum_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ magnum_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ manila_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ manila_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ mariadb_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ mariadb_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ masakari_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ masakari_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ memcached_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ memcached_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ mistral_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ mistral_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ monasca_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ monasca_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ mongodb_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ mongodb_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: Load and persist dm-multipath module
import_role:
role: module-load
name: module-load
vars:
modules:
- {'name': dm-multipath}

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ multipathd_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ murano_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ murano_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: Load and persist ip6_tables module
include_role:
role: module-load
name: module-load
vars:
modules:
- {'name': ip6_tables}

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ neutron_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ neutron_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
# Configure HAProxy for one cell for a particular console proxy type.
- import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ cell_proxy_project_services | namespace_haproxy_for_cell(cell_name) }}"
# Default is necessary because this play may not be targetting the hosts in

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ nova_cell_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ nova_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ nova_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ octavia_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ octavia_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: Load and persist openvswitch module
import_role:
role: module-load
name: module-load
vars:
modules:
- {'name': openvswitch}

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ openvswitch_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ ovsdpdk_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ panko_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ panko_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ placement_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ placement_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ prometheus_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ prometheus_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ qdrouterd_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ qinling_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ qinling_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ rabbitmq_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ rabbitmq_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ rally_services }}"
service_name: "{{ project_name }}"

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ redis_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ sahara_services }}"
tags: always

View File

@ -1,6 +1,6 @@
---
- import_role:
role: service-stop
name: service-stop
vars:
project_services: "{{ sahara_services }}"
service_name: "{{ project_name }}"

View File

@ -1,7 +1,7 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
role: haproxy-config
name: haproxy-config
vars:
project_services: "{{ searchlight_services }}"
tags: always

Some files were not shown because too many files have changed in this diff Show More