adding local git repository creation, ansible working directory and ks hosting directory to lockbox group playbook, required variables for lockbox-comm01.qa
This commit is contained in:
parent
76c9a0d6d4
commit
116b6456cc
2 changed files with 28 additions and 0 deletions
|
@ -8,3 +8,6 @@ volgroup: /dev/Guests00
|
|||
eth0_ip: 10.5.124.210
|
||||
vmhost: virthost-comm01.qa.fedoraproject.org
|
||||
datacenter: phx2
|
||||
gitrepos:
|
||||
- {name: private, path: 'local'}
|
||||
ansible_base: /srv/ansible/
|
||||
|
|
|
@ -41,3 +41,28 @@
|
|||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
|
||||
- name: configure lockbox
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "{{ private }}/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
tasks:
|
||||
- name: create directories for local git repos
|
||||
file: path=/srv/git/{{ item.path }} state=directory owner=root group=root mode=1775
|
||||
with_items: {{ gitrepos }}
|
||||
|
||||
- name: initialize git repos
|
||||
command: chdir=/srv/git/{{ item.path }} creates={{ item.path }}/HEAD git init --bare
|
||||
with_items: {{ gitrepos }}
|
||||
|
||||
- name: create ansible base working directory
|
||||
file: path=/srv/ansible state=directory owner=root group=root mode=1775
|
||||
|
||||
- name: create directory for serving kickstarts
|
||||
file: path=/var/www/html/ks state=directory owner=httpd group=httpd mode=1755
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue