-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a16c74c
commit 79c36d1
Showing
4 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- name: Test | ||
hosts: test | ||
vars: | ||
global_working_directory: tests/mocks/ls-dir | ||
chdir: "{{ global_working_directory }}" | ||
tasks: | ||
- name: Global working directory | ||
shell: cat file1.txt | ||
|
||
- name: Task-level working directory | ||
vars: | ||
task_working_directory: tests/mocks/ls-dir2 | ||
chdir: "{{ task_working_directory }}" | ||
shell: cat file1.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Starting deployment: Test | ||
|
||
Executing task: Global working directory | ||
> cat file1.txt | ||
File 1 of ls-dir | ||
|
||
Executing task: Task-level working directory | ||
> cat file1.txt | ||
File 1 of ls-dir2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters