12 lines
338 B
YAML
12 lines
338 B
YAML
---
|
|
- 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') }}"
|