updated tasks so they are only run once
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ hyprland.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 hyprland
|
||||
when:
|
||||
- hyprland_configured is undefined
|
||||
block:
|
||||
- name: Load hyprland config
|
||||
when:
|
||||
- hyprland is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprland'] }}"
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ hyprland.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprland_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprland_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprland_pkg_dep }}.yml"
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprland'] }}"
|
||||
|
||||
- name: Set hyprland_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_configured: true
|
||||
|
||||
Reference in New Issue
Block a user