Adds Molecule verification step
Closed this issue · 0 comments
kenorb commented
- Assert that platform has been successfully installed (Wine regedit? find exe?).
- File:
molecule/default/verify.yml
- Example: https://github.com/EA31337/ansible-role-wine/blob/master/molecule/default/verify.yml
Suggested method (update path to MetaQuotes):
wine reg query 'HKLM\Software\Microsoft'
register to variable and check its installed path (whether it exists).
For example:
# wine reg query 'HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList' /v ProgramData
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList
ProgramData REG_EXPAND_SZ C:\ProgramData
then use Ansible filters to parse the data (e.g. regex_search
).
Check https://github.com/EA31337/ansible-role-mt-runner/blob/master/tasks/main.yml for another example.