ansible_public/playbooks/send_authorized_sshkeys.yaml

12 lines
338 B
YAML
Raw Permalink Normal View History

2022-06-14 18:53:16 +02:00
---
- hosts: '{{ variable_host | default("lab15_standard") }}'
gather_facts: no
become: yes
tasks:
- name: Set authorized key taken from file
ansible.posix.authorized_key:
user: lab
state: present
# Sends keys from this file
key: "{{ lookup('file', '../authorized_pub_sshkeys') }}"