|
1 | | -# Commit Zip to Branch |
2 | | -When working with ansible playbook with multiple files, a zip archive needs to be committed to repo. |
| 1 | +# Auto Generate Ansible Archive |
| 2 | + |
| 3 | +When working |
| 4 | +with [cloudshell ansible playbooks](https://help.quali.com/Online%20Help/0.0/Portal/Content/DevGuide/Config-Mng/Ansible.htm?tocpath=The%20CloudShell%20DevGuide%7CDeveloping%20Configuration%20Management%20Scripts%20for%20Apps%7CAnsible%20Playbook%20Development%20for%20Apps%7C_____0) |
| 5 | +with site.yml and multiple files, a zip archive needs to be committed to repo. |
3 | 6 |
|
4 | 7 | Some options to handle this pain point: |
| 8 | + |
5 | 9 | 1. Create zip locally on dev machine and push source changes and zip together |
6 | | -2. Push source code, and have [gitlab-CI](commit-back-repo-gitlab-ci.yml) job detect change to playbook folder source code, create zip and commit |
| 10 | +2. Push source code, and have [gitlab-CI](commit-back-repo-gitlab-ci.yml) job detect change to playbook folder source |
| 11 | + code, create zip and commit |
7 | 12 | - create access token for project and add as CI variable |
8 | 13 | - this will create an additional commit to history |
9 | 14 | - this also adds binary file into repo |
10 | 15 | - need to remember to pull down the new "zip" commit before pushing new changes |
11 | | -3. Have similar [CI job](zip-and-push-to-IIS-gitlab-ci.yml) detect change and generate zip, but push to external web server hosting instead of commiting binary |
12 | | - - this adds dependency of setting up another web server (can also use cloudshell IIS server) |
13 | | - - Can pass in branch name to name of zip to have different hosted zips for testing |
14 | | - - Firewall rules can be placed on IIS to only allow downloads from the Execution Server |
15 | | - - cleaner option in terms of git history and storage |
| 16 | +3. Have similar [CI job](zip-and-push-to-IIS-gitlab-ci.yml) detect change and generate zip, but push to external web |
| 17 | + server hosting instead of commiting binary |
| 18 | + - this adds dependency of setting up another web server (can also use cloudshell IIS server) |
| 19 | + - Can pass in branch name to name of zip to have different hosted zips for testing |
| 20 | + - Firewall rules can be placed on IIS to only allow downloads from the Execution Server |
| 21 | + - cleaner option in terms of git history and storage |
16 | 22 |
|
17 | 23 |
|
0 commit comments