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