+++ /dev/null
-- hosts: email
- roles:
- - postfix
- - journalwatch
- tasks:
- # some basic security stuff that relies on working email
- - name: install apticron
- apt: name=apticron state=latest
+++ /dev/null
-dependencies:
-- { role: letsencrypt }
when: postfix.opendkim is defined
- import_tasks: postfix.yml
tags: postfix
+# some basic security stuff that relies on working email
+- name: install apticron
+ apt: name=apticron state=latest
+++ /dev/null
-dependencies:
-- { role: postfix }
+++ /dev/null
-- name: install journalwatch dependencies
- apt: name=python3-systemd state=latest
-- name: install journalwatch
- git:
- dest: /root/journalwatch
- repo: 'https://github.com/The-Compiler/journalwatch.git'
- version: b62f223bc36eabc193cfcf0d309d284da4f66463
-- name: create journalwatch config dir
- file: path=/root/.config/journalwatch state=directory
-- name: install journalwatch config files
- copy:
- src: files/{{item}}
- dest: /root/.config/journalwatch/{{item}}
- loop:
- - config
- - patterns
-- name: delete old journalwatch crontab entry
- file: path=/etc/cron.d/journalwatch state=absent
-- name: create journalwatch crontab entry
- cron:
- name: "journalwatch"
- minute: "*/10"
- job: "/root/journalwatch/journalwatch.py mail"
-- import_tasks: journalwatch.yml
- tags: journalwatch
+- name: install journalwatch dependencies
+ apt: name=python3-systemd state=latest
+- name: install journalwatch
+ git:
+ dest: /root/journalwatch
+ repo: 'https://github.com/The-Compiler/journalwatch.git'
+ version: b62f223bc36eabc193cfcf0d309d284da4f66463
+- name: create journalwatch config dir
+ file: path=/root/.config/journalwatch state=directory
+- name: install journalwatch config files
+ copy:
+ src: files/{{item}}
+ dest: /root/.config/journalwatch/{{item}}
+ loop:
+ - config
+ - patterns
+- name: delete old journalwatch crontab entry
+ file: path=/etc/cron.d/journalwatch state=absent
+- name: create journalwatch crontab entry
+ cron:
+ name: "journalwatch"
+ minute: "*/10"
+ job: "/root/journalwatch/journalwatch.py mail"
+++ /dev/null
-dependencies:
-- { role: letsencrypt }
+++ /dev/null
-dependencies:
-- { role: letsencrypt }
- letsencrypt
tags: letsencrypt
-# FIXME make this a role, or several
-- import_playbook: email.yml
+- hosts: email
+ gather_facts: no
+ roles:
+ - email
+ tags: email
+
+- hosts: journalwatch
+ gather_facts: no
+ roles:
+ - journalwatch
+ tags: journalwatch
- hosts: bind
gather_facts: no