1
0
mirror of https://github.com/gjkcz/ansible-void.git synced 2025-04-18 15:05:13 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
xsodjo01
0759527664
Merge 096439b6bb678a6a65e778684da47c49c246055a into f76fcf2cc9dd0d7b2fbb45dd5f6dc43c8c0ae6b9 2024-12-06 12:33:38 +01:00
f76fcf2cc9 Crate role for Bakaláři 2024-12-04 11:09:44 +01:00
78f53019c5 Create role for SSH 2024-12-04 11:04:12 +01:00
xsodjo01
096439b6bb
add openarena 2024-05-22 16:10:19 +02:00
8 changed files with 51 additions and 30 deletions

View File

@ -3,10 +3,6 @@ timeout_blank: 1800
timeout_lock: 30 timeout_lock: 30
grub_timeout: 10 grub_timeout: 10
ssh_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEm981GRiUIsp8e4bTDv+d9SyHfQ8P18W5oovgmAfnip em@x210
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDqmyaaIqRU9hx8PxRnIqe/pRANIxrEEscuMWrHZF1yh snowflake@flakeX230
xbps_install: xbps_install:
# General # General
- htop - htop
@ -70,7 +66,7 @@ xbps_install:
- asciiquarium - asciiquarium
- cbonsai - cbonsai
- cmatrix - cmatrix
# - openarena - openarena
# GNOME # GNOME
# A custom list intead of `gnome-apps` meta package # A custom list intead of `gnome-apps` meta package
- eog - eog

View File

@ -0,0 +1,4 @@
bakalari_desktop_src: bakalari.desktop
bakalari_desktop_dest: /usr/share/applications/bakalari.desktop
bakalari_icon_src: bakalari.png
bakalari_icon_dest: /usr/share/icons/bakalari.png

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,21 @@
- name: Ensure the applications directory exists
file:
path: /usr/share/applications
state: directory
- name: Ensure the icons directory exists
file:
path: /usr/share/icons
state: directory
- name: Copy Bakaláři desktop shortcut
copy:
src: bakalari.desktop
dest: /usr/share/applications/bakalari.desktop
mode: 0644
- name: Copy Bakaláři icon
copy:
src: bakalari.png
dest: /usr/share/icons/bakalari.png
mode: 0644

View File

@ -0,0 +1,3 @@
ssh_user: root
ssh_dir: /root/.ssh
ssh_keys: []

14
roles/ssh/tasks/main.yaml Normal file
View File

@ -0,0 +1,14 @@
- name: Ensure SSH directory exists
file:
path: "{{ ssh_dir }}"
state: directory
owner: "{{ ssh_user }}"
group: "{{ ssh_user }}"
mode: 0700
- name: Import SSH keys
authorized_key:
user: "{{ ssh_user }}"
key: "{{ item }}"
state: present
loop: "{{ ssh_keys }}"

View File

@ -2,19 +2,12 @@
- name: SSH - name: SSH
hosts: all hosts: all
tags: ssh tags: ssh
roles:
tasks: - role: ssh
- name: Ensure root ssh directory exists vars:
file: ssh_keys:
path: /root/.ssh - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEm981GRiUIsp8e4bTDv+d9SyHfQ8P18W5oovgmAfnip em@x210
state: directory - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDqmyaaIqRU9hx8PxRnIqe/pRANIxrEEscuMWrHZF1yh snowflake@flakeX230
- name: Import SSH keys
authorized_key:
user: root
key: '{{ item }}'
state: present
loop: '{{ ssh_keys }}'
- name: General - name: General
@ -276,15 +269,5 @@
- name: Bakaláři - name: Bakaláři
hosts: teachers hosts: teachers
tags: bakalari roles:
- bakalari
tasks:
- name: Create a desktop shortcut for Bakaláři
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
loop:
- src: "files/bakalari/bakalari.desktop"
dest: "/usr/share/applications/bakalari.desktop"
- src: "files/bakalari/bakalari.png"
dest: "/usr/share/icons/bakalari.png"