aboutsummaryrefslogblamecommitdiffstats
path: root/roles/_workstation/makepkg/tasks/main.yml
blob: 1a31fd9e03e722b3289aa3c93f0beb334550907a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                   
---

- name: "check that package is present: {{ makepkg_package_name }}"
  ansible.builtin.command:
    cmd: pacman -Q {{ makepkg_package_name }}
  register: makepkg_result_check_package
  changed_when:
    - makepkg_result_check_package.rc != 0
  failed_when:
    - makepkg_result_check_package.rc == 1
    - "'was not found' not in makepkg_result_check_package.stderr"

- name: include install task  # noqa: no-handler
  ansible.builtin.include_tasks:
    file: install.yml
  when: makepkg_result_check_package.changed
remember that computers suck.