blob: d3a6204f3dbe63b35f1267ea1074fef6029b14c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
- name: Ensure that the Apache web server is not installed
apt:
name: "{{ item }}"
state: absent
with_items: "{{ apache_packages_to_remove }}"
- name: Install Nginx
apt:
name: nginx
state: present
- name: Update Nginx configuration
copy:
src: nginx.conf
dest: /etc/nginx/nginx.conf
owner: root
group: root
mode: 0644
notify: Restart Nginx
- name: Set up Nginx sites
file:
path: /etc/nginx/{{ item }}
state: directory
with_items:
- sites-available
- sites-enabled
# vim: set ft=yaml sw=2:
|