Files
homelab/glusterfs/ansible/deploy_key.yml

9 lines
246 B
YAML
Raw Normal View History

2026-03-15 01:30:35 +01:00
---
- 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') }}"