Skip to content

Commit 67067c4

Browse files
authored
Create nginx_php.yml
1 parent b613d25 commit 67067c4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

ansible/nginx_php.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
- name: Install NGINX, Git, PHP dependencies
3+
hosts: all
4+
become: true
5+
6+
tasks:
7+
- name: Install NGINX
8+
apt:
9+
name: nginx
10+
state: latest
11+
12+
- name: Install Git
13+
apt:
14+
name: git
15+
state: latest
16+
17+
- name: Install PHP dependencies
18+
apt:
19+
name:
20+
- php
21+
- php-fpm
22+
- php-mysql
23+
- php-cli
24+
- php-xml
25+
- php-mbstring
26+
state: latest
27+
28+
- name: Start and enable NGINX service
29+
systemd:
30+
name: nginx
31+
enabled: yes
32+
state: started

0 commit comments

Comments
 (0)