Skip to content

Commit 2e88472

Browse files
Fixup
1 parent 499dddd commit 2e88472

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

molecule/default/verify.yml

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
---
2-
# This is an example playbook to execute Ansible tests.
31

42
- name: Verify
53
hosts: all
@@ -13,14 +11,6 @@
1311
mode: "0755"
1412
loop:
1513
- "/var/www/current"
16-
- "/var/www/current/public"
17-
18-
- name: Copy the example PHP script
19-
ansible.builtin.copy:
20-
owner: proserver
21-
mode: "0644"
22-
src: "app.php"
23-
dest: "/var/www/current/app.php"
2414

2515
- name: Initialize the composer project
2616
community.general.composer:
@@ -29,6 +19,7 @@
2919
working_dir: "/var/www/current"
3020
prefer_dist: true
3121

22+
3223
- name: Install PHP dependencies
3324
community.general.composer:
3425
command: require
@@ -39,6 +30,22 @@
3930
- "spiral/roadrunner"
4031
- "spiral/roadrunner-http"
4132

33+
- name: Create the current_release folder
34+
ansible.builtin.file:
35+
dest: "{{ item }}"
36+
state: "directory"
37+
owner: proserver
38+
mode: "0755"
39+
loop:
40+
- "/var/www/current/public"
41+
42+
- name: Copy the example PHP script
43+
ansible.builtin.copy:
44+
owner: proserver
45+
mode: "0644"
46+
src: "app.php"
47+
dest: "/var/www/current/app.php"
48+
4249
- name: Enable and start the roadrunner-main service
4350
community.general.supervisorctl:
4451
name: "roadrunner-main"

0 commit comments

Comments
 (0)