enable all restarted services and add internal.simponic.xyz search domain
This commit is contained in:
parent
3b818dc0b9
commit
64e3ad7da4
@ -2,7 +2,3 @@
|
||||
hosts: all
|
||||
roles:
|
||||
- common
|
||||
|
||||
- hosts: dns
|
||||
roles:
|
||||
- dns
|
@ -3,4 +3,4 @@ dns_servers:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
dns_dnssec: true
|
||||
dns_domains: []
|
||||
dns_domains: ["internal.simponic.xyz"]
|
||||
|
24
inventory
24
inventory
@ -1,22 +1,24 @@
|
||||
[private]
|
||||
johan.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
nijika.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
ryo.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
#ash.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
johan ansible_user=root ansible_connection=ssh
|
||||
nijika ansible_user=root ansible_connection=ssh
|
||||
ryo ansible_user=root ansible_connection=ssh
|
||||
#ash ansible_user=root ansible_connection=ssh
|
||||
|
||||
[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
|
||||
|
||||
[dns]
|
||||
nijika.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
ryo.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
[dnsprimary]
|
||||
nijika ansible_user=root ansible_connection=ssh ansible_host=107.173.19.33 # nijika
|
||||
|
||||
[dnsreplica]
|
||||
ryo ansible_user=root ansible_connection=ssh ansible_host=107.172.103.253 # ryo
|
||||
|
||||
[internaldns]
|
||||
johan.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
johan ansible_user=root ansible_connection=ssh
|
||||
|
||||
[mail]
|
||||
#ash.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
#ash ansible_user=root ansible_connection=ssh
|
||||
|
||||
[vpn]
|
||||
johan.internal.simponic.xyz ansible_user=root ansible_connection=ssh
|
||||
johan ansible_user=root ansible_connection=ssh
|
||||
|
@ -16,7 +16,7 @@
|
||||
mode: u=rw,g=r,o=r
|
||||
|
||||
- name: restart sshd
|
||||
service: name=sshd state=restarted
|
||||
service: name=sshd state=restarted enabled=yes
|
||||
|
||||
# FIREWALL
|
||||
- name: install UFW
|
||||
@ -28,7 +28,7 @@
|
||||
name: OpenSSH
|
||||
|
||||
- name: restart ufw
|
||||
service: name=ufw state=restarted
|
||||
service: name=ufw state=restarted enabled=yes
|
||||
|
||||
# FAIL2BAN
|
||||
- name: install fail2ban
|
||||
@ -43,7 +43,7 @@
|
||||
mode: u=rw,g=r,o=r
|
||||
|
||||
- name: restart fail2ban
|
||||
service: name=fail2ban state=restarted
|
||||
service: name=fail2ban state=restarted enabled=yes
|
||||
|
||||
# DNS
|
||||
- name: install systemd-resolved
|
||||
|
@ -41,7 +41,7 @@
|
||||
no_extra_spaces: true
|
||||
register: conf_domains
|
||||
|
||||
- name: Check if network manager runs
|
||||
- name: Check if systemd-resolve runs
|
||||
ansible.builtin.shell: pgrep systemd-resolve
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
@ -1 +0,0 @@
|
||||
---
|
Loading…
Reference in New Issue
Block a user