Skip to content

Commit 37e1450

Browse files
Replace variables with hardcoded values in the verify stage
1 parent 31cfc5a commit 37e1450

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

molecule/default/verify.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@
1212
owner: proserver
1313
mode: "0755"
1414
loop:
15-
- "{{ roadrunner.prefix.current_release }}"
16-
- "{{ roadrunner.prefix.current_release }}/public"
15+
- "/var/www/current"
16+
- "/var/www/current/public"
1717

1818
- name: Copy the example PHP script
1919
ansible.builtin.copy:
2020
src: "molecule/files/app.php"
21-
dest: "{{ roadrunner.prefix.current_release }}/app.php"
21+
dest: "/var/www/current/app.php"
2222

2323
- name: Initialize the composer project
2424
community.general.composer:
2525
command: create-project
26-
arguments: "punktde/roadrunner-test {{ roadrunner.prefix.current_release }} ~1.0"
27-
working_dir: "{{ roadrunner.prefix.current_release }}"
26+
arguments: "punktde/roadrunner-test /var/www/current ~1.0"
27+
working_dir: "/var/www/current"
2828
prefer_dist: true
2929

3030
- name: Install PHP dependencies
3131
community.general.composer:
3232
command: require
3333
arguments: "{{ item }}"
34-
working_dir: "{{ roadrunner.prefix.current_release }}"
34+
working_dir: "/var/www/current"
3535
loop:
3636
- "nyholm/psr7"
3737
- "spiral/roadrunner"
@@ -45,7 +45,7 @@
4545

4646
- name: Check that a page returns successfully but fail if the word AWESOME is not in the page contents
4747
ansible.builtin.uri:
48-
url: http://{{ roadrunner.defaults.http.address }}
48+
url: http://localhost:8080
4949
return_content: true
5050
register: this
5151
failed_when: this is failed or "'Hello world' not in this.content"

0 commit comments

Comments
 (0)