diff --git a/ansible/aur_packages/tasks/build_package.yml b/ansible/aur_packages/tasks/build_package.yml index 8c03885..b9f7f01 100644 --- a/ansible/aur_packages/tasks/build_package.yml +++ b/ansible/aur_packages/tasks/build_package.yml @@ -11,6 +11,7 @@ dest: "/home/build/{{ package }}" # version: master clone: true + update: true force: true - name: Build package diff --git a/playbook.yml b/playbook.yml index 9891241..0d352d2 100644 --- a/playbook.yml +++ b/playbook.yml @@ -2,12 +2,13 @@ - hosts: all vars: - archlinux: ansible_facts['os_family'] == "Archlinux" + archlinux: '{{ ansible_facts["os_family"] == "Archlinux" }}' roles: - dotfiles - { + name: "install aur packages", role: aur_packages, - when: archlinux | bool, + when: archlinux is true, tags: ["aur", "aur-packages"], }