fqcn[action-core]: Use FQCN for builtin module actions (service). roles/setup_http_site_forward/handlers/main.yml:2 Use `ansible.builtin.service` or `ansible.legacy.service` instead. fqcn[action-core]: Use FQCN for builtin module actions (template). roles/setup_http_site_forward/tasks/main.yml:2 Use `ansible.builtin.template` or `ansible.legacy.template` instead. fqcn[action-core]: Use FQCN for builtin module actions (command). roles/setup_http_site_forward/tasks/main.yml:8 Use `ansible.builtin.command` or `ansible.legacy.command` instead.
12 lines
380 B
YAML
12 lines
380 B
YAML
---
|
|
- name: Add or update Apache2 site
|
|
ansible.builtin.template:
|
|
src: templates/apache-docker-forward-site.j2
|
|
dest: /etc/apache2/sites-available/{{ site_name }}.conf
|
|
notify: Restart apache2
|
|
|
|
- name: Activate Apache2 site
|
|
ansible.builtin.command: a2ensite {{ site_name }}
|
|
args:
|
|
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
|
notify: Restart apache2
|