Skip to content

Commit

Permalink
Documentation & minor tag
Browse files Browse the repository at this point in the history
  • Loading branch information
blalop committed Jan 23, 2021
1 parent 958c6c3 commit 6e5afe3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.yml linguist-detectable=true
*.yaml linguist-detectable=true
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
# Pihole Ansible role

[![Build Status](https://travis-ci.com/blalop/pihole_role.svg?branch=main)](https://travis-ci.com/blalop/pihole_role)

This role installs pihole via installation script. Tested on Debian && Raspbian.

## Requirements

No special requirements.


## Role vars

| Variable | Default | Additional comments |
| :--- | :--- | :--- |
| `pihole_required_packages` | [procps] | |
| `pihole_password` | pihole | Pihole web interface password |
| `pihole_force_reinstall` | false | Forces reinstallation |
| `pihole_lighttpd_port` | 80 | Web interface port |
| `pihole_interface` | eth0 | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_ipv4_address` | 0.0.0.0 | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_ipv6_address` | 0:0:0:0:0:0 | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_dns_1` | 8.8.8.8 | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_dns_2` | 4.4.4.4 | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_query_logging` | true | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_web_server` | true | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_web_interface` | true | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |
| `pihole_lighttpd_enabled` | true | [Pihole setup vars](https://discourse.pi-hole.net/t/what-is-setupvars-conf-and-how-do-i-use-it/3533) |


## Testing

Test the role via molecule:

```
pipenv sync
pipenv run molecule test
```
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
register: pihole_version_check
ignore_errors: true
changed_when: false
tags:
- pihole_install

- name: Pi-hole | Install
include: install.yml
Expand Down

0 comments on commit 6e5afe3

Please sign in to comment.