Skip to content

Commit

Permalink
Issue geerlingguy#575: Follow-ups to make sure initial install works …
Browse files Browse the repository at this point in the history
…well.
  • Loading branch information
geerlingguy committed Feb 4, 2024
1 parent 38a240b commit 7c20fbd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ It should also work with Ubuntu for Pi, or Arch Linux, but has not been tested o
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:
1. (If on Pi/Debian): `sudo apt-get install -y python3-pip`
2. (Everywhere): `pip3 install ansible`
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.
4. Make sure Ansible is in your PATH: `export PATH=$PATH:~/.local/bin` (and consider [adding it permanently](https://askubuntu.com/a/1113838)).
2. Clone this repository: `git clone https://github.com/geerlingguy/internet-pi.git`, then enter the repository directory: `cd internet-pi`.
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)
4. Make copies of the following files and customize them to your liking:
Expand Down
8 changes: 4 additions & 4 deletions tasks/handlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
- name: Restart pi-hole
community.docker.docker_compose_v2:
project_src: "{{ config_dir }}/pi-hole/"
build: false
build: never
restarted: true
become: false

- name: Restart internet-monitoring
community.docker.docker_compose_v2:
project_src: "{{ config_dir }}/internet-monitoring/"
build: false
build: never
restarted: true
become: false

- name: Restart shelly-plug-prometheus
community.docker.docker_compose_v2:
project_src: "{{ config_dir }}/shelly-plug-prometheus/"
build: false
build: never
restarted: true
become: false

- name: Restart starlink-exporter
community.docker.docker_compose_v2:
project_src: "{{ config_dir }}/starlink-exporter/"
build: false
build: never
restarted: true
become: false
2 changes: 1 addition & 1 deletion tasks/internet-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
- name: Ensure internet-monitoring environment is running.
community.docker.docker_compose_v2:
project_src: "{{ config_dir }}/internet-monitoring/"
build: false
build: never
become: false
2 changes: 1 addition & 1 deletion tasks/pi-hole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- name: Ensure Pi-hole is running.
community.docker.docker_compose_v2:
project_src: "{{ pi_hole_dir.path }}/"
build: false
build: never
become: false

- name: Ensure resolveconf exists.
Expand Down
2 changes: 1 addition & 1 deletion tasks/shelly-plug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Ensure Shelly Plug Prometheus exporter is running.
community.docker.docker_compose_v2:
project_src: "{{ config_dir }}/shelly-plug-prometheus/"
build: false
build: never
become: false

- name: Copy shelly dashboard config to grafana
Expand Down
2 changes: 1 addition & 1 deletion tasks/starlink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- name: Ensure Starlink Prometheus exporter is running.
community.docker.docker_compose_v2:
project_src: "{{ config_dir }}/starlink-exporter/"
build: false
build: never
become: false

- name: Copy starlink dashboard config to grafana.
Expand Down

0 comments on commit 7c20fbd

Please sign in to comment.