feat: enhance Ansible playbook with swap file management

- Update inventory to use root user with SSH options for security
- Add tasks for creating, configuring, and enabling a swap file
- Set swappiness parameter temporarily and permanently
- Ensure swap file is added to /etc/fstab for automatic mounting
- Include checks and debug information for swap status
This commit is contained in:
2025-09-16 15:29:40 +03:00
parent 0d5dc67eb9
commit a1586e78b3
2 changed files with 68 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
[new_server]
127.0.0.1 ansible_user=deploy
127.0.0.1 ansible_user=root ansible_ssh_common_args='-o StrictHostKeyChecking=no'
[all:vars]
ansible_python_interpreter=/usr/bin/python3