Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve dependency issues from Debian Bookwrom and improve resolvconf update #565

Merged
merged 5 commits into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ It should also work with Ubuntu for Pi, or Arch Linux, but has not been tested o
## Setup

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`
1. (If on Pi/Debian): `sudo apt-get install -y ansible`
2. (Everywhere): `pip3 install ansible`
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)
Expand All @@ -56,7 +56,7 @@ It should also work with Ubuntu for Pi, or Arch Linux, but has not been tested o

### Pi-hole

Visit the Pi's IP address (e.g. http://192.168.1.10/) and use the `pihole_password` you configured in your `config.yml` file. An existing pi-hole installation can be left unaltered by disabling the setup of this proyect's installation in your `config.yml` (`pihole_enable: false`)
Visit the Pi's IP address (e.g. http://192.168.1.10/admin) and use the `pihole_password` you configured in your `config.yml` file. An existing pi-hole installation can be left unaltered by disabling the setup of this project's installation in your `config.yml` (`pihole_enable: false`)

### Grafana

Expand Down
9 changes: 3 additions & 6 deletions tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- python3-pip
- git
- rsync
- docker-compose
- resolvconf
state: present
when: ansible_facts.os_family == "Debian"

Expand All @@ -46,15 +48,10 @@
- python-pip
- git
- rsync
- docker-compose
state: present
when: ansible_facts.os_family == "Archlinux"

- name: Install Docker Compose using Pip.
ansible.builtin.pip:
name: docker-compose
state: present
executable: pip3

- name: "Ensure user is added to the docker group: {{ ansible_user }}"
ansible.builtin.user:
name: "{{ ansible_user }}"
Expand Down
6 changes: 6 additions & 0 deletions tasks/pi-hole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
build: false
become: false

- name: Ensure resolveconf exists.
ansible.builtin.file:
path: "/etc/resolvconf.conf"
state: touch
mode: "744"

- name: Update resolveconf for local name server use.
ansible.builtin.lineinfile:
line: "name_servers=127.0.0.1"
Expand Down
Loading