Merge pull request 'chore 📦: Optimize swap settings for better performance' (#27) from dev into main
Reviewed-on: #27
This commit was merged in pull request #27.
This commit is contained in:
@@ -3,18 +3,31 @@
|
|||||||
# Main tasks for role
|
# Main tasks for role
|
||||||
# ===================
|
# ===================
|
||||||
|
|
||||||
- name: Install api utilities
|
- name: Ensure we are running on Proxmox
|
||||||
ansible.builtin.import_tasks: utilities.yml
|
ansible.builtin.stat:
|
||||||
|
path: /usr/bin/pveversion
|
||||||
|
register: proxmox_check
|
||||||
|
|
||||||
|
- name: Stop if not Proxmox
|
||||||
|
ansible.builtin.fail:
|
||||||
|
msg: "This role must run on Proxmox VE nodes only."
|
||||||
|
when: not proxmox_check.stat.exists
|
||||||
|
|
||||||
|
# Other tasks
|
||||||
|
# ===================
|
||||||
|
|
||||||
- name: Disable enterprise repo, enable no-subscription
|
- name: Disable enterprise repo, enable no-subscription
|
||||||
ansible.builtin.import_tasks: repos.yml
|
ansible.builtin.import_tasks: repos.yml
|
||||||
|
|
||||||
- name: Remove the infamous subscription nag
|
|
||||||
ansible.builtin.import_tasks: subscription.yml
|
|
||||||
|
|
||||||
- name: Disable swap or tune it
|
- name: Disable swap or tune it
|
||||||
ansible.builtin.import_tasks: swap.yml
|
ansible.builtin.import_tasks: swap.yml
|
||||||
|
|
||||||
|
- name: Install api utilities
|
||||||
|
ansible.builtin.import_tasks: utilities.yml
|
||||||
|
|
||||||
|
- name: Remove the infamous subscription nag
|
||||||
|
ansible.builtin.import_tasks: subscription.yml
|
||||||
|
|
||||||
- name: Stop logs from quietly murdering the disk
|
- name: Stop logs from quietly murdering the disk
|
||||||
ansible.builtin.import_tasks: logrotate.yml
|
ansible.builtin.import_tasks: logrotate.yml
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: repos | Manage Proxmox repositories
|
- name: repos | Manage Proxmox repositories
|
||||||
vars:
|
vars:
|
||||||
repo_path:
|
repo_path:
|
||||||
|
|||||||
Reference in New Issue
Block a user