From 86713b439cc5a47ddae0d87fe47409eb0f51a881 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 21 Apr 2024 14:37:01 -0600 Subject: [PATCH] Fix timezone.pl playbook. Add webtvs host group. Run timezone.pl play on webtvs as well as Core, DVRs and TVRs. --- README.org | 13 +++++++++---- abbey | 2 +- hosts | 5 +++++ playbooks/timezone.yml | 6 +++--- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index 89ae388..cfd03fe 100644 --- a/README.org +++ b/README.org @@ -3189,6 +3189,11 @@ all: tvrs: hosts: dantooine: + webtvs: + hosts: + kessel: + devaron: + kamino: notebooks: hosts: endor: @@ -3449,7 +3454,7 @@ if ($ARGV[0] eq "tz") { #+CAPTION: [[file:playbooks/timezone.yml][=playbooks/timezone.yml=]] #+BEGIN_SRC conf :tangle playbooks/timezone.yml --- -- hosts: core, dvrs, tvrs +- hosts: core, dvrs, tvrs, webtvs tasks: - name: Update timezone. become: yes @@ -3464,7 +3469,7 @@ if ($ARGV[0] eq "tz") { become: yes systemd: service: "{{ item }}" - restarted: yes + state: restarted loop: [ mysql, zoneminder ] when: new_tz.changed @@ -3474,7 +3479,7 @@ if ($ARGV[0] eq "tz") { become: yes systemd: service: "{{ item }}" - restarted: yes + state: restarted loop: [ mysql, mythtv-backend ] when: new_tz.changed @@ -3502,7 +3507,7 @@ if ($ARGV[0] eq "tz") { #+CAPTION: [[file:abbey][=abbey=]] #+BEGIN_SRC perl :tangle abbey -my $ops = "config,new,old,pass,client,upgrade,reboots,versions"; +my $ops = "config,new,old,pass,client,upgrade,reboots,versions,tz"; die "usage: $0 [$ops]\n"; #+END_SRC diff --git a/abbey b/abbey index 779eab4..8deda6b 100755 --- a/abbey +++ b/abbey @@ -44,5 +44,5 @@ if ($ARGV[0] eq "tz") { "playbooks/timezone.yml"); } -my $ops = "config,new,old,pass,client,upgrade,reboots,versions"; +my $ops = "config,new,old,pass,client,upgrade,reboots,versions,tz"; die "usage: $0 [$ops]\n"; diff --git a/hosts b/hosts index 065a52c..e2e3728 100644 --- a/hosts +++ b/hosts @@ -55,6 +55,11 @@ all: tvrs: hosts: dantooine: + webtvs: + hosts: + kessel: + devaron: + kamino: notebooks: hosts: endor: diff --git a/playbooks/timezone.yml b/playbooks/timezone.yml index db889c0..d88f6fc 100644 --- a/playbooks/timezone.yml +++ b/playbooks/timezone.yml @@ -1,5 +1,5 @@ --- -- hosts: core, dvrs, tvrs +- hosts: core, dvrs, tvrs, webtvs tasks: - name: Update timezone. become: yes @@ -14,7 +14,7 @@ become: yes systemd: service: "{{ item }}" - restarted: yes + state: restarted loop: [ mysql, zoneminder ] when: new_tz.changed @@ -24,7 +24,7 @@ become: yes systemd: service: "{{ item }}" - restarted: yes + state: restarted loop: [ mysql, mythtv-backend ] when: new_tz.changed -- 2.25.1