Added swapfile and ssh configuration role

This commit is contained in:
2022-08-18 18:12:59 +02:00
parent 25946e6925
commit aeab52ddd8
7 changed files with 37 additions and 27 deletions

View File

@@ -0,0 +1,2 @@
dependencies:
- native-git

View File

@@ -0,0 +1,5 @@
- name: Install caffeine
kewlfft.aur.aur:
use: yay
name:
- caffeine-ng

View 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

View File

@@ -0,0 +1,2 @@
dependencies:
- native-git

View 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