vn-ansible/create_user_ssh/add_authorized_key.yml

13 lines
209 B
YAML
Raw Normal View History

2023-07-26 08:57:51 +00:00
---
2023-07-26 09:04:29 +00:00
- hosts: "{{ host }}"
2023-07-26 08:53:47 +00:00
vars:
2023-07-26 09:04:29 +00:00
tasks:
2023-07-26 09:08:05 +00:00
- name: SYSTEM - Set authorized key for test_user took from file
tags: system-user
authorized_key:
2023-07-26 10:51:25 +00:00
user: root
2023-07-26 08:53:47 +00:00
state: present
2023-07-26 10:47:05 +00:00
key: "{{ key }}"