aboutsummaryrefslogtreecommitdiffstats
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
parenta43b2771624f08396c18f21f8392af603164f047 (diff)
downloadinfrastructure-af78a2b68e25296ecf2187199bb9e3b2ed370e46.tar.gz
Move playbook to subdir
-rw-r--r--ansible.cfg2
-rw-r--r--playbooks/p.yml12
-rw-r--r--playbooks/pf.yml (renamed from pf.yml)0
-rw-r--r--playbooks/site.yml (renamed from site.yml)0
-rw-r--r--playbooks/sshdns.yml13
-rw-r--r--playbooks/update.yml11
-rw-r--r--update.yml17
7 files changed, 38 insertions, 17 deletions
diff --git a/ansible.cfg b/ansible.cfg
index f624d91..a928ad6 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -1,5 +1,7 @@
[defaults]
+
inventory = inventory.yml
interpreter_python = auto_silent
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
+roles_path = roles/
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/pf.yml b/playbooks/pf.yml
index 683cf69..683cf69 100644
--- a/pf.yml
+++ b/playbooks/pf.yml
diff --git a/site.yml b/playbooks/site.yml
index 29f4033..29f4033 100644
--- a/site.yml
+++ b/playbooks/site.yml
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
+
diff --git a/update.yml b/update.yml
deleted file mode 100644
index cb855ec..0000000
--- a/update.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# =========================================================================== #
-# __ __ __
-# ____ / /___ ___ __ __ ______ ____/ /___ _/ /____
-# / __ \/ / __ `/ / / / / / / / __ \/ __ / __ `/ __/ _ \
-# / /_/ / / /_/ / /_/ / / /_/ / /_/ / /_/ / /_/ / /_/ __/
-# / .___/_/\__,_/\__, (_) \__,_/ .___/\__,_/\__,_/\__/\___/
-# /_/ /____/ /_/
-#
-# =========================================================================== #
-
----
-- name: Updates all instances with latest packages from their distribution repositories
- strategy: free
- hosts: servers
- roles:
- - update
-
remember that computers suck.