Browse Source

create ups play

Blaine Story 2 years ago
parent
commit
b93356ad2d
2 changed files with 22 additions and 13 deletions
  1. 0 13
      plays/ups-primary.yml
  2. 22 0
      plays/ups.yml

+ 0 - 13
plays/ups-primary.yml

@@ -1,13 +0,0 @@
----
-- hosts: nas
-  become: true
-
-  vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
-
-  vars:
-    ntfy_url: https://ntfy.warchildstory.com
-    ntfy_topic: "{{ vaulted_ntfy_topic }}"
-
-  roles:
-    - ups-primary

+ 22 - 0
plays/ups.yml

@@ -0,0 +1,22 @@
+---
+- hosts: nas
+  become: true
+  vars_files:
+    - "{{ inventory_dir }}/vars/vault.yaml"
+  vars:
+    ups_primary: gateway
+    ntfy_url: https://ntfy.warchildstory.com
+    ntfy_topic: "{{ vaulted_ntfy_topic }}"
+  roles:
+    - ups
+
+
+- hosts: gateway
+  become: true
+  vars_files:
+    - "{{ inventory_dir }}/vars/vault.yaml"
+  vars:
+    ntfy_url: https://ntfy.warchildstory.com
+    ntfy_topic: "{{ vaulted_ntfy_topic }}"
+  roles:
+    - ups