Add roles and variables

This commit is contained in:
lif
2025-10-12 10:13:05 +01:00
parent 78ed25a25a
commit 6368588bce
8 changed files with 150 additions and 78 deletions

16
ansible/swarm-node.yml Normal file
View File

@@ -0,0 +1,16 @@
---
- hosts: swarm_workers
become: true
vars:
roles:
- role: geerlingguy.swap
swap_file_size_mb: 1024
- role: geerlingguy.docker
- role: common
tasks:
- name: Check memory and swap usage
command: free -m
register: memory_info
changed_when: false