Install swapfile tool correct

This commit is contained in:
2025-09-25 13:16:13 +02:00
parent 423850d3e6
commit 84865d61b8
3 changed files with 7 additions and 10 deletions

View File

@@ -4,7 +4,7 @@
run_once_pkgmgr_install: true
when: run_once_pkgmgr_install is not defined
- name: update {{ package_name }}
- name: "update {{ package_name }}"
ansible.builtin.shell: |
source ~/.venvs/pkgmgr/bin/activate
pkgmgr update {{ package_name }} --dependencies --clone-mode https

View File

@@ -1,16 +1,12 @@
- name: Include dependency 'pkgmgr-install'
include_role:
name: pkgmgr-install
when: run_once_pkgmgr_install is not defined
- name: "pkgmgr install"
- name: Install '
include_role:
name: pkgmgr-install
vars:
package_name: swap-forge
package_name: "{{ SWAPFILE_PKG }}"
when: run_once_pkgmgr_install is not defined
- name: Execute create swapfile script
shell: swap-forge "{{ SWAPFILE_SIZE }}"
shell: "{{ SWAPFILE_PKG }} '{{ SWAPFILE_SIZE }}'"
become: true
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"

View File

@@ -1,3 +1,4 @@
application_id: "svc-opt-swapfile"
SWAPFILE_SIZE: "{{ applications | get_app_conf(application_id, 'swapfile_size') }}"
SWAPFILE_SIZE: "{{ applications | get_app_conf(application_id, 'swapfile_size') }}"
SWAPFILE_PKG: "swap-forge"