mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-22 02:50:18 +01:00
More portable way for sharing variables between role and tests
This commit is contained in:
parent
c515ffdf94
commit
bd64ca7441
3 changed files with 9 additions and 1 deletions
3
tasks/set_common_vars.yml
Normal file
3
tasks/set_common_vars.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Include common vars
|
||||
include_vars: vars/common.yml
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
|
||||
- include_tasks: set_common_vars.yml
|
||||
|
||||
- include_tasks: variables.yml
|
||||
|
||||
- include_tasks: install.yml
|
||||
|
|
|
@ -26,7 +26,10 @@
|
|||
- __sshd_test_backup.path is defined
|
||||
|
||||
- name: Include common variables
|
||||
include_vars: ../../vars/common.yml
|
||||
include_role:
|
||||
name: ansible-sshd
|
||||
tasks_from: set_common_vars.yml
|
||||
public: true
|
||||
|
||||
- name: Restart sshd service
|
||||
service:
|
||||
|
|
Loading…
Reference in a new issue