forked from Voronenko/ansible-developer_recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks_php_apache.yml
94 lines (82 loc) · 2.14 KB
/
tasks_php_apache.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
- name: LAMP | FAST-CGI configuration for php
template: src={{root_dir}}/files/apache2/conf/fastcgi.conf.j2 dest=/etc/apache2/conf-available/fastcgi.conf
when: "apache_mode == 'worker'"
become: yes
tags:
- setup
- name: LAMP | a2enconf fastcgi
command: a2enconf fastcgi
when: "apache_mode == 'worker'"
args:
creates: /etc/apache2/conf-enabled/fastcgi.conf
notify:
- restart apache2
become: yes
tags:
- setup
- name: LAMP | Install PHP FPM
apt: name=php5-fpm state=latest
when: "apache_mode == 'worker'"
become: yes
tags:
- setup
- name: LAMP | Install PHP and associated packages
apt: name=php5 state=latest
become: yes
tags:
- setup
- name: LAMP | Install PHP5-cli
apt: name=php5-cli state=latest
when: "apache_mode == 'worker'"
become: yes
tags:
- setup
- name: LAMP | Install composer
shell: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin creates=/usr/local/bin/composer
become: yes
tags:
- setup
- name: LAMP | rename composer.phar to composer
shell: mv /usr/local/bin/composer.phar /usr/local/bin/composer creates=/usr/local/bin/composer
become: yes
tags:
- setup
- name: LAMP | Install PHP GD library
apt: name=php5-gd state=latest
become: yes
tags:
- setup
notify:
- restart apache2
- name: LAMP | Install PHP Curl
apt: name=php5-curl state=latest
become: yes
tags:
- setup
notify:
- restart apache2
- name: LAMP | Install MCrypt extension
apt: name=php5-mcrypt state=latest
become: yes
tags:
- setup
notify:
- restart apache2
- name: LAMP | Enable MCrypt extension
shell: php5enmod mcrypt
become: yes
tags:
- setup
notify:
- restart apache2
- name: LAMP | Install PHP MySQL extension
apt: name=php5-mysql state=latest
become: yes
tags:
- setup
notify:
- restart apache2
- name: LAMP | fxp/composer-asset-plugin for YII
shell: composer global require "fxp/composer-asset-plugin:1.1.4"
tags:
- setup