2018-10-10 20:01:27 +01:00
|
|
|
- set_fact:
|
|
|
|
keys:
|
2019-01-06 19:24:43 +00:00
|
|
|
- '1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A' # Sublime Text
|
|
|
|
- 'EF6E286DDA85EA2A4BA7DE684E2C6E8793298290' # Tor Browser
|
2018-10-10 20:01:27 +01:00
|
|
|
- '9D5F1C051D146843CDA4858BDE64825E7CBC0D51' # ArchStrike
|
2019-01-06 19:24:43 +00:00
|
|
|
|
|
|
|
- name: "Get installed pacman keys"
|
|
|
|
shell: "pacman-key --list-keys"
|
|
|
|
register: pacman_keys
|
2018-10-10 20:01:27 +01:00
|
|
|
|
|
|
|
- name: "Add keys to pacman"
|
|
|
|
shell: "pacman-key -r {{ item }}"
|
2019-01-06 19:24:43 +00:00
|
|
|
when: "item not in pacman_keys.stdout"
|
2018-10-10 20:01:27 +01:00
|
|
|
with_items: "{{ keys }}"
|
|
|
|
|
|
|
|
- name: "Sign keys in pacman"
|
|
|
|
shell: "pacman-key --lsign-key {{ item }}"
|
2019-01-06 19:24:43 +00:00
|
|
|
when: "item not in pacman_keys.stdout"
|
2018-10-10 20:01:27 +01:00
|
|
|
with_items: "{{ keys }}"
|
|
|
|
|
2018-10-10 20:16:12 +01:00
|
|
|
- copy:
|
|
|
|
src: ./files/pacman.conf
|
|
|
|
dest: /etc/pacman.conf
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- pacman:
|
|
|
|
update_cache: true
|
2018-10-10 20:01:27 +01:00
|
|
|
|
2018-09-11 20:43:16 +01:00
|
|
|
- user:
|
|
|
|
name: aur_builder
|
|
|
|
group: wheel
|
2018-10-06 12:50:29 +01:00
|
|
|
password_lock: true
|
|
|
|
shell: /bin/false
|
2018-09-11 20:43:16 +01:00
|
|
|
|
2018-09-14 09:01:11 +01:00
|
|
|
- name: sudoers file
|
|
|
|
lineinfile:
|
2018-09-11 20:43:16 +01:00
|
|
|
path: /etc/sudoers.d/11-install-aur_builder
|
|
|
|
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
|
|
|
|
create: true
|
|
|
|
validate: 'visudo -cf %s'
|
|
|
|
|
2019-01-06 18:51:35 +00:00
|
|
|
- name: "Get installed packages"
|
|
|
|
shell: "pacman -Qq"
|
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
|
|
|
register: installed_packages
|
|
|
|
|
2018-09-11 20:43:16 +01:00
|
|
|
- name: "Install yay"
|
|
|
|
aur:
|
|
|
|
skip_installed: true
|
|
|
|
name: yay
|
2018-09-14 09:01:11 +01:00
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2018-09-12 11:09:40 +01:00
|
|
|
|
2018-09-11 20:43:16 +01:00
|
|
|
- name: "Install initial packages"
|
|
|
|
aur:
|
|
|
|
use: yay
|
|
|
|
skip_installed: true
|
|
|
|
name: "{{ item }}"
|
2018-09-14 09:01:11 +01:00
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2019-01-06 18:51:35 +00:00
|
|
|
when: "item not in installed_packages.stdout_lines"
|
2018-09-11 20:43:16 +01:00
|
|
|
with_items:
|
|
|
|
- 'i3-gaps'
|
|
|
|
- 'ttf-google-fonts-git'
|
|
|
|
- 'i3lock-color-git'
|
|
|
|
|
|
|
|
- name: "Install packages"
|
|
|
|
aur:
|
|
|
|
use: yay
|
|
|
|
skip_installed: true
|
|
|
|
name: "{{ item }}"
|
2018-09-14 09:01:11 +01:00
|
|
|
become: true
|
|
|
|
become_user: aur_builder
|
2019-01-06 18:51:35 +00:00
|
|
|
when: "item not in installed_packages.stdout_lines"
|
2018-09-11 20:43:16 +01:00
|
|
|
with_items:
|
|
|
|
- 'acpi'
|
|
|
|
- 'advanced-ssh-config'
|
2018-11-18 19:34:21 +00:00
|
|
|
- 'alacritty'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'android-tools'
|
2018-10-08 21:09:17 +01:00
|
|
|
- 'arandr'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'archstrike-keyring'
|
|
|
|
- 'arduino'
|
2018-09-28 10:45:10 +01:00
|
|
|
- 'arduino-cli'
|
|
|
|
- 'arduino-builder'
|
2018-09-19 09:32:21 +01:00
|
|
|
- 'bat'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'bcm20702a1-firmware'
|
|
|
|
- 'betterlockscreen'
|
|
|
|
- 'bleachbit'
|
|
|
|
- 'bluez-firmware'
|
|
|
|
- 'brave-bin'
|
|
|
|
- 'brightnessctl'
|
|
|
|
- 'calibre'
|
|
|
|
- 'caprine'
|
|
|
|
- 'catimg'
|
|
|
|
- 'climate'
|
|
|
|
- 'clamtk'
|
2019-02-11 08:56:08 +00:00
|
|
|
- 'community/code'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'corebird'
|
|
|
|
- 'compton'
|
|
|
|
- 'deluge'
|
|
|
|
- 'dex'
|
|
|
|
- 'dmenu'
|
|
|
|
- 'dunst'
|
2019-01-23 21:08:22 +00:00
|
|
|
- 'enpass-bin'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'etcher'
|
|
|
|
- 'exa'
|
|
|
|
- 'fasd'
|
2018-09-19 09:32:21 +01:00
|
|
|
- 'fd'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'feedreader'
|
|
|
|
- 'feh'
|
2019-03-11 08:55:19 +00:00
|
|
|
- 'ffmpeg-compat-57'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'filezilla'
|
|
|
|
- 'firefox'
|
2018-11-07 19:15:53 +00:00
|
|
|
- 'flameshot'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'fonts-meta-extended-lt'
|
|
|
|
- 'gimp'
|
2018-10-06 21:29:58 +01:00
|
|
|
- 'ghostwriter'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'glogg'
|
|
|
|
- 'google-earth-pro'
|
|
|
|
- 'gparted'
|
|
|
|
- 'grub-customizer'
|
|
|
|
- 'grub2-theme-archlinux'
|
|
|
|
- 'gvim'
|
|
|
|
- 'handbrake'
|
|
|
|
- 'hexchat'
|
|
|
|
- 'htop'
|
2018-10-06 21:29:58 +01:00
|
|
|
- 'hugo'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'ibus'
|
|
|
|
- 'ibus-uniemoji'
|
|
|
|
- 'inkscape'
|
|
|
|
- 'jdk'
|
|
|
|
- 'jshon'
|
|
|
|
- 'kdenlive'
|
|
|
|
- 'keybase-bin'
|
|
|
|
- 'kodi'
|
|
|
|
- 'libinput'
|
|
|
|
- 'libinput-gestures'
|
2018-09-17 16:47:04 +01:00
|
|
|
- 'lxappearance'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'lxrandr'
|
2018-10-06 11:36:21 +01:00
|
|
|
- 'lxqt-policykit'
|
2018-10-08 20:44:00 +01:00
|
|
|
- 'ly-git'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'minecraft'
|
2018-12-25 15:32:36 +00:00
|
|
|
- 'mullvad-vpn'
|
|
|
|
- 'networkmanager-wireguard-git'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'nextcloud-client'
|
|
|
|
- 'nnn'
|
|
|
|
- 'nodejs'
|
|
|
|
- 'numix-gtk-theme'
|
|
|
|
- 'nvm'
|
|
|
|
- 'obs-studio'
|
|
|
|
- 'oh-my-zsh-git'
|
|
|
|
- 'onlyoffice-bin'
|
|
|
|
- 'otf-fira-code'
|
|
|
|
- 'otf-font-awesome'
|
|
|
|
- 'perl-file-mimeinfo'
|
|
|
|
- 'pigz'
|
|
|
|
- 'playerctl'
|
2018-11-18 20:26:59 +00:00
|
|
|
- 'aur/polybar'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'postgresql'
|
|
|
|
- 'postman-bin'
|
|
|
|
- 'powertop'
|
|
|
|
- 'psensor'
|
|
|
|
- 'pulseaudio-bluetooth-a2dp-gdm-fix'
|
|
|
|
- 'pyenv'
|
|
|
|
- 'python-pip'
|
|
|
|
- 'python-virtualenv'
|
|
|
|
- 'python2-pip'
|
|
|
|
- 'python2-virtualenv'
|
2018-12-27 12:50:11 +00:00
|
|
|
- 'qomui'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'qt5-styleplugins'
|
|
|
|
- 'redis'
|
|
|
|
- 'redshift'
|
|
|
|
- 'reptyr'
|
2019-01-07 08:50:26 +00:00
|
|
|
- 'ripgrep'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'rofi'
|
|
|
|
- 'scrcpy'
|
|
|
|
- 'screenfetch'
|
|
|
|
- 'sl'
|
|
|
|
- 'slack-desktop'
|
|
|
|
- 'solaar'
|
|
|
|
- 'spotify'
|
|
|
|
- 'steam'
|
|
|
|
- 'sublime-text'
|
|
|
|
- 'sysstat'
|
|
|
|
- 'tbg'
|
|
|
|
- 'terminator'
|
|
|
|
- 'thefuck'
|
|
|
|
- 'thunderbird'
|
|
|
|
- 'tig'
|
|
|
|
- 'tmux'
|
2019-01-06 19:24:43 +00:00
|
|
|
- 'tor-browser'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'ttf-emojione'
|
|
|
|
- 'ttf-fira-code'
|
|
|
|
- 'ttf-font-awesome'
|
|
|
|
- 'ttf-ms-fonts'
|
|
|
|
- 'ttf-wps-fonts'
|
2019-01-28 08:49:03 +00:00
|
|
|
- 'turtl'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'universal-ctags-git'
|
2019-01-04 22:47:25 +00:00
|
|
|
- 'vim-pathogen'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'virtualbox'
|
|
|
|
- 'vivaldi'
|
|
|
|
- 'vlc'
|
|
|
|
- 'whatsie'
|
2019-03-13 21:35:36 +00:00
|
|
|
- 'wireguard-arch'
|
2018-12-25 15:32:36 +00:00
|
|
|
- 'wireguard-tools'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'wps-office'
|
|
|
|
- 'wps-office-extension-english-uk-dictionary'
|
2018-12-25 15:34:56 +00:00
|
|
|
- 'zola-bin'
|
2018-09-11 20:43:16 +01:00
|
|
|
- 'zsh'
|
|
|
|
- 'zsh-completions'
|
|
|
|
- 'zsh-doc'
|
|
|
|
- 'zsh-syntax-highlighting'
|
2018-12-25 15:32:36 +00:00
|
|
|
|
|
|
|
- service:
|
|
|
|
name: "mullvad-daemon"
|
|
|
|
enabled: true
|