Files
homelab/glusterfs/ansible/setup_galery.yml
Benedikt Penner 3d2d6a057f cleanup
2026-03-15 01:06:25 +01:00

21 lines
478 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') }}"
- hosts: test_server
gather_facts: true
become: false
tasks:
- name: Run hostname -a
command: hostname -a
register: hostname_out
- name: Show hostname output
debug:
var: hostname_out.stdout