Check installed packages quicker
This commit is contained in:
parent
60c5a4c69c
commit
075560d5f1
1 changed files with 8 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue