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.
|
||||
|
||||
- name: Restart blazar services
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ item.service_name }}"
|
||||
state: restarted
|
||||
with_items: "{{ filtered_blazar_services }}"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Create blazar database schema
|
||||
command: >
|
||||
ansible.builtin.command: >
|
||||
{{ blazar_bin }}/blazar-db-manage
|
||||
--config-file {{ blazar_etc_dir }}/blazar.conf upgrade head
|
||||
become: true
|
||||
|
||||
@@ -15,18 +15,18 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Create blazar group
|
||||
group:
|
||||
ansible.builtin.group:
|
||||
name: "{{ blazar_system_group_name }}"
|
||||
state: present
|
||||
|
||||
- name: Create blazar user
|
||||
user:
|
||||
ansible.builtin.user:
|
||||
name: "{{ blazar_system_user_name }}"
|
||||
group: "{{ blazar_system_group_name }}"
|
||||
createhome: false
|
||||
|
||||
- name: Create blazar directories
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
state: directory
|
||||
owner: "{{ item.owner | default(blazar_system_user_name) }}"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Gather variables for each operating system
|
||||
include_vars: "{{ lookup('first_found', params) }}"
|
||||
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
@@ -30,7 +30,7 @@
|
||||
- always
|
||||
|
||||
- name: Including osa.db_setup role
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: openstack.osa.db_setup
|
||||
apply:
|
||||
tags:
|
||||
@@ -52,7 +52,7 @@
|
||||
- always
|
||||
|
||||
- name: Including osa.mq_setup role
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: openstack.osa.mq_setup
|
||||
apply:
|
||||
tags:
|
||||
@@ -78,12 +78,12 @@
|
||||
- always
|
||||
|
||||
- name: Importing blazar_pre_install tasks
|
||||
import_tasks: blazar_pre_install.yml
|
||||
ansible.builtin.import_tasks: blazar_pre_install.yml
|
||||
tags:
|
||||
- blazar-install
|
||||
|
||||
- name: Create and install SSL certificates
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: pki
|
||||
tasks_from: main_certs.yml
|
||||
apply:
|
||||
@@ -103,7 +103,7 @@
|
||||
- always
|
||||
|
||||
- name: Install the python venv
|
||||
import_role:
|
||||
ansible.builtin.import_role:
|
||||
name: "python_venv_build"
|
||||
vars:
|
||||
venv_build_constraints: "{{ blazar_git_constraints }}"
|
||||
@@ -120,20 +120,20 @@
|
||||
- blazar-install
|
||||
|
||||
- name: Importing blazar_post_install tasks
|
||||
import_tasks: blazar_post_install.yml
|
||||
ansible.builtin.import_tasks: blazar_post_install.yml
|
||||
tags:
|
||||
- blazar-config
|
||||
- post-install
|
||||
|
||||
- name: Importing blazar_db_setup tasks
|
||||
import_tasks: blazar_db_setup.yml
|
||||
ansible.builtin.import_tasks: blazar_db_setup.yml
|
||||
when:
|
||||
- _blazar_is_first_play_host
|
||||
tags:
|
||||
- blazar-config
|
||||
|
||||
- name: Import uwsgi role
|
||||
import_role:
|
||||
ansible.builtin.import_role:
|
||||
name: uwsgi
|
||||
vars:
|
||||
uwsgi_services: "{{ uwsgi_blazar_services }}"
|
||||
@@ -143,7 +143,7 @@
|
||||
- uwsgi
|
||||
|
||||
- name: Run the systemd service role
|
||||
import_role:
|
||||
ansible.builtin.import_role:
|
||||
name: systemd_service
|
||||
vars:
|
||||
systemd_user_name: "{{ blazar_system_user_name }}"
|
||||
@@ -161,7 +161,7 @@
|
||||
- systemd-service
|
||||
|
||||
- name: Including osa.service_setup role
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: openstack.osa.service_setup
|
||||
apply:
|
||||
tags:
|
||||
@@ -202,7 +202,7 @@
|
||||
- always
|
||||
|
||||
- name: Create required Nova aggregates
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: openstack.osa.openstack_resources
|
||||
vars:
|
||||
openstack_resources_compute:
|
||||
|
||||
Reference in New Issue
Block a user