aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/ansible/create.yml
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2021-07-28 09:12:09 +0000
committerMorgan Richomme <morgan.richomme@orange.com>2021-08-24 13:41:02 +0000
commit4db87df7239a707fa9c0d85ad6dd9505d0150056 (patch)
tree306e6bf6be1296b772d7050a4442dcedf7eb801d /deployment/noheat/infra-openstack/ansible/create.yml
parenta2e6b6e74d7e2503fe58b27336b82df0144a5e9b (diff)
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 <m.wereski@partner.samsung.com> Change-Id: I6163942c8157108784008b4e05fc0abe85ee5184
Diffstat (limited to 'deployment/noheat/infra-openstack/ansible/create.yml')
-rw-r--r--deployment/noheat/infra-openstack/ansible/create.yml5
1 files changed, 5 insertions, 0 deletions
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