]> xn--ix-yja.es Git - alex.git/commitdiff
Add playbook to verify root mail
authoralex <alex@pdp7.net>
Sat, 21 Jan 2023 21:29:21 +0000 (22:29 +0100)
committeralex <alex@pdp7.net>
Sat, 21 Jan 2023 21:29:21 +0000 (22:29 +0100)
personal_infra/playbooks/verify_root_mail.yaml [new file with mode: 0644]

diff --git a/personal_infra/playbooks/verify_root_mail.yaml b/personal_infra/playbooks/verify_root_mail.yaml
new file mode 100644 (file)
index 0000000..f0522f8
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- hosts: all
+  tasks:
+  - name: send root mail
+    command:
+      cmd: mail -s "ansible test {{ inventory_hostname }}" root
+      stdin: test