Finish switch to FQCNs

This commit is contained in:
David Stephens 2023-04-15 14:11:49 +01:00
parent 0caf47d315
commit 6db66f2bc1
138 changed files with 166 additions and 242 deletions

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ airsonic_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Airsonic
docker_container:
community.docker.docker_container:
name: "{{ airsonic_container_name }}"
state: absent
register: result

View file

@ -2,7 +2,7 @@
- name: Start Airsonic
block:
- name: Create Airsonic Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
@ -10,7 +10,7 @@
- "{{ airsonic_data_directory }}/playlists"
- name: Airsonic Docker Container
docker_container:
community.docker.docker_container:
name: "{{ airsonic_container_name }}"
image: airsonic/airsonic:latest
pull: true
@ -35,7 +35,7 @@
- name: Stop Airsonic
block:
- name: Stop Airsonic
docker_container:
community.docker.docker_container:
name: "{{ airsonic_container_name }}"
state: absent
when: airsonic_enabled is false

View file

@ -1,45 +1,45 @@
---
- name: Install python3-pip
apt:
ansible.builtin.apt:
name: python3-pip
state: present
register: result
until: result is succeeded
- name: Remove docker-py python module
pip:
ansible.builtin.pip:
name: docker-py
state: absent
register: result
until: result is succeeded
- name: Install docker python module
pip:
ansible.builtin.pip:
name: docker
state: present
register: result
until: result is succeeded
- name: Create Docker home directory
file:
ansible.builtin.file:
path: "{{ docker_home }}"
mode: 0755
state: directory
- name: Add user account to Docker group
user:
ansible.builtin.user:
name: "{{ ansible_nas_user }}"
groups: docker
append: yes
- name: Generate Docker daemon.json
copy:
ansible.builtin.copy:
dest: /etc/docker/daemon.json
content: "{{ docker_daemon_json | to_nice_json }}"
register: docker_config
- name: Restart Docker # noqa no-handler
service:
ansible.builtin.service:
name: docker
state: restarted
when: docker_config.changed

View file

@ -1,18 +1,18 @@
---
- name: Set login banner
copy:
ansible.builtin.copy:
src: motd.txt
dest: /etc/motd
- name: Update apt-cache
apt:
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 3600
register: result
until: result is succeeded
- name: Upgrade all packages # noqa package-latest
apt:
ansible.builtin.apt:
upgrade: yes
state: latest
when: keep_packages_updated
@ -20,7 +20,7 @@
- skip_ansible_lint
- name: Install some packages
apt:
ansible.builtin.apt:
name: "{{ ansible_nas_extra_packages }}"
state: present
register: result
@ -29,15 +29,15 @@
# - name: Configure smartmontools
- name: "Set hostname to {{ ansible_nas_hostname }}"
hostname:
ansible.builtin.hostname:
name: "{{ ansible_nas_hostname }}"
- name: "Set timezone to {{ ansible_nas_timezone }}"
timezone:
community.general.timezone:
name: "{{ ansible_nas_timezone }}"
- name: "Permission share directories"
file:
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
owner: ansible-nas

View file

@ -1,11 +1,11 @@
---
- name: Create ansible-nas group
group:
ansible.builtin.group:
name: ansible-nas
state: present
- name: Create ansible-nas user
user:
ansible.builtin.user:
name: ansible-nas
state: present
system: yes

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ bazarr_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Bazarr
docker_container:
community.docker.docker_container:
name: "{{ bazarr_container_name }}"
state: absent
register: result

View file

@ -2,14 +2,14 @@
- name: Start Bazarr
block:
- name: Create Bazarr Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ bazarr_data_directory }}"
- name: Bazarr
docker_container:
community.docker.docker_container:
name: "{{ bazarr_container_name }}"
image: linuxserver/bazarr
pull: true
@ -37,7 +37,7 @@
- name: Stop Bazarr
block:
- name: Stop Bazarr
docker_container:
community.docker.docker_container:
name: "{{ bazarr_container_name }}"
state: absent
when: bazarr_enabled is false

View file

@ -7,12 +7,12 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ bitwarden_container_name }}"
register: result
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ bitwarden_backup_container_name }}"
register: result_backup

View file

@ -7,13 +7,13 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Bitwarden
docker_container:
community.docker.docker_container:
name: "{{ bitwarden_container_name }}"
state: absent
register: result
- name: Try and stop and remove Bitwarden Backup
docker_container:
community.docker.docker_container:
name: "{{ bitwarden_backup_container_name }}"
state: absent
register: result_backup

View file

@ -2,7 +2,7 @@
- name: Start Bitwarden
block:
- name: Create Bitwarden Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: "0755"
@ -10,7 +10,7 @@
- "{{ bitwarden_data_directory }}"
- name: Bitwarden Docker Container
docker_container:
community.docker.docker_container:
name: "{{ bitwarden_container_name }}"
image: vaultwarden/server:latest
pull: true
@ -45,7 +45,7 @@
restart_policy: unless-stopped
- name: Bitwarden Backup Container
docker_container:
community.docker.docker_container:
name: "{{ bitwarden_backup_container_name }}"
image: bruceforce/bw_backup:latest
pull: true
@ -57,12 +57,12 @@
- name: Stop Bitwarden
block:
- name: Stop Bitwarden
docker_container:
community.docker.docker_container:
name: "{{ bitwarden_container_name }}"
state: absent
- name: Stop Bitwarden Backup
docker_container:
community.docker.docker_container:
name: "{{ bitwarden_backup_container_name }}"
state: absent
when: bitwarden_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ booksonic_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Booksonic
docker_container:
community.docker.docker_container:
name: "{{ booksonic_container_name }}"
state: absent
register: result

View file

@ -2,7 +2,7 @@
- name: Start Booksonic
block:
- name: Create Booksonic Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: 0755
@ -11,7 +11,7 @@
- "{{ booksonic_data_directory }}/playlists"
- name: Booksonic Docker Container
docker_container:
community.docker.docker_container:
name: "{{ booksonic_container_name }}"
image: linuxserver/booksonic-air:latest
pull: true
@ -40,7 +40,7 @@
- name: Stop Booksonic
block:
- name: Stop Booksonic
docker_container:
community.docker.docker_container:
name: "{{ booksonic_container_name }}"
state: absent
when: booksonic_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ calibre_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Calibre
docker_container:
community.docker.docker_container:
name: "{{ calibre_container_name }}"
state: absent
register: result

View file

@ -2,14 +2,14 @@
- name: Start Calibre
block:
- name: Create Calibre-web Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ calibre_data_directory }}/config"
- name: Calibre-web Docker Container
docker_container:
community.docker.docker_container:
name: "{{ calibre_container_name }}"
image: linuxserver/calibre-web:latest
pull: true
@ -37,7 +37,7 @@
- name: Stop Calibre
block:
- name: Stop Calibre
docker_container:
community.docker.docker_container:
name: "{{ calibre_container_name }}"
state: absent
when: calibre_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ cloudcmd_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Cloudcmd
docker_container:
community.docker.docker_container:
name: "{{ cloudcmd_container_name }}"
state: absent
register: result

View file

@ -2,14 +2,14 @@
- name: Start Cloudcmd
block:
- name: Create Cloudcmd Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ cloudcmd_data_directory }}"
- name: Create Cloudcmd Docker Container
docker_container:
community.docker.docker_container:
name: "{{ cloudcmd_container_name }}"
image: coderaiser/cloudcmd
pull: true
@ -36,7 +36,7 @@
- name: Stop Cloudcmd
block:
- name: Stop Cloudcmd
docker_container:
community.docker.docker_container:
name: "{{ cloudcmd_container_name }}"
state: absent
when: cloudcmd_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ cloudflare_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Cloudflare DDNS
docker_container:
community.docker.docker_container:
name: "{{ cloudflare_container_name }}"
state: absent
register: result

View file

@ -2,23 +2,23 @@
- name: Start Cloudflare DDNS
block:
- name: Check for deprecated API key
fail:
ansible.builtin.fail:
msg: "Using a Cloudflare global API key is no longer supported. Please unset cloudflare_api_key and set cloudflare_token"
when: cloudflare_api_key is defined
- name: Create cloudflare Dynamic DNS Directories
file:
ansible.builtin.file:
path: "{{ cloudflare_data_directory }}"
state: directory
- name: Template Cloudflare Dynamic DNS config.yml with scoped token
template:
ansible.builtin.template:
src: config.yml
dest: "{{ cloudflare_data_directory }}/config.yml"
register: template_files_result
- name: Cloudflare Dynamic DNS Container
docker_container:
community.docker.docker_container:
name: "{{ cloudflare_container_name }}"
image: joshava/cloudflare-ddns:latest
pull: true
@ -32,7 +32,7 @@
- name: Stop Cloudflare DDNS
block:
- name: Stop Cloudflare DDNS
docker_container:
community.docker.docker_container:
name: "{{ cloudflare_container_name }}"
state: absent
when: cloudflare_ddns_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ code_server_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Code Server
docker_container:
community.docker.docker_container:
name: "{{ code_server_container_name }}"
state: absent
register: result

View file

@ -2,7 +2,7 @@
- name: Start Code Server
block:
- name: Code Server Docker Container
docker_container:
community.docker.docker_container:
name: "{{ code_server_container_name }}"
image: linuxserver/code-server
pull: true
@ -30,7 +30,7 @@
- name: Stop Code Server
block:
- name: Stop Code Server
docker_container:
community.docker.docker_container:
name: "{{ code_server_container_name }}"
state: absent
when: code_server_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ couchpotato_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Couchpotato
docker_container:
community.docker.docker_container:
name: "{{ couchpotato_container_name }}"
state: absent
register: result

View file

@ -2,7 +2,7 @@
- name: Start Couchpotato
block:
- name: Create Couchpotato Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
# mode: 0755
@ -10,7 +10,7 @@
- "{{ docker_home }}/couchpotato/config"
- name: Couchpotato Docker Container
docker_container:
community.docker.docker_container:
name: "{{ couchpotato_container_name }}"
image: linuxserver/couchpotato
pull: true
@ -39,7 +39,7 @@
- name: Stop Couchpotato
block:
- name: Stop Couchpotato
docker_container:
community.docker.docker_container:
name: "{{ couchpotato_container_name }}"
state: absent
when: couchpotato_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ dashy_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Dashy
docker_container:
community.docker.docker_container:
name: "{{ dashy_container_name }}"
state: absent
register: result

View file

@ -2,7 +2,7 @@
- name: Start Dashy
block:
- name: Dashy Docker Container
docker_container:
community.docker.docker_container:
name: "{{ dashy_container_name }}"
image: lissy93/dashy:latest
pull: true
@ -22,7 +22,7 @@
- name: Stop Dashy
block:
- name: Stop Dashy
docker_container:
community.docker.docker_container:
name: "{{ dashy_container_name }}"
state: absent
when: dashy_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ deluge_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Deluge
docker_container:
community.docker.docker_container:
name: "{{ deluge_container_name }}"
state: absent
register: result

View file

@ -2,7 +2,7 @@
- name: Start Deluge
block:
- name: Create Deluge Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
@ -10,7 +10,7 @@
- "{{ deluge_download_directory }}"
- name: Deluge Docker Container
docker_container:
community.docker.docker_container:
name: deluge
image: linuxserver/deluge
pull: true
@ -37,7 +37,7 @@
- name: Stop Deluge
block:
- name: Stop Deluge
docker_container:
community.docker.docker_container:
name: "{{ deluge_container_name }}"
state: absent
when: deluge_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ dokuwiki_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Dokuwiki
docker_container:
community.docker.docker_container:
name: "{{ dokuwiki_container_name }}"
state: absent
register: result

View file

@ -2,14 +2,14 @@
- name: Start Dokuwiki
block:
- name: Create DokuWiki Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ dokuwiki_data_directory }}/data"
- name: DokuWiki Docker Container
docker_container:
community.docker.docker_container:
name: "{{ dokuwiki_container_name }}"
image: linuxserver/dokuwiki:latest
pull: true
@ -35,7 +35,7 @@
- name: Stop Dokuwiki
block:
- name: Stop Dokuwiki
docker_container:
community.docker.docker_container:
name: "{{ dokuwiki_container_name }}"
state: absent
when: dokuwiki_enabled is false

View file

@ -3,11 +3,11 @@
hosts: all
tasks:
- name: Install docker python module
pip:
ansible.builtin.pip:
name: docker
- name: Create a dummy gitea config directory
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
recurse: yes
@ -15,6 +15,6 @@
- "{{ gitea_data_directory }}/gitea/gitea/conf"
- name: Create a dummy gitea config file
file:
ansible.builtin.file:
path: "{{ gitea_data_directory }}/gitea/gitea/conf/app.ini"
state: touch

View file

@ -7,12 +7,12 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ drone_ci_container_name }}"
register: result
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ drone_ci_runner_container_name }}"
register: result_runner

View file

@ -7,13 +7,13 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Drone CI
docker_container:
community.docker.docker_container:
name: "{{ drone_ci_container_name }}"
state: absent
register: result
- name: Try and stop and remove Drone CI runner
docker_container:
community.docker.docker_container:
name: "{{ drone_ci_runner_container_name }}"
state: absent
register: result_runner

View file

@ -2,24 +2,24 @@
- name: Start Drone-CI
block:
- name: Check for Gitea installation
fail:
ansible.builtin.fail:
msg: "Drone-CI requires Gitea enabled and running for authentication, please set that up first."
when: gitea_enabled is false
- name: Check for Gitea config
fail:
ansible.builtin.fail:
msg: "Missing Gitea Oauth2 config! Read https://docs.drone.io/server/provider/gitea/ and set drone_ci_gitea_client_id and drone_ci_gitea_client_secret."
when: drone_ci_gitea_client_id == "notset"
- name: Create Drone-CI Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ drone_ci_data_directory }}"
- name: Create Drone-CI container
docker_container:
community.docker.docker_container:
name: "{{ drone_ci_container_name }}"
image: drone/drone:2
pull: true
@ -47,7 +47,7 @@
traefik.http.services.drone_ci.loadbalancer.server.port: "80"
- name: Create Drone-CI Runner container
docker_container:
community.docker.docker_container:
name: "{{ drone_ci_runner_container_name }}"
image: drone/drone-runner-docker:1
pull: true
@ -77,12 +77,12 @@
- name: Stop Drone-CI
block:
- name: Stop Drone-CI
docker_container:
community.docker.docker_container:
name: "{{ drone_ci_container_name }}"
state: absent
- name: Stop Drone-CI Runner
docker_container:
community.docker.docker_container:
name: "{{ drone_ci_runner_container_name }}"
state: absent
when: drone_ci_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ duplicacy_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Duplicacy
docker_container:
community.docker.docker_container:
name: "{{ duplicacy_container_name }}"
state: absent
register: result

View file

@ -2,7 +2,7 @@
- name: Start Duplicacy
block:
- name: Create Duplicacy Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
@ -11,7 +11,7 @@
- "{{ duplicacy_cache_directory }}"
- name: Duplicacy Docker Container
docker_container:
community.docker.docker_container:
name: "{{ duplicacy_container_name }}"
image: saspus/duplicacy-web:mini
hostname: "{{ duplicacy_hostname }}"
@ -42,7 +42,7 @@
- name: Stop Duplicacy
block:
- name: Stop Duplicacy
docker_container:
community.docker.docker_container:
name: "{{ duplicacy_container_name }}"
state: absent
when: duplicacy_enabled is false

View file

@ -2,14 +2,14 @@
- name: Start Duplicati
block:
- name: Create Duplicati Directory
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ duplicati_data_directory }}"
- name: Dupicati Docker Container
docker_container:
community.docker.docker_container:
name: "{{ duplicati_container_name }}"
image: linuxserver/duplicati
pull: true
@ -38,7 +38,7 @@
- name: Stop Duplicati
block:
- name: Stop Duplicati
docker_container:
community.docker.docker_container:
name: "{{ duplicati_container_name }}"
state: absent
when: duplicati_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ emby_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Emby
docker_container:
community.docker.docker_container:
name: "{{ emby_container_name }}"
state: absent
register: result

View file

@ -2,14 +2,14 @@
- name: Start Emby
block:
- name: Create Emby Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ emby_config_directory }}"
- name: Emby Docker Container
docker_container:
community.docker.docker_container:
name: "{{ emby_container_name }}"
image: emby/embyserver
pull: true
@ -38,7 +38,7 @@
- name: Stop Emby
block:
- name: Stop Emby
docker_container:
community.docker.docker_container:
name: "{{ emby_container_name }}"
state: absent
when: emby_enabled is false

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ esphome_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove EspHome
docker_container:
community.docker.docker_container:
name: "{{ esphome_container_name }}"
state: absent
register: result

View file

@ -2,14 +2,14 @@
- name: Start EspHome
block:
- name: Create EspHome Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ esphome_data_directory }}/data"
- name: EspHome Docker Container
docker_container:
community.docker.docker_container:
name: "{{ esphome_container_name }}"
image: esphome/esphome:latest
pull: true
@ -36,7 +36,7 @@
- name: Stop EspHome
block:
- name: Stop EspHome
docker_container:
community.docker.docker_container:
name: "{{ esphome_container_name }}"
state: absent
when: esphome_enabled is false

View file

@ -7,12 +7,12 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ firefly_container_name }}"
register: result
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ firefly_mysql_container_name }}"
register: result_mysql

View file

@ -7,13 +7,13 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Firefly
docker_container:
community.docker.docker_container:
name: "{{ firefly_container_name }}"
state: absent
register: result
- name: Try and stop and remove Firefly MySql
docker_container:
community.docker.docker_container:
name: "{{ firefly_mysql_container_name }}"
state: absent
register: result_mysql

View file

@ -2,7 +2,7 @@
- name: Start Firefly
block:
- name: Create Firefly III Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
@ -11,7 +11,7 @@
- "{{ firefly_data_directory }}/export"
- name: Create MySQL container for Firefly
docker_container:
community.docker.docker_container:
name: "{{ firefly_mysql_container_name }}"
image: mariadb:10.9
pull: true
@ -30,7 +30,7 @@
seconds: 30
- name: Create Firefly III container
docker_container:
community.docker.docker_container:
name: "{{ firefly_container_name }}"
image: fireflyiii/core:latest
pull: true
@ -66,12 +66,12 @@
- name: Stop Firefly
block:
- name: Stop Firefly
docker_container:
community.docker.docker_container:
name: "{{ firefly_container_name }}"
state: absent
- name: Stop Firefly MySQL
docker_container:
community.docker.docker_container:
name: "{{ firefly_mysql_container_name }}"
state: absent
when: firefly_enabled is false

View file

@ -11,7 +11,6 @@
- name: FreshRSS Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ freshrss_container_name }}"
image: "{{ freshrss_image_name }}:{{ freshrss_image_version }}"
pull: true
@ -34,7 +33,6 @@
traefik.http.services.freshrss.loadbalancer.server.port: "80"
when: freshrss_enabled is true
- name: Stop FreshRSS
block:
- name: Stop FreshRSS

View file

@ -11,7 +11,6 @@
- name: Create get_iplayer Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ get_iplayer_container_name }}"
image: "{{ get_iplayer_image_name }}:{{ get_iplayer_image_version }}"
pull: true

View file

@ -1,6 +1,6 @@
---
- name: Restart Gitea
docker_container:
community.docker.docker_container:
name: "{{ gitea_container_name }}"
restart: true
listen: "restart gitea"

View file

@ -2,7 +2,7 @@
- name: Start Gitea
block:
- name: Create Gitea Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
recurse: yes
@ -16,7 +16,6 @@
- name: Create MySQL container for Gitea
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ gitea_mysql_container_name }}"
image: "{{ gitea_mysql_image_name }}:{{ gitea_mysql_image_version }}"
pull: true
@ -35,7 +34,6 @@
- name: Create Gitea container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ gitea_container_name }}"
image: "{{ gitea_image_name }}:{{ gitea_image_version }}"
pull: true
@ -73,12 +71,12 @@
- name: Stop Gitea
block:
- name: Stop Gitea
docker_container:
community.docker.docker_container:
name: "{{ gitea_container_name }}"
state: absent
- name: Stop Gitea Mysql
docker_container:
community.docker.docker_container:
name: "{{ gitea_mysql_container_name }}"
state: absent
when: gitea_enabled is false

View file

@ -3,13 +3,13 @@
block:
# The gitlab uid/gid matches 'git:git' in the Gitlab Docker image.
- name: Create Gitlab group account
group:
ansible.builtin.group:
name: gitlab
gid: 998
state: present
- name: Create Gitlab user account
user:
ansible.builtin.user:
name: gitlab
uid: 998
state: present
@ -19,7 +19,7 @@
group: gitlab
- name: Create Gitlab Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: gitlab
@ -31,7 +31,6 @@
- name: Create Gitlab Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ gitlab_container_name }}"
image: "{{ gitlab_image_name }}:{{ gitlab_image_version }}"
pull: true

View file

@ -3,7 +3,6 @@
block:
- name: Create Glances Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ glances_container_name }}"
image: "{{ glances_image_name }}:{{ glances_image_version }}"
pull: true

View file

@ -10,7 +10,6 @@
- name: Gotify Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ gotify_container_name }}"
image: "{{ gotify_image_name }}:{{ gotify_image_version }}"
pull: true

View file

@ -9,19 +9,19 @@
- "{{ guacamole_data_directory }}/config"
- name: Remove Old Guacamole Mysql Docker Container
docker_container:
community.docker.docker_container:
name: guacamole-mysql
state: absent
keep_volumes: true
- name: Remove Old Guacamole guacd Docker Container
docker_container:
community.docker.docker_container:
name: guacamole-guacd
state: absent
keep_volumes: true
- name: Remove old Guacamole directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: absent
with_items:
@ -29,7 +29,6 @@
- name: Guacamole Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ guacamole_container_name }}"
image: "{{ guacamole_image_name }}:{{ guacamole_image_version }}"
pull: true

View file

@ -9,7 +9,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ heimdall_container_name }}"
register: result

View file

@ -9,7 +9,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Heimdall
docker_container:
community.docker.docker_container:
name: "{{ heimdall_container_name }}"
state: absent
register: result

View file

@ -2,13 +2,13 @@
- name: Start Heimdall
block:
- name: Create Heimdall group
group:
ansible.builtin.group:
name: heimdall
gid: "{{ heimdall_group_id }}"
state: present
- name: Create Heimdall user
user:
ansible.builtin.user:
name: heimdall
uid: "{{ heimdall_user_id }}"
state: present
@ -18,7 +18,7 @@
group: heimdall
- name: Create Heimdall Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: heimdall
@ -27,7 +27,7 @@
- "{{ heimdall_data_directory }}"
- name: Create Heimdall container
docker_container:
community.docker.docker_container:
name: "{{ heimdall_container_name }}"
image: "{{ heimdall_docker_image }}"
pull: true
@ -54,7 +54,7 @@
- name: Stop Heimdall
block:
- name: Stop Heimdall
docker_container:
community.docker.docker_container:
name: "{{ heimdall_container_name }}"
state: absent
when: heimdall_enabled is false

View file

@ -9,7 +9,7 @@
file: ../../defaults/main.yml
- name: Get container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ hello_world_container_name }}"
register: result

View file

@ -9,7 +9,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove Hello World
docker_container:
community.docker.docker_container:
name: "{{ hello_world_container_name }}"
state: absent
register: result

View file

@ -2,14 +2,14 @@
- name: Start Hello World
block:
- name: Create Hello World Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
with_items:
- "{{ hello_world_data_directory }}"
- name: Hello World Docker Container
docker_container:
community.docker.docker_container:
name: "{{ hello_world_container_name }}"
image: crccheck/hello-world
pull: true
@ -31,7 +31,7 @@
- name: Stop Hello World
block:
- name: Stop Hello World
docker_container:
community.docker.docker_container:
name: "{{ hello_world_container_name }}"
state: absent
when: hello_world_enabled is false

View file

@ -10,7 +10,6 @@
- name: Home Assistant Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ homeassistant_container_name }}"
image: "{{ homeassistant_image_name }}:{{ homeassistant_image_version }}"
pull: true

View file

@ -11,7 +11,6 @@
- name: Create Homebridge Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ homebridge_container_name }}"
image: "{{ homebridge_image_name }}:{{ homebridge_image_version }}"
pull: true

View file

@ -10,7 +10,6 @@
- name: Jackett Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ jackett_container_name }}"
image: "{{ jackett_image_name }}:{{ jackett_image_version }}"
volumes:

View file

@ -10,7 +10,6 @@
- name: Jellyfin Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ jellyfin_container_name }}"
image: "{{ jellyfin_image_name }}:{{ jellyfin_image_version }}"
pull: true

View file

@ -15,7 +15,6 @@
- name: MySQL Docker Container for Joomla
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ joomla_db_container_name }}"
image: "{{ joomla_db_image_name }}:{{ joomla_db_image_version }}"
pull: true
@ -33,7 +32,6 @@
- name: Joomla Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ joomla_container_name }}"
image: "{{ joomla_image_name }}:{{ joomla_image_version }}"
pull: true

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get komga container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ komga_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove komga
docker_container:
community.docker.docker_container:
name: "{{ komga_container_name }}"
state: absent
register: result

View file

@ -12,7 +12,6 @@
- name: Komga Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ komga_container_name }}"
image: "{{ komga_image_name }}:{{ komga_image_version }}"
pull: true

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Get krusader container state
docker_container_info:
community.docker.docker_container_info:
name: "{{ krusader_container_name }}"
register: result

View file

@ -7,7 +7,7 @@
file: ../../defaults/main.yml
- name: Try and stop and remove krusader
docker_container:
community.docker.docker_container:
name: "{{ krusader_container_name }}"
state: absent
register: result

View file

@ -10,7 +10,6 @@
- name: Krusader Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ krusader_container_name }}"
image: "{{ krusader_image_name }}:{{ krusader_image_version }}"
pull: true

View file

@ -8,7 +8,6 @@
- name: Lidarr Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ lidarr_container_name }}"
image: "{{ lidarr_image_name }}:{{ lidarr_image_version }}"
pull: true

View file

@ -10,7 +10,6 @@
- name: Mealie Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ mealie_container_name }}"
image: "{{ mealie_image_name }}:{{ mealie_image_version }}"
pull: true

View file

@ -10,7 +10,6 @@
- name: Minecraft Server Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ minecraft_server_container_name }}"
image: "{{ minecraft_server_image_name }}:{{ minecraft_server_image_version }}"
pull: true

View file

@ -3,7 +3,6 @@
block:
- name: MiniDLNA Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ minidlna_container_name }}"
image: "{{ minidlna_image_name }}:{{ minidlna_image_version }}"
pull: true

View file

@ -14,7 +14,6 @@
- name: Create Postgres for Miniflux
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ miniflux_db_container_name }}"
image: "{{ miniflux_db_image_name }}:{{ miniflux_db_image_version }}"
pull: true
@ -31,7 +30,6 @@
- name: Create Miniflux Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ miniflux_container_name }}"
image: "{{ miniflux_image_name }}:{{ miniflux_image_version }}"
pull: true

View file

@ -18,7 +18,6 @@
- name: Create Mosquitto container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ mosquitto_container_name }}"
image: "{{ mosquitto_image_name }}:{{ mosquitto_image_version }}"
pull: true

View file

@ -2,7 +2,7 @@
- name: Start Mumble
block:
- name: Create Mumble Directories
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
# The mumble image gets uid/gid at build time, and uses 1000 for both, by default.
@ -13,7 +13,7 @@
- "{{ mumble_data_directory }}"
- name: Create Mumble Docker Container
docker_container:
community.docker.docker_container:
name: "{{ mumble_container_name }}"
image: mumblevoip/mumble-server:latest
pull: true
@ -37,7 +37,7 @@
- name: Stop Mumble
block:
- name: Stop Mumble
docker_container:
community.docker.docker_container:
name: "{{ mumble_container_name }}"
state: absent
when: mumble_enabled is false

View file

@ -11,7 +11,6 @@
- name: Mylar Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ mylar_container_name }}"
image: "{{ mylar_image_name }}:{{ mylar_image_version }}"
pull: true

View file

@ -11,7 +11,6 @@
- name: Mymediaforalexa Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ mymediaforalexa_container_name }}"
image: "{{ mymediaforalexa_image_name }}:{{ mymediaforalexa_image_version }}"
pull: true

View file

@ -10,7 +10,6 @@
- name: Create n8n Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ n8n_container_name }}"
image: "{{ n8n_image_name }}:{{ n8n_image_version }}"
pull: true

View file

@ -12,7 +12,6 @@
- name: Navidrome Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ navidrome_container_name }}"
image: "{{ navidrome_image_name }}:{{ navidrome_image_version }}"
pull: true

View file

@ -11,7 +11,6 @@
- name: Netbootxyz Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ netbootxyz_container_name }}"
image: "{{ netbootxyz_image_name }}:{{ netbootxyz_image_version }}"
pull: true

View file

@ -8,7 +8,6 @@
- name: Netdata Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ netdata_container_name }}"
image: "{{ netdata_image_name }}:{{ netdata_image_version }}"
hostname: "{{ ansible_nas_hostname }}.{{ ansible_nas_domain }}"

View file

@ -15,7 +15,6 @@
- name: Nextcloud Mysql Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ nextcloud_db_container_name }}"
image: "{{ nextcloud_db_image_name }}:{{ nextcloud_db_image_version }}"
networks:
@ -34,7 +33,6 @@
- name: Nextcloud Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ nextcloud_container_name }}"
image: "{{ nextcloud_image_name }}:{{ nextcloud_image_version }}"
networks:

View file

@ -10,7 +10,6 @@
- name: NZBGet
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ nzbget_container_name }}"
image: "{{ nzbget_image_name }}:{{ nzbget_image_version }}"
pull: true

View file

@ -10,7 +10,6 @@
- name: Octoprint Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ octoprint_container_name }}"
image: "{{ octoprint_image_name }}:{{ octoprint_image_version }}"
pull: true

View file

@ -8,7 +8,6 @@
- name: Ombi Docker Container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ ombi_container_name }}"
image: "{{ ombi_image_name }}:{{ ombi_image_version }}"
pull: true

View file

@ -31,7 +31,6 @@
- name: Create openHAB container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ openhab_container_name }}"
image: "{{ openhab_image_name }}:{{ openhab_image_version }}"
pull: true

View file

@ -10,7 +10,6 @@
- name: Create Organizr container
community.docker.docker_container:
container_default_behavior: no_defaults
name: "{{ organizr_container_name }}"
image: "{{ organizr_image_name }}:{{ organizr_image_version }}"
pull: true

Some files were not shown because too many files have changed in this diff Show more