mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-05 14:37:27 +02:00
Use yml dictionaries for "lineinfile" to increase readabylity
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: enabling opcache cli
|
- name: enabling opcache cli
|
||||||
lineinfile: dest=/etc/php/7.0/cli/php.ini
|
lineinfile:
|
||||||
regexp=';?opcache.enable=\d'
|
dest: /etc/php/7.0/cli/php.ini
|
||||||
line='opcache.enable=1'
|
regexp: ';?opcache.enable=\d'
|
||||||
|
line: 'opcache.enable=1'
|
||||||
|
|
||||||
- name: ensure timezone is set in cli php.ini
|
- name: ensure timezone is set in cli php.ini
|
||||||
lineinfile: dest=/etc/php/7.0/cli/php.ini
|
lineinfile:
|
||||||
regexp='date.timezone ='
|
dest: /etc/php/7.0/cli/php.ini
|
||||||
line='date.timezone = {{ server.timezone }}'
|
regexp: 'date.timezone ='
|
||||||
|
line: 'date.timezone = {{ server.timezone }}'
|
@@ -8,4 +8,10 @@
|
|||||||
when: vagrant_local.vm.hostname is defined
|
when: vagrant_local.vm.hostname is defined
|
||||||
|
|
||||||
- name: Update /etc/hosts
|
- name: Update /etc/hosts
|
||||||
lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.hostname }}' owner=root group=root mode=0644
|
lineinfile:
|
||||||
|
dest: /etc/hosts
|
||||||
|
regexp: '^127\.0\.0\.1'
|
||||||
|
line: '127.0.0.1 localhost {{ vagrant_local.vm.hostname }}'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
Reference in New Issue
Block a user