mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
replace deprecated with_items on package tasks
https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.7.html#using-a-loop-on-a-package-module-via-squash-actions
This commit is contained in:
parent
615287e5ba
commit
2a013e1791
37 changed files with 211 additions and 170 deletions
|
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
- name: Install zip archive utilities
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- zip
|
||||
- unzip
|
||||
- p7zip
|
||||
pacman:
|
||||
name:
|
||||
- zip
|
||||
- unzip
|
||||
- p7zip
|
||||
state: present
|
||||
tags:
|
||||
- zip
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,9 @@
|
|||
- packages
|
||||
|
||||
- name: Install AUR base packages
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items: "{{ aur.packages }}"
|
||||
aur:
|
||||
name: "{{ aur.packages }}"
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
- packages
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
---
|
||||
- name: Install Bash
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- bash
|
||||
- bash-completion
|
||||
pacman:
|
||||
name:
|
||||
- bash
|
||||
- bash-completion
|
||||
state: present
|
||||
tags:
|
||||
- shell
|
||||
|
||||
- name: Install ZSH
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- zsh
|
||||
- zsh-completions
|
||||
pacman:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-completions
|
||||
state: present
|
||||
tags:
|
||||
- shell
|
||||
|
|
|
|||
|
|
@ -1,23 +1,25 @@
|
|||
---
|
||||
- name: Install PulseAudio bluetooth with LDAC/aptX support
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
- libldac
|
||||
- pulseaudio-modules-bt-git
|
||||
aur:
|
||||
name:
|
||||
- libldac
|
||||
- pulseaudio-modules-bt-git
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
notify:
|
||||
- restart pulse as user
|
||||
|
||||
- name: Install bluetooth libraries and tools
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
pacman:
|
||||
name:
|
||||
- pulseaudio-bluetooth
|
||||
- bluez
|
||||
- bluez-libs
|
||||
- bluez-utils
|
||||
- bluez-firmware
|
||||
- blueman
|
||||
state: present
|
||||
notify:
|
||||
- restart pulse as user
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
- name: Install borg
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- python-llfuse
|
||||
- borg
|
||||
pacman:
|
||||
name:
|
||||
- python-llfuse
|
||||
- borg
|
||||
state: present
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
---
|
||||
- name: Install CUPS and drivers
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- ghostscript
|
||||
- gsfonts
|
||||
- cups
|
||||
- cups-pdf
|
||||
- gutenprint
|
||||
- hplip
|
||||
- gtk3-print-backends
|
||||
pacman:
|
||||
name:
|
||||
- ghostscript
|
||||
- gsfonts
|
||||
- cups
|
||||
- cups-pdf
|
||||
- gutenprint
|
||||
- hplip
|
||||
- gtk3-print-backends
|
||||
state: present
|
||||
|
||||
- name: Add a print admin group
|
||||
group: name=printadmin state=present
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
- name: Install editors
|
||||
pacman: name={{ item }} state=present
|
||||
with_items: "{{ editors }}"
|
||||
pacman:
|
||||
name: "{{ editors }}"
|
||||
state: present
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
- name: Install filesystem packages
|
||||
pacman: name={{ item }} state=present
|
||||
with_items: "{{ filesystem_packages }}"
|
||||
pacman:
|
||||
name: "{{ filesystem_packages }}"
|
||||
state: present
|
||||
|
|
|
|||
|
|
@ -27,11 +27,13 @@
|
|||
copy: src=local.conf dest=/etc/fonts/local.conf
|
||||
|
||||
- name: Install base fonts
|
||||
pacman: name={{ item }} state=present
|
||||
with_items: "{{ base_fonts }}"
|
||||
pacman:
|
||||
name: "{{ base_fonts }}"
|
||||
state: present
|
||||
|
||||
- name: Install AUR fonts
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items: "{{ aur_fonts }}"
|
||||
aur:
|
||||
name: "{{ aur_fonts }}"
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@
|
|||
when: "not gnome.gnome_shell.disable_top_left_hot_corner"
|
||||
|
||||
- name: Configuring GNOME Shell Extensions support
|
||||
pacman: name={{ item }} state={{ "present" if gnome.gnome_shell.extensions_support else "absent" }}
|
||||
with_items:
|
||||
- gnome-shell-extensions
|
||||
- chrome-gnome-shell
|
||||
pacman:
|
||||
name:
|
||||
- gnome-shell-extensions
|
||||
- chrome-gnome-shell
|
||||
state: "{{ 'present' if gnome.gnome_shell.extensions_support else 'absent' }}"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: Install GNOME
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- gnome
|
||||
- gnome-extra
|
||||
- gnome-tweaks
|
||||
- xorg-server-xwayland
|
||||
pacman:
|
||||
name:
|
||||
- gnome
|
||||
- gnome-extra
|
||||
- gnome-tweaks
|
||||
- xorg-server-xwayland
|
||||
state: present
|
||||
|
||||
- include: dconf.yml
|
||||
- include: gtk.yml
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
- name: Install linux-hardened
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
pacman:
|
||||
name:
|
||||
- linux-hardened
|
||||
- linux-hardened-headers
|
||||
state: present
|
||||
notify:
|
||||
- rebuild grub
|
||||
|
|
|
|||
|
|
@ -9,9 +9,10 @@
|
|||
pacman: name=terraform state=present
|
||||
|
||||
- name: Install vault and nomad
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
- vault-bin
|
||||
- nomad
|
||||
aur:
|
||||
name:
|
||||
- vault-bin
|
||||
- nomad
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: Install i3
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
pacman:
|
||||
name:
|
||||
- i3-wm
|
||||
- i3blocks
|
||||
- i3lock
|
||||
- i3status
|
||||
state: present
|
||||
|
||||
- name: Install py3status
|
||||
pacman: name=py3status state=present
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
- name: Install kiwix
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
- zimlib-git
|
||||
- ctpp2
|
||||
- kiwix-cli-git
|
||||
aur:
|
||||
name:
|
||||
- zimlib-git
|
||||
- ctpp2
|
||||
- kiwix-cli-git
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: Install TLP
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
pacman:
|
||||
name:
|
||||
- x86_energy_perf_policy
|
||||
- ethtool
|
||||
- tlp
|
||||
- tlp-rdw
|
||||
state: present
|
||||
tags:
|
||||
- tlp
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
- name: Install LightDM
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
pacman:
|
||||
name:
|
||||
- lightdm
|
||||
- lightdm-gtk-greeter
|
||||
state: present
|
||||
|
||||
- name: Enable LightDM
|
||||
service: name=lightdm.service enabled=yes
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
- name: Install abcde and dependencies
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- cdparanoia
|
||||
- abcde
|
||||
pacman:
|
||||
name:
|
||||
- cdparanoia
|
||||
- abcde
|
||||
state: present
|
||||
tags:
|
||||
- abcde
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
---
|
||||
- name: Install beets and dependencies
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- gst-libav
|
||||
- gst-plugins-bad
|
||||
- gst-plugins-good
|
||||
- gst-plugins-ugly
|
||||
- gst-python
|
||||
- python-beautifulsoup4
|
||||
- python-gobject
|
||||
- python-pylast
|
||||
- python-requests
|
||||
- python-pyacoustid
|
||||
- beets
|
||||
pacman:
|
||||
name:
|
||||
- gst-libav
|
||||
- gst-plugins-bad
|
||||
- gst-plugins-good
|
||||
- gst-plugins-ugly
|
||||
- gst-python
|
||||
- python-beautifulsoup4
|
||||
- python-gobject
|
||||
- python-pylast
|
||||
- python-requests
|
||||
- python-pyacoustid
|
||||
- beets
|
||||
state: present
|
||||
tags:
|
||||
- beets
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@
|
|||
- gimp
|
||||
|
||||
- name: Install GIMP
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- gimp
|
||||
- gimp-plugin-gmic
|
||||
pacman:
|
||||
name:
|
||||
- gimp
|
||||
- gimp-plugin-gmic
|
||||
state: present
|
||||
tags:
|
||||
- gimp
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: Install imagemagick and dependencies
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- libraw
|
||||
- libpng
|
||||
- librsvg
|
||||
- openjpeg2
|
||||
- imagemagick
|
||||
pacman:
|
||||
name:
|
||||
- libraw
|
||||
- libpng
|
||||
- librsvg
|
||||
- openjpeg2
|
||||
- imagemagick
|
||||
state: present
|
||||
tags:
|
||||
- imagemagick
|
||||
|
|
|
|||
|
|
@ -15,15 +15,16 @@
|
|||
- include: qcode.yml
|
||||
|
||||
- name: Install misc media codecs and helpers
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- flac
|
||||
- lame
|
||||
- gst-libav
|
||||
- gst-plugins-good
|
||||
- exiv2
|
||||
- perl-image-exiftool
|
||||
- opus-tools
|
||||
pacman:
|
||||
name:
|
||||
- flac
|
||||
- lame
|
||||
- gst-libav
|
||||
- gst-plugins-good
|
||||
- exiv2
|
||||
- perl-image-exiftool
|
||||
- opus-tools
|
||||
state: present
|
||||
|
||||
- name: Install Metadata Anonymisation Toolkit
|
||||
aur: name=mat2 user={{ user.name }}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
- name: Install mcomix and dependencies
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- mcomix
|
||||
- mupdf-tools
|
||||
pacman:
|
||||
name:
|
||||
- mcomix
|
||||
- mupdf-tools
|
||||
state: present
|
||||
tags:
|
||||
- mcomix
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
- name: Install teiler and dependencies
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
- xininfo-git
|
||||
- copyq
|
||||
- teiler-git
|
||||
aur:
|
||||
name:
|
||||
- xininfo-git
|
||||
- copyq
|
||||
- teiler-git
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
- teiler
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
---
|
||||
- name: Install NetworkManager and dependencies
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
pacman:
|
||||
name:
|
||||
- networkmanager
|
||||
- networkmanager-openvpn
|
||||
- network-manager-applet
|
||||
- xfce4-notifyd
|
||||
- gnome-keyring
|
||||
state: present
|
||||
|
||||
- name: Push connectivity check config
|
||||
template:
|
||||
|
|
|
|||
|
|
@ -3,10 +3,11 @@
|
|||
pacman: name=gnuradio state=present
|
||||
|
||||
- name: Install hamlib
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
- perl-opcodes
|
||||
- hamlib
|
||||
aur:
|
||||
name:
|
||||
- perl-opcodes
|
||||
- hamlib
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
- name: Install CHIRP
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
aur:
|
||||
name:
|
||||
- hamradio-menus
|
||||
- chirp-hg
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
---
|
||||
- name: Install fldigi
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
- cty
|
||||
- fldigi
|
||||
- flrig
|
||||
aur:
|
||||
name:
|
||||
- cty
|
||||
- fldigi
|
||||
- flrig
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
||||
|
|
|
|||
|
|
@ -5,12 +5,13 @@
|
|||
- aur
|
||||
|
||||
- name: Install gr-osmosdr-git
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
- libmirisdr-git
|
||||
- libosmosdr-git
|
||||
- airspy-git
|
||||
- gr-osmosdr-git
|
||||
aur:
|
||||
name:
|
||||
- libmirisdr-git
|
||||
- libosmosdr-git
|
||||
- airspy-git
|
||||
- gr-osmosdr-git
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: Install RedShift and dependencies
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- librsvg
|
||||
- python-gobject
|
||||
- python-xdg
|
||||
- redshift
|
||||
pacman:
|
||||
name:
|
||||
- librsvg
|
||||
- python-gobject
|
||||
- python-xdg
|
||||
- redshift
|
||||
state: present
|
||||
|
||||
- name: Jail RedShift
|
||||
file: src=/usr/bin/firejail
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
pacman: name=alsa-utils state=present
|
||||
|
||||
- name: Install PulseAudio
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
pacman:
|
||||
name:
|
||||
- pulseaudio
|
||||
- pulseaudio-alsa
|
||||
- pavucontrol
|
||||
state: present
|
||||
|
||||
- name: Switch output to newly connected devices
|
||||
lineinfile: dest=/etc/pulse/default.pa
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
---
|
||||
- name: Install hunspell
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- hunspell
|
||||
- hunspell-en
|
||||
pacman:
|
||||
name:
|
||||
- hunspell
|
||||
- hunspell-en
|
||||
state: present
|
||||
tags:
|
||||
- hunspell
|
||||
|
||||
- name: Install aspell
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- aspell
|
||||
- aspell-en
|
||||
pacman:
|
||||
name:
|
||||
- aspell
|
||||
- aspell-en
|
||||
state: present
|
||||
tags:
|
||||
- aspell
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
- name: Install Tor
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- tor
|
||||
- torsocks
|
||||
pacman:
|
||||
name:
|
||||
- tor
|
||||
- torsocks
|
||||
state: present
|
||||
|
||||
- name: Set Tor to run as tor
|
||||
lineinfile: dest=/etc/tor/torrc
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
---
|
||||
- name: Install VirtualBox and dependencies
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- net-tools
|
||||
- qt4
|
||||
- virtualbox
|
||||
- virtualbox-guest-iso
|
||||
- virtualbox-host-dkms
|
||||
pacman:
|
||||
name:
|
||||
- net-tools
|
||||
- qt4
|
||||
- virtualbox
|
||||
- virtualbox-guest-iso
|
||||
- virtualbox-host-dkms
|
||||
state: present
|
||||
|
||||
- name: Install VirtualBox extensions
|
||||
aur: name=virtualbox-ext-oracle user={{ user.name }}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: Install magic-wormhole
|
||||
aur: name={{ item }} user={{ user.name }}
|
||||
with_items:
|
||||
aur:
|
||||
name:
|
||||
- python-hkdf
|
||||
- python-spake2
|
||||
- python-txtorcon
|
||||
- magic-wormhole
|
||||
user: "{{ user.name }}"
|
||||
tags:
|
||||
- aur
|
||||
|
||||
|
|
|
|||
|
|
@ -21,8 +21,9 @@
|
|||
pacman: name=xautomation state=present
|
||||
|
||||
- name: Install video driver(s)
|
||||
pacman: name={{ item }} state=present
|
||||
with_items: "{{ video_drivers }}"
|
||||
pacman:
|
||||
name: "{{ video_drivers }}"
|
||||
state: present
|
||||
|
||||
- name: Add user to video group
|
||||
user: name={{ user.name }} groups=video append=yes
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@
|
|||
pacman: name=yubikey-personalization-gui state=present
|
||||
|
||||
- name: Install smartcard libs/tools
|
||||
pacman: name={{ item }} state=present
|
||||
with_items:
|
||||
- pcsclite
|
||||
- libusb-compat
|
||||
- ccid
|
||||
pacman:
|
||||
name:
|
||||
- pcsclite
|
||||
- libusb-compat
|
||||
- ccid
|
||||
state: present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue