enable all restarted services and add internal.simponic.xyz search domain

This commit is contained in:
Elizabeth Hunt 2024-01-01 16:55:50 -05:00
parent 3b818dc0b9
commit 64e3ad7da4
6 changed files with 18 additions and 21 deletions

View File

@ -2,7 +2,3 @@
hosts: all hosts: all
roles: roles:
- common - common
- hosts: dns
roles:
- dns

View File

@ -3,4 +3,4 @@ dns_servers:
- 1.1.1.1 - 1.1.1.1
- 1.0.0.1 - 1.0.0.1
dns_dnssec: true dns_dnssec: true
dns_domains: [] dns_domains: ["internal.simponic.xyz"]

View File

@ -1,22 +1,24 @@
[private] [private]
johan.internal.simponic.xyz ansible_user=root ansible_connection=ssh johan ansible_user=root ansible_connection=ssh
nijika.internal.simponic.xyz ansible_user=root ansible_connection=ssh nijika ansible_user=root ansible_connection=ssh
ryo.internal.simponic.xyz ansible_user=root ansible_connection=ssh ryo ansible_user=root ansible_connection=ssh
#ash.internal.simponic.xyz ansible_user=root ansible_connection=ssh #ash ansible_user=root ansible_connection=ssh
[webservers] [webservers]
levi.internal.simponic.xyz ansible_user=root ansible_connection=ssh levi ansible_user=root ansible_connection=ssh
#ash.internal.simponic.xyz ansible_user=root ansible_connection=ssh #ash.internal.simponic.xyz ansible_user=root ansible_connection=ssh
[dns] [dnsprimary]
nijika.internal.simponic.xyz ansible_user=root ansible_connection=ssh nijika ansible_user=root ansible_connection=ssh ansible_host=107.173.19.33 # nijika
ryo.internal.simponic.xyz ansible_user=root ansible_connection=ssh
[dnsreplica]
ryo ansible_user=root ansible_connection=ssh ansible_host=107.172.103.253 # ryo
[internaldns] [internaldns]
johan.internal.simponic.xyz ansible_user=root ansible_connection=ssh johan ansible_user=root ansible_connection=ssh
[mail] [mail]
#ash.internal.simponic.xyz ansible_user=root ansible_connection=ssh #ash ansible_user=root ansible_connection=ssh
[vpn] [vpn]
johan.internal.simponic.xyz ansible_user=root ansible_connection=ssh johan ansible_user=root ansible_connection=ssh

View File

@ -16,7 +16,7 @@
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r
- name: restart sshd - name: restart sshd
service: name=sshd state=restarted service: name=sshd state=restarted enabled=yes
# FIREWALL # FIREWALL
- name: install UFW - name: install UFW
@ -28,7 +28,7 @@
name: OpenSSH name: OpenSSH
- name: restart ufw - name: restart ufw
service: name=ufw state=restarted service: name=ufw state=restarted enabled=yes
# FAIL2BAN # FAIL2BAN
- name: install fail2ban - name: install fail2ban
@ -43,7 +43,7 @@
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r
- name: restart fail2ban - name: restart fail2ban
service: name=fail2ban state=restarted service: name=fail2ban state=restarted enabled=yes
# DNS # DNS
- name: install systemd-resolved - name: install systemd-resolved

View File

@ -41,7 +41,7 @@
no_extra_spaces: true no_extra_spaces: true
register: conf_domains register: conf_domains
- name: Check if network manager runs - name: Check if systemd-resolve runs
ansible.builtin.shell: pgrep systemd-resolve ansible.builtin.shell: pgrep systemd-resolve
failed_when: false failed_when: false
changed_when: false changed_when: false

View File

@ -1 +0,0 @@
---