mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Another big round of refactoring and cleaning...
This commit is contained in:
22
roles/sys-opt-swapfile/README.md
Normal file
22
roles/sys-opt-swapfile/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# System Swapfile Role
|
||||
|
||||
## 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.
|
23
roles/sys-opt-swapfile/meta/main.yml
Normal file
23
roles/sys-opt-swapfile/meta/main.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birchenbach"
|
||||
description: "Automates swapfile creation on target systems by cloning and executing a swapfile script."
|
||||
license: "CyMaIS NonCommercial License (CNCL)"
|
||||
license_url: "https://s.veen.world/cncl"
|
||||
company: |
|
||||
Kevin Veen-Birchenbach
|
||||
Consulting & Coaching Solutions
|
||||
https://www.veen.world
|
||||
galaxy_tags:
|
||||
- swapfile
|
||||
- performance
|
||||
repository: "https://github.com/kevinveenbirkenbach/cymais"
|
||||
issue_tracker_url: "https://github.com/kevinveenbirkenbach/cymais/issues"
|
||||
documentation: "https://github.com/kevinveenbirkenbach/cymais/tree/main/roles/sys-opt-swapfile"
|
||||
min_ansible_version: "2.9"
|
||||
platforms:
|
||||
- name: Any
|
||||
versions:
|
||||
- all
|
||||
dependencies:
|
||||
- pkgmgr-install
|
9
roles/sys-opt-swapfile/tasks/main.yml
Normal file
9
roles/sys-opt-swapfile/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: "pkgmgr install"
|
||||
include_role:
|
||||
name: pkgmgr-install
|
||||
vars:
|
||||
package_name: swap-forge
|
||||
|
||||
- name: Execute create swapfile script
|
||||
ansible.builtin.shell: swap-forge "{{swapfile_size}}"
|
||||
become: true
|
0
roles/sys-opt-swapfile/vars/main.yml
Normal file
0
roles/sys-opt-swapfile/vars/main.yml
Normal file
Reference in New Issue
Block a user