mini playbook

This commit is contained in:
Benedikt Penner
2026-03-14 21:52:37 +01:00
parent 6820ba29c3
commit 32ac0221d1
2 changed files with 8 additions and 13 deletions

View File

@@ -1,19 +1,14 @@
---
- hosts: glusterfs
- hosts: test_server
gather_facts: true
become: false
tasks:
- name: "Install GlusterFS on all nodes"
ansible.builtin.package:
name: glusterfs-server
state: present
become: true
- name: Run hostname -a
command: hostname -a
register: hostname_out
- name: "Start and enable GlusterFS service"
ansible.builtin.service:
name: glusterd
state: started
enabled: true
become: true
- name: Show hostname output
debug:
var: hostname_out.stdout