]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
ansible_managed: Remove unmanaged keys 521/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 16 Jan 2020 23:14:25 +0000 (18:14 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 16 Jan 2020 23:18:44 +0000 (18:18 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/ansible-managed/tasks/main.yml

index a30c12769a346f12d690538ba05863d1c4a45efe..f71a321121c0be6e6487d171be15ee901fc9f87f 100644 (file)
@@ -49,8 +49,8 @@
 - name: Add authorized keys for the ansible user.
   authorized_key: 
     user: "{{ cm_user }}"
-    key: "{{ item }}"
-  with_items: "{{ cm_user_ssh_keys }}"
+    key: "{{ cm_user_ssh_keys|join('\n') }}"
+    exclusive: True
   when: cm_user_ssh_keys is defined and
         cm_user is defined
   tags: