Files
homelab/glusterfs/ansible/deploy_key.yml
Benedikt Penner 8e82c266e7 split playbooks
2026-03-15 01:30:35 +01:00

9 lines
246 B
YAML

---
- hosts: bastion
gather_facts: false
tasks:
- name: Set authorized key taken from file
ansible.posix.authorized_key:
user: clusteruser
state: present
key: "{{ lookup('file', './files/ansible_key.pub') }}"