Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
904b8ca2
Commit
904b8ca2
authored
Sep 15, 2015
by
Chris Church
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update win_msi tests to specify msi url and paths via variables.
parent
0300294f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
test/integration/roles/test_win_msi/defaults/main.yml
+6
-0
test/integration/roles/test_win_msi/tasks/main.yml
+11
-11
No files found.
test/integration/roles/test_win_msi/defaults/main.yml
0 → 100644
View file @
904b8ca2
---
msi_url
:
http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.22/7z922-x64.msi
msi_download_path
:
"
C:
\\
Program
Files
\\
7z922-x64.msi"
msi_install_path
:
"
C:
\\
Program
Files
\\
7-Zip"
msi_product_code
:
"
{23170F69-40C1-2702-0922-000001000000}"
test/integration/roles/test_win_msi/tasks/main.yml
View file @
904b8ca2
...
@@ -18,19 +18,19 @@
...
@@ -18,19 +18,19 @@
-
name
:
use win_get_url module to download msi
-
name
:
use win_get_url module to download msi
win_get_url
:
win_get_url
:
url
:
http://downloads.sourceforge.net/project/sevenzip/7-Zip/9.22/7z922-x64.msi
url
:
"
{{msi_url}}"
dest
:
"
C:
\\
Program
Files
\\
7z922-x64.msi
"
dest
:
"
{{msi_download_path}}
"
register
:
win_get_url_result
register
:
win_get_url_result
-
name
:
make sure
7-zip
is uninstalled
-
name
:
make sure
msi
is uninstalled
win_msi
:
win_msi
:
path
:
"
{{
win_get_url_result.win_get_url.dest
}}"
path
:
"
{{
msi_product_code|default(msi_download_path,true)
}}"
state
:
absent
state
:
absent
ignore_errors
:
true
ignore_errors
:
true
-
name
:
install
7zip
msi
-
name
:
install msi
win_msi
:
win_msi
:
path
:
"
{{
win_get_url_result.win_get_url.dest
}}"
path
:
"
{{
msi_download_path
}}"
register
:
win_msi_install_result
register
:
win_msi_install_result
-
name
:
check win_msi install result
-
name
:
check win_msi install result
...
@@ -39,10 +39,10 @@
...
@@ -39,10 +39,10 @@
-
"
not
win_msi_install_result|failed"
-
"
not
win_msi_install_result|failed"
-
"
win_msi_install_result|changed"
-
"
win_msi_install_result|changed"
-
name
:
install
7zip
msi again with creates argument
-
name
:
install msi again with creates argument
win_msi
:
win_msi
:
path
:
"
{{
win_get_url_result.win_get_url.dest
}}"
path
:
"
{{
msi_download_path
}}"
creates
:
"
C:
\\
Program
Files
\\
7-Zip
"
creates
:
"
{{msi_install_path}}
"
register
:
win_msi_install_again_result
register
:
win_msi_install_again_result
-
name
:
check win_msi install again result
-
name
:
check win_msi install again result
...
@@ -51,9 +51,9 @@
...
@@ -51,9 +51,9 @@
-
"
not
win_msi_install_again_result|failed"
-
"
not
win_msi_install_again_result|failed"
-
"
not
win_msi_install_again_result|changed"
-
"
not
win_msi_install_again_result|changed"
-
name
:
uninstall
7zip
msi
-
name
:
uninstall msi
win_msi
:
win_msi
:
path
:
"
{{
win_get_url_result.win_get_url.dest
}}"
path
:
"
{{
msi_download_path
}}"
state
:
absent
state
:
absent
register
:
win_msi_uninstall_result
register
:
win_msi_uninstall_result
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment