mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-01-10 23:27:23 +07:00
18 lines
453 B
YAML
18 lines
453 B
YAML
- name: ensure apache is at the latest version
|
|
apt: name=apache2 state=latest
|
|
|
|
- name: write the apache2 ports.conf config file
|
|
template: src=templates/ports.conf.j2 dest=/etc/apache2/ports.conf
|
|
notify: restart apache
|
|
|
|
- name: write a basic index.html file
|
|
template:
|
|
src: templates/index.html.j2
|
|
dest: /var/www/html/index.html
|
|
notify:
|
|
- restart apache
|
|
|
|
- name: ensure apache is running
|
|
service:
|
|
name: apache2
|
|
state: started |