zuul-jobs/roles/add-authorized-keys/tasks/main.yaml
Albin Vass 9062289151 Check for loop_control in with_ type loops
Change-Id: I191265df7709a6262b44a428d78fe28ffaeb4b75
2020-05-01 13:45:34 +02:00

10 lines
247 B
YAML

- name: Enable access via build key on all nodes
authorized_key:
user: "{{ ansible_ssh_user }}"
state: present
key: "{{ zj_public_key.public_key }}"
with_items:
- "{{ public_keys }}"
loop_control:
loop_var: zj_public_key