Add git repo deployments
This commit is contained in:
@@ -133,6 +133,7 @@
|
||||
- ensure_apache is defined
|
||||
- http_vhost is defined
|
||||
- http_vhost is iterable
|
||||
- item.fqdn is defined
|
||||
ansible.builtin.file:
|
||||
path: '/srv/http/{{ item.fqdn }}'
|
||||
state: 'directory'
|
||||
@@ -140,6 +141,20 @@
|
||||
loop: '{{ http_vhost }}'
|
||||
loop_control:
|
||||
label: '/srv/http/{{ item.fqdn }} will be ensured'
|
||||
- name: 'ensure website content from git repos'
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ensure_apache is defined
|
||||
- http_vhost is defined
|
||||
- http_vhost is iterable
|
||||
- item.fqdn is defined
|
||||
- item.repo is defined
|
||||
ansible.builtin.git:
|
||||
dest: '/srv/http/{{ item.fqdn }}'
|
||||
repo: '{{ item.repo }}'
|
||||
loop: '{{ http_vhost }}'
|
||||
loop_control:
|
||||
label: '/srv/http/{{ item.fqdn }} will be populated...'
|
||||
- name: 'ensure services'
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
@@ -158,4 +173,3 @@
|
||||
- 'ensure_apache.service_facts'
|
||||
- name: 'flush handlers'
|
||||
meta: 'flush_handlers'
|
||||
|
||||
|
Reference in New Issue
Block a user