#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: Install abbey email aliases.
become: yes
blockinfile:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml :noweb no-export
-
<<gitd-tasks>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-front/handlers/main.yml][=roles_t/abbey-front/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/handlers/main.yml :noweb no-export
-
<<gitd-handlers>>
#+END_SRC
#+NAME: gitd-handlers
#+CAPTION: ~gitd-handlers~
#+BEGIN_SRC conf
-
- name: Reload systemd.
become: yes
systemd:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml :noweb no-export
-
<<gitweb-tasks>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-front/handlers/main.yml][=roles_t/abbey-front/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/handlers/main.yml :noweb no-export
-
<<gitweb-handlers>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml :noweb no-export
-
<<tellurion-tasks>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml :noweb no-export
-
- name: Configure Apache.
become: yes
vars:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: Configure Apache log archival.
become: yes
lineinfile:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: Install Certbot for Apache.
become: yes
apt: pkg=python3-certbot-apache
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: "Use Let's Encrypt certificate&key."
become: yes
file:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: Install Certbot hook.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: Install Certbot logrotate configuration.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: "Install Let's Encrypt archive script."
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml
-
- name: Copy root@core's public key.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-front/handlers/main.yml][=roles_t/abbey-front/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/handlers/main.yml
-
- name: Import root@core's public key.
become: yes
command: gpg --import ~/.gnupg-root-pub.pem
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Install additional packages.
become: yes
apt:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Install abbey email aliases.
become: yes
blockinfile:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
-
<<gitd-tasks>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-core/handlers/main.yml][=roles_t/abbey-core/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/handlers/main.yml :noweb no-export
-
<<gitd-handlers>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
-
<<gitweb-tasks>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-core/handlers/main.yml][=roles_t/abbey-core/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/handlers/main.yml :noweb no-export
-
<<gitweb-handlers>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
-
<<tellurion-tasks>>
#+END_SRC
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
-
- name: Configure live website.
become: yes
vars:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
-
- name: Configure house website.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Install Apt-Cacher:TNG.
become: yes
apt: pkg=apt-cacher-ng
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Use the local Apt package cache.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Configure NAGIOS monitoring for Core /home/.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-core/handlers/main.yml][=roles_t/abbey-core/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/handlers/main.yml
-
- name: Reload NAGIOS4.
become: yes
systemd:
echo "FAIL: $device $n_status $u_status"
exit $STATE_CRITICAL
fi
-
-
#+END_SRC
*** Configure NAGIOS Monitoring of The Cloister
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Configure cloister NAGIOS monitoring.
become: yes
template:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Install Munin.
become: yes
apt: pkg=munin
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Configure core sensors(1).
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-core/handlers/main.yml][=roles_t/abbey-core/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/handlers/main.yml
-
- name: Restart Munin.
become: yes
systemd:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Install Analog.
become: yes
apt: pkg=analog
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Add Monkey to Nextcloud group.
become: yes
user:
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
-
- name: Install netpbm.
become: yes
apt: pkg=netpbm
#+CAPTION: [[file:roles_t/abbey-cloister/tasks/main.yml][=roles_t/abbey-cloister/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-cloister/tasks/main.yml
-
- name: Install abbey_pisensors NAGIOS plugin.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-cloister/tasks/main.yml][=roles_t/abbey-cloister/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-cloister/tasks/main.yml
-
- name: Install Munin Node.
become: yes
apt: pkg=munin-node
#+CAPTION: [[file:roles_t/abbey-cloister/handlers/main.yml][=roles_t/abbey-cloister/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-cloister/handlers/main.yml
-
- name: Restart Munin Node.
become: yes
systemd:
#+CAPTION: [[file:roles_t/abbey-cloister/tasks/main.yml][=roles_t/abbey-cloister/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-cloister/tasks/main.yml
-
- name: Configure {{ inventory_hostname }} sensors(1).
copy:
content: |
#+CAPTION: [[file:roles_t/abbey-cloister/tasks/main.yml][=roles_t/abbey-cloister/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-cloister/tasks/main.yml
-
- name: Install monastic software.
become: yes
apt: pkg=emacs
#+CAPTION: [[file:roles_t/abbey-dvr/tasks/main.yml][=roles_t/abbey-dvr/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-dvr/tasks/main.yml
-
- name: Test for AgentDVR directory.
stat:
path: /home/agentdvr/AgentDVR
#+CAPTION: [[file:roles_t/abbey-dvr/tasks/main.yml][=roles_t/abbey-dvr/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-dvr/tasks/main.yml
-
- name: Install AgentDVR.service.
become: yes
copy:
#+CAPTION: [[file:roles_t/abbey-front/handlers/main.yml][=roles_t/abbey-front/handlers/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/handlers/main.yml
-
- name: Restart AgentDVR.
become: yes
systemd:
#+CAPTION: [[file:roles_t/abbey-dvr/tasks/main.yml][=roles_t/abbey-dvr/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-dvr/tasks/main.yml
-
- name: Create /DVR/AgentDVR/.
become: yes
file:
#+CAPTION: [[file:roles_t/abbey-dvr/tasks/main.yml][=roles_t/abbey-dvr/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-dvr/tasks/main.yml
-
- name: Configure NAGIOS command abbey_dvr.
become: yes
vars:
#+CAPTION: [[file:roles_t/abbey-tvr/tasks/main.yml][=roles_t/abbey-tvr/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-tvr/tasks/main.yml
-
- name: Create MythTV storage area.
become: yes
file:
#+CAPTION: [[file:abbey][=abbey=]]
#+BEGIN_SRC perl :tangle abbey
-
if (defined $ARGV[0] && $ARGV[0] eq "upgrade") {
shift;
my @args = ( "-e", "\@Secret/become.yml" );