UCL-MIRSG / ansible-collection-infra

Ansible Collection to configure infrastructure for XNAT and OMERO
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Add user SSH keys to all servers in the provision_accounts role #55

Closed p-j-smith closed 8 months ago

p-j-smith commented 1 year ago

We could use the ansible.posix.authorized_key module to add our public SSH keys to our accounts, e.g.

- name: Set authorized keys taken from url
  ansible.posix.authorized_key:
    user: psmith
    state: present
    key: https://github.com/p-j-smith.keys

We would need to add the key variable for all users in os_mirsg_users in UCLMedicalImagingEnv

p-j-smith commented 8 months ago

closing as not all users (e.g. those used for deploying) have GitHub accounts