Jelajahi Sumber

{{ inventory_dir }} has been deprecated except in tasks

Blaine Story 2 hari lalu
induk
melakukan
9132e27e80

+ 1 - 1
plays/nas-services.yml

@@ -14,7 +14,7 @@
     #- linux-system-roles.metrics
 
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     status_services_extra:

+ 1 - 1
plays/nas-storage.yml

@@ -11,7 +11,7 @@
     - vladgh.samba.server
 
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     # don't allow playbook to auto reboot server when changes are made to mountpoints

+ 1 - 1
plays/nas-tangclient.yml

@@ -4,7 +4,7 @@
   become: true
 
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     nbde_client_bindings:

+ 1 - 1
plays/nodes/betagate.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     router_ingress_interface: enp2s0

+ 1 - 1
plays/nodes/chloe-jump.yml

@@ -8,7 +8,7 @@
     - statusservices
 
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     dnf_update_time: 'mon 03:30'

+ 1 - 1
plays/nodes/chloe-nas.yml

@@ -16,7 +16,7 @@
     - cloud-backups
 
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     dnf_update_time: 'wed 01:00'

+ 1 - 1
plays/nodes/gateway.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   roles:
     - role: name-resolution
       tags: dhcp

+ 1 - 1
plays/nodes/kitchen.yml

@@ -3,6 +3,6 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   roles:
     - dnf-automatic

+ 1 - 1
plays/nodes/newsfeed.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   pre_tasks:
     - name: Create container group
       group:

+ 1 - 1
plays/nodes/shareunderware.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   roles:
     - linode
     - dnf-automatic

+ 1 - 1
plays/nodes/tvheadend.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   roles:
     - cloud-backups

+ 1 - 1
plays/nodes/warchildstory.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   roles:
     - linode
     - dnf-automatic

+ 1 - 1
plays/nodes/weberlist.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   roles:
     - linode
     - dnf-automatic

+ 1 - 1
plays/nodes/weberserver.yml

@@ -3,7 +3,7 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   roles:
     - role: dnf-automatic
     - role: docker

+ 1 - 1
plays/nodes/x10.yml

@@ -3,6 +3,6 @@
   gather_facts: true
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   roles:
     - role: heyu

+ 1 - 1
plays/restart-vpn.yml

@@ -4,7 +4,7 @@
   gather_facts: false
 
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     openvpn_service: "openvpn@nord"

+ 1 - 1
plays/tvheadend-services.yml

@@ -9,7 +9,7 @@
     - tvheadend-nginx
 
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
 
   vars:
     status_services_extra:

+ 2 - 2
plays/ups.yml

@@ -2,7 +2,7 @@
 - hosts: nas
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   vars:
     ups_primary: gateway
     ntfy_url: https://ntfy.warchildstory.com
@@ -14,7 +14,7 @@
 - hosts: gateway
   become: true
   vars_files:
-    - "{{ inventory_dir }}/vars/vault.yaml"
+    - "{{ playbook_dir }}/../vars/vault.yaml"
   vars:
     ntfy_url: https://ntfy.warchildstory.com
     ntfy_topic: "{{ vaulted_ntfy_topic }}"