add git host group
This commit is contained in:
parent
3a6ceec53c
commit
a283444443
4 changed files with 41 additions and 0 deletions
9
group_vars/git.yml
Normal file
9
group_vars/git.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
os_type: centos7
|
||||||
|
datadisk_size:
|
||||||
|
- 10
|
||||||
|
|
||||||
|
firewall_in:
|
||||||
|
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||||
|
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
|
3
host_vars/git02.home.foo.sh.yml
Normal file
3
host_vars/git02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
mac_address: 52:54:00:ac:dc:18
|
||||||
|
vmhost: vmhost02.home.foo.sh
|
3
hosts
3
hosts
|
@ -1,2 +1,5 @@
|
||||||
[mirror]
|
[mirror]
|
||||||
mirror01.home.foo.sh
|
mirror01.home.foo.sh
|
||||||
|
|
||||||
|
[git]
|
||||||
|
git02.home.foo.sh
|
||||||
|
|
26
playbooks/git.yml
Normal file
26
playbooks/git.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
- import_playbook: "include/vm-create.yml myhosts=git02.home.foo.sh"
|
||||||
|
|
||||||
|
- name: configure instance
|
||||||
|
hosts: git
|
||||||
|
user: root
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/ansible-private/vars.yml
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: mount /export
|
||||||
|
mount:
|
||||||
|
name: /export
|
||||||
|
src: LABEL=/export
|
||||||
|
fstype: xfs
|
||||||
|
opts: noatime,noexec,nosuid,nodev
|
||||||
|
passno: 1
|
||||||
|
dump: 0
|
||||||
|
state: mounted
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- base
|
||||||
|
- git/client
|
||||||
|
- git/server
|
Loading…
Add table
Add a link
Reference in a new issue