updated tasks so they are only run once
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ aquamarine.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: pkg_dep
|
||||
vars:
|
||||
pkg: "{{ pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add aquamarine
|
||||
when:
|
||||
- aquamarine_configured is undefined
|
||||
block:
|
||||
- name: Load hyprland config
|
||||
when:
|
||||
- aquamarine is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/aquamarine.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['aquamarine'] }}"
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ aquamarine.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: aquamarine_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ aquamarine_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ aquamarine_pkg_dep }}.yml"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['aquamarine'] }}"
|
||||
|
||||
- name: Set aquamarine_configured
|
||||
ansible.builtin.set_fact:
|
||||
aquamarine_configured: true
|
||||
|
||||
Reference in New Issue
Block a user