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
|
create: true
|
||||||
validate: 'visudo -cf %s'
|
validate: 'visudo -cf %s'
|
||||||
|
|
||||||
|
- name: "Get installed packages"
|
||||||
|
shell: "pacman -Qq"
|
||||||
|
become: true
|
||||||
|
become_user: aur_builder
|
||||||
|
register: installed_packages
|
||||||
|
|
||||||
- name: "Install yay"
|
- name: "Install yay"
|
||||||
aur:
|
aur:
|
||||||
skip_installed: true
|
skip_installed: true
|
||||||
|
@ -48,6 +54,7 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
|
when: "item not in installed_packages.stdout_lines"
|
||||||
with_items:
|
with_items:
|
||||||
- 'i3-gaps'
|
- 'i3-gaps'
|
||||||
- 'ttf-google-fonts-git'
|
- 'ttf-google-fonts-git'
|
||||||
|
@ -60,6 +67,7 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: aur_builder
|
become_user: aur_builder
|
||||||
|
when: "item not in installed_packages.stdout_lines"
|
||||||
with_items:
|
with_items:
|
||||||
- 'acpi'
|
- 'acpi'
|
||||||
- 'advanced-ssh-config'
|
- 'advanced-ssh-config'
|
||||||
|
|
Loading…
Reference in a new issue