If we maintain a Linux machine with a low memory capacity while we are required to run an application with high memory consumption, enabling swap memory is an option. Ansible can be utilized as a helper tool to automate the creation of swap memory. A swap file can be allocated in the available storage of the machine. The swap file then can be assigned as a swap memory. Firstly, we should prepare the inventory file. The following snippet is an example, you must provide your own configuration. [server] 192.168.1.2 [server:vars] ansible_user=root ansible_ssh_private_key_file=~/.ssh/id_rsa Secondly, we need to prepare the task file that contains not only the tasks but also some variables and connection information. For instance, we set /swapfile as the name of our swap file. We also set the swap memory size to 2GB and the swappiness level to 60. - hosts: server become: true vars: swap_vars: size: 2G swappiness: 60 For simplicity, we only check the...
ReplyDeleteThanks a lot for a good blog. In this blog, I gain more knowledge about technology.
Struts Training in Chennai
Struts Training Chennai
Wordpress Training in Chennai
wordpress course fees
Best Wordpress Training in Chennai
WordPress course
Spring Training in Chennai
Hibernate Training in Chennai
Brilliant post! We are connecting to this extraordinary post on our site. live Keep up the extraordinary composition.
ReplyDeleteCloudCracker is an online password cracking tool for cracking WPA-protected Wi-Fi networks. This tool can also be used to crack different password hashes. WiFi Password Hacker Online
ReplyDeleteMicrosoft takes be located quite renowned and fitting procedure on every single gentle of procedures. These Microsoft goods have the great reverence in claims family. MS Office 2016 Crack Key
ReplyDeleteChristmas My Love — I feel blessed to have you in my life, sweetheart. All I want to spend today and the rest of my life with you. Merry Christmas. Christmas Wishes To My Love
ReplyDelete