Add ansible roles + templates
This commit is contained in:
11
ansible/playbooks/debug.yml
Normal file
11
ansible/playbooks/debug.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
# Playbook to debug and display variables
|
||||
|
||||
- name: Display all variables/facts known for a host
|
||||
hosts: all
|
||||
become: no
|
||||
tasks:
|
||||
- name: Display all variables/facts known for a host
|
||||
tags: debug_info
|
||||
debug:
|
||||
var: hostvars[inventory_hostname]
|
8
ansible/playbooks/dns.yml
Normal file
8
ansible/playbooks/dns.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
# Playbook to set up the local DNS resolver
|
||||
|
||||
- name: Install and configure the local DNS resolver
|
||||
hosts: dns
|
||||
become: yes
|
||||
roles:
|
||||
- dns-internal
|
9
ansible/playbooks/setup.yml
Normal file
9
ansible/playbooks/setup.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
# Playbook to set up the servers
|
||||
|
||||
- name: Configure access and install work tools
|
||||
hosts: all
|
||||
become: yes
|
||||
roles:
|
||||
- tools
|
||||
- users
|
Reference in New Issue
Block a user