Compare commits

..

No commits in common. "f9757b897b3cafcae800597783c597484511bd04" and "af408b2869965310721dcfe42598e819c9664e62" have entirely different histories.

15 changed files with 55 additions and 77 deletions

View File

@ -4,13 +4,13 @@
- prepare
- systemd-boot
- ubuntu
- desktop
- dwm
- prusa-slicer
- dev-java
- autofs
- prusa-slicer
- dwm
- docker
- laptop
- desktop
- backup
- gaming
@ -18,7 +18,6 @@
# - dev-flutter
# - virtual
# - terraform
- postinstall
vars:
desktop_src_dir: "{{ ansible_user_dir }}/src/desktop"
arch_src_dir: "{{ ansible_user_dir }}/src/arch"

View File

@ -10,9 +10,17 @@
- grub
- xorg-xinit
- polkit-gnome
- xdg-desktop-portal-gtk
- lightdm
- lightdm-gtk-greeter
- helvum
- name: "Enable service"
become: yes
ansible.builtin.systemd:
name: lightdm
state: started
enabled: yes
- name: "Enable cron service"
become: yes
ansible.builtin.systemd:
@ -41,7 +49,7 @@
- traceroute
- vim
- name: "[Arch] install terminal packages"
- name: install terminal packages [AUR]
shell:
cmd:
yay -S --needed --noconfirm epson-inkjet-printer-escpr pm-utils
@ -80,6 +88,7 @@
- ttf-fira-code
- ttf-font-awesome
- ttf-liberation
- ttf-symbola
- ttf-ubuntu-font-family
- name: "Enable network manager"
@ -95,6 +104,16 @@
name:
- flatpak
- name: install the smile emoji picker
community.general.flatpak:
state: present
name: it.mijorus.smile
- name: install bottles
community.general.flatpak:
state: present
name: com.usebottles.bottles
- name: copy scripts
become: yes
copy:
@ -103,3 +122,6 @@
mode: '0755'
loop:
- update-grub
- import_tasks: audio.yml
- import_tasks: bluetooth.yml

View File

@ -1,5 +1,4 @@
- name: "[Arch] install audio"
when: ansible_distribution == "Archlinux"
- name: install audio [Arch]
become: yes
community.general.pacman:
name:

View File

@ -1,11 +1,10 @@
- name: "[Arch] install bluetooth"
when: ansible_distribution == "Archlinux"
- name: install bluetooth
become: yes
community.general.pacman:
name:
- blueman
- name: "[All] Enable service"
- name: "Enable service"
become: yes
ansible.builtin.systemd:
name: bluetooth

View File

@ -1,14 +0,0 @@
- name: "[All] install the smile emoji picker"
community.general.flatpak:
state: present
name: it.mijorus.smile
- name: "[All] install bottles"
community.general.flatpak:
state: present
name: com.usebottles.bottles
- name: "[All] install Element"
community.general.flatpak:
state: present
name: im.riot.Riot

View File

@ -5,14 +5,7 @@
- import_tasks: arch.yml
when: ansible_distribution == "Archlinux"
- import_tasks: flatpaks.yml
- import_tasks: audio.yml
- import_tasks: bluetooth.yml
- import_tasks: dotfiles.yml
- import_tasks: signal.yml
- import_tasks: timekpr.yml

View File

@ -1,33 +1,32 @@
- become: yes
when: ansible_distribution == "Ubuntu"
block:
- name: "[Ubuntu] add ppa"
- name: add ppa [Ubuntu]
when: ansible_distribution == "Ubuntu"
apt_repository:
repo: ppa:mjasnik/ppa
- name: "[Ubuntu] install timekpr"
- name: install timekpr [Ubuntu]
when: ansible_distribution == "Ubuntu"
apt:
update_cache: yes
state: latest
pkg:
- timekpr-next
- name: "[Arch] install timekpr"
- name: install timekpr [Arch]
shell:
cmd:
yay -S --needed --noconfirm timekpr-next
when: ansible_distribution == "Archlinux"
- become: yes
block:
- name: "[All] configure"
- name: configure
template:
src: var/lib/timekpr/config/timekpr.USER.conf.j2
dest: /var/lib/timekpr/config/timekpr.{{ansible_user_id}}.conf
vars:
user: "{{ ansible_user_id }}"
- name: "[All] Enable service"
- name: "Enable service"
become: yes
ansible.builtin.systemd:
name: timekpr

View File

@ -1,4 +1,5 @@
- name: "[Ubuntu] install package managers"
---
- name: install package managers
become: yes
apt:
update_cache: yes
@ -6,7 +7,7 @@
- aptitude
- flatpak
- name: "[Ubuntu] install terminal packages"
- name: install terminal packages
become: yes
apt:
pkg:
@ -25,13 +26,13 @@
- policykit-1-gnome
- printer-driver-escpr
- name: "[Ubuntu] install libfuse2 for appimages"
- name: install libfuse2 for appimages
become: yes
apt:
pkg:
- libfuse2
- name: "[Ubuntu] install gui packages from apt"
- name: install gui packages from apt
become: yes
apt:
pkg:
@ -43,6 +44,11 @@
- flameshot
- gsimplecal
- name: install the smile emoji picker
community.general.flatpak:
state: present
name: it.mijorus.smile
- name: install gui apps
become: yes
apt:

View File

@ -1,15 +1,15 @@
- name: "[Arch] install java"
- name: install java
become: yes
community.general.pacman:
name:
- jdk17-openjdk
- name: "[Arch] install IntelliJ"
- name: install IntelliJ [AUR]
shell:
cmd:
yay -S --needed --noconfirm intellij-idea-ultimate-edition
- name: "[Arch] Create symbolic link"
- name: Create symbolic link
become: yes
file:
src: "/usr/bin/intellij-idea-ultimate-edition"

View File

@ -38,11 +38,6 @@
make:
chdir: "{{ desktop_src_dir }}/dwm"
- name: ensure that xsessions directory exists
file:
path: /usr/share/xsessions
state: directory
- name: copy xsession
become: yes
copy:
@ -61,7 +56,6 @@
dest: /usr/share/xsessions/dwm-gnome.desktop
- name: Create gnome session dir
become: yes
file:
path: /usr/share/gnome-session/sessions
state: directory

View File

@ -1,6 +0,0 @@
- name: "[Arch] install lightdm"
become: yes
community.general.pacman:
name:
- lightdm
- lightdm-gtk-greeter

View File

@ -1,6 +0,0 @@
---
- import_tasks: ubuntu.yml
when: ansible_distribution == "Ubuntu"
- import_tasks: arch.yml
when: ansible_distribution == "Archlinux"

View File

@ -1,6 +0,0 @@
- name: "[All] Enable lightdm service"
become: yes
ansible.builtin.systemd:
name: lightdm
state: started
enabled: yes

View File

@ -34,7 +34,7 @@
command:
chdir: "{{ arch_src_dir }}/yay"
cmd:
makepkg -si --needed --noconfirm
makepkg -si --needed
- name: update yay cache
shell:

View File

@ -1,4 +1,3 @@
- include_tasks: install-program.yml
- include_tasks: config-repository.yml
when: ansible_distribution == "Ubuntu"