Added basic modules.

This commit is contained in:
2023-05-20 19:56:01 +03:00
commit 69b3933abc
13 changed files with 805 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
- name: Install awesome wm
package:
name: "{{ item }}"
state: present
loop:
- awesome
- awesome-extra
- name: Clone awesome wm config repo
git:
repo: https://gitlab.com/KKlochko/awesome-wm-config/
dest: "/home/{{ username }}/.repos/awesome-wm-config/"
clone: yes
recursive: yes
- name: Create a symbolic link
file:
src: "/home/{{ username }}/.repos/awesome-wm-config/awesome/"
dest: "/home/{{ username}}/.config/awesome"
state: link
+4
View File
@@ -0,0 +1,4 @@
- name: Install flatpak apps
community.general.flatpak:
name: "{{ flatpak_apps_list }}"
state: present
+18
View File
@@ -0,0 +1,18 @@
# Get OS info
- include: os_info.yaml
# Download wallpapers
- include: wallpapers.yaml
when: use_wallpapers == True
# Install native app
- include: awesome_wm.yaml
when: use_awesome_wm == True
# Install native app
- include: native_apps.yaml
when: use_native_apps == True
# Install flatpak app
- include: flatpak_apps.yaml
when: use_flatpak_apps == True
+4
View File
@@ -0,0 +1,4 @@
- name: Install native apps
package:
name: "{{ native_apps_list }}"
state: present
+3
View File
@@ -0,0 +1,3 @@
- name: Get OS distribution
set_fact:
distro: "{{ ansible_distribution }}"
+4
View File
@@ -0,0 +1,4 @@
- name: Download DT's wallpaper pack
git:
repo: https://www.gitlab.com/dwt1/wallpapers.git
dest: "/home/{{ username }}/wallpapers/DT/"
+25
View File
@@ -0,0 +1,25 @@
## User info
username: user
## Download wallpapers
use_wallpapers: True
## Install Awesome WM
use_awesome_wm: False
## Install native apps
use_native_apps: True
native_apps_list:
- htop
- neofetch
- dmenu
- doublecmd-qt5
- flameshot
## Install flatpak apps
use_flatpak_apps: True
flatpak_apps_list:
- info.mumble.Mumble
- net.ankiweb.Anki