mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
Install swapfile tool correct
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
run_once_pkgmgr_install: true
|
run_once_pkgmgr_install: true
|
||||||
when: run_once_pkgmgr_install is not defined
|
when: run_once_pkgmgr_install is not defined
|
||||||
|
|
||||||
- name: update {{ package_name }}
|
- name: "update {{ package_name }}"
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
source ~/.venvs/pkgmgr/bin/activate
|
source ~/.venvs/pkgmgr/bin/activate
|
||||||
pkgmgr update {{ package_name }} --dependencies --clone-mode https
|
pkgmgr update {{ package_name }} --dependencies --clone-mode https
|
||||||
|
@@ -1,16 +1,12 @@
|
|||||||
- name: Include dependency 'pkgmgr-install'
|
- name: Install '
|
||||||
include_role:
|
|
||||||
name: pkgmgr-install
|
|
||||||
when: run_once_pkgmgr_install is not defined
|
|
||||||
|
|
||||||
- name: "pkgmgr install"
|
|
||||||
include_role:
|
include_role:
|
||||||
name: pkgmgr-install
|
name: pkgmgr-install
|
||||||
vars:
|
vars:
|
||||||
package_name: swap-forge
|
package_name: "{{ SWAPFILE_PKG }}"
|
||||||
|
when: run_once_pkgmgr_install is not defined
|
||||||
|
|
||||||
- name: Execute create swapfile script
|
- name: Execute create swapfile script
|
||||||
shell: swap-forge "{{ SWAPFILE_SIZE }}"
|
shell: "{{ SWAPFILE_PKG }} '{{ SWAPFILE_SIZE }}'"
|
||||||
become: true
|
become: true
|
||||||
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
||||||
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
|
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
application_id: "svc-opt-swapfile"
|
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"
|
Reference in New Issue
Block a user