fix: various ansible-lint failures (jinja2 spacing, yaml octal values)
This commit is contained in:
@@ -13,4 +13,4 @@
|
||||
loop: "{{ docker_registries | default([], true) }}"
|
||||
loop_control:
|
||||
loop_var: "docker_registry"
|
||||
label: "{{ docker_registry.username}}@{{ docker_registry.registry }}"
|
||||
label: "{{ docker_registry.username }}@{{ docker_registry.registry }}"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
pre_tasks:
|
||||
- name: Build target dns records
|
||||
ansible.builtin.set_fact:
|
||||
target_dns_records: "{{ target_dns_records + [ _dns_record ] }}"
|
||||
target_dns_records: "{{ target_dns_records + [_dns_record] }}"
|
||||
vars:
|
||||
_dns_record:
|
||||
type: "CNAME"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
state: present
|
||||
marker: "#{mark} ANSIBLE MANAGED BLOCK by finallycoffee.base.git"
|
||||
block: |+2
|
||||
{% if git_config_user_name|default(false, true) and git_config_user_email|default(false, true) %}
|
||||
{% if git_config_user_name | default(false, true) and git_config_user_email | default(false, true) %}
|
||||
[user]
|
||||
name = {{ git_config_user_name }}
|
||||
email = {{ git_config_user_email }}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
|
||||
lego_domain_command_args: >-
|
||||
lego_domain_command_args: >-2
|
||||
{% for domain in lego_cert_domains %}
|
||||
--domains={{ domain }}
|
||||
{%- endfor %}
|
||||
|
||||
lego_config_command_args: >-
|
||||
lego_config_command_args: >-2
|
||||
{% for key in lego_full_command_config %}
|
||||
--{{ key | replace("_", "-") }}
|
||||
{%- if lego_full_command_config[key] != None and lego_full_command_config[key] != '' -%}
|
||||
|
||||
@@ -23,7 +23,7 @@ minio_container_command:
|
||||
- "--console-address"
|
||||
- ":{{ minio_container_listen_port_console }}"
|
||||
minio_container_restart_policy: "unless-stopped"
|
||||
minio_container_image_force_source: "{{ (minio_container_image_tag == 'latest')|bool }}"
|
||||
minio_container_image_force_source: "{{ (minio_container_image_tag == 'latest') | bool }}"
|
||||
minio_container_state: >-2
|
||||
{{ (minio_state == 'present') | ternary('started', 'absent') }}
|
||||
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ minio_data_path }}"
|
||||
state: directory
|
||||
user: "{{ minio_user|default(omit, True) }}"
|
||||
group: "{{ minio_user|default(omit, True) }}"
|
||||
user: "{{ minio_user | default(omit, True) }}"
|
||||
group: "{{ minio_user| default(omit, True) }}"
|
||||
when: minio_manage_host_filesystem
|
||||
|
||||
- name: Ensure container image '{{ minio_container_image }}' is {{ minio_state }}
|
||||
community.docker.docker_image:
|
||||
name: "{{ minio_container_image }}"
|
||||
state: "{{ minio_state }}"
|
||||
source: pull
|
||||
source: "pull"
|
||||
force_source: "{{ minio_container_image_force_source }}"
|
||||
|
||||
- name: Ensure container '{{ minio_container_name }}' is {{ minio_container_state }}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ nginx_config_file }}"
|
||||
content: "{{ nginx_config }}"
|
||||
mode: 0640
|
||||
mode: "0640"
|
||||
notify:
|
||||
- restart-nginx
|
||||
when: nginx_state == 'present'
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
- name: Ensure config db attributes are configured
|
||||
community.general.ldap_attrs:
|
||||
dn: "{{ openldap_config_db_dn }}"
|
||||
attributes: "{{ { entry.key : entry.value } }}"
|
||||
attributes: "{{ { entry.key: entry.value } }}"
|
||||
state: exact
|
||||
server_uri: "{{ openldap_socket_url }}"
|
||||
loop: "{{ openldap_config_db_attributes | dict2items }}"
|
||||
|
||||
Reference in New Issue
Block a user