Skip to content

Commit 2535eb0

Browse files
committed
Initial commit
0 parents  commit 2535eb0

File tree

7 files changed

+2105
-0
lines changed

7 files changed

+2105
-0
lines changed

README.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Role Name
2+
=========
3+
4+
A brief description of the role goes here.
5+
6+
Requirements
7+
------------
8+
9+
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
10+
11+
Role Variables
12+
--------------
13+
14+
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
15+
16+
Dependencies
17+
------------
18+
19+
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
20+
21+
Example Playbook
22+
----------------
23+
24+
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
25+
26+
- hosts: servers
27+
roles:
28+
- { role: username.rolename, x: 42 }
29+
30+
License
31+
-------
32+
33+
BSD
34+
35+
Author Information
36+
------------------
37+
38+
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

defaults/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# defaults file for php

handlers/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# handlers file for php
3+
4+
- name: restart php5-fpm
5+
shell: service php5-fpm restart

meta/main.yml

+199
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
---
2+
galaxy_info:
3+
author: Ryan Reece
4+
description:
5+
company: Mash LLC
6+
# If the issue tracker for your role is not on github, uncomment the
7+
# next line and provide a value
8+
# issue_tracker_url: http://example.com/issue/tracker
9+
# Some suggested licenses:
10+
# - BSD (default)
11+
# - MIT
12+
# - GPLv2
13+
# - GPLv3
14+
# - Apache
15+
# - CC-BY
16+
license: license (GPLv2, CC-BY, etc)
17+
min_ansible_version: 1.2
18+
#
19+
# Below are all platforms currently available. Just uncomment
20+
# the ones that apply to your role. If you don't see your
21+
# platform on this list, let us know and we'll get it added!
22+
#
23+
platforms:
24+
#- name: EL
25+
# versions:
26+
# - all
27+
# - 5
28+
# - 6
29+
# - 7
30+
#- name: GenericUNIX
31+
# versions:
32+
# - all
33+
# - any
34+
#- name: OpenBSD
35+
# versions:
36+
# - all
37+
# - 5.6
38+
# - 5.7
39+
# - 5.8
40+
# - 5.9
41+
# - 6.0
42+
#- name: Fedora
43+
# versions:
44+
# - all
45+
# - 16
46+
# - 17
47+
# - 18
48+
# - 19
49+
# - 20
50+
# - 21
51+
# - 22
52+
# - 23
53+
# - 24
54+
#- name: opensuse
55+
# versions:
56+
# - all
57+
# - 12.1
58+
# - 12.2
59+
# - 12.3
60+
# - 13.1
61+
# - 13.2
62+
#- name: MacOSX
63+
# versions:
64+
# - all
65+
# - 10.10
66+
# - 10.11
67+
# - 10.12
68+
# - 10.7
69+
# - 10.8
70+
# - 10.9
71+
#- name: IOS
72+
# versions:
73+
# - all
74+
# - any
75+
#- name: Solaris
76+
# versions:
77+
# - all
78+
# - 10
79+
# - 11.0
80+
# - 11.1
81+
# - 11.2
82+
# - 11.3
83+
#- name: SmartOS
84+
# versions:
85+
# - all
86+
# - any
87+
#- name: eos
88+
# versions:
89+
# - all
90+
# - Any
91+
#- name: Windows
92+
# versions:
93+
# - all
94+
# - 2012R2
95+
#- name: Amazon
96+
# versions:
97+
# - all
98+
# - 2013.03
99+
# - 2013.09
100+
# - 2016.03
101+
#- name: GenericBSD
102+
# versions:
103+
# - all
104+
# - any
105+
#- name: Junos
106+
# versions:
107+
# - all
108+
# - any
109+
#- name: FreeBSD
110+
# versions:
111+
# - all
112+
# - 10.0
113+
# - 10.1
114+
# - 10.2
115+
# - 10.3
116+
# - 8.0
117+
# - 8.1
118+
# - 8.2
119+
# - 8.3
120+
# - 8.4
121+
# - 9.0
122+
# - 9.1
123+
# - 9.1
124+
# - 9.2
125+
# - 9.3
126+
- name: Ubuntu
127+
versions:
128+
# - all
129+
# - lucid
130+
# - maverick
131+
# - natty
132+
# - oneiric
133+
# - precise
134+
# - quantal
135+
# - raring
136+
# - saucy
137+
- trusty
138+
# - utopic
139+
# - vivid
140+
# - wily
141+
# - xenial
142+
#- name: SLES
143+
# versions:
144+
# - all
145+
# - 10SP3
146+
# - 10SP4
147+
# - 11
148+
# - 11SP1
149+
# - 11SP2
150+
# - 11SP3
151+
# - 11SP4
152+
# - 12
153+
# - 12SP1
154+
#- name: Void Linux
155+
# versions:
156+
# - all
157+
# - any
158+
#- name: GenericLinux
159+
# versions:
160+
# - all
161+
# - any
162+
#- name: NXOS
163+
# versions:
164+
# - all
165+
# - any
166+
#- name: Debian
167+
# versions:
168+
# - all
169+
# - etch
170+
# - jessie
171+
# - lenny
172+
# - sid
173+
# - squeeze
174+
# - stretch
175+
# - wheezy
176+
#
177+
# Below are all categories currently available. Just as with
178+
# the platforms above, uncomment those that apply to your role.
179+
#
180+
#categories:
181+
#- cloud
182+
#- cloud:ec2
183+
#- cloud:gce
184+
#- cloud:rax
185+
#- clustering
186+
#- database
187+
#- database:nosql
188+
#- database:sql
189+
#- development
190+
#- monitoring
191+
#- networking
192+
#- packaging
193+
#- system
194+
#- web
195+
dependencies: []
196+
# List your role dependencies here, one per line.
197+
# Be sure to remove the '[]' above if you add dependencies
198+
# to this list.
199+

tasks/main.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
# tasks file for php
3+
4+
- name: Install php
5+
apt: package={{ item }} state=present
6+
with_items:
7+
- php5
8+
- php5-cli
9+
- php5-json
10+
- php5-mysql
11+
- php5-curl
12+
- php5-mcrypt
13+
- php5-gd
14+
- php5-imagick
15+
- php5-fpm
16+
17+
- name: Enable php5 mcrypt module
18+
shell: php5enmod mcrypt
19+
args:
20+
creates: /etc/php5/cli/conf.d/20-mcrypt.ini
21+
22+
- name: Create php-fpm log directory
23+
file: path=/var/log/php-fpm state=directory owner=www-data
24+
25+
- name: Create php log directory
26+
file: path=/var/log/php state=directory owner=www-data
27+
28+
- name: Create php upload directory
29+
file: path=/var/lib/php/upload state=directory owner=www-data
30+
31+
- name: Create php session directory
32+
file: path=/var/lib/php/session state=directory owner=www-data
33+
34+
- name: Modify php.ini settings
35+
template: src=php.ini.j2 dest=/etc/php5/fpm/php.ini
36+
notify:
37+
- restart php5-fpm
38+
39+
- name: Install composer
40+
shell: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
41+
args:
42+
creates: /usr/local/bin/composer

0 commit comments

Comments
 (0)