updated tasks so they are only run once
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append clangd to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + clangd.pkgs }}"
|
||||
- name: Add clangd
|
||||
when:
|
||||
- clangd_configured is undefined
|
||||
block:
|
||||
- name: Load clangd config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/clangd.yml
|
||||
|
||||
- name: Append clangd to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + clangd.pkgs }}"
|
||||
|
||||
- name: Set clangd_configured
|
||||
ansible.builtin.set_fact:
|
||||
clangd_configured: true
|
||||
|
||||
Reference in New Issue
Block a user