[ansible][attitude-adjuster]

pull/28/head
Alpha Chen 5 years ago
parent 5a0cd902df
commit e1cda8d205

@ -14,4 +14,6 @@
- import_playbook: ddclient.yml
- import_playbook: home-assistant.yml
- import_playbook: pihole.yml
- import_playbook: traefik.yml
- import_playbook: docker.yml

@ -0,0 +1,18 @@
- hosts: attitude-adjuster
become: yes
tasks:
- name: allow access to dns
ufw:
rule: allow
name: DNS
notify: restart pihole
handlers:
- name: restart pihole
docker_container:
name: pihole
restart: yes
ignore_errors: yes

@ -28,13 +28,10 @@
- ufw
- fail2ban
- name: allow access to dns, http, and https
- name: allow access to http, and https
ufw:
rule: allow
name: "{{ item }}"
with_items:
- DNS
- WWW Full
name: WWW Full
- name: limit ssh access
ufw:

Loading…
Cancel
Save