Files
startusingansible/examples/004_services/webserver.yml
2026-05-12 16:55:19 +02:00

15 lines
353 B
YAML

---
- hosts: webserver
become: true
tasks:
- name: install web components
apt: name={{item}} state=present update_cache=yes
with_items:
- apache2
- libapache2-mod-wsgi-py3
- python3-pip-whl
- python3-virtualenv
- name: ensure apache2 started
service: name=apache2 state=started enabled=yes