Skip to content

Commit d4170cf

Browse files
committed
Issue #575: Make sure handler syntax is correct for compose v2.
1 parent 7c20fbd commit d4170cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ It should also work with Ubuntu for Pi, or Arch Linux, but has not been tested o
5252
- `example.config.yml` to `config.yml`
5353
5. Run the playbook: `ansible-playbook main.yml`
5454

55-
> **If running locally on the Pi**: You may encounter an error like "Error while fetching server API version". If you do, please either reboot or log out and log back in, then run the playbook again.
55+
> **If running locally on the Pi**: You may encounter an error like "Error while fetching server API version" or "connect: permission denied". If you do, please either reboot or log out and log back in, then run the playbook again.
5656
5757
## Usage
5858

tasks/handlers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33
community.docker.docker_compose_v2:
44
project_src: "{{ config_dir }}/pi-hole/"
55
build: never
6-
restarted: true
6+
state: restarted
77
become: false
88

99
- name: Restart internet-monitoring
1010
community.docker.docker_compose_v2:
1111
project_src: "{{ config_dir }}/internet-monitoring/"
1212
build: never
13-
restarted: true
13+
state: restarted
1414
become: false
1515

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

2323
- name: Restart starlink-exporter
2424
community.docker.docker_compose_v2:
2525
project_src: "{{ config_dir }}/starlink-exporter/"
2626
build: never
27-
restarted: true
27+
state: restarted
2828
become: false

0 commit comments

Comments
 (0)