add log01 host
This commit is contained in:
parent
7088bc9b14
commit
afd81c714c
4 changed files with 35 additions and 0 deletions
4
group_vars/log.yml
Normal file
4
group_vars/log.yml
Normal 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]}
|
3
host_vars/log01.home.foo.sh.yml
Normal file
3
host_vars/log01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
interfaces: [[20, "52:54:00:ac:dc:27"]]
|
||||||
|
vmhost: vmhost01.home.foo.sh
|
4
hosts
4
hosts
|
@ -11,6 +11,9 @@ gw01.home.foo.sh
|
||||||
ldap01.home.foo.sh
|
ldap01.home.foo.sh
|
||||||
ldap02.home.foo.sh
|
ldap02.home.foo.sh
|
||||||
|
|
||||||
|
[log]
|
||||||
|
log01.home.foo.sh
|
||||||
|
|
||||||
[proxy]
|
[proxy]
|
||||||
proxy01.home.foo.sh
|
proxy01.home.foo.sh
|
||||||
proxy02.home.foo.sh
|
proxy02.home.foo.sh
|
||||||
|
@ -22,4 +25,5 @@ mirror
|
||||||
|
|
||||||
[openbsd:children]
|
[openbsd:children]
|
||||||
gw
|
gw
|
||||||
|
log
|
||||||
proxy
|
proxy
|
||||||
|
|
24
playbooks/log.yml
Normal file
24
playbooks/log.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue