mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-05 06:27:25 +02:00
Use yml dictionaries for "lineinfile" to increase readabylity
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
---
|
||||
- name: enabling opcache cli
|
||||
lineinfile: dest=/etc/php/7.0/cli/php.ini
|
||||
regexp=';?opcache.enable=\d'
|
||||
line='opcache.enable=1'
|
||||
lineinfile:
|
||||
dest: /etc/php/7.0/cli/php.ini
|
||||
regexp: ';?opcache.enable=\d'
|
||||
line: 'opcache.enable=1'
|
||||
|
||||
- name: ensure timezone is set in cli php.ini
|
||||
lineinfile: dest=/etc/php/7.0/cli/php.ini
|
||||
regexp='date.timezone ='
|
||||
line='date.timezone = {{ server.timezone }}'
|
||||
lineinfile:
|
||||
dest: /etc/php/7.0/cli/php.ini
|
||||
regexp: 'date.timezone ='
|
||||
line: 'date.timezone = {{ server.timezone }}'
|
@@ -8,4 +8,10 @@
|
||||
when: vagrant_local.vm.hostname is defined
|
||||
|
||||
- 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