Fixing key pathes

This commit is contained in:
ArseniiPetrovich 2018-05-24 17:43:11 +03:00
parent 56d7a7fdc7
commit 86703f8169
1 changed files with 2 additions and 0 deletions

View File

@ -3,9 +3,11 @@
authorized_key: "user={{ outer_item.name }} key='{{ lookup('file', item) }}' state=present exclusive=yes" authorized_key: "user={{ outer_item.name }} key='{{ lookup('file', item) }}' state=present exclusive=yes"
with_first_found: with_first_found:
- files: - files:
- "id_rsa.pub"
- "ssh_{{ env }}_{{ outer_item.name }}_{{ inventory_hostname }}.pub" - "ssh_{{ env }}_{{ outer_item.name }}_{{ inventory_hostname }}.pub"
- "ssh_{{ env }}_{{ outer_item.name }}.pub" - "ssh_{{ env }}_{{ outer_item.name }}.pub"
- "ssh_{{ env }}.pub" - "ssh_{{ env }}.pub"
- "ssh_{{ outer_item.name }}.pub" - "ssh_{{ outer_item.name }}.pub"
- paths: - paths:
- ../../../files - ../../../files
- ../../../../.