diff --git a/group_vars/git.yml b/group_vars/git.yml new file mode 100644 index 0000000..53c504d --- /dev/null +++ b/group_vars/git.yml @@ -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]} diff --git a/host_vars/git02.home.foo.sh.yml b/host_vars/git02.home.foo.sh.yml new file mode 100644 index 0000000..7ebe13b --- /dev/null +++ b/host_vars/git02.home.foo.sh.yml @@ -0,0 +1,3 @@ +--- +mac_address: 52:54:00:ac:dc:18 +vmhost: vmhost02.home.foo.sh diff --git a/hosts b/hosts index 9533afd..930af8d 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,5 @@ [mirror] mirror01.home.foo.sh + +[git] +git02.home.foo.sh diff --git a/playbooks/git.yml b/playbooks/git.yml new file mode 100644 index 0000000..e7fefd5 --- /dev/null +++ b/playbooks/git.yml @@ -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