- hosts: standalone gather_facts: false tasks: - name: Pull the tripleo passwords from standalone vm ansible.builtin.fetch: src: /root/tripleo-standalone-passwords.yaml dest: /home/zuul/overcloud-passwords.yaml flat: true - name: Pull the private key from standalone ansible.builtin.fetch: src: /root/.ssh/id_rsa dest: /home/zuul/edpm_ssh_key flat: true - name: Slurp crc public key for ssh access to standalone delegate_to: localhost # localhost is the controller node in this case ansible.builtin.slurp: path: /home/zuul/.ssh/id_rsa.pub register: crc_ssh_key - name: Place crc public key to standalone authorized_keys ansible.builtin.lineinfile: path: "/root/.ssh/authorized_keys" insertafter: "EOF" value: "{{ crc_ssh_key['content'] | b64decode | trim }}"