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: I0cdfc57781cd369e6f6ca2a69f16c6e3d23980a1
This commit is contained in:
Dmitriy Rabotyagov
2025-02-13 08:03:52 +01:00
parent 3c232635fc
commit de1f8b807e
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@@ -45,6 +45,7 @@ logs/*
# OS generated files #
######################
._*
.ansible
.tox
*.egg-info
.eggs

View File

@@ -1,3 +1,4 @@
---
- name: Create OpenStack openrc and clouds.yaml file
hosts: all
user: root

View File

@@ -14,7 +14,7 @@
# limitations under the License.
- name: Create openrc file
template:
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ openrc_file_owner }}"
@@ -33,7 +33,7 @@
when: item.condition | default(True)
- name: Create OpenStack client configuration directory
file:
ansible.builtin.file:
dest: "{{ openrc_openstack_client_config_dir_dest }}"
owner: "{{ openrc_openstack_client_config_dir_owner }}"
group: "{{ openrc_openstack_client_config_dir_group }}"
@@ -43,7 +43,7 @@
- openstack_openrc-install
- name: Create clouds.yaml file
template:
ansible.builtin.template:
src: clouds.yaml.j2
dest: "{{ openrc_clouds_yml_file_dest }}"
owner: "{{ openrc_clouds_yml_file_owner }}"