-
Notifications
You must be signed in to change notification settings - Fork 7
/
local.yaml
41 lines (37 loc) · 861 Bytes
/
local.yaml
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
---
- hosts: all
become: yes
tasks:
- name: Install required packages.
pacman:
name: "{{ item }}"
state: present
with_items:
- php
- php-intl
- php-sqlite
- composer
- docker
- docker-compose
- name: Configure local php.
lineinfile:
path: /etc/php/php.ini
line: "extension={{ item }}"
regexp: "extension={{ item }}$"
state: present
insertafter: '^;extension='
with_items:
- 'intl.so'
- 'iconv.so'
- 'curl.so'
- 'pdo_mysql.so'
- 'pdo_sqlite.so'
- name: Ensure docker is started.
service:
name: docker
state: started
- name: Update /etc/hosts
lineinfile:
path: /etc/hosts
line: '127.0.0.1 realworld.dev'
state: present