Skip to content

Commit

Permalink
Some tasks were wrongly placed in prepare.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Mar 17, 2019
1 parent 8192da0 commit 3a26a25
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ This example is taken from `molecule/default/playbook.yml`:
become: yes
gather_facts: yes

roles:
- robertdebock.httpd
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
```yaml
---
- name: Prepare
hosts: all
gather_facts: no
become: yes

vars:
httpd_locations:
- name: mylocation1
Expand All @@ -47,6 +35,18 @@ The machine you are running this on, may need to be prepared. Tests have been do
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
- robertdebock.httpd
```
The machine you are running this on, may need to be prepared. Tests have been done on machines prepared by this playbook:
```yaml
---
- name: Prepare
hosts: all
gather_facts: no
become: yes

roles:
- robertdebock.bootstrap
- robertdebock.epel
Expand Down
19 changes: 19 additions & 0 deletions molecule/resources/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,24 @@
become: yes
gather_facts: yes

vars:
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
- ansible-role-httpd
19 changes: 0 additions & 19 deletions molecule/resources/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@
gather_facts: no
become: yes

vars:
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
- robertdebock.bootstrap
- robertdebock.epel
Expand Down

0 comments on commit 3a26a25

Please sign in to comment.