Skip to content

Commit

Permalink
plex: check both network mode variables
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Sep 18, 2023
1 parent 525406c commit 34e1298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/plex/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- name: "Fail if using network_mode 'container:' with multiple instances."
ansible.builtin.fail:
msg: "Using multiple instances of Plex with network_mode '{{ plex_docker_network_mode | default('') }}' is not supported"
when: ('container:' in lookup('vars', 'plex_docker_network_mode', default=docker_networks_name_common)) and (plex_instances | length > 1)
when: ('container:' in lookup('vars', 'plex_docker_network_mode', default=plex_docker_network_mode_default)) and (plex_instances | length > 1)

- name: "Execute Plex roles"
ansible.builtin.include_tasks: main2.yml
Expand Down

0 comments on commit 34e1298

Please sign in to comment.