ansible-course/11-jinga-templates/roles/web_servers/tasks/main.yml

18 lines
326 B
YAML
Raw Permalink Normal View History

2024-07-14 06:45:38 +02:00
---
- name: Install apache on web servers
tags: apache
package:
name:
- "{{ webserver_package }}"
- "{{ php_package }}"
- name: Copy html file
tags: website
copy:
src: default_site.html
dest: /var/www/html/index.html
owner: root
group: root
mode: 0644
notify: restart_apache