nginx load balancing internal/external working
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
# DNS Server
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
ansible-playbook -i ansible/inventory.yaml dns/dns.yaml
|
||||
```
|
||||
@@ -1,3 +0,0 @@
|
||||
server=10.1.0.1
|
||||
cache-size=1000
|
||||
address=/.reeseapps.com/10.1.203.197
|
||||
25
dns/dns.yaml
25
dns/dns.yaml
@@ -1,25 +0,0 @@
|
||||
- name: Update dnsmasq server
|
||||
hosts: dns
|
||||
become: true
|
||||
become_user: root
|
||||
become_method: sudo
|
||||
tasks:
|
||||
- name: Ensure dnsmasq is installed
|
||||
ansible.builtin.apt:
|
||||
pkg:
|
||||
- dnsmasq
|
||||
- dnsutils
|
||||
- name: Copy dns configurations
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/dnsmasq.d/{{ item | basename }}
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
with_fileglob:
|
||||
- conf.d/*
|
||||
- name: Reload dnsmasq service
|
||||
ansible.builtin.systemd_service:
|
||||
state: restarted
|
||||
name: dnsmasq
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user