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:
@@ -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
|
||||
Reference in New Issue
Block a user