From: Matt Birkholz Date: Sun, 23 Nov 2025 19:13:12 +0000 (-0700) Subject: Punt loading many variables when only running accounts tasks. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=a8b1eb5c8c92a5e5484c1cfe0415be9164878031;p=Institute Punt loading many variables when only running accounts tasks. The All role has no such tasks. The Front role just needs ~usernames~ and ~members~. The Core role just needs these as well, except that generating/checking fetchmail configs requires ~front_wg_addr~ and ~domain_name~. The Gate role just updates/checks Gate's WireGuard™ config file, and the Campus role has /no/ accounts tasks: 1 tagged task, 0 variables used. --- diff --git a/README.org b/README.org index f814c40..e1b2fb8 100644 --- a/README.org +++ b/README.org @@ -1231,7 +1231,6 @@ Particulars]]). The code block below is the first to tangle into --- - name: Include public variables. include_vars: ../public/vars.yml - tags: accounts #+END_SRC ** Enable Systemd Resolved @@ -1374,11 +1373,9 @@ membership roll, so these are included was well. --- - name: Include public variables. include_vars: ../public/vars.yml - tags: accounts - name: Include private variables. include_vars: ../private/vars.yml - tags: accounts - name: Include members. include_vars: "{{ lookup('first_found', membership_rolls) }}" @@ -4813,14 +4810,9 @@ The following should be familiar boilerplate by now. --- - name: Include public variables. include_vars: ../public/vars.yml - tags: accounts - name: Include private variables. include_vars: ../private/vars.yml - tags: accounts -- name: Include members. - include_vars: "{{ lookup('first_found', membership_rolls) }}" - tags: accounts #+END_SRC ** Configure Gate NetworkD diff --git a/roles_t/all/tasks/main.yml b/roles_t/all/tasks/main.yml index be4f3a9..5c26190 100644 --- a/roles_t/all/tasks/main.yml +++ b/roles_t/all/tasks/main.yml @@ -1,7 +1,6 @@ --- - name: Include public variables. include_vars: ../public/vars.yml - tags: accounts - name: Install systemd-resolved. become: yes diff --git a/roles_t/front/tasks/main.yml b/roles_t/front/tasks/main.yml index eb564b4..5c73f96 100644 --- a/roles_t/front/tasks/main.yml +++ b/roles_t/front/tasks/main.yml @@ -1,11 +1,9 @@ --- - name: Include public variables. include_vars: ../public/vars.yml - tags: accounts - name: Include private variables. include_vars: ../private/vars.yml - tags: accounts - name: Include members. include_vars: "{{ lookup('first_found', membership_rolls) }}" diff --git a/roles_t/gate/tasks/main.yml b/roles_t/gate/tasks/main.yml index 443e46a..115e1c1 100644 --- a/roles_t/gate/tasks/main.yml +++ b/roles_t/gate/tasks/main.yml @@ -1,14 +1,9 @@ --- - name: Include public variables. include_vars: ../public/vars.yml - tags: accounts - name: Include private variables. include_vars: ../private/vars.yml - tags: accounts -- name: Include members. - include_vars: "{{ lookup('first_found', membership_rolls) }}" - tags: accounts - name: Install 10-lan.link. become: yes