Merge remote-tracking branch 'origin/yamllint-update'
This commit is contained in:
commit
4989f3d42e
27 changed files with 403 additions and 400 deletions
|
@ -1,3 +1,3 @@
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
yamllint==1.18.0
|
yamllint==1.22.1
|
||||||
ansible-lint==4.2.0
|
ansible-lint==4.2.0
|
||||||
|
|
|
@ -1,41 +1,41 @@
|
||||||
- name: "Install Virtualbox dependencies"
|
- name: Install Virtualbox dependencies
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'virtualbox-host-modules-arch'
|
- virtualbox-host-modules-arch
|
||||||
|
|
||||||
- name: "Install general applications"
|
- name: Install general applications
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'bleachbit'
|
- bleachbit
|
||||||
- 'clamtk'
|
- clamtk
|
||||||
- 'filezilla'
|
- filezilla
|
||||||
- 'firefox'
|
- firefox
|
||||||
- 'gimp'
|
- gimp
|
||||||
- 'ghostwriter'
|
- ghostwriter
|
||||||
- 'glogg'
|
- glogg
|
||||||
- 'gparted'
|
- gparted
|
||||||
- 'hplip'
|
- hplip
|
||||||
- 'inkscape'
|
- inkscape
|
||||||
- 'kdenlive'
|
- kdenlive
|
||||||
- 'kodi'
|
- kodi
|
||||||
- libreoffice-fresh
|
- libreoffice-fresh
|
||||||
- libreoffice-fresh-en-gb
|
- libreoffice-fresh-en-gb
|
||||||
- 'minecraft'
|
- minecraft
|
||||||
- 'obs-studio'
|
- obs-studio
|
||||||
- 'slack-desktop'
|
- slack-desktop
|
||||||
- 'steam'
|
- steam
|
||||||
- 'thunderbird'
|
- thunderbird
|
||||||
- 'tor-browser'
|
- tor-browser
|
||||||
- 'virtualbox'
|
- virtualbox
|
||||||
- 'vlc'
|
- vlc
|
||||||
- 'xsane'
|
- xsane
|
||||||
|
|
|
@ -1,43 +1,43 @@
|
||||||
- name: "Install autostart-related packages"
|
- name: Install autostart-related packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'dex'
|
- dex
|
||||||
|
|
||||||
- name: "Create autostart directory"
|
- name: Create autostart directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/autostart'
|
path: "{{ home }}/.config/autostart"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Autostart services"
|
- name: Autostart services
|
||||||
file:
|
file:
|
||||||
src: "/etc/xdg/autostart/{{ item }}.desktop"
|
src: /etc/xdg/autostart/{{ item }}.desktop
|
||||||
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
loop:
|
loop:
|
||||||
- 'blueman'
|
- blueman
|
||||||
- 'pulseaudio'
|
- pulseaudio
|
||||||
- 'nm-applet'
|
- nm-applet
|
||||||
- 'lxqt-policykit-agent'
|
- lxqt-policykit-agent
|
||||||
- 'solaar'
|
- solaar
|
||||||
|
|
||||||
- name: "Autostart applications"
|
- name: Autostart applications
|
||||||
file:
|
file:
|
||||||
src: "/usr/share/applications/{{ item }}.desktop"
|
src: /usr/share/applications/{{ item }}.desktop
|
||||||
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
loop:
|
loop:
|
||||||
- 'flameshot'
|
- flameshot
|
||||||
- 'libinput-gestures'
|
- libinput-gestures
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
- name: "Install Grub"
|
- name: Install Grub
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'grub-customizer'
|
- grub-customizer
|
||||||
- 'grub2-theme-archlinux'
|
- grub2-theme-archlinux
|
||||||
- 'lightdm'
|
- lightdm
|
||||||
- 'lightdm-gtk-greeter'
|
- lightdm-gtk-greeter
|
||||||
- 'os-prober'
|
- os-prober
|
||||||
|
|
||||||
- name: "Enable lightdm"
|
- name: Enable lightdm
|
||||||
systemd:
|
systemd:
|
||||||
name: "lightdm"
|
name: lightdm
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: "Disable PC Speaker"
|
- name: Disable PC Speaker
|
||||||
modprobe:
|
modprobe:
|
||||||
name: pcspkr
|
name: pcspkr
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
- name: Enable Slick greeter for lightdm
|
- name: Enable Slick greeter for lightdm
|
||||||
ini_file:
|
ini_file:
|
||||||
path: /etc/lightdm/lightdm.conf
|
path: /etc/lightdm/lightdm.conf
|
||||||
section: "Seat:*"
|
section: Seat:*
|
||||||
option: greeter-session
|
option: greeter-session
|
||||||
value: lightdm-gtk-greeter
|
value: lightdm-gtk-greeter
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -34,39 +34,39 @@
|
||||||
- name: Set LightDM settings
|
- name: Set LightDM settings
|
||||||
ini_file:
|
ini_file:
|
||||||
path: /etc/lightdm/lightdm-gtk-greeter.conf
|
path: /etc/lightdm/lightdm-gtk-greeter.conf
|
||||||
section: "greeter"
|
section: greeter
|
||||||
option: "{{ item.key }}"
|
option: "{{ item.key }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.key }}"
|
label: "{{ item.key }}"
|
||||||
loop:
|
loop:
|
||||||
- {key: "background", value: "/usr/share/backgrounds/gnome/adwaita-night.jpg"}
|
- {key: background, value: /usr/share/backgrounds/gnome/adwaita-night.jpg}
|
||||||
- {key: "theme-name", value: "Matcha-dark-aliz"}
|
- {key: theme-name, value: Matcha-dark-aliz}
|
||||||
- {key: "icon-theme-name", value: "Numix-Square"}
|
- {key: icon-theme-name, value: Numix-Square}
|
||||||
- {key: "hide-user-image", value: "true"}
|
- {key: hide-user-image, value: "true"}
|
||||||
- {key: "clock-format", value: "%H:%M:%S"}
|
- {key: clock-format, value: "%H:%M:%S"}
|
||||||
|
|
||||||
- name: "Install file system helpers"
|
- name: Install file system helpers
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- dosfstools
|
- dosfstools
|
||||||
- exfat-utils
|
- exfat-utils
|
||||||
- hfsprogs
|
- hfsprogs
|
||||||
- ntfs-3g
|
- ntfs-3g
|
||||||
|
|
||||||
- name: "Install Microcode"
|
- name: Install Microcode
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'amd-ucode'
|
- amd-ucode
|
||||||
- 'intel-ucode'
|
- intel-ucode
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
- name: "Remove aur_builder user"
|
- name: Remove aur_builder user
|
||||||
user:
|
user:
|
||||||
name: aur_builder
|
name: aur_builder
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
- name: "Install DabApps packages"
|
- name: Install DabApps packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'heroku-cli'
|
- heroku-cli
|
||||||
- 'mercurial'
|
- mercurial
|
||||||
- 'ngrok'
|
- ngrok
|
||||||
- 'python-aws-mfa'
|
- python-aws-mfa
|
||||||
|
|
||||||
- name: "Clone DabApps Dotfiles"
|
- name: Clone DabApps Dotfiles
|
||||||
git:
|
git:
|
||||||
repo: git@github.com:dabapps/dotfiles
|
repo: git@github.com:dabapps/dotfiles
|
||||||
dest: "{{ home }}/Projects/dotfiles"
|
dest: "{{ home }}/Projects/dotfiles"
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
- name: "Install DabApps EditorConfig"
|
- name: Install DabApps EditorConfig
|
||||||
file:
|
file:
|
||||||
src: "{{ home }}/Projects/dotfiles/.editorconfig"
|
src: "{{ home }}/Projects/dotfiles/.editorconfig"
|
||||||
dest: "{{ home }}/Projects/.editorconfig"
|
dest: "{{ home }}/Projects/.editorconfig"
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
- name: Enable strip mercurial extension
|
- name: Enable strip mercurial extension
|
||||||
ini_file:
|
ini_file:
|
||||||
path: "{{ home }}/.hgrc"
|
path: "{{ home }}/.hgrc"
|
||||||
section: "extensions"
|
section: extensions
|
||||||
option: strip
|
option: strip
|
||||||
value: ""
|
value: ""
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
- name: Enable strip mercurial extension
|
- name: Enable strip mercurial extension
|
||||||
ini_file:
|
ini_file:
|
||||||
path: "{{ home }}/.hgrc"
|
path: "{{ home }}/.hgrc"
|
||||||
section: "ui"
|
section: ui
|
||||||
option: ignore
|
option: ignore
|
||||||
value: '{{ home }}/.config/.gitignore'
|
value: "{{ home }}/.config/.gitignore"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
|
@ -1,45 +1,45 @@
|
||||||
- name: "Install LaTex tooling"
|
- name: Install LaTex tooling
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'biber'
|
- biber
|
||||||
- 'pandoc-bin'
|
- pandoc-bin
|
||||||
- 'texlive-most'
|
- texlive-most
|
||||||
|
|
||||||
- name: "Install dev packages"
|
- name: Install dev packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'arduino'
|
- arduino
|
||||||
- 'arduino-cli'
|
- arduino-cli
|
||||||
- 'arduino-builder'
|
- arduino-builder
|
||||||
- 'aws-cli'
|
- aws-cli
|
||||||
- 'docker'
|
- docker
|
||||||
- 'docker-compose'
|
- docker-compose
|
||||||
- 'firefox-developer-edition'
|
- firefox-developer-edition
|
||||||
- 'hugo'
|
- hugo
|
||||||
- 'poetry'
|
- poetry
|
||||||
- 'postgresql'
|
- postgresql
|
||||||
- 'postman-bin'
|
- postman-bin
|
||||||
- 'sublime-text'
|
- sublime-text
|
||||||
- 'tig'
|
- tig
|
||||||
|
|
||||||
- name: "Create global .gitignore"
|
- name: Create global .gitignore
|
||||||
copy:
|
copy:
|
||||||
src: './files/gitignore_global'
|
src: ./files/gitignore_global
|
||||||
dest: '{{ home }}/.config/.gitignore'
|
dest: "{{ home }}/.config/.gitignore"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
- name: "Install git config"
|
- name: Install git config
|
||||||
template:
|
template:
|
||||||
src: ./files/gitconfig.conf
|
src: ./files/gitconfig.conf
|
||||||
dest: "{{ home }}/.gitconfig"
|
dest: "{{ home }}/.gitconfig"
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
- name: "Install font packages"
|
- name: Install font packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'all-repository-fonts'
|
- all-repository-fonts
|
||||||
- 'fonts-meta-extended-lt'
|
- fonts-meta-extended-lt
|
||||||
- 'otf-fira-code'
|
- otf-fira-code
|
||||||
- 'otf-font-awesome'
|
- otf-font-awesome
|
||||||
- 'ttf-fira-code'
|
- ttf-fira-code
|
||||||
- 'ttf-font-awesome'
|
- ttf-font-awesome
|
||||||
- 'ttf-ms-fonts'
|
- ttf-ms-fonts
|
||||||
- 'ttf-wps-fonts'
|
- ttf-wps-fonts
|
||||||
|
|
||||||
- name: Install font configurations
|
- name: Install font configurations
|
||||||
file:
|
file:
|
||||||
src: "/etc/fonts/conf.avail/{{ item }}"
|
src: /etc/fonts/conf.avail/{{ item }}
|
||||||
dest: "/etc/fonts/conf.d/{{ item }}"
|
dest: /etc/fonts/conf.d/{{ item }}
|
||||||
mode: 0644
|
mode: 0644
|
||||||
state: link
|
state: link
|
||||||
loop:
|
loop:
|
||||||
- '11-lcdfilter-default.conf'
|
- 11-lcdfilter-default.conf
|
||||||
- '10-sub-pixel-rgb.conf'
|
- 10-sub-pixel-rgb.conf
|
||||||
- '30-infinality-aliases.conf'
|
- 30-infinality-aliases.conf
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
- name: "Add nautilus file templates"
|
- name: Add nautilus file templates
|
||||||
copy:
|
copy:
|
||||||
src: ./files/Templates
|
src: ./files/Templates
|
||||||
dest: "{{ home }}"
|
dest: "{{ home }}"
|
||||||
|
@ -7,13 +7,13 @@
|
||||||
group: users
|
group: users
|
||||||
directory_mode: 0755
|
directory_mode: 0755
|
||||||
|
|
||||||
- name: "Install Gnome packages"
|
- name: Install Gnome packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- baobab
|
- baobab
|
||||||
- cheese
|
- cheese
|
||||||
|
@ -30,67 +30,67 @@
|
||||||
- gnome-usage
|
- gnome-usage
|
||||||
- nautilus
|
- nautilus
|
||||||
|
|
||||||
- name: "Install GTK tools"
|
- name: Install GTK tools
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'gtk-engine-murrine'
|
- gtk-engine-murrine
|
||||||
- 'lxappearance'
|
- lxappearance
|
||||||
- 'numix-gtk-theme-git'
|
- numix-gtk-theme-git
|
||||||
- 'matcha-gtk-theme'
|
- matcha-gtk-theme
|
||||||
- 'numix-square-icon-theme'
|
- numix-square-icon-theme
|
||||||
- 'qt5-styleplugins'
|
- qt5-styleplugins
|
||||||
|
|
||||||
- name: Set GTK theme
|
- name: Set GTK theme
|
||||||
dconf:
|
dconf:
|
||||||
key: "/org/gnome/desktop/interface/gtk-theme"
|
key: /org/gnome/desktop/interface/gtk-theme
|
||||||
value: '"Matcha-dark-aliz"'
|
value: Matcha-dark-aliz
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
- name: Set GTK icon theme
|
- name: Set GTK icon theme
|
||||||
dconf:
|
dconf:
|
||||||
key: "/org/gnome/desktop/interface/icon-theme"
|
key: /org/gnome/desktop/interface/icon-theme
|
||||||
value: '"Numix-Square"'
|
value: Numix-Square
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
- name: "Install GTK2 config"
|
- name: Install GTK2 config
|
||||||
copy:
|
copy:
|
||||||
src: './files/gtkrc-2.0'
|
src: ./files/gtkrc-2.0
|
||||||
dest: '{{ home }}/.gtkrc-2.0'
|
dest: "{{ home }}/.gtkrc-2.0"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
- name: "Create GTK3 config directory"
|
- name: Create GTK3 config directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/gtk-3.0/'
|
path: "{{ home }}/.config/gtk-3.0/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
|
||||||
- name: "Install GTK3 config"
|
- name: Install GTK3 config
|
||||||
copy:
|
copy:
|
||||||
src: './files/gtk3-settings.ini'
|
src: ./files/gtk3-settings.ini
|
||||||
dest: '{{ home }}/.config/gtk-3.0/settings.ini'
|
dest: "{{ home }}/.config/gtk-3.0/settings.ini"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
- name: "Autostart gnome-settings services"
|
- name: Autostart gnome-settings services
|
||||||
file:
|
file:
|
||||||
src: "/etc/xdg/autostart/{{ item }}.desktop"
|
src: /etc/xdg/autostart/{{ item }}.desktop
|
||||||
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
loop:
|
loop:
|
||||||
- 'org.gnome.SettingsDaemon.XSettings'
|
- org.gnome.SettingsDaemon.XSettings
|
||||||
- 'org.gnome.SettingsDaemon.DiskUtilityNotify'
|
- org.gnome.SettingsDaemon.DiskUtilityNotify
|
||||||
- 'org.gnome.SettingsDaemon.Keyboard'
|
- org.gnome.SettingsDaemon.Keyboard
|
||||||
- 'gsettings-data-convert'
|
- gsettings-data-convert
|
||||||
|
|
76
tasks/i3.yml
76
tasks/i3.yml
|
@ -1,29 +1,29 @@
|
||||||
- name: "Install i3 packages"
|
- name: Install i3 packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'arandr'
|
- arandr
|
||||||
- 'betterlockscreen'
|
- betterlockscreen
|
||||||
- 'brightnessctl'
|
- brightnessctl
|
||||||
- 'picom'
|
- picom
|
||||||
- 'dmenu'
|
- dmenu
|
||||||
- 'dunst'
|
- dunst
|
||||||
- 'feh'
|
- feh
|
||||||
- 'flameshot'
|
- flameshot
|
||||||
- 'i3-gaps'
|
- i3-gaps
|
||||||
- 'i3lock-color'
|
- i3lock-color
|
||||||
- 'lxrandr'
|
- lxrandr
|
||||||
- 'lxqt-policykit'
|
- lxqt-policykit
|
||||||
- 'aur/polybar'
|
- aur/polybar
|
||||||
- 'redshift'
|
- redshift
|
||||||
- 'rofi'
|
- rofi
|
||||||
- 'rofi-calc'
|
- rofi-calc
|
||||||
- 'tbg'
|
- tbg
|
||||||
- 'xdotool'
|
- xdotool
|
||||||
- xorg
|
- xorg
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,42 +31,42 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
polybar_scripts: "{{ home }}/.config/polybar/polybar-scripts/polybar-scripts"
|
polybar_scripts: "{{ home }}/.config/polybar/polybar-scripts/polybar-scripts"
|
||||||
i3_config_files:
|
i3_config_files:
|
||||||
- {src: "i3.conf", dest: "{{ home }}/.config/i3/config"}
|
- {src: i3.conf, dest: "{{ home }}/.config/i3/config"}
|
||||||
- {src: "i3status.conf", dest: "{{ home }}/.config/i3status/config"}
|
- {src: i3status.conf, dest: "{{ home }}/.config/i3status/config"}
|
||||||
- {src: "picom.conf", dest: "{{ home }}/.config/picom.conf"}
|
- {src: picom.conf, dest: "{{ home }}/.config/picom.conf"}
|
||||||
- {src: "dunst.conf", dest: "{{ home }}/.config/dunst/dunstrc"}
|
- {src: dunst.conf, dest: "{{ home }}/.config/dunst/dunstrc"}
|
||||||
- {src: "polybar.ini", dest: "{{ home }}/.config/polybar/config"}
|
- {src: polybar.ini, dest: "{{ home }}/.config/polybar/config"}
|
||||||
|
|
||||||
- name: "Create i3 config file directories"
|
- name: Create i3 config file directories
|
||||||
loop: "{{ i3_config_files }}"
|
loop: "{{ i3_config_files }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.src }}"
|
label: "{{ item.src }}"
|
||||||
file:
|
file:
|
||||||
path: '{{ item.dest | dirname }}'
|
path: "{{ item.dest | dirname }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "i3 config files"
|
- name: i3 config files
|
||||||
loop: "{{ i3_config_files }}"
|
loop: "{{ i3_config_files }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.src }}"
|
label: "{{ item.src }}"
|
||||||
template:
|
template:
|
||||||
src: './files/{{ item.src }}'
|
src: ./files/{{ item.src }}
|
||||||
dest: '{{ item.dest }}'
|
dest: "{{ item.dest }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
|
|
||||||
- name: "Create polybar config directory"
|
- name: Create polybar config directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/polybar/'
|
path: "{{ home }}/.config/polybar/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
|
||||||
- name: "Polybar scripts"
|
- name: Polybar scripts
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/x70b1/polybar-scripts
|
repo: https://github.com/x70b1/polybar-scripts
|
||||||
dest: "{{ home }}/.config/polybar/polybar-scripts"
|
dest: "{{ home }}/.config/polybar/polybar-scripts"
|
||||||
|
@ -83,17 +83,17 @@
|
||||||
group: users
|
group: users
|
||||||
|
|
||||||
|
|
||||||
- name: "Create rofi config directory"
|
- name: Create rofi config directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/rofi/'
|
path: "{{ home }}/.config/rofi/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Create rofi config"
|
- name: Create rofi config
|
||||||
copy:
|
copy:
|
||||||
src: './files/rofi.conf'
|
src: ./files/rofi.conf
|
||||||
dest: '{{ home }}/.config/rofi/config'
|
dest: "{{ home }}/.config/rofi/config"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
- name: "Install input packages"
|
- name: Install input packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'gpointing-device-settings'
|
- gpointing-device-settings
|
||||||
- 'ibus'
|
- ibus
|
||||||
- 'ibus-uniemoji'
|
- ibus-uniemoji
|
||||||
- 'libinput'
|
- libinput
|
||||||
- 'libinput-gestures'
|
- libinput-gestures
|
||||||
- 'solaar'
|
- solaar
|
||||||
- 'xorg-xev'
|
- xorg-xev
|
||||||
|
|
||||||
- name: Install mouse config
|
- name: Install mouse config
|
||||||
copy:
|
copy:
|
||||||
|
@ -35,17 +35,17 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
- name: "Create uniemoji config directory"
|
- name: Create uniemoji config directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/uniemoji/'
|
path: "{{ home }}/.config/uniemoji/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Create uniemoji config"
|
- name: Create uniemoji config
|
||||||
copy:
|
copy:
|
||||||
src: './files/uniemoji.json'
|
src: ./files/uniemoji.json
|
||||||
dest: '{{ home }}/.config/uniemoji/custom.json'
|
dest: "{{ home }}/.config/uniemoji/custom.json"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
- name: "Install intersect packages"
|
- name: Install intersect packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'calibre'
|
- calibre
|
||||||
- 'deluge'
|
- deluge
|
||||||
- 'feedreader'
|
- feedreader
|
||||||
- 'nextcloud-client'
|
- nextcloud-client
|
||||||
- "quassel-client"
|
- quassel-client
|
||||||
- terraform
|
- terraform
|
||||||
- terraform-lsp-bin
|
- terraform-lsp-bin
|
||||||
- 'turtl'
|
- turtl
|
||||||
|
|
||||||
|
|
||||||
- name: Create dotfiles directory
|
- name: Create dotfiles directory
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
- name: "Install Javascript packages"
|
- name: Install Javascript packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'nodejs'
|
- nodejs
|
||||||
- 'nvm'
|
- nvm
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
- name: "Install macOS packages"
|
- name: Install macOS packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- mbpfan-git
|
- mbpfan-git
|
||||||
- bcwc-pcie-git
|
- bcwc-pcie-git
|
||||||
|
@ -19,5 +19,5 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/systemd/logind.conf
|
path: /etc/systemd/logind.conf
|
||||||
state: present
|
state: present
|
||||||
regexp: '^HandlePowerKey='
|
regexp: ^HandlePowerKey=
|
||||||
line: 'HandlePowerKey=ignore'
|
line: HandlePowerKey=ignore
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
- name: "Install Spotify"
|
- name: Install Spotify
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'ffmpeg-compat-57'
|
- ffmpeg-compat-57
|
||||||
- 'spotify'
|
- spotify
|
||||||
|
|
||||||
- name: "Install media-related packages"
|
- name: Install media-related packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'bcm20702a1-firmware'
|
- bcm20702a1-firmware
|
||||||
- 'bluez-firmware'
|
- bluez-firmware
|
||||||
- 'bluez-utils-compat'
|
- bluez-utils-compat
|
||||||
- 'blueman'
|
- blueman
|
||||||
- 'handbrake'
|
- handbrake
|
||||||
|
|
||||||
- name: "Install pulseaudio"
|
- name: Install pulseaudio
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- alsa-utils
|
- alsa-utils
|
||||||
- pavucontrol
|
- pavucontrol
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
- name: "Install networking tools"
|
- name: Install networking tools
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'bind-tools'
|
- bind-tools
|
||||||
- 'gnu-netcat'
|
- gnu-netcat
|
||||||
- 'nmap'
|
- nmap
|
||||||
|
|
||||||
- name: "Install NetworkManager and associated tools"
|
- name: Install NetworkManager and associated tools
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'networkmanager'
|
- networkmanager
|
||||||
- 'network-manager-applet'
|
- network-manager-applet
|
||||||
|
|
||||||
- name: "Enable NetworkManger"
|
- name: Enable NetworkManger
|
||||||
systemd:
|
systemd:
|
||||||
name: "NetworkManager"
|
name: NetworkManager
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
- name: "Install NTP"
|
- name: Install NTP
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- ntp
|
- ntp
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
|
|
||||||
- name: Enable NTP service
|
- name: Enable NTP service
|
||||||
systemd:
|
systemd:
|
||||||
name: "ntpd"
|
name: ntpd
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
- name: Define keys for pacman
|
- name: Define keys for pacman
|
||||||
set_fact:
|
set_fact:
|
||||||
keys:
|
keys:
|
||||||
- '1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A' # Sublime Text
|
- 1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A # Sublime Text
|
||||||
- '9D5F1C051D146843CDA4858BDE64825E7CBC0D51' # ArchStrike
|
- 9D5F1C051D146843CDA4858BDE64825E7CBC0D51 # ArchStrike
|
||||||
|
|
||||||
- name: Install pacman config
|
- name: Install pacman config
|
||||||
template:
|
template:
|
||||||
|
@ -10,22 +10,22 @@
|
||||||
dest: /etc/pacman.conf
|
dest: /etc/pacman.conf
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: "Add keys to pacman"
|
- name: Add keys to pacman
|
||||||
shell: "pacman-key -r {{ item }}"
|
shell: pacman-key -r {{ item }}
|
||||||
loop: "{{ keys }}"
|
loop: "{{ keys }}"
|
||||||
|
|
||||||
- name: "Sign keys in pacman"
|
- name: Sign keys in pacman
|
||||||
shell: "pacman-key --lsign-key {{ item }}"
|
shell: pacman-key --lsign-key {{ item }}
|
||||||
loop: "{{ keys }}"
|
loop: "{{ keys }}"
|
||||||
|
|
||||||
- name: "Add keys to local keyring"
|
- name: Add keys to local keyring
|
||||||
shell: "gpg --recv-keys {{ item }}"
|
shell: gpg --recv-keys {{ item }}
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
loop: "{{ keys }}"
|
loop: "{{ keys }}"
|
||||||
|
|
||||||
- name: "Add tor browser key"
|
- name: Add tor browser key
|
||||||
shell: "gpg --auto-key-locate nodefault,wkd --locate-keys torbrowser@torproject.org"
|
shell: gpg --auto-key-locate nodefault,wkd --locate-keys torbrowser@torproject.org
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
|
@ -39,59 +39,59 @@
|
||||||
- name: Allow aur_builder user to run pacman as root
|
- name: Allow aur_builder user to run pacman as root
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/sudoers.d/11-install-aur_builder
|
path: /etc/sudoers.d/11-install-aur_builder
|
||||||
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
|
line: "aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman"
|
||||||
create: true
|
create: true
|
||||||
validate: 'visudo -cf %s'
|
validate: visudo -cf %s
|
||||||
|
|
||||||
- name: "Get installed packages"
|
- name: Get installed packages
|
||||||
shell: "pacman -Qq"
|
shell: pacman -Qq
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
register: installed_packages
|
register: installed_packages
|
||||||
|
|
||||||
|
|
||||||
- name: "Install yay"
|
- name: Install yay
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: yay
|
name: yay
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
|
|
||||||
- name: "Install additional repo keyrings"
|
- name: Install additional repo keyrings
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'archstrike-keyring'
|
- archstrike-keyring
|
||||||
|
|
||||||
- name: "Install ccache"
|
- name: Install ccache
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: ccache
|
name: ccache
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
|
|
||||||
- name: "Install makepkg tools"
|
- name: Install makepkg tools
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- pbzip2
|
- pbzip2
|
||||||
- zstd
|
- zstd
|
||||||
|
|
||||||
- name: "Install makepkg config"
|
- name: Install makepkg config
|
||||||
template:
|
template:
|
||||||
src: ./files/makepkg.conf
|
src: ./files/makepkg.conf
|
||||||
dest: "/etc/makepkg.conf"
|
dest: /etc/makepkg.conf
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: "Install Reflector"
|
- name: Install Reflector
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: reflector
|
name: reflector
|
||||||
|
@ -108,5 +108,5 @@
|
||||||
|
|
||||||
- name: Enable Reflector services
|
- name: Enable Reflector services
|
||||||
systemd:
|
systemd:
|
||||||
name: "reflector"
|
name: reflector
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
- name: "Install power-saving stuff"
|
- name: Install power-saving stuff
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'acpi'
|
- acpi
|
||||||
- ethtool
|
- ethtool
|
||||||
- nbfc
|
- nbfc
|
||||||
- 'powertop'
|
- powertop
|
||||||
- 'psensor'
|
- psensor
|
||||||
- smartmontools
|
- smartmontools
|
||||||
- 'sysstat'
|
- sysstat
|
||||||
- tlp
|
- tlp
|
||||||
- xfce4-power-manager
|
- xfce4-power-manager
|
||||||
|
|
||||||
- name: Enable TLP services
|
- name: Enable TLP services
|
||||||
systemd:
|
systemd:
|
||||||
name: "tlp"
|
name: tlp
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: Enable NBFC
|
- name: Enable NBFC
|
||||||
|
@ -33,9 +33,9 @@
|
||||||
dest: /etc/default/tlp
|
dest: /etc/default/tlp
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: "Create XFCE4 power manager config directory"
|
- name: Create XFCE4 power manager config directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/xfce4/xfconf/xfce-perchannel-xml'
|
path: "{{ home }}/.config/xfce4/xfconf/xfce-perchannel-xml"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
- name: "Install python packages"
|
- name: Install python packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'pyenv'
|
- pyenv
|
||||||
- 'python-pip'
|
- python-pip
|
||||||
- 'python-virtualenv'
|
- python-virtualenv
|
||||||
- 'python2-pip'
|
- python2-pip
|
||||||
- 'python2-virtualenv'
|
- python2-virtualenv
|
||||||
|
|
||||||
- name: Create pyenv directory
|
- name: Create pyenv directory
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: '/opt/pyenv'
|
path: /opt/pyenv
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
group: users
|
group: users
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
- name: "Install security-related packages"
|
- name: Install security-related packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'enpass-bin'
|
- enpass-bin
|
||||||
- 'qomui'
|
- qomui
|
||||||
- 'wireguard-tools'
|
- wireguard-tools
|
||||||
|
|
||||||
- name: Create .ssh directory
|
- name: Create .ssh directory
|
||||||
file:
|
file:
|
||||||
|
|
105
tasks/shell.yml
105
tasks/shell.yml
|
@ -1,50 +1,49 @@
|
||||||
- name: "Install shell packages"
|
- name: Install shell packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'advanced-ssh-config'
|
- advanced-ssh-config
|
||||||
- 'alacritty'
|
- alacritty
|
||||||
- arch-install-scripts
|
- arch-install-scripts
|
||||||
- 'bat'
|
- bat
|
||||||
- 'catimg'
|
- catimg
|
||||||
- 'climate'
|
- climate
|
||||||
- 'cmatrix'
|
- cmatrix
|
||||||
- 'exa'
|
- exa
|
||||||
- 'fd'
|
- fd
|
||||||
- 'fpp'
|
- fpp
|
||||||
- 'htop'
|
- htop
|
||||||
- 'jshon'
|
- jshon
|
||||||
- 'jq'
|
- jq
|
||||||
- 'nnn'
|
- nnn
|
||||||
- 'oh-my-zsh-git'
|
- oh-my-zsh-git
|
||||||
- 'pazi'
|
- pazi
|
||||||
- 'perl-file-mimeinfo'
|
- perl-file-mimeinfo
|
||||||
- 'pigz'
|
- pigz
|
||||||
- 'pipes.sh'
|
- pipes.sh
|
||||||
- 'playerctl'
|
- playerctl
|
||||||
- 'progress'
|
- progress
|
||||||
- 'reptyr'
|
- reptyr
|
||||||
- 'ripgrep'
|
- ripgrep
|
||||||
- 'scrcpy'
|
- scrcpy
|
||||||
- 'screenfetch'
|
- screenfetch
|
||||||
- 'speedtest-cli'
|
- speedtest-cli
|
||||||
- 'sl'
|
- sl
|
||||||
- 'terminator'
|
- terminator
|
||||||
- 'thefuck'
|
- thefuck
|
||||||
- 'tmux'
|
- tmux
|
||||||
- 'tmux-xpanes'
|
- tmux-xpanes
|
||||||
- 'ruby-tmuxinator'
|
- ruby-tmuxinator
|
||||||
- 'xclip'
|
- xclip
|
||||||
- 'xsel'
|
- xsel
|
||||||
- 'zsh'
|
- zsh
|
||||||
- 'zsh-completions'
|
- zsh-completions
|
||||||
- 'zsh-doc'
|
- zsh-doc
|
||||||
- 'zsh-syntax-highlighting'
|
- zsh-syntax-highlighting
|
||||||
|
|
||||||
|
|
||||||
- name: Install ZSH config
|
- name: Install ZSH config
|
||||||
template:
|
template:
|
||||||
|
@ -52,7 +51,7 @@
|
||||||
dest: "{{ home }}/.zshrc"
|
dest: "{{ home }}/.zshrc"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
validate: "zsh -n %s"
|
validate: zsh -n %s
|
||||||
backup: true
|
backup: true
|
||||||
trim_blocks: false
|
trim_blocks: false
|
||||||
|
|
||||||
|
@ -85,32 +84,32 @@
|
||||||
- https://github.com/tmux-plugins/tmux-sensible
|
- https://github.com/tmux-plugins/tmux-sensible
|
||||||
- https://github.com/tmux-plugins/tmux-fpp
|
- https://github.com/tmux-plugins/tmux-fpp
|
||||||
|
|
||||||
- name: "Create alacritty config directory"
|
- name: Create alacritty config directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/alacritty/'
|
path: "{{ home }}/.config/alacritty/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Create alacritty config"
|
- name: Create alacritty config
|
||||||
copy:
|
copy:
|
||||||
src: './files/alacritty.yml'
|
src: ./files/alacritty.yml
|
||||||
dest: '{{ home }}/.config/alacritty/alacritty.yml'
|
dest: "{{ home }}/.config/alacritty/alacritty.yml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
|
|
||||||
- name: "Create terminator directory"
|
- name: Create terminator directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/terminator/'
|
path: "{{ home }}/.config/terminator/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Create alacritty config"
|
- name: Create alacritty config
|
||||||
copy:
|
copy:
|
||||||
src: './files/terminator.conf'
|
src: ./files/terminator.conf
|
||||||
dest: '{{ home }}/.config/terminator/config'
|
dest: "{{ home }}/.config/terminator/config"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
|
@ -126,7 +125,7 @@
|
||||||
- name: Install custom scripts
|
- name: Install custom scripts
|
||||||
copy:
|
copy:
|
||||||
src: ./files/bin
|
src: ./files/bin
|
||||||
dest: "/usr/local"
|
dest: /usr/local
|
||||||
mode: 0755
|
mode: 0755
|
||||||
directory_mode: 0755
|
directory_mode: 0755
|
||||||
|
|
||||||
|
@ -134,5 +133,5 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/vconsole.conf
|
path: /etc/vconsole.conf
|
||||||
state: present
|
state: present
|
||||||
line: 'KEYMAP=uk'
|
line: KEYMAP=uk
|
||||||
create: true
|
create: true
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
name: "{{ user }}"
|
name: "{{ user }}"
|
||||||
home: "{{ home }}"
|
home: "{{ home }}"
|
||||||
comment: Jake Howard
|
comment: Jake Howard
|
||||||
shell: '/usr/bin/zsh'
|
shell: /usr/bin/zsh
|
||||||
system: true
|
system: true
|
||||||
groups:
|
groups:
|
||||||
- audio
|
- audio
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
- name: "Install dev packages"
|
- name: Install dev packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'gvim'
|
- gvim
|
||||||
- 'vim-pathogen'
|
- vim-pathogen
|
||||||
|
|
||||||
- name: Install vimrc
|
- name: Install vimrc
|
||||||
copy:
|
copy:
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
- name: Create vim packages directory
|
- name: Create vim packages directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.vim/bundle'
|
path: "{{ home }}/.vim/bundle"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -40,10 +40,10 @@
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
loop:
|
loop:
|
||||||
- 'https://github.com/junegunn/goyo.vim'
|
- https://github.com/junegunn/goyo.vim
|
||||||
- 'https://github.com/itchyny/lightline.vim'
|
- https://github.com/itchyny/lightline.vim
|
||||||
- 'https://github.com/scrooloose/nerdtree'
|
- https://github.com/scrooloose/nerdtree
|
||||||
- 'https://github.com/vim-scripts/peaksea'
|
- https://github.com/vim-scripts/peaksea
|
||||||
- 'https://github.com/terryma/vim-multiple-cursors'
|
- https://github.com/terryma/vim-multiple-cursors
|
||||||
- 'https://github.com/jremmen/vim-ripgrep'
|
- https://github.com/jremmen/vim-ripgrep
|
||||||
- 'https://github.com/amix/vim-zenroom2'
|
- https://github.com/amix/vim-zenroom2
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
- name: "Install VSCode packages"
|
- name: Install VSCode packages
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
when: "item not in installed_packages.stdout_lines"
|
when: item not in installed_packages.stdout_lines
|
||||||
loop:
|
loop:
|
||||||
- 'visual-studio-code-bin'
|
- visual-studio-code-bin
|
||||||
- 'universal-ctags-git'
|
- universal-ctags-git
|
||||||
|
|
||||||
- name: Create VSCode user directory
|
- name: Create VSCode user directory
|
||||||
file:
|
file:
|
||||||
path: '{{ home }}/.config/Code/User'
|
path: "{{ home }}/.config/Code/User"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
|
|
||||||
- name: "Get VSCode extensions"
|
- name: Get VSCode extensions
|
||||||
shell: "code --list-extensions"
|
shell: code --list-extensions
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
register: vscode_extensions
|
register: vscode_extensions
|
||||||
|
@ -39,37 +39,37 @@
|
||||||
- name: Define VSCode extensions
|
- name: Define VSCode extensions
|
||||||
set_fact:
|
set_fact:
|
||||||
requested_vscode_extensions:
|
requested_vscode_extensions:
|
||||||
- 'PKief.material-icon-theme'
|
- PKief.material-icon-theme
|
||||||
- 'Zignd.html-css-class-completion'
|
- Zignd.html-css-class-completion
|
||||||
- 'christian-kohler.npm-intellisense'
|
- christian-kohler.npm-intellisense
|
||||||
- 'dbaeumer.vscode-eslint'
|
- dbaeumer.vscode-eslint
|
||||||
- 'eamodio.gitlens'
|
- eamodio.gitlens
|
||||||
- 'ms-vscode.vscode-typescript-tslint-plugin'
|
- ms-vscode.vscode-typescript-tslint-plugin
|
||||||
- 'ionutvmi.path-autocomplete'
|
- ionutvmi.path-autocomplete
|
||||||
- 'mrmlnc.vscode-less'
|
- mrmlnc.vscode-less
|
||||||
- 'mrmlnc.vscode-scss'
|
- mrmlnc.vscode-scss
|
||||||
- 'ms-python.python'
|
- ms-python.python
|
||||||
- 'ms-vscode.sublime-keybindings'
|
- ms-vscode.sublime-keybindings
|
||||||
- 'rokoroku.vscode-theme-darcula'
|
- rokoroku.vscode-theme-darcula
|
||||||
- 'truman.autocomplate-shell'
|
- truman.autocomplate-shell
|
||||||
- 'wholroyd.jinja'
|
- wholroyd.jinja
|
||||||
- 'formulahendry.auto-close-tag'
|
- formulahendry.auto-close-tag
|
||||||
- 'James-Yu.latex-workshop'
|
- James-Yu.latex-workshop
|
||||||
- 'streetsidesoftware.code-spell-checker'
|
- streetsidesoftware.code-spell-checker
|
||||||
- 'EditorConfig.EditorConfig'
|
- EditorConfig.EditorConfig
|
||||||
- 'vsciot-vscode.vscode-arduino'
|
- vsciot-vscode.vscode-arduino
|
||||||
- 'vscoss.vscode-ansible'
|
- vscoss.vscode-ansible
|
||||||
- 'rust-lang.rust'
|
- rust-lang.rust
|
||||||
- 'pnp.polacode'
|
- pnp.polacode
|
||||||
- 'mrmlnc.vscode-duplicate'
|
- mrmlnc.vscode-duplicate
|
||||||
- 'Tyriar.sort-lines'
|
- Tyriar.sort-lines
|
||||||
- 'esbenp.prettier-vscode'
|
- esbenp.prettier-vscode
|
||||||
- 'jspolancor.presentationmode'
|
- jspolancor.presentationmode
|
||||||
- 'ms-vscode.cpptools'
|
- ms-vscode.cpptools
|
||||||
- 'ms-vscode-remote.remote-containers'
|
- ms-vscode-remote.remote-containers
|
||||||
- 'ms-azuretools.vscode-docker'
|
- ms-azuretools.vscode-docker
|
||||||
- 'mrcrowl.hg'
|
- mrcrowl.hg
|
||||||
- 'yzhang.markdown-all-in-one'
|
- yzhang.markdown-all-in-one
|
||||||
- jock.svg
|
- jock.svg
|
||||||
- naumovs.color-highlight
|
- naumovs.color-highlight
|
||||||
- pranaygp.vscode-css-peek
|
- pranaygp.vscode-css-peek
|
||||||
|
@ -84,16 +84,16 @@
|
||||||
- vstirbu.vscode-mermaid-preview
|
- vstirbu.vscode-mermaid-preview
|
||||||
|
|
||||||
|
|
||||||
- name: "Install VSCode extensions"
|
- name: Install VSCode extensions
|
||||||
shell: "code --install-extension {{ item }} --force"
|
shell: code --install-extension {{ item }} --force
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
when: "item not in vscode_extensions.stdout_lines"
|
when: item not in vscode_extensions.stdout_lines
|
||||||
loop: "{{ requested_vscode_extensions }}"
|
loop: "{{ requested_vscode_extensions }}"
|
||||||
|
|
||||||
- name: "Remove unwanted VSCode extensions"
|
- name: Remove unwanted VSCode extensions
|
||||||
shell: "code --uninstall-extension {{ item }}"
|
shell: code --uninstall-extension {{ item }}
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
when: "item not in requested_vscode_extensions"
|
when: item not in requested_vscode_extensions
|
||||||
loop: "{{ vscode_extensions.stdout_lines }}"
|
loop: "{{ vscode_extensions.stdout_lines }}"
|
||||||
|
|
2
vars.yml
2
vars.yml
|
@ -1,2 +1,2 @@
|
||||||
user: jake
|
user: jake
|
||||||
home: "/home/{{ user }}"
|
home: /home/{{ user }}
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
extends: default
|
extends: default
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
document-start: "disable"
|
document-start: disable
|
||||||
|
truthy: disable
|
||||||
|
quoted-strings:
|
||||||
|
quote-type: double
|
||||||
|
required: only-when-needed
|
||||||
line-length:
|
line-length:
|
||||||
max: 150
|
max: 150
|
||||||
|
|
Loading…
Reference in a new issue