Skip to content

Commit 7c20fbd

Browse files
committed
Issue #575: Follow-ups to make sure initial install works well.
1 parent 38a240b commit 7c20fbd

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ It should also work with Ubuntu for Pi, or Arch Linux, but has not been tested o
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:
4444
1. (If on Pi/Debian): `sudo apt-get install -y python3-pip`
4545
2. (Everywhere): `pip3 install ansible`
46+
3. If you get an error like "externally-managed-environment", follow [this guide to fix it](https://www.jeffgeerling.com/blog/2023/how-solve-error-externally-managed-environment-when-installing-pip3), then run `pip3 install ansible` again.
47+
4. Make sure Ansible is in your PATH: `export PATH=$PATH:~/.local/bin` (and consider [adding it permanently](https://askubuntu.com/a/1113838)).
4648
2. Clone this repository: `git clone https://github.com/geerlingguy/internet-pi.git`, then enter the repository directory: `cd internet-pi`.
4749
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)
4850
4. Make copies of the following files and customize them to your liking:

tasks/handlers.yml

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

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

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

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

tasks/internet-monitoring.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@
4747
- name: Ensure internet-monitoring environment is running.
4848
community.docker.docker_compose_v2:
4949
project_src: "{{ config_dir }}/internet-monitoring/"
50-
build: false
50+
build: never
5151
become: false

tasks/pi-hole.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- name: Ensure Pi-hole is running.
2121
community.docker.docker_compose_v2:
2222
project_src: "{{ pi_hole_dir.path }}/"
23-
build: false
23+
build: never
2424
become: false
2525

2626
- name: Ensure resolveconf exists.

tasks/shelly-plug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- name: Ensure Shelly Plug Prometheus exporter is running.
2020
community.docker.docker_compose_v2:
2121
project_src: "{{ config_dir }}/shelly-plug-prometheus/"
22-
build: false
22+
build: never
2323
become: false
2424

2525
- name: Copy shelly dashboard config to grafana

tasks/starlink.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- name: Ensure Starlink Prometheus exporter is running.
1818
community.docker.docker_compose_v2:
1919
project_src: "{{ config_dir }}/starlink-exporter/"
20-
build: false
20+
build: never
2121
become: false
2222

2323
- name: Copy starlink dashboard config to grafana.

0 commit comments

Comments
 (0)