aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-03 23:25:41 +0100
committerbinary <me@rgoncalves.se>2020-11-03 23:25:41 +0100
commitaf78a2b68e25296ecf2187199bb9e3b2ed370e46 (patch)
treebb83708430f0a2b847d43efbfd26e9e0e2df5b8a /playbooks
parenta43b2771624f08396c18f21f8392af603164f047 (diff)
downloadinfrastructure-af78a2b68e25296ecf2187199bb9e3b2ed370e46.tar.gz
Move playbook to subdir
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/p.yml12
-rw-r--r--playbooks/pf.yml8
-rw-r--r--playbooks/site.yml8
-rw-r--r--playbooks/sshdns.yml13
-rw-r--r--playbooks/update.yml11
5 files changed, 52 insertions, 0 deletions
diff --git a/playbooks/p.yml b/playbooks/p.yml
new file mode 100644
index 0000000..0e37fb8
--- /dev/null
+++ b/playbooks/p.yml
@@ -0,0 +1,12 @@
+
+# p.yml
+
+---
+
+- hosts: "{{ host }}"
+
+ tasks:
+
+ - include_role:
+ name: "{{ role }}"
+ tasks_from: "{{ task }}"
diff --git a/playbooks/pf.yml b/playbooks/pf.yml
new file mode 100644
index 0000000..683cf69
--- /dev/null
+++ b/playbooks/pf.yml
@@ -0,0 +1,8 @@
+
+# pf.yml
+# pf for openbsd hosts.
+
+- hosts: openbsd
+
+ roles:
+ - pf
diff --git a/playbooks/site.yml b/playbooks/site.yml
new file mode 100644
index 0000000..29f4033
--- /dev/null
+++ b/playbooks/site.yml
@@ -0,0 +1,8 @@
+
+# site.yml
+# Deploy configuration to all servers.
+
+- hosts: all
+
+ roles:
+ - common
diff --git a/playbooks/sshdns.yml b/playbooks/sshdns.yml
new file mode 100644
index 0000000..a73624c
--- /dev/null
+++ b/playbooks/sshdns.yml
@@ -0,0 +1,13 @@
+
+# sshdns.yml
+# bind host to dns for ssh
+
+---
+
+- hosts: localhost
+
+ tasks:
+
+ - include_role:
+ name: ssh
+ tasks_from: generate_dns
diff --git a/playbooks/update.yml b/playbooks/update.yml
new file mode 100644
index 0000000..ca2587e
--- /dev/null
+++ b/playbooks/update.yml
@@ -0,0 +1,11 @@
+
+# update.yml
+
+---
+
+- name: Updates all instances with latest packages from their distribution repositories
+ strategy: free
+ hosts: servers
+ roles:
+ - update
+
remember that computers suck.