Skip to content

Commit

Permalink
add DR playbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Dec 6, 2024
1 parent 40fdefb commit 7912674
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .ansible-sign/sha256sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ b46e77eeca1ed9c904ec62793e73893012cf489bf5e3c29514fd764c0b391c3c Gitea Deploy N
3778904dc7a0229f704e32d81c879a2401b7c1c60c16fa91955d9edabf01deb3 Gitea New Release.yml
e8cac82e2937ddb29e80d344f27db65b041fbe289da4ac7ba79efb527d71fe2a MANIFEST.in
30e65e385f2e07f422b51c7a63168d1b3423e74cca02b93653645c80b40e31d0 README.md
0c57b91c95078d5612ab8c80842f513084aafee2821397d452babd6ae210a251 Start Services.yml
38a9e7453c2df980de63aa2a6a678f1209d04514a3c28847d543b398eeef6689 Stop Services.yml
d34a8556b5bcf44e46724a5f55bc40cbb95ff88b5d0bb443ee7001159810a7ac Web Install and Verification collections.yml
ed928348412bad55c327b054105ee7af083a4fc8083e7babf1fb3be937314dbe Web Verification collections.yml
6a615c95066560e14fe94b92f7fb760429631d4c13a8391c67229495a8c4bf1b collections/requirements.yml
9d3e4421a809be5cb4380dfbe15e20e9b32d9a852e646f959e078d270ba2c199 devfile.yaml
28f58dfdc64124ad4468d9a0ec0b48e5a0f618f2eb018f6be5f35d5b51032666 roles/.DS_Store
d77935d759fad5b7d5d494471bd820ffbd510608876b4be19681ac3fc781ca3c roles/deploy_new_release/tasks/main.yml
f68298b4059cafeaa2de75321f2e60e019fc27e4c0d13ec4ed8f750186b19754 roles/new_release/tasks/main.yml
e58a1faa2f88d8b401812b1b42991c660c0e564fc617ee1f6cae58a15cb3e681 roles/start_services/tasks/main.yml
2e023527b568340b7dc171c251510b18ef913c341bc6d04ac366ab986754b864 roles/stop_services/tasks/main.yml
37e5e60578c73d664e2f537a70cd7db53ad4194a9bffed9f9d3b2e570e2b3d12 roles/verification_collection/tasks/main.yml
926aadfb77327147dbb372cfb37cfb51b1ac4e1c4e20efad9971ccf13f72b939 roles/verification_collection/tasks/rhel_verification.yml
cb69099634eba4018aefff6d15e605fea061d833148d886e71468b68b64283f9 roles/verification_collection/tasks/windows_verification.yml
Expand Down
22 changes: 11 additions & 11 deletions .ansible-sign/sha256sum.txt.sig
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmc8lpcACgkQTiIiIXrU
DNHUSAv/Xh2R4Y+DL4cmxTh2tJvkAoN6AeN6gD86yEVvxcwVTxsUC1AqRZSsqgZM
3vSGeFRLgnqPz2pjnhyH/Ev7j/G7M2Oc02pmQBOSTkAFyHmsLVWGdM1+u8gaINYu
4BkC/3NvD/zp6auQO1r1J0GK1se+EHDSA35wig6zbrEnxp61aZWCeq5bl4pU68wY
345CpTtsZh/whl130s1Wm07a+tDlPsW7n43eV8Nf3i+fCXrVwtXDG2du80hg51I8
9l4WaFoCsIC/VTTBbLBuHrU8SgAIraP2O1V511PgfoNk+r8SYPBbeT2aEHo/X1A0
O+dPePCj5pgbFtrND2Ui+aKPXpoNQbxIb2XKrYISwAVHEVU/Iep0WzILw05o4miG
sQg9eI3f0I3pS8Unu6SAQSNosS1GH4rXMZoBpAxjjrtmPMf+O/AjPKmIVXo0FUZ1
Wn4bE0K76iEA/+0idWczx2NqUO4PE0omqpVcf8A5ksf3TxR34YUzeGzyMO9O6qQ5
9tug4Ad6
=/haL
iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmdTFVsACgkQTiIiIXrU
DNHbQQv+IA8oigwlQU/+ZseeVp0mXtK2oaWRVRohnhxdSDfnUwOGvtKRQb9Q5Fpj
Z7VjmQPL0yXuvE5MhceWmGwZxKiLl8gd7tVoLmlY2z+Yv6isoTmAa19Qe9lmp3Wz
hgnMGTuoNhGyU2NubOMa6ON1OsjnpxC6s4O06102theCl6GZ0QCEpXtdsn3qsWNn
ToPoBZHzkdCFr2VxbNwsnxjTbvt6XOiu2/i2kGF3uCJEt7ZNLJVxRwT5MyOjtV9J
USN6ud5PTAG5TOYqNEkYn5IoW9AgJGZi7zG4mj22BsFwfBHZzzKmYlGdeDN/O5ex
Nrxxo5uIVZUaNPHeUG3GFpZwrNYnSwcFFRGMHN1FvMwj0kFr+wxy9pzJb6PBb0k8
rZ7+cKJukZGVfG1SO4Co4ecyg9pJiLeVkSqPlzXa1kaMT1Iaiu7ycMT80x03476V
62BqwnLwcC53NFV6PQZscXEgrtTIcaHOdfVkbc6rUuUHqkuGVKWDwYQxvlKMca4Y
/72JpjRz
=oyfA
-----END PGP SIGNATURE-----
7 changes: 7 additions & 0 deletions Start Services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Start Services
hosts: all
gather_facts: false

roles:
- start_services
7 changes: 7 additions & 0 deletions Stop Services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Stop Services
hosts: all
gather_facts: false

roles:
- stop_services
12 changes: 12 additions & 0 deletions roles/start_services/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Start Httpd
ansible.builtin.service:
name: httpd
state: started
when: os is match("rhel.*") or os == "Red Hat BYOL Linux"

- name: Start IIS
ansible.windows.win_service:
name: W3Svc
state: started
when: os is match("windows.*") or os is match("2016.*") or os == "Windows"
12 changes: 12 additions & 0 deletions roles/stop_services/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Stop Httpd
ansible.builtin.service:
name: httpd
state: stopped
when: os is match("rhel.*") or os == "Red Hat BYOL Linux"

- name: Stop IIS
ansible.windows.win_service:
name: W3Svc
state: stopped
when: os is match("windows.*") or os is match("2016.*") or os == "Windows"

0 comments on commit 7912674

Please sign in to comment.