-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --ident option to process (#939)
Add --ident option to process command Fixes #821 Below is my bash scripts where I emulate AWX behavior on hybrid nodes. I might document these in a repository sometime... maybe they would work for docs? Maybe not because I actually run them. echo 'Initial cleanup tasks' rm -rf overwrite rm -rf demo/artifacts mkdir overwrite cp -Ra demo overwrite/1 ident='b20e75dd2a4049708f3ed10a73cad3cc' echo "The ident for this run is: $ident" echo 'Transmission phase - fills the first buffer' ansible-runner transmit ./overwrite/1 -p test.yml --ident=$ident > ./overwrite/output1 echo 'Worker phase - fills second buffer' ansible-runner worker --private-data-dir=./overwrite/1 < ./overwrite/output1 > ./overwrite/output2 echo 'Process phase - runs callbacks and pretty much nothing else' ansible-runner process overwrite/1 --ident=$ident < ./overwrite/output2 tree overwrite Long story short, this is how AWX works with a slight modification for how I think it should work, which is the added --ident option. Without this, you have 2 files for overwrite/1/artifacts/rc and overwrite/1/artifacts/b20e75dd2a4049708f3ed10a73cad3cc/rc/. So which one is the right one? I want to avoid that confusion. Ping @jbradberry Reviewed-by: Jeff Bradberry <None> Reviewed-by: David Shrewsbury <None> Reviewed-by: None <None>
- Loading branch information
1 parent
cb7a971
commit d013044
Showing
4 changed files
with
62 additions
and
7 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
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