Fix ansible-lint E305 (#6459)

This commit is contained in:
Maxime Guyot
2020-07-28 10:39:08 +02:00
committed by GitHub
parent 8bd3b50e31
commit 214e08f8c9
22 changed files with 59 additions and 61 deletions

View File

@@ -1,6 +1,6 @@
---
- name: Get etcd endpoint health # noqa 305
shell: "{{ bin_dir }}/etcdctl endpoint health"
- name: Get etcd endpoint health
command: "{{ bin_dir }}/etcdctl endpoint health"
register: etcd_endpoint_health
ignore_errors: true
changed_when: false
@@ -57,8 +57,8 @@
- groups['broken_etcd']
- "item.rc != 0 and not 'No such file or directory' in item.stderr"
- name: Get etcd cluster members # noqa 305
shell: "{{ bin_dir }}/etcdctl member list"
- name: Get etcd cluster members
command: "{{ bin_dir }}/etcdctl member list"
register: member_list
changed_when: false
check_mode: no
@@ -73,8 +73,8 @@
- not healthy
- has_quorum
- name: Remove broken cluster members # noqa 305
shell: "{{ bin_dir }}/etcdctl member remove {{ item[1].replace(' ','').split(',')[0] }}"
- name: Remove broken cluster members
command: "{{ bin_dir }}/etcdctl member remove {{ item[1].replace(' ','').split(',')[0] }}"
environment:
ETCDCTL_API: 3
ETCDCTL_ENDPOINTS: "{{ etcd_access_addresses }}"

View File

@@ -1,6 +1,6 @@
---
- name: Save etcd snapshot # noqa 305
shell: "{{ bin_dir }}/etcdctl snapshot save /tmp/snapshot.db"
- name: Save etcd snapshot
command: "{{ bin_dir }}/etcdctl snapshot save /tmp/snapshot.db"
environment:
- ETCDCTL_CERT: "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}.pem"
- ETCDCTL_KEY: "{{ etcd_cert_dir }}/admin-{{ inventory_hostname }}-key.pem"