Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
refactor(MOLECULE): breakout scenario variables into separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed May 19, 2021
1 parent 7943f98 commit 5d0db24
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion {{cookiecutter.project_slug}}/molecule/docker1/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
hosts: all
connection: local
vars:
test: true

tasks:
- name: Load Scenario Variables
include_vars: vars/main.yml
- name: "Include {{ cookiecutter.galaxy_namespace_slug }}.{{ cookiecutter.galaxy_role_slug }}"
ansible.builtin.include_role:
name: "{{ cookiecutter.galaxy_namespace_slug }}.{{ cookiecutter.galaxy_role_slug }}"
2 changes: 2 additions & 0 deletions {{cookiecutter.project_slug}}/molecule/docker1/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
test: true
2 changes: 2 additions & 0 deletions {{cookiecutter.project_slug}}/molecule/docker1/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
hosts: all
gather_facts: false
tasks:
- name: Load Scenario Variables
include_vars: vars/main.yml
- name: PlaceHolder Task
debug:
msg: "Verification Script."
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
- name: Converge
hosts: all
connection: local
vars:
test: true
tasks:
- name: Load Scenario Variables
include_vars: vars/main.yml
- name: "Include {{ cookiecutter.galaxy_namespace_slug }}.{{ cookiecutter.galaxy_role_slug }}"
ansible.builtin.include_role:
name: "{{ cookiecutter.galaxy_namespace_slug }}.{{ cookiecutter.galaxy_role_slug }}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
test: true
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
hosts: all
gather_facts: false
tasks:
- name: Load Scenario Variables
include_vars: vars/main.yml
- name: PlaceHolder Task
debug:
msg: "Verification Script."

0 comments on commit 5d0db24

Please sign in to comment.