Commit 56201092 authored by nimrod's avatar nimrod
Browse files

Router playbook: Send email with rogue services.

New in OpenBSD 7.1, list services that are running but shouldn't (are
disabled). Send the list as part of the daily email.
parent 911f2486
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -492,11 +492,14 @@
# yamllint disable-line rule:line-length
- name: Configure the daily Cron job (skip email if there's nothing to report, report on pending system patches).
  ansible.builtin.copy:
    # yamllint disable rule:line-length
    content: |
      VERBOSESTATUS=0
      syspatch -c
      pkg_add -uInx | grep -v '^quirks'
      fw_update -an | grep -v '^quirks'
      {{ "rcctl ls rogue" if ansible_distribution_version is version('7.1', '>=') }}
    # yamllint enable rule:line-length
    dest: /etc/daily.local
    group: wheel
    mode: 0o0444