From 1ab67d0318a3cb4bf9836ca28686d617e14ba036 Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 14 Aug 2024 19:28:39 +0200 Subject: [PATCH] refactor: use community.docker instead of community.general --- .github/workflows/test-ubuntu-lts.yml | 1 - roles/homeassistant/tasks/homeassistant.yml | 4 ++-- roles/homeassistant/tasks/mdns.yml | 4 ++-- roles/mosquitto/tasks/main.yml | 4 ++-- roles/zigbee2mqtt/tasks/main.yml | 4 ++-- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-ubuntu-lts.yml b/.github/workflows/test-ubuntu-lts.yml index fd8b9ee..329beca 100644 --- a/.github/workflows/test-ubuntu-lts.yml +++ b/.github/workflows/test-ubuntu-lts.yml @@ -25,7 +25,6 @@ jobs: /opt/pipx/venvs/ansible-core/bin/python -m pip install requests ansible-galaxy install geerlingguy.docker - ansible-galaxy collection install community.general ansible-galaxy collection install community.docker ansible-galaxy collection install . -f diff --git a/roles/homeassistant/tasks/homeassistant.yml b/roles/homeassistant/tasks/homeassistant.yml index 6fdd9c0..b3ce83d 100644 --- a/roles/homeassistant/tasks/homeassistant.yml +++ b/roles/homeassistant/tasks/homeassistant.yml @@ -26,12 +26,12 @@ - name: "Ensure {{ homeassistant_network }} network exists" when: homeassistant_network != "host" - community.general.docker_network: + community.docker.docker_network: name: "{{ homeassistant_network }}" state: "present" - name: "Run homeassistant container" - community.general.docker_container: + community.docker.docker_container: name: "{{ homeassistant_service_id }}" image: "{{ homeassistant_avahi_image_name }}:{{ homeassistant_avahi_image_tag }}" networks: diff --git a/roles/homeassistant/tasks/mdns.yml b/roles/homeassistant/tasks/mdns.yml index fafd8b2..44880f9 100644 --- a/roles/homeassistant/tasks/mdns.yml +++ b/roles/homeassistant/tasks/mdns.yml @@ -5,7 +5,7 @@ - name: "Get homeassistant network interface name" block: - - community.general.docker_network_info: + - community.docker.docker_network_info: name: "{{ ha_network }}" register: ha_network_info @@ -26,7 +26,7 @@ line: "allow-interfaces={{ homeassistant_mdns_host_network_interface }},{{ homeassistant_mdns_docker_network_interface }}" - name: "Run mdns-repeater container" - community.general.docker_container: + community.docker.docker_container: name: "{{ homeassistant_mdns_service_id }}" image: "angelnu/mdns_repeater" network_mode: "host" diff --git a/roles/mosquitto/tasks/main.yml b/roles/mosquitto/tasks/main.yml index 4740eab..32624c4 100644 --- a/roles/mosquitto/tasks/main.yml +++ b/roles/mosquitto/tasks/main.yml @@ -40,12 +40,12 @@ - name: "Ensure {{ mosquitto_network }} network exists" when: mosquitto_network != "host" - community.general.docker_network: + community.docker.docker_network: name: "{{ mosquitto_network }}" state: "present" - name: "Run mosquitto container" - community.general.docker_container: + community.docker.docker_container: name: "{{ mosquitto_service_id }}" image: "eclipse-mosquitto:{{ mosquitto_version }}" networks: diff --git a/roles/zigbee2mqtt/tasks/main.yml b/roles/zigbee2mqtt/tasks/main.yml index d3db757..c66a139 100644 --- a/roles/zigbee2mqtt/tasks/main.yml +++ b/roles/zigbee2mqtt/tasks/main.yml @@ -25,12 +25,12 @@ - name: "Ensure {{ zigbee2mqtt_network }} network exists" when: zigbee2mqtt_network != "host" - community.general.docker_network: + community.docker.docker_network: name: "{{ zigbee2mqtt_network }}" state: "present" - name: "Run zigbee2mqtt container" - community.general.docker_container: + community.docker.docker_container: name: "{{ zigbee2mqtt_service_id }}" image: "koenkk/zigbee2mqtt:{{ zigbee2mqtt_version }}" networks: