--- - name: 'Install Plex' community.docker.docker_container: name: 'plex' image: 'lscr.io/linuxserver/plex:latest' pull: true state: 'started' recreate: false env: PUID: "1001" PGID: "1001" VERSION: "docker" PLEX_CLAIM: "{{ plex_claim }}" network_mode: 'host' # will use 32400 volumes: - '{{ plex_library_dir }}:/config' - '{{ plex_tv_dir }}:/tv' - '{{ plex_mov_dir }}:/movies' - '{{ plex_pic_dir }}:/pics' - '{{ plex_music_dir }}:/music' restart_policy: "unless-stopped"