More ansible-lint fixes

This commit is contained in:
Slavi Pantaleev
2022-07-18 11:22:05 +03:00
parent 34cdaade08
commit ddf18eadc7
337 changed files with 1720 additions and 1720 deletions

View File

@ -1,19 +1,19 @@
---
- import_tasks: "{{ role_path }}/tasks/start.yml"
when: run_start|bool
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/start.yml"
when: run_start | bool
tags:
- start
- import_tasks: "{{ role_path }}/tasks/stop.yml"
when: run_stop|bool
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/stop.yml"
when: run_stop | bool
tags:
- stop
- import_tasks: "{{ role_path }}/tasks/dump_runtime_results.yml"
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/dump_runtime_results.yml"
tags:
- always
- import_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/run_docker_prune.yml"
tags:
- run-docker-prune

View File

@ -2,7 +2,7 @@
- name: Determine whether we should make services autostart
ansible.builtin.set_fact:
matrix_services_autostart_enabled_bool: "{{ true if matrix_services_autostart_enabled|default('') == '' else matrix_services_autostart_enabled|bool }}"
matrix_services_autostart_enabled_bool: "{{ true if matrix_services_autostart_enabled | default('') == '' else matrix_services_autostart_enabled | bool }}"
- name: Ensure systemd is reloaded
ansible.builtin.service:
@ -29,14 +29,14 @@
# Waiting too long (30s) may not work for a similar reason,
# as we may run into systemd's automatic restart logic retrying the service.
- name: Wait a bit, so that services can start (or fail)
wait_for:
ansible.builtin.wait_for:
timeout: "{{ matrix_common_after_systemd_service_start_wait_for_timeout_seconds }}"
delegate_to: 127.0.0.1
become: false
- block:
- name: Populate service facts
service_facts:
ansible.builtin.service_facts:
- name: Fail if service isn't detected to be running
ansible.builtin.fail: