ansible-roles/library/centos/roles/ssh-keys/tasks/main.yml

10 lines
244 B
YAML

---
- name: Install the ssh keys for the authorized users
authorized_key: user=root key="{{ item }}" state=present
with_items: '{{ root_authorized_ssh_key }}'
when: root_authorized_ssh_key is defined
tags:
- pubkeys
- ssh_keys