Check installed packages quicker

This commit is contained in:
Jake Howard 2019-01-06 18:51:35 +00:00
parent 60c5a4c69c
commit 075560d5f1
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -34,6 +34,12 @@
create: true
validate: 'visudo -cf %s'
- name: "Get installed packages"
shell: "pacman -Qq"
become: true
become_user: aur_builder
register: installed_packages
- name: "Install yay"
aur:
skip_installed: true
@ -48,6 +54,7 @@
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- 'i3-gaps'
- 'ttf-google-fonts-git'
@ -60,6 +67,7 @@
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- 'acpi'
- 'advanced-ssh-config'