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: I0356a3c89223fa3b450a20e4a4464c221bf98184
This commit is contained in:
parent
531e5fd90e
commit
5be85a4afe
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Execute service restart
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ service.key }}"
|
||||
state: restarted
|
||||
with_dict: "{{ uwsgi_services }}"
|
||||
|
@ -14,7 +14,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) }}"
|
||||
when: uwsgi_services | length > 0
|
||||
vars:
|
||||
params:
|
||||
@ -30,13 +30,13 @@
|
||||
- always
|
||||
|
||||
- name: Gather variables for installation method
|
||||
include_vars: "{{ uwsgi_install_method }}_install.yml"
|
||||
ansible.builtin.include_vars: "{{ uwsgi_install_method }}_install.yml"
|
||||
when: uwsgi_services | length > 0
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Including uwsgi_install tasks
|
||||
include_tasks: uwsgi_install.yml
|
||||
ansible.builtin.include_tasks: uwsgi_install.yml
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
@ -46,7 +46,7 @@
|
||||
- uwsgi-install
|
||||
|
||||
- name: Including uwsgi_post_install tasks
|
||||
include_tasks: uwsgi_post_install.yml
|
||||
ansible.builtin.include_tasks: uwsgi_post_install.yml
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
|
@ -14,13 +14,13 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Create uWSGI system group
|
||||
group:
|
||||
ansible.builtin.group:
|
||||
name: "{{ uwsgi_system_group_name }}"
|
||||
state: "present"
|
||||
system: "yes"
|
||||
|
||||
- name: Create uWSGI system user
|
||||
user:
|
||||
ansible.builtin.user:
|
||||
name: "{{ uwsgi_system_user_name }}"
|
||||
group: "{{ uwsgi_system_group_name }}"
|
||||
comment: "uwsgi user"
|
||||
@ -30,7 +30,7 @@
|
||||
home: "/var/lib/{{ uwsgi_system_user_name }}"
|
||||
|
||||
- name: Install distro packages
|
||||
package:
|
||||
ansible.builtin.package:
|
||||
name: "{{ uwsgi_package_list }}"
|
||||
state: "{{ uwsgi_package_state }}"
|
||||
update_cache: "{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary('yes', omit) }}"
|
||||
@ -43,7 +43,7 @@
|
||||
- Restart uwsgi services
|
||||
|
||||
- name: Install the python venv
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "python_venv_build"
|
||||
vars:
|
||||
venv_install_destination_path: "{{ uwsgi_bin | dirname }}"
|
||||
|
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Ensure uWSGI directory exists
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/etc/uwsgi/"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
@ -30,7 +30,7 @@
|
||||
- Restart uwsgi services
|
||||
|
||||
- name: Run the systemd service role
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: systemd_service
|
||||
vars:
|
||||
systemd_user_name: "{{ service_var.value.uwsgi_uid | default(uwsgi_system_user_name) }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user