From 4db87df7239a707fa9c0d85ad6dd9505d0150056 Mon Sep 17 00:00:00 2001 From: Maciej Wereski Date: Wed, 28 Jul 2021 09:12:09 +0000 Subject: noheat deployment: add operator0 key to itself This is needed for Ansible to deploy on operator0. Issue-ID: INT-1601 Signed-off-by: Maciej Wereski Change-Id: I6163942c8157108784008b4e05fc0abe85ee5184 --- deployment/noheat/infra-openstack/ansible/create.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'deployment') diff --git a/deployment/noheat/infra-openstack/ansible/create.yml b/deployment/noheat/infra-openstack/ansible/create.yml index 91c145f7a..d2828d766 100644 --- a/deployment/noheat/infra-openstack/ansible/create.yml +++ b/deployment/noheat/infra-openstack/ansible/create.yml @@ -20,6 +20,11 @@ community.crypto.openssh_keypair: path: "~/.ssh/{{ keypair.name }}" register: key + - name: Add operator0 public key to it's authorized keys + authorized_key: + key: "{{ key['public_key'] }}" + state: present + user: "{{ ansible_user }}" - name: Create cluster instances hosts: localhost connection: local -- cgit 1.2.3-korg