More portable way for sharing variables between role and tests

This commit is contained in:
Jakub Jelen 2022-04-12 21:07:56 +02:00 committed by Jakub Jelen
parent c515ffdf94
commit bd64ca7441
3 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
- name: Include common vars
include_vars: vars/common.yml

View file

@ -1,5 +1,7 @@
---
- include_tasks: set_common_vars.yml
- include_tasks: variables.yml
- include_tasks: install.yml

View file

@ -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: