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