Auto-fix usage of modules via FQCN
Since ansible-core 2.10 it is recommended to use modules via FQCN In order to align with recommendation, we perform migration by applying suggestions made by `ansible-lint --fix=fqcn` Change-Id: I37abe88590e9a74f0ef19a5c4c850befb70a7a2c
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Restart blazar services
|
- name: Restart blazar services
|
||||||
systemd:
|
ansible.builtin.systemd:
|
||||||
name: "{{ item.service_name }}"
|
name: "{{ item.service_name }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
with_items: "{{ filtered_blazar_services }}"
|
with_items: "{{ filtered_blazar_services }}"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Create blazar database schema
|
- name: Create blazar database schema
|
||||||
command: >
|
ansible.builtin.command: >
|
||||||
{{ blazar_bin }}/blazar-db-manage
|
{{ blazar_bin }}/blazar-db-manage
|
||||||
--config-file {{ blazar_etc_dir }}/blazar.conf upgrade head
|
--config-file {{ blazar_etc_dir }}/blazar.conf upgrade head
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
@@ -15,18 +15,18 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Create blazar group
|
- name: Create blazar group
|
||||||
group:
|
ansible.builtin.group:
|
||||||
name: "{{ blazar_system_group_name }}"
|
name: "{{ blazar_system_group_name }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create blazar user
|
- name: Create blazar user
|
||||||
user:
|
ansible.builtin.user:
|
||||||
name: "{{ blazar_system_user_name }}"
|
name: "{{ blazar_system_user_name }}"
|
||||||
group: "{{ blazar_system_group_name }}"
|
group: "{{ blazar_system_group_name }}"
|
||||||
createhome: false
|
createhome: false
|
||||||
|
|
||||||
- name: Create blazar directories
|
- name: Create blazar directories
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ item.owner | default(blazar_system_user_name) }}"
|
owner: "{{ item.owner | default(blazar_system_user_name) }}"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Gather variables for each operating system
|
- name: Gather variables for each operating system
|
||||||
include_vars: "{{ lookup('first_found', params) }}"
|
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
|
||||||
vars:
|
vars:
|
||||||
params:
|
params:
|
||||||
files:
|
files:
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Including osa.db_setup role
|
- name: Including osa.db_setup role
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.db_setup
|
name: openstack.osa.db_setup
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Including osa.mq_setup role
|
- name: Including osa.mq_setup role
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.mq_setup
|
name: openstack.osa.mq_setup
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
@@ -78,12 +78,12 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Importing blazar_pre_install tasks
|
- name: Importing blazar_pre_install tasks
|
||||||
import_tasks: blazar_pre_install.yml
|
ansible.builtin.import_tasks: blazar_pre_install.yml
|
||||||
tags:
|
tags:
|
||||||
- blazar-install
|
- blazar-install
|
||||||
|
|
||||||
- name: Create and install SSL certificates
|
- name: Create and install SSL certificates
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: pki
|
name: pki
|
||||||
tasks_from: main_certs.yml
|
tasks_from: main_certs.yml
|
||||||
apply:
|
apply:
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Install the python venv
|
- name: Install the python venv
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: "python_venv_build"
|
name: "python_venv_build"
|
||||||
vars:
|
vars:
|
||||||
venv_build_constraints: "{{ blazar_git_constraints }}"
|
venv_build_constraints: "{{ blazar_git_constraints }}"
|
||||||
@@ -120,20 +120,20 @@
|
|||||||
- blazar-install
|
- blazar-install
|
||||||
|
|
||||||
- name: Importing blazar_post_install tasks
|
- name: Importing blazar_post_install tasks
|
||||||
import_tasks: blazar_post_install.yml
|
ansible.builtin.import_tasks: blazar_post_install.yml
|
||||||
tags:
|
tags:
|
||||||
- blazar-config
|
- blazar-config
|
||||||
- post-install
|
- post-install
|
||||||
|
|
||||||
- name: Importing blazar_db_setup tasks
|
- name: Importing blazar_db_setup tasks
|
||||||
import_tasks: blazar_db_setup.yml
|
ansible.builtin.import_tasks: blazar_db_setup.yml
|
||||||
when:
|
when:
|
||||||
- _blazar_is_first_play_host
|
- _blazar_is_first_play_host
|
||||||
tags:
|
tags:
|
||||||
- blazar-config
|
- blazar-config
|
||||||
|
|
||||||
- name: Import uwsgi role
|
- name: Import uwsgi role
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: uwsgi
|
name: uwsgi
|
||||||
vars:
|
vars:
|
||||||
uwsgi_services: "{{ uwsgi_blazar_services }}"
|
uwsgi_services: "{{ uwsgi_blazar_services }}"
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
- uwsgi
|
- uwsgi
|
||||||
|
|
||||||
- name: Run the systemd service role
|
- name: Run the systemd service role
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: systemd_service
|
name: systemd_service
|
||||||
vars:
|
vars:
|
||||||
systemd_user_name: "{{ blazar_system_user_name }}"
|
systemd_user_name: "{{ blazar_system_user_name }}"
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
- systemd-service
|
- systemd-service
|
||||||
|
|
||||||
- name: Including osa.service_setup role
|
- name: Including osa.service_setup role
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.service_setup
|
name: openstack.osa.service_setup
|
||||||
apply:
|
apply:
|
||||||
tags:
|
tags:
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Create required Nova aggregates
|
- name: Create required Nova aggregates
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: openstack.osa.openstack_resources
|
name: openstack.osa.openstack_resources
|
||||||
vars:
|
vars:
|
||||||
openstack_resources_compute:
|
openstack_resources_compute:
|
||||||
|
|||||||
Reference in New Issue
Block a user