mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Removed pc_ for better overview
This commit is contained in:
17
roles/system-swapfile/tasks/main.yml
Normal file
17
roles/system-swapfile/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- name: pull swapfile creating script
|
||||
git:
|
||||
repo: "https://github.com/kevinveenbirkenbach/create-linux-swapfile.git"
|
||||
dest: "$HOME/Repositories/github.com/kevinveenbirkenbach/create-linux-swapfile"
|
||||
update: yes
|
||||
register: git_result
|
||||
ignore_errors: true
|
||||
become: false
|
||||
|
||||
- name: Warn if repo is not reachable
|
||||
debug:
|
||||
msg: "Warning: Repository is not reachable."
|
||||
when: git_result.failed
|
||||
|
||||
- name: Execute create swapfile script
|
||||
ansible.builtin.shell: bash "/home/{{client_username}}/Repositories/github.com/kevinveenbirkenbach/create-linux-swapfile/create-linux-swapfile.sh" "{{swapfile_size}}"
|
||||
become: true
|
Reference in New Issue
Block a user