vn-ansible/create_user_ssh/add_public_key/add_public_key.yml

13 lines
185 B
YAML
Raw Normal View History

2023-07-26 07:33:47 +00:00
---
- hosts: "{{ host }}"
vars:
tasks:
- name: Add ssh pub keys
authorized_key:
2023-07-26 07:45:38 +00:00
user: "{{ user }}"
key: "{{ key }}"
2023-07-26 07:33:47 +00:00
state: present
manage_dir: yes
2023-07-26 07:45:38 +00:00