- 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
5 lines
150 B
INI
5 lines
150 B
INI
[new_server]
|
|
127.0.0.1 ansible_user=root ansible_ssh_common_args='-o StrictHostKeyChecking=no'
|
|
|
|
[all:vars]
|
|
ansible_python_interpreter=/usr/bin/python3 |