Files
computer-playbook/roles/svc-opt-swapfile
Kevin Veen-Birkenbach 94f97ed1f3 Refactor: Migrate deprecated Ansible facts to ansible_facts[] syntax
Why:
- Ansible 2.20+ deprecates INJECT_FACTS_AS_VARS and direct usage of top-level ansible_* facts.
- This change updates all affected roles and vars files to the new supported syntax.
- Ensures compatibility with upcoming Ansible 2.24 removal of implicit fact injection.

Conversation reference:
https://chatgpt.com/share/692f639b-1380-800f-9f18-732f7108e9e2
2025-12-02 23:09:46 +01:00
..
2025-09-25 13:16:13 +02:00

System Swapfile

Description

This role automates the creation of a swapfile on the target system by cloning a swapfile creation script from a Git repository and executing it with the specified swapfile size.

Overview

The role performs the following tasks:

  • Clones the swapfile creation script from the Git repository.
  • Executes the script with the provided swapfile size to create a swapfile.
  • Helps ensure that the system has adequate swap space for improved performance and stability.

Purpose

The primary purpose of this role is to automate the process of swapfile creation, ensuring that the system has sufficient swap space to handle memory-intensive tasks and maintain overall performance.

Features

  • Script Cloning: Retrieves the latest swapfile creation script from a Git repository.
  • Swapfile Creation: Executes the script to create a swapfile of a specified size.
  • Performance Enhancement: Ensures adequate swap space for optimal system performance.