Compare commits
No commits in common. "f9757b897b3cafcae800597783c597484511bd04" and "af408b2869965310721dcfe42598e819c9664e62" have entirely different histories.
f9757b897b
...
af408b2869
@ -4,13 +4,13 @@
|
|||||||
- prepare
|
- prepare
|
||||||
- systemd-boot
|
- systemd-boot
|
||||||
- ubuntu
|
- ubuntu
|
||||||
- desktop
|
- prusa-slicer
|
||||||
- dwm
|
|
||||||
- dev-java
|
- dev-java
|
||||||
- autofs
|
- autofs
|
||||||
- prusa-slicer
|
- dwm
|
||||||
- docker
|
- docker
|
||||||
- laptop
|
- laptop
|
||||||
|
- desktop
|
||||||
- backup
|
- backup
|
||||||
- gaming
|
- gaming
|
||||||
|
|
||||||
@ -18,7 +18,6 @@
|
|||||||
# - dev-flutter
|
# - dev-flutter
|
||||||
# - virtual
|
# - virtual
|
||||||
# - terraform
|
# - terraform
|
||||||
- postinstall
|
|
||||||
vars:
|
vars:
|
||||||
desktop_src_dir: "{{ ansible_user_dir }}/src/desktop"
|
desktop_src_dir: "{{ ansible_user_dir }}/src/desktop"
|
||||||
arch_src_dir: "{{ ansible_user_dir }}/src/arch"
|
arch_src_dir: "{{ ansible_user_dir }}/src/arch"
|
||||||
|
@ -10,9 +10,17 @@
|
|||||||
- grub
|
- grub
|
||||||
- xorg-xinit
|
- xorg-xinit
|
||||||
- polkit-gnome
|
- polkit-gnome
|
||||||
- xdg-desktop-portal-gtk
|
- lightdm
|
||||||
|
- lightdm-gtk-greeter
|
||||||
- helvum
|
- helvum
|
||||||
|
|
||||||
|
- name: "Enable service"
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: lightdm
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
- name: "Enable cron service"
|
- name: "Enable cron service"
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
@ -41,7 +49,7 @@
|
|||||||
- traceroute
|
- traceroute
|
||||||
- vim
|
- vim
|
||||||
|
|
||||||
- name: "[Arch] install terminal packages"
|
- name: install terminal packages [AUR]
|
||||||
shell:
|
shell:
|
||||||
cmd:
|
cmd:
|
||||||
yay -S --needed --noconfirm epson-inkjet-printer-escpr pm-utils
|
yay -S --needed --noconfirm epson-inkjet-printer-escpr pm-utils
|
||||||
@ -80,6 +88,7 @@
|
|||||||
- ttf-fira-code
|
- ttf-fira-code
|
||||||
- ttf-font-awesome
|
- ttf-font-awesome
|
||||||
- ttf-liberation
|
- ttf-liberation
|
||||||
|
- ttf-symbola
|
||||||
- ttf-ubuntu-font-family
|
- ttf-ubuntu-font-family
|
||||||
|
|
||||||
- name: "Enable network manager"
|
- name: "Enable network manager"
|
||||||
@ -95,6 +104,16 @@
|
|||||||
name:
|
name:
|
||||||
- flatpak
|
- 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
|
- name: copy scripts
|
||||||
become: yes
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
@ -103,3 +122,6 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
loop:
|
loop:
|
||||||
- update-grub
|
- update-grub
|
||||||
|
|
||||||
|
- import_tasks: audio.yml
|
||||||
|
- import_tasks: bluetooth.yml
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
- name: "[Arch] install audio"
|
- name: install audio [Arch]
|
||||||
when: ansible_distribution == "Archlinux"
|
|
||||||
become: yes
|
become: yes
|
||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
name:
|
name:
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
- name: "[Arch] install bluetooth"
|
- name: install bluetooth
|
||||||
when: ansible_distribution == "Archlinux"
|
|
||||||
become: yes
|
become: yes
|
||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
name:
|
name:
|
||||||
- blueman
|
- blueman
|
||||||
|
|
||||||
- name: "[All] Enable service"
|
- name: "Enable service"
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: bluetooth
|
name: bluetooth
|
||||||
|
@ -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
|
|
@ -5,14 +5,7 @@
|
|||||||
- import_tasks: arch.yml
|
- import_tasks: arch.yml
|
||||||
when: ansible_distribution == "Archlinux"
|
when: ansible_distribution == "Archlinux"
|
||||||
|
|
||||||
- import_tasks: flatpaks.yml
|
|
||||||
|
|
||||||
- import_tasks: audio.yml
|
|
||||||
|
|
||||||
- import_tasks: bluetooth.yml
|
|
||||||
|
|
||||||
- import_tasks: dotfiles.yml
|
- import_tasks: dotfiles.yml
|
||||||
|
|
||||||
- import_tasks: signal.yml
|
- import_tasks: signal.yml
|
||||||
|
|
||||||
- import_tasks: timekpr.yml
|
- import_tasks: timekpr.yml
|
||||||
|
@ -1,33 +1,32 @@
|
|||||||
- become: yes
|
- become: yes
|
||||||
when: ansible_distribution == "Ubuntu"
|
|
||||||
block:
|
block:
|
||||||
- name: "[Ubuntu] add ppa"
|
- name: add ppa [Ubuntu]
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: ppa:mjasnik/ppa
|
repo: ppa:mjasnik/ppa
|
||||||
|
|
||||||
- name: "[Ubuntu] install timekpr"
|
- name: install timekpr [Ubuntu]
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: latest
|
state: latest
|
||||||
pkg:
|
pkg:
|
||||||
- timekpr-next
|
- timekpr-next
|
||||||
|
|
||||||
- name: "[Arch] install timekpr"
|
- name: install timekpr [Arch]
|
||||||
shell:
|
shell:
|
||||||
cmd:
|
cmd:
|
||||||
yay -S --needed --noconfirm timekpr-next
|
yay -S --needed --noconfirm timekpr-next
|
||||||
when: ansible_distribution == "Archlinux"
|
when: ansible_distribution == "Archlinux"
|
||||||
|
|
||||||
- become: yes
|
- name: configure
|
||||||
block:
|
|
||||||
- name: "[All] configure"
|
|
||||||
template:
|
template:
|
||||||
src: var/lib/timekpr/config/timekpr.USER.conf.j2
|
src: var/lib/timekpr/config/timekpr.USER.conf.j2
|
||||||
dest: /var/lib/timekpr/config/timekpr.{{ansible_user_id}}.conf
|
dest: /var/lib/timekpr/config/timekpr.{{ansible_user_id}}.conf
|
||||||
vars:
|
vars:
|
||||||
user: "{{ ansible_user_id }}"
|
user: "{{ ansible_user_id }}"
|
||||||
|
|
||||||
- name: "[All] Enable service"
|
- name: "Enable service"
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: timekpr
|
name: timekpr
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
- name: "[Ubuntu] install package managers"
|
---
|
||||||
|
- name: install package managers
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
@ -6,7 +7,7 @@
|
|||||||
- aptitude
|
- aptitude
|
||||||
- flatpak
|
- flatpak
|
||||||
|
|
||||||
- name: "[Ubuntu] install terminal packages"
|
- name: install terminal packages
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
@ -25,13 +26,13 @@
|
|||||||
- policykit-1-gnome
|
- policykit-1-gnome
|
||||||
- printer-driver-escpr
|
- printer-driver-escpr
|
||||||
|
|
||||||
- name: "[Ubuntu] install libfuse2 for appimages"
|
- name: install libfuse2 for appimages
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
- libfuse2
|
- libfuse2
|
||||||
|
|
||||||
- name: "[Ubuntu] install gui packages from apt"
|
- name: install gui packages from apt
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
@ -43,6 +44,11 @@
|
|||||||
- flameshot
|
- flameshot
|
||||||
- gsimplecal
|
- gsimplecal
|
||||||
|
|
||||||
|
- name: install the smile emoji picker
|
||||||
|
community.general.flatpak:
|
||||||
|
state: present
|
||||||
|
name: it.mijorus.smile
|
||||||
|
|
||||||
- name: install gui apps
|
- name: install gui apps
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
- name: "[Arch] install java"
|
- name: install java
|
||||||
become: yes
|
become: yes
|
||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
name:
|
name:
|
||||||
- jdk17-openjdk
|
- jdk17-openjdk
|
||||||
|
|
||||||
- name: "[Arch] install IntelliJ"
|
- name: install IntelliJ [AUR]
|
||||||
shell:
|
shell:
|
||||||
cmd:
|
cmd:
|
||||||
yay -S --needed --noconfirm intellij-idea-ultimate-edition
|
yay -S --needed --noconfirm intellij-idea-ultimate-edition
|
||||||
|
|
||||||
- name: "[Arch] Create symbolic link"
|
- name: Create symbolic link
|
||||||
become: yes
|
become: yes
|
||||||
file:
|
file:
|
||||||
src: "/usr/bin/intellij-idea-ultimate-edition"
|
src: "/usr/bin/intellij-idea-ultimate-edition"
|
||||||
|
@ -38,11 +38,6 @@
|
|||||||
make:
|
make:
|
||||||
chdir: "{{ desktop_src_dir }}/dwm"
|
chdir: "{{ desktop_src_dir }}/dwm"
|
||||||
|
|
||||||
- name: ensure that xsessions directory exists
|
|
||||||
file:
|
|
||||||
path: /usr/share/xsessions
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: copy xsession
|
- name: copy xsession
|
||||||
become: yes
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
@ -61,7 +56,6 @@
|
|||||||
dest: /usr/share/xsessions/dwm-gnome.desktop
|
dest: /usr/share/xsessions/dwm-gnome.desktop
|
||||||
|
|
||||||
- name: Create gnome session dir
|
- name: Create gnome session dir
|
||||||
become: yes
|
|
||||||
file:
|
file:
|
||||||
path: /usr/share/gnome-session/sessions
|
path: /usr/share/gnome-session/sessions
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
- name: "[Arch] install lightdm"
|
|
||||||
become: yes
|
|
||||||
community.general.pacman:
|
|
||||||
name:
|
|
||||||
- lightdm
|
|
||||||
- lightdm-gtk-greeter
|
|
@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- import_tasks: ubuntu.yml
|
|
||||||
when: ansible_distribution == "Ubuntu"
|
|
||||||
|
|
||||||
- import_tasks: arch.yml
|
|
||||||
when: ansible_distribution == "Archlinux"
|
|
@ -1,6 +0,0 @@
|
|||||||
- name: "[All] Enable lightdm service"
|
|
||||||
become: yes
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: lightdm
|
|
||||||
state: started
|
|
||||||
enabled: yes
|
|
@ -34,7 +34,7 @@
|
|||||||
command:
|
command:
|
||||||
chdir: "{{ arch_src_dir }}/yay"
|
chdir: "{{ arch_src_dir }}/yay"
|
||||||
cmd:
|
cmd:
|
||||||
makepkg -si --needed --noconfirm
|
makepkg -si --needed
|
||||||
|
|
||||||
- name: update yay cache
|
- name: update yay cache
|
||||||
shell:
|
shell:
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
- include_tasks: install-program.yml
|
- include_tasks: install-program.yml
|
||||||
|
|
||||||
- include_tasks: config-repository.yml
|
- include_tasks: config-repository.yml
|
||||||
when: ansible_distribution == "Ubuntu"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user