diff --git a/hosts b/hosts index 0b75404..cdb026e 100644 --- a/hosts +++ b/hosts @@ -1,15 +1,12 @@ [proxmox] -pve2.comprofix.xyz ansible_user=root [cloud] -vps02.comprofix.com [docker] docker.comprofix.xyz [omada] -omada-lxc.comprofix.xyz ansible_user=root [vps] -vps01.comprofix.com + diff --git a/hosts copy b/hosts copy new file mode 100644 index 0000000..0b75404 --- /dev/null +++ b/hosts copy @@ -0,0 +1,15 @@ +[proxmox] +pve2.comprofix.xyz ansible_user=root + +[cloud] +vps02.comprofix.com + +[docker] +docker.comprofix.xyz + +[omada] +omada-lxc.comprofix.xyz ansible_user=root + +[vps] +vps01.comprofix.com + diff --git a/tasks/mealie.yml b/tasks/mealie.yml index 11adff3..2991384 100644 --- a/tasks/mealie.yml +++ b/tasks/mealie.yml @@ -1,36 +1,36 @@ ---- -- name: Create directories - file: - path: "{{ item }}" - state: directory - with_items: - - "{{ data_folder }}/mealie" - - "{{ data_folder }}/mealie/config" - -- name: Create the mealie container - docker_container: - name: mealie - image: ghcr.io/mealie-recipes/mealie:v2.8.0 - restart_policy: unless-stopped - networks: - - name: proxy - env: - PUID: "1000" - PGID: "1000" - TZ: "Australia/Brisbane" - RECIPE_PUBLIC: "true" - RECIPE_SHOW_NUTRITION: "false" - RECIPE_SHOW_ASSETS: "true" - RECIPE_LANDSCAPE_VIEW: "true" - RECIPE_DISABLE_COMMENTS: "true" - RECIPE_DISABLE_AMOUNT: "true" - BASE_URL: "mealie.comprofix.xyz" - SMTP_HOST: "{{MAIL_HOST}}" - volumes: - - "{{ data_folder }}/mealie/data/:/app/data" - labels: - traefik.enable: "true" - traefik.http.routers.mealie.rule: "Host(`mealie.comprofix.xyz`)" - traefik.http.routers.mealie.entrypoints: "https" - traefik.http.routers.mealie.tls: "true" - traefik.http.services.mealie.loadbalancer.server.port: "9000" \ No newline at end of file +--- +- name: Create directories + file: + path: "{{ item }}" + state: directory + with_items: + - "{{ data_folder }}/mealie" + - "{{ data_folder }}/mealie/config" + +- name: Create the mealie container + docker_container: + name: mealie + image: ghcr.io/mealie-recipes/mealie:v3.0.2 + restart_policy: unless-stopped + networks: + - name: proxy + env: + PUID: "1000" + PGID: "1000" + TZ: "Australia/Brisbane" + RECIPE_PUBLIC: "true" + RECIPE_SHOW_NUTRITION: "false" + RECIPE_SHOW_ASSETS: "true" + RECIPE_LANDSCAPE_VIEW: "true" + RECIPE_DISABLE_COMMENTS: "true" + RECIPE_DISABLE_AMOUNT: "true" + BASE_URL: "mealie.comprofix.xyz" + SMTP_HOST: "{{MAIL_HOST}}" + volumes: + - "{{ data_folder }}/mealie/data/:/app/data" + labels: + traefik.enable: "true" + traefik.http.routers.mealie.rule: "Host(`mealie.comprofix.xyz`)" + traefik.http.routers.mealie.entrypoints: "https" + traefik.http.routers.mealie.tls: "true" + traefik.http.services.mealie.loadbalancer.server.port: "9000"