You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
500 B
20 lines
500 B
- name: Check for deployment tasks |
|
include_tasks: "{{ _dt }}" |
|
when: _dt != "" |
|
vars: |
|
_dt: "{{ lookup('first_found', dict(files=[config+'.yaml']), errors='ignore') }}" |
|
|
|
- name: Add {{ config }} configuration |
|
copy: |
|
src: '{{ config }}.conf' |
|
dest: /etc/apache2/sites-available/ |
|
owner: root |
|
group: root |
|
mode: 0644 |
|
|
|
- name: 'Enable {{ config }}' |
|
command: 'a2ensite {{ config }}' |
|
args: |
|
creates: '/etc/apache2/sites-enabled/{{ config }}' |
|
notify: |
|
- Reload apache2
|
|
|