Skip to content

Commit

Permalink
adding luna
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jul 16, 2021
1 parent 1a2ab54 commit 9f5e227
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
19 changes: 19 additions & 0 deletions host_vars/luna.l3d.ch/vars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# allow public DNS (in internal network)
unbound_listen_addresses:
- '0.0.0.0@53'
- '::0@53'
unbound_access_control:
- 'access-control: 192.168.255.0/24 allow'
- 'access-control: fe80::/64 allow'
- 'access-control: fd00::/8 allow'
- 'access-control: 127.0.0.1 allow'
- 'access-control: ::1 allow'

# open firewall for WEB, SSH and DNS
firewall_allowed_tcp_ports:
- "22"
- "53"
- "80"
- "443"
firewall_allowed_udp_ports: ['53']
9 changes: 9 additions & 0 deletions hosts.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@ web01.l3d.space

[mail]
mail01.l3d.space

[home]
luna.l3d.ch ansible_host=192.168.255.2

[resolver]
luna.l3d.ch ansible_host=192.168.255.2

[resolver:children]
mail
2 changes: 1 addition & 1 deletion roles/unbound
6 changes: 5 additions & 1 deletion site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@
- {role: do1jlr.gitea, tags: [web, gitea, git]}
- {role: goaccess, tags: [web, goaccess]}

- name: deploy dns resolver
hosts: resolver
roles:
- {role: unbound, tags: [mail, unbound]}

- name: deploy mail config
hosts: mail
roles:
- {role: unbound, tags: [mail, unbound]}
- {role: geerlingguy.mysql, tags: [mail, mysql, mariadb], become: true}
- {role: do1jlr.webhost, tags: [mail, webhost], become: true}
- {role: acmetool_fix, tags: [mail, acmetool]}
Expand Down

0 comments on commit 9f5e227

Please sign in to comment.