add log01 host

This commit is contained in:
Timo Makinen 2019-07-19 17:20:15 +03:00
parent 7088bc9b14
commit afd81c714c
4 changed files with 35 additions and 0 deletions

4
group_vars/log.yml Normal file
View file

@ -0,0 +1,4 @@
---
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 6514, from: [172.20.20.0/22]}

View file

@ -0,0 +1,3 @@
---
interfaces: [[20, "52:54:00:ac:dc:27"]]
vmhost: vmhost01.home.foo.sh

4
hosts
View file

@ -11,6 +11,9 @@ gw01.home.foo.sh
ldap01.home.foo.sh
ldap02.home.foo.sh
[log]
log01.home.foo.sh
[proxy]
proxy01.home.foo.sh
proxy02.home.foo.sh
@ -22,4 +25,5 @@ mirror
[openbsd:children]
gw
log
proxy

24
playbooks/log.yml Normal file
View file

@ -0,0 +1,24 @@
---
- import_playbook: "include/vm-create.yml myhosts=log"
- name: configure instance
hosts: log
user: root
gather_facts: true
pre_tasks:
- name: mount /export
mount:
name: /export
src: /dev/sd1a
fstype: ffs
opts: rw,softdep,noatime
passno: 1
dump: 2
state: mounted
vars_files:
- /srv/ansible-private/vars.yml
roles:
- base