feat(expertMode): implemented expert mode #3891
Annotations
2 errors and 4 warnings
|
Run Ansible-lint
Process completed with exit code 2.
|
|
Run Ansible-lint:
automation/roles/cloud_resources/tasks/inventory.yml#L1
A malformed block was encountered while loading a block: The ds ([{'name': 'Get system username', 'become': False, 'ansible.builtin.command': 'whoami', 'register': 'system_user', 'changed_when': False, 'collections': ['vitabaks.autobase', 'ansible.builtin']}, {'name': "Add public keys to ~{{ system_user.stdout | default('') }}/.ssh/authorized_keys", 'ansible.posix.authorized_key': {'user': '{{ system_user.stdout }}', 'key': '{{ item | replace("\'", \'\') | replace(\'"\', \'\') | trim }}', 'state': 'present'}, 'loop': "{{\n (ssh_public_keys\n | replace('\\n', ',')\n | split(',')\n | reject('equalto', '')\n | list)\n if ssh_public_keys is string else ssh_public_keys\n}}", 'collections': ['vitabaks.autobase', 'ansible.builtin']}, 'ssh_public_keys is defined', 'ssh_public_keys | length > 0']) should be a dict but was a <class 'ansible.module_utils._internal._datatag._AnsibleTaggedList'>
|
|
Run Ansible-lint:
automation/roles/etcd/tasks/member_remove.yml#L13
Jinja2 spacing could be improved: {% for host in (groups['etcd_cluster'] | difference([target_node])) -%} {{ patroni_etcd_protocol | default('http', true) }}:// {{- hostvars[host]['etcd_bind_address'] | default(hostvars[host]['bind_address'], true) }}:2379 {%- if not loop.last %},{% endif -%} {% endfor %} -> {% for host in (groups['etcd_cluster'] | difference([target_node])) -%} {{ patroni_etcd_protocol | default('http', true) }}://{{- hostvars[host]['etcd_bind_address'] | default(hostvars[host]['bind_address'], true) }}:2379{%- if not loop.last %},{% endif -%} {% endfor %}
|
|
Run Ansible-lint:
automation/roles/etcd/tasks/member_add.yml#L6
Jinja2 spacing could be improved: {% for host in groups['etcd_cluster'] | difference(new_etcd_nodes | default([])) -%} {{ patroni_etcd_protocol | default('http', true) }}:// {{- hostvars[host]['etcd_bind_address'] | default(hostvars[host]['bind_address'], true) }}:2379 {%- if not loop.last %},{% endif -%} {% endfor %} -> {% for host in groups['etcd_cluster'] | difference(new_etcd_nodes | default([])) -%} {{ patroni_etcd_protocol | default('http', true) }}://{{- hostvars[host]['etcd_bind_address'] | default(hostvars[host]['bind_address'], true) }}:2379{%- if not loop.last %},{% endif -%} {% endfor %}
|
|
Run Ansible-lint:
automation/roles/common/defaults/main.yml#L688
Jinja2 spacing could be improved: && {{ wal_g_path }} delete retain FULL {{ wal_g_retention_full | default (4) }} --confirm > {{ postgresql_log_dir }}/walg_delete.log 2>&1 -> && {{ wal_g_path }} delete retain FULL {{ wal_g_retention_full | default(4) }} --confirm > {{ postgresql_log_dir }}/walg_delete.log 2>&1
|
|
Run Ansible-lint:
automation/roles/cloud_resources/tasks/digitalocean.yml#L690
Jinja2 spacing could be improved: {{ droplet_result.results | selectattr('data','defined') | list }} -> {{ droplet_result.results | selectattr('data', 'defined') | list }}
|
Loading