vn-ansible/create_user_ssh/add_public_key/add_public_key.yml

13 lines
185 B
YAML

---
- hosts: "{{ host }}"
vars:
tasks:
- name: Add ssh pub keys
authorized_key:
user: "{{ user }}"
key: "{{ key }}"
state: present
manage_dir: yes