added playbooks

This commit is contained in:
transatoshi
2024-12-28 15:31:42 -08:00
parent 64c5fa955d
commit 211e15ea7b
11 changed files with 376 additions and 0 deletions

8
ansible/dns-fix.yml Normal file
View File

@@ -0,0 +1,8 @@
- hosts: www
remote_user: root
tasks:
- name: Overwrite /etc/hosts with grinminer.net DNS servers
ansible.builtin.shell:
cmd: echo -e "domain grinminer.net\nsearch grinminer.net\nnameserver 10.0.0.2\nnameserver 10.0.0.3\nnameserver 1.1.1.1" > /etc/hosts