add playbooks

This commit is contained in:
David Lopez 2023-07-26 09:33:47 +02:00
parent 840c85a19a
commit 5567f60b44
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
---
- hosts: "{{ host }}"
vars:
vars_files:
- variables.yml
tasks:
- name: Add ssh pub keys
authorized_key:
user: "{{ item.name }}"
key: "{{ item.key }}"
state: present
manage_dir: yes
with_items: "{{ users }}"