mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-01 08:08:59 +02:00
Added swapfile and ssh configuration role
This commit is contained in:
2
roles/native-ssh/meta/main.yml
Normal file
2
roles/native-ssh/meta/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- native-git
|
5
roles/native-ssh/tasks copy/main.yml
Normal file
5
roles/native-ssh/tasks copy/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
- name: Install caffeine
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- caffeine-ng
|
6
roles/native-ssh/tasks/main.yml
Normal file
6
roles/native-ssh/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: pull ssh repository from {{ssh_configuration_repository}}
|
||||
git:
|
||||
repo: "{{ssh_configuration_repository}}"
|
||||
dest: "$HOME/.ssh"
|
||||
update: yes
|
||||
become: false
|
2
roles/native-swapfile/meta/main.yml
Normal file
2
roles/native-swapfile/meta/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- native-git
|
10
roles/native-swapfile/tasks/main.yml
Normal file
10
roles/native-swapfile/tasks/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
- name: pull swapfile creating script
|
||||
git:
|
||||
repo: "git@github.com:kevinveenbirkenbach/create-linux-swapfile.git"
|
||||
dest: "$HOME/Repositories/github.com/kevinveenbirkenbach/create-linux-swapfile"
|
||||
update: yes
|
||||
become: false
|
||||
|
||||
- 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