system-config/playbooks/roles/static/tasks/enable_git_site.yaml

14 lines
358 B
YAML

- name: 'Add git site {{ hostname }}'
template:
src: '50-git.conf.j2'
dest: '/etc/apache2/sites-available/50-{{ hostname }}.conf'
owner: root
group: root
mode: 0644
- name: 'Enable {{ hostname }}'
command: 'a2ensite 50-{{ hostname }}'
args:
creates: '/etc/apache2/sites-enabled/50-{{ hostname }}'
notify:
- Reload apache2