better check for existence of property

This commit is contained in:
Nicholas Jones 2024-08-09 07:22:26 -05:00
parent 5da5978ca1
commit 3d3bd76ebe
4 changed files with 2 additions and 4 deletions

View file

@ -5,7 +5,6 @@ bitwarden_data_directory: "{{ docker_home }}/bitwarden"
bitwarden_port_a: "19080"
bitwarden_port_b: "3012"
bitwarden_hostname: "bitwarden"
bitwarden_ip_whitelist: "deprecated"
bitwarden_ip_allowlist: "0.0.0.0/0"
# Keep this token secret, this is password to access admin area of your server!

View file

@ -4,7 +4,7 @@
- name: Check for Deprecated IP Whitelist setting
ansible.builtin.fail:
msg: "Use bitwarden_ip_allowlist instead of bitwarden_ip_whitelist! Read https://traefik.io/blog/announcing-traefik-proxy-v2-11/ for more information."
when: bitwarden_ip_whitelist != "deprecated"
when: bitwarden_ip_whitelist is defined
- name: Create Bitwarden Directories
ansible.builtin.file:

View file

@ -8,7 +8,6 @@ portainer_data_directory: "{{ docker_home }}/portainer/config"
# network
portainer_port: "9000"
portainer_hostname: "portainer"
portainer_ip_whitelist: "deprecated"
portainer_ip_allowlist: "0.0.0.0/0"
# docker

View file

@ -4,7 +4,7 @@
- name: Check for Deprecated IP Whitelist setting
ansible.builtin.fail:
msg: "Use portainer_ip_allowlist instead of portainer_ip_whitelist! Read https://traefik.io/blog/announcing-traefik-proxy-v2-11/ for more information."
when: portainer_ip_whitelist != "deprecated"
when: portainer_ip_whitelist is defined
- name: Create Portainer Directories
ansible.builtin.file: