Skip to content

Commit

Permalink
better check for existence of property
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjones33 committed Aug 9, 2024
1 parent 5da5978 commit 3d3bd76
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion roles/bitwarden/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion roles/bitwarden/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion roles/portainer/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion roles/portainer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3d3bd76

Please sign in to comment.