From 826d3822615cfdea3eb0225fd1a3ac4a5959281e Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Thu, 18 Sep 2025 15:10:37 -0600 Subject: [PATCH] Configure a new host without starting services. Following the example of the small institute's use of an ~actualizer~ tag. --- README.org | 20 ++++++++++++++++++-- roles_t/abbey-cloister/handlers/main.yml | 1 + roles_t/abbey-core/handlers/main.yml | 5 +++++ roles_t/abbey-dvr/tasks/main.yml | 11 +++++++++-- roles_t/abbey-front/handlers/main.yml | 4 ++++ roles_t/abbey-tvr/handlers/main.yml | 5 +---- 6 files changed, 38 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index deadb89..706f3d3 100644 --- a/README.org +++ b/README.org @@ -154,6 +154,7 @@ from there, forwarding ~sysadm~ to a real person. - name: New aliases. become: yes command: newaliases + tags: actualizer #+END_SRC ** Configure Git Daemon on Front @@ -258,6 +259,7 @@ like ~git-tasks~ and ~git-handlers~. - name: Restart git daemon. become: yes command: systemctl restart git-daemon + tags: actualizer #+END_SRC ** Configure Gitweb on Front @@ -371,6 +373,7 @@ web site =/favicon.ico=. systemd: service: apache2 state: restarted + tags: actualizer #+END_SRC ** Configure Apache for Abbey Documentation @@ -530,6 +533,7 @@ The replacement =logrotate-mailer= does, and includes it in a become: yes systemd: daemon_reload: yes + tags: actualizer #+END_SRC Note that the first setting for ~ExecStart~ is intended to clear the @@ -877,6 +881,7 @@ e.g. ~mythtv@mythtv.birchwood.private~, locally.) - name: New aliases. become: yes command: newaliases + tags: actualizer #+END_SRC ** Configure Git Daemon on Core @@ -1043,6 +1048,7 @@ remaining on roots.) systemd: service: nagios4 state: reloaded + tags: actualizer #+END_SRC ** Custom NAGIOS Monitor ~abbey_pisensors~ @@ -1363,6 +1369,7 @@ next task configures ~libsensors~ to ignore them. systemd: service: munin state: restarted + tags: actualizer #+END_SRC ** Install Analog @@ -1689,6 +1696,7 @@ Raspberry Pis (architecture ~aarch64~) only. systemd: service: nagios-nrpe-server state: reloaded + tags: actualizer #+END_SRC ** Install Munin Node @@ -1933,13 +1941,20 @@ by =install.sh=. dest: /etc/systemd/system/AgentDVR.service when: agentdvr.stat.exists - - name: Enable/Start AgentDVR.service. + - name: Start AgentDVR.service. become: yes systemd: service: AgentDVR - enabled: yes state: started when: agentdvr.stat.exists + tags: actualizer + + - name: Enable AgentDVR.service. + become: yes + systemd: + service: AgentDVR + enabled: yes + when: agentdvr.stat.exists #+END_SRC ** Create AgentDVR Storage @@ -2388,6 +2403,7 @@ bitter complaints. systemd: service: apache2 state: restarted + tags: actualizer #+END_SRC ** Create MythTV Storage Area diff --git a/roles_t/abbey-cloister/handlers/main.yml b/roles_t/abbey-cloister/handlers/main.yml index 927f9e4..06df4cd 100644 --- a/roles_t/abbey-cloister/handlers/main.yml +++ b/roles_t/abbey-cloister/handlers/main.yml @@ -3,3 +3,4 @@ systemd: service: nagios-nrpe-server state: reloaded + tags: actualizer diff --git a/roles_t/abbey-core/handlers/main.yml b/roles_t/abbey-core/handlers/main.yml index 576d518..0401ac9 100644 --- a/roles_t/abbey-core/handlers/main.yml +++ b/roles_t/abbey-core/handlers/main.yml @@ -2,25 +2,30 @@ - name: New aliases. become: yes command: newaliases + tags: actualizer - name: Restart git daemon. become: yes command: systemctl restart git-daemon + tags: actualizer - name: Restart Apache2. become: yes systemd: service: apache2 state: restarted + tags: actualizer - name: Reload NAGIOS4. become: yes systemd: service: nagios4 state: reloaded + tags: actualizer - name: Restart Munin. become: yes systemd: service: munin state: restarted + tags: actualizer diff --git a/roles_t/abbey-dvr/tasks/main.yml b/roles_t/abbey-dvr/tasks/main.yml index 66dd54e..7bb74e3 100644 --- a/roles_t/abbey-dvr/tasks/main.yml +++ b/roles_t/abbey-dvr/tasks/main.yml @@ -62,13 +62,20 @@ dest: /etc/systemd/system/AgentDVR.service when: agentdvr.stat.exists -- name: Enable/Start AgentDVR.service. +- name: Start AgentDVR.service. become: yes systemd: service: AgentDVR - enabled: yes state: started when: agentdvr.stat.exists + tags: actualizer + +- name: Enable AgentDVR.service. + become: yes + systemd: + service: AgentDVR + enabled: yes + when: agentdvr.stat.exists - name: Create /DVR/AgentDVR/. become: yes diff --git a/roles_t/abbey-front/handlers/main.yml b/roles_t/abbey-front/handlers/main.yml index 0955bd0..f866abe 100644 --- a/roles_t/abbey-front/handlers/main.yml +++ b/roles_t/abbey-front/handlers/main.yml @@ -2,21 +2,25 @@ - name: New aliases. become: yes command: newaliases + tags: actualizer - name: Restart git daemon. become: yes command: systemctl restart git-daemon + tags: actualizer - name: Restart Apache2. become: yes systemd: service: apache2 state: restarted + tags: actualizer - name: Reload systemd. become: yes systemd: daemon_reload: yes + tags: actualizer - name: Import root@core's public key. become: yes diff --git a/roles_t/abbey-tvr/handlers/main.yml b/roles_t/abbey-tvr/handlers/main.yml index 7dcbae3..2c8181a 100644 --- a/roles_t/abbey-tvr/handlers/main.yml +++ b/roles_t/abbey-tvr/handlers/main.yml @@ -1,10 +1,7 @@ --- -- name: Reload Systemd. - become: yes - command: systemctl daemon-reload - - name: Restart Apache2. become: yes systemd: service: apache2 state: restarted + tags: actualizer -- 2.25.1