Skip to content

Commit 38a240b

Browse files
committed
Fixes #575: Use new docker_compose_v2 plugin.
1 parent d53939c commit 38a240b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ It should also work with Ubuntu for Pi, or Arch Linux, but has not been tested o
4141
## Setup
4242

4343
1. [Install Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html). The easiest way (especially on Pi or a Debian system) is via Pip:
44-
1. (If on Pi/Debian): `sudo apt-get install -y ansible`
44+
1. (If on Pi/Debian): `sudo apt-get install -y python3-pip`
4545
2. (Everywhere): `pip3 install ansible`
4646
2. Clone this repository: `git clone https://github.com/geerlingguy/internet-pi.git`, then enter the repository directory: `cd internet-pi`.
4747
3. Install requirements: `ansible-galaxy collection install -r requirements.yml` (if you see `ansible-galaxy: command not found`, restart your SSH session or reboot the Pi and try again)

tasks/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- python3-pip
3535
- git
3636
- rsync
37-
- docker-compose
37+
- docker-compose-plugin
3838
- resolvconf
3939
state: present
4040
when: ansible_facts.os_family == "Debian"
@@ -48,7 +48,7 @@
4848
- python-pip
4949
- git
5050
- rsync
51-
- docker-compose
51+
- docker-compose-plugin
5252
state: present
5353
when: ansible_facts.os_family == "Archlinux"
5454

tasks/handlers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
22
- name: Restart pi-hole
3-
community.docker.docker_compose:
3+
community.docker.docker_compose_v2:
44
project_src: "{{ config_dir }}/pi-hole/"
55
build: false
66
restarted: true
77
become: false
88

99
- name: Restart internet-monitoring
10-
community.docker.docker_compose:
10+
community.docker.docker_compose_v2:
1111
project_src: "{{ config_dir }}/internet-monitoring/"
1212
build: false
1313
restarted: true
1414
become: false
1515

1616
- name: Restart shelly-plug-prometheus
17-
community.docker.docker_compose:
17+
community.docker.docker_compose_v2:
1818
project_src: "{{ config_dir }}/shelly-plug-prometheus/"
1919
build: false
2020
restarted: true
2121
become: false
2222

2323
- name: Restart starlink-exporter
24-
community.docker.docker_compose:
24+
community.docker.docker_compose_v2:
2525
project_src: "{{ config_dir }}/starlink-exporter/"
2626
build: false
2727
restarted: true

tasks/internet-monitoring.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
become: false
4646

4747
- name: Ensure internet-monitoring environment is running.
48-
community.docker.docker_compose:
48+
community.docker.docker_compose_v2:
4949
project_src: "{{ config_dir }}/internet-monitoring/"
5050
build: false
5151
become: false

tasks/pi-hole.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# TODO: The first time this playbook is run, the `pi` user may not be added
1919
# to the `docker` group, so this task may fail.
2020
- name: Ensure Pi-hole is running.
21-
community.docker.docker_compose:
21+
community.docker.docker_compose_v2:
2222
project_src: "{{ pi_hole_dir.path }}/"
2323
build: false
2424
become: false

tasks/shelly-plug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
notify: Restart shelly-plug-prometheus
1818

1919
- name: Ensure Shelly Plug Prometheus exporter is running.
20-
community.docker.docker_compose:
20+
community.docker.docker_compose_v2:
2121
project_src: "{{ config_dir }}/shelly-plug-prometheus/"
2222
build: false
2323
become: false

tasks/starlink.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
notify: Restart starlink-exporter
1616

1717
- name: Ensure Starlink Prometheus exporter is running.
18-
community.docker.docker_compose:
18+
community.docker.docker_compose_v2:
1919
project_src: "{{ config_dir }}/starlink-exporter/"
2020
build: false
2121
become: false

0 commit comments

Comments
 (0)