Skip to content

Commit

Permalink
plex: fail if using network_mode container: with multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Sep 15, 2023
1 parent 5ee6d8c commit a642712
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/plex/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
# GNU General Public License v3.0 #
#########################################################################
---
- 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: (plex_instances | length > 1)

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

0 comments on commit a642712

Please sign in to comment.