Skip to content

Commit ecfadc1

Browse files
committed
ansible-lint clean
1 parent 91fc05f commit ecfadc1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tasks/ceph.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
with_items: "{{ _existing_ceph_volumes_tmp }}"
7474
tags: ceph_volume
7575

76-
- name: Change osd list (remove existing osds from the list)
76+
- name: Change osd list (remove existing osds from the list)
7777
set_fact:
7878
pve_ceph_osds_diff: "{{ pve_ceph_osds | difference(_existing_ceph_volumes) }}"
7979
tags: ceph_volume
@@ -86,7 +86,7 @@
8686
creates: '{{ item.device }}1'
8787
with_items: '{{ pve_ceph_osds_diff }}'
8888

89-
tags: create_osd
89+
tags: create_osd
9090

9191
- block:
9292
- name: List Ceph CRUSH rules

tasks/ssh_cluster_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
content: |
7575
{% for host in groups[pve_group] %}
7676
{% for keytype in ['rsa', 'ed25519', 'ecdsa'] %}
77-
{{ hostvars[host].pve_cluster_ssh_addrs | join(",") }} {{ ' '.join(lookup('file', pve_fetch_directory + '/' + host + '/ssh_host_' + keytype + '_key.pub').split()[:-1]) }}
77+
{%- set _keyfile = pve_fetch_directory + '/' + host + '/ssh_host_' + keytype + '_key.pub' -%}
78+
{%- set _key = ' '.join(lookup('file', _keyfile).split()[:-1]) -%}
79+
{{ hostvars[host].pve_cluster_ssh_addrs | join(",") }} {{ _key }}
7880
{% endfor %}
7981
{% endfor %}
8082
when:

0 commit comments

Comments
 (0)