|
29 | 29 | - curl |
30 | 30 | - sendmail |
31 | 31 | - apache2 |
32 | | - - php5 |
33 | | - - php5-common |
34 | | - - php5-mysql |
35 | | - - php5-cli |
36 | | - - php5-curl |
37 | | - - php5-gd |
38 | | - - php5-dev |
39 | | - - php5-mcrypt |
40 | | - - php5-apcu |
41 | | - - php-pear |
| 32 | + - php7.0-common |
| 33 | + - php7.0-cli |
| 34 | + - php7.0-dev |
| 35 | + - php7.0-gd |
| 36 | + - php7.0-curl |
| 37 | + - php7.0-json |
| 38 | + - php7.0-opcache |
| 39 | + - php7.0-xml |
| 40 | + - php7.0-mbstring |
| 41 | + - php7.0-pdo |
| 42 | + - php7.0-mysql |
| 43 | + - php-apcu |
| 44 | + - libpcre3-dev |
| 45 | + - libapache2-mod-php7.0 |
42 | 46 | - python-mysqldb |
43 | 47 | - mysql-server |
44 | 48 |
|
|
55 | 59 | apache2_module: name=rewrite state=present |
56 | 60 | notify: restart apache |
57 | 61 |
|
58 | | - - name: Add Apache virtualhost for Drupal 8 development. |
| 62 | + - name: Add Apache virtualhost for Drupal 8. |
59 | 63 | template: |
60 | 64 | src: "templates/drupal.dev.conf.j2" |
61 | 65 | dest: "/etc/apache2/sites-available/{{ domain }}.dev.conf" |
|
73 | 77 |
|
74 | 78 | - name: Remove default virtualhost file. |
75 | 79 | file: |
76 | | - path: "/etc/apache2/sites-enabled/000-default" |
| 80 | + path: "/etc/apache2/sites-enabled/000-default.conf" |
77 | 81 | state: absent |
78 | 82 | notify: restart apache |
79 | 83 |
|
80 | | - - name: Enable upload progress via APC. |
| 84 | + - name: Adjust OpCache memory setting. |
81 | 85 | lineinfile: |
82 | | - dest: "/etc/php5/apache2/conf.d/20-apcu.ini" |
83 | | - regexp: "^apc.rfc1867" |
84 | | - line: "apc.rfc1867 = 1" |
| 86 | + dest: "/etc/php/7.0/apache2/conf.d/10-opcache.ini" |
| 87 | + regexp: "^opcache.memory_consumption" |
| 88 | + line: "opcache.memory_consumption = 96" |
85 | 89 | state: present |
86 | 90 | notify: restart apache |
87 | 91 |
|
88 | 92 | - name: Remove the MySQL test database. |
89 | 93 | mysql_db: db=test state=absent |
90 | 94 |
|
91 | | - - name: Create a database for Drupal. |
| 95 | + - name: Create a MySQL database for Drupal. |
92 | 96 | mysql_db: "db={{ domain }} state=present" |
93 | 97 |
|
| 98 | + - name: Create a MySQL user for Drupal. |
| 99 | + mysql_user: |
| 100 | + name: "{{ domain }}" |
| 101 | + password: "1234" |
| 102 | + priv: "{{ domain }}.*:ALL" |
| 103 | + host: localhost |
| 104 | + state: present |
| 105 | + |
94 | 106 | - name: Download Composer installer. |
95 | 107 | get_url: |
96 | 108 | url: https://getcomposer.org/installer |
|
142 | 154 | drush si -y --site-name="{{ drupal_site_name }}" |
143 | 155 | --account-name=admin |
144 | 156 | --account-pass=admin |
145 | | - --db-url=mysql://root@localhost/{{ domain }} |
| 157 | + --db-url=mysql://{{ domain }}:1234@localhost/{{ domain }} |
146 | 158 | chdir={{ drupal_core_path }} |
147 | 159 | creates={{ drupal_core_path }}/sites/default/settings.php |
148 | 160 | notify: restart apache |
|
0 commit comments