Skip to content

Commit

Permalink
workaround for verify.yml
Browse files Browse the repository at this point in the history
Use workaround for importing the `library` and `module_utils` in the
`verify.yml` playbook without actually running the role.
  • Loading branch information
ltalirz committed Aug 31, 2021
1 parent 66f76bf commit 580f837
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
become: true

tasks:
- name: Bare include (free-form)
include_vars: ../../defaults/main.yml
- name: Run role without running any tasks
include_role:
name: dokku_bot.ansible_dokku
tasks_from: init.yml

# Testing dokku_global_cert
- name: Check that dokku_global_cert module can parse output
Expand Down
1 change: 1 addition & 0 deletions tasks/init.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Dummy task file used to import the role without running any tasks
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- import_tasks: init.yml

- import_tasks: nginx.yml
tags:
- dokku
Expand Down

0 comments on commit 580f837

Please sign in to comment.