--- /srv/rebuilderd/tmp/rebuilderdZq4w4b/inputs/ssg-debderived_0.1.82-1_all.deb +++ /srv/rebuilderd/tmp/rebuilderdZq4w4b/out/ssg-debderived_0.1.82-1_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2026-09-07 19:17:46.000000 debian-binary │ -rw-r--r-- 0 0 0 2004 2026-09-07 19:17:46.000000 control.tar.xz │ --rw-r--r-- 0 0 0 2483928 2026-09-07 19:17:46.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 2483828 2026-09-07 19:17:46.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2204-guide-cis_level1_server.html │ │ │ @@ -15105,138 +15105,138 @@ │ │ │ 0003b000: 636f 6c6c 6170 7365 2220 6461 7461 2d74 collapse" data-t │ │ │ 0003b010: 6172 6765 743d 2223 6964 3822 2074 6162 arget="#id8" tab │ │ │ 0003b020: 696e 6465 783d 2230 2220 726f 6c65 3d22 index="0" role=" │ │ │ 0003b030: 6275 7474 6f6e 2220 6172 6961 2d65 7870 button" aria-exp │ │ │ 0003b040: 616e 6465 643d 2266 616c 7365 2220 7469 anded="false" ti │ │ │ 0003b050: 746c 653d 2241 6374 6976 6174 6520 746f tle="Activate to │ │ │ 0003b060: 2072 6576 6561 6c22 2068 7265 663d 2223 reveal" href="# │ │ │ -0003b070: 2122 3e52 656d 6564 6961 7469 6f6e 204f !">Remediation O │ │ │ -0003b080: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0003b090: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003b0a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[[
│ │ │ -0003b0e0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -0003b0f0: 3d20 2261 6964 6522 0a76 6572 7369 6f6e  = "aide".version
│ │ │ -0003b100: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation │ │ │ -0003b1c0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0003b1d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -0003b250: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0003b270: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0003b2c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -0003b310: 5f61 6964 650a 0a63 6c61 7373 2069 6e73  _aide..class ins
│ │ │ -0003b320: 7461 6c6c 5f61 6964 6520 7b0a 2020 7061  tall_aide {.  pa
│ │ │ -0003b330: 636b 6167 6520 7b20 2761 6964 6527 3a0a  ckage { 'aide':.
│ │ │ -0003b340: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0003b350: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -0003b360: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation A │ │ │ -0003b420: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0003b430: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disr │ │ │ -0003b280: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0003b290: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0003b2d0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0003b2e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0003b4b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0003b4d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0003b520: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -0003b570: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0003b580: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0003b590: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0003b5a0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0003b5b0: 2043 4a49 532d 352e 3130 2e31 2e33 0a20   CJIS-5.10.1.3. 
│ │ │ -0003b5c0: 202d 2044 4953 412d 5354 4947 2d55 4254   - DISA-STIG-UBT
│ │ │ -0003b5d0: 552d 3232 2d36 3531 3031 300a 2020 2d20  U-22-651010.  - 
│ │ │ -0003b5e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0003b5f0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -0003b600: 5265 712d 3131 2e35 0a20 202d 2050 4349  Req-11.5.  - PCI
│ │ │ -0003b610: 2d44 5353 7634 2d31 312e 352e 320a 2020  -DSSv4-11.5.2.  
│ │ │ -0003b620: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0003b630: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0003b640: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0003b650: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0003b660: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0003b670: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0003b680: 0a20 202d 2070 6163 6b61 6765 5f61 6964  .  - package_aid
│ │ │ -0003b690: 655f 696e 7374 616c 6c65 640a 0a2d 206e  e_installed..- n
│ │ │ -0003b6a0: 616d 653a 2045 6e73 7572 6520 6169 6465  ame: Ensure aide
│ │ │ -0003b6b0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -0003b6c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0003b6d0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0003b6e0: 653a 2061 6964 650a 2020 2020 7374 6174  e: aide.    stat
│ │ │ -0003b6f0: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -0003b700: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -0003b710: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0003b720: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -0003b730: 6773 3a0a 2020 2d20 434a 4953 2d35 2e31  gs:.  - CJIS-5.1
│ │ │ -0003b740: 302e 312e 330a 2020 2d20 4449 5341 2d53  0.1.3.  - DISA-S
│ │ │ -0003b750: 5449 472d 5542 5455 2d32 322d 3635 3130  TIG-UBTU-22-6510
│ │ │ -0003b760: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -0003b770: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0003b780: 4349 2d44 5353 2d52 6571 2d31 312e 350a  CI-DSS-Req-11.5.
│ │ │ -0003b790: 2020 2d20 5043 492d 4453 5376 342d 3131    - PCI-DSSv4-11
│ │ │ -0003b7a0: 2e35 2e32 0a20 202d 2065 6e61 626c 655f  .5.2.  - enable_
│ │ │ -0003b7b0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0003b7c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0003b7d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0003b7e0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0003b7f0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0003b800: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0003b810: 6167 655f 6169 6465 5f69 6e73 7461 6c6c  age_aide_install
│ │ │ -0003b820: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0003b070: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +0003b080: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +0003b090: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disr │ │ │ -0003b4e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0003b4f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0003b530: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0003b540: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +0003b160: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0003b170: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0003b1c0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0003b1d0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0003b1e0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0003b1f0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0003b200: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0003b210: 434a 4953 2d35 2e31 302e 312e 330a 2020  CJIS-5.10.1.3.  
│ │ │ +0003b220: 2d20 4449 5341 2d53 5449 472d 5542 5455  - DISA-STIG-UBTU
│ │ │ +0003b230: 2d32 322d 3635 3130 3130 0a20 202d 204e  -22-651010.  - N
│ │ │ +0003b240: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0003b250: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +0003b260: 6571 2d31 312e 350a 2020 2d20 5043 492d  eq-11.5.  - PCI-
│ │ │ +0003b270: 4453 5376 342d 3131 2e35 2e32 0a20 202d  DSSv4-11.5.2.  -
│ │ │ +0003b280: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0003b290: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0003b2a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0003b2b0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0003b2c0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0003b2d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0003b2e0: 2020 2d20 7061 636b 6167 655f 6169 6465    - package_aide
│ │ │ +0003b2f0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +0003b300: 6d65 3a20 456e 7375 7265 2061 6964 6520  me: Ensure aide 
│ │ │ +0003b310: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +0003b320: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0003b330: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0003b340: 3a20 6169 6465 0a20 2020 2073 7461 7465  : aide.    state
│ │ │ +0003b350: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +0003b360: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0003b370: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0003b380: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0003b390: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ +0003b3a0: 2e31 2e33 0a20 202d 2044 4953 412d 5354  .1.3.  - DISA-ST
│ │ │ +0003b3b0: 4947 2d55 4254 552d 3232 2d36 3531 3031  IG-UBTU-22-65101
│ │ │ +0003b3c0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ +0003b3d0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +0003b3e0: 492d 4453 532d 5265 712d 3131 2e35 0a20  I-DSS-Req-11.5. 
│ │ │ +0003b3f0: 202d 2050 4349 2d44 5353 7634 2d31 312e   - PCI-DSSv4-11.
│ │ │ +0003b400: 352e 320a 2020 2d20 656e 6162 6c65 5f73  5.2.  - enable_s
│ │ │ +0003b410: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0003b420: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0003b430: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0003b440: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0003b450: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0003b460: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0003b470: 6765 5f61 6964 655f 696e 7374 616c 6c65  ge_aide_installe
│ │ │ +0003b480: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0003b490: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ +0003b530: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0003b540: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +0003b140: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0003b150: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0003b190: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0003b1a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +0003b5f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0003b640: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0003b5d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0003b600: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0003b620: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0003b630: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0003b650: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0003b660: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0003b680: 7564 6520 696e 7374 616c 6c5f 6169 6465  ude install_aide
│ │ │ +0003b690: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +0003b6a0: 6169 6465 207b 0a20 2070 6163 6b61 6765  aide {.  package
│ │ │ +0003b6b0: 207b 2027 6169 6465 273a 0a20 2020 2065   { 'aide':.    e
│ │ │ +0003b6c0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +0003b6d0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +0003b6e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +0003b790: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0003b7a0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0003b7b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0003b7c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003b7d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003b7e0: 7365 2220 6964 3d22 6964 3130 223e 3c70 se" id="id10">

.[[pack │ │ │ +0003b800: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ +0003b810: 6964 6522 0a76 6572 7369 6f6e 203d 2022 ide".version = " │ │ │ +0003b820: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ 0003b830: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22

Remediation Pup │ │ │ -00041720: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00041730: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -000417c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00041860: 696e 636c 7564 6520 7265 6d6f 7665 5f70  include remove_p
│ │ │ -00041870: 7265 6c69 6e6b 0a0a 636c 6173 7320 7265  relink..class re
│ │ │ -00041880: 6d6f 7665 5f70 7265 6c69 6e6b 207b 0a20  move_prelink {. 
│ │ │ -00041890: 2070 6163 6b61 6765 207b 2027 7072 656c   package { 'prel
│ │ │ -000418a0: 696e 6b27 3a0a 2020 2020 656e 7375 7265  ink':.    ensure
│ │ │ -000418b0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -000418c0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediatio
│ │ │ -00041980: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -00041990: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
Disruption:Strategy: │ │ │ -00041aa0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00041ab0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -000417b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000417e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000417f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00041830: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00041840: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ -00041a20: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -00041a30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00041a70: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00041a80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -00041ad0: 4368 6563 6b20 4966 2050 7265 6c69 6e6b Check If Prelink │ │ │ -00041ae0: 6564 2049 7320 496e 7374 616c 6c65 640a ed Is Installed. │ │ │ -00041af0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00041b00: 6e2e 7374 6174 3a0a 2020 2020 7061 7468 n.stat:. path │ │ │ -00041b10: 3a20 2f75 7372 2f73 6269 6e2f 7072 656c : /usr/sbin/prel │ │ │ -00041b20: 696e 6b0a 2020 2020 6765 745f 6368 6563 ink. get_chec │ │ │ -00041b30: 6b73 756d 3a20 6661 6c73 650a 2020 7265 ksum: false. re │ │ │ -00041b40: 6769 7374 6572 3a20 7072 656c 696e 6b0a gister: prelink. │ │ │ -00041b50: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -00041b60: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00041b70: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00041b80: 2020 2d20 6d65 6469 756d 5f63 6f6d 706c - medium_compl │ │ │ -00041b90: 6578 6974 790a 2020 2d20 6d65 6469 756d exity. - medium │ │ │ -00041ba0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00041bb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00041bc0: 202d 2070 6163 6b61 6765 5f70 7265 6c69 - package_preli │ │ │ -00041bd0: 6e6b 5f72 656d 6f76 6564 0a0a 2d20 6e61 nk_removed..- na │ │ │ -00041be0: 6d65 3a20 5265 7374 6f72 6520 5072 656c me: Restore Prel │ │ │ -00041bf0: 696e 6b65 6420 4269 6e61 7269 6573 0a20 inked Binaries. │ │ │ -00041c00: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00041c10: 2e63 6f6d 6d61 6e64 3a0a 2020 2020 636d .command:. cm │ │ │ -00041c20: 643a 2070 7265 6c69 6e6b 202d 7561 0a20 d: prelink -ua. │ │ │ -00041c30: 2077 6865 6e3a 2070 7265 6c69 6e6b 2e73 when: prelink.s │ │ │ -00041c40: 7461 742e 6578 6973 7473 0a20 2074 6167 tat.exists. tag │ │ │ -00041c50: 733a 0a20 202d 2064 6973 6162 6c65 5f73 s:. - disable_s │ │ │ -00041c60: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00041c70: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00041c80: 6564 6975 6d5f 636f 6d70 6c65 7869 7479 edium_complexity │ │ │ -00041c90: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00041ca0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -00041cb0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -00041cc0: 636b 6167 655f 7072 656c 696e 6b5f 7265 ckage_prelink_re │ │ │ -00041cd0: 6d6f 7665 640a 0a2d 206e 616d 653a 2045 moved..- name: E │ │ │ -00041ce0: 6e73 7572 6520 7072 656c 696e 6b20 6973 nsure prelink is │ │ │ -00041cf0: 2052 656d 6f76 6564 0a20 2061 6e73 6962 Removed. ansib │ │ │ -00041d00: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -00041d10: 6765 3a0a 2020 2020 6e61 6d65 3a20 7072 ge:. name: pr │ │ │ -00041d20: 656c 696e 6b0a 2020 2020 7374 6174 653a elink. state: │ │ │ -00041d30: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ -00041d40: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -00041d50: 7465 6779 0a20 202d 206c 6f77 5f64 6973 tegy. - low_dis │ │ │ -00041d60: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00041d70: 756d 5f63 6f6d 706c 6578 6974 790a 2020 um_complexity. │ │ │ -00041d80: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00041d90: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00041da0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -00041db0: 6765 5f70 7265 6c69 6e6b 5f72 656d 6f76 ge_prelink_remov │ │ │ -00041dc0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed. │ │ │ +00041710: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00041720: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00041730: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +000417d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00041820: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00041850: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:medium
Dis │ │ │ +000417e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00041830: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00041840: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Check
│ │ │ +00041870: 2049 6620 5072 656c 696e 6b65 6420 4973   If Prelinked Is
│ │ │ +00041880: 2049 6e73 7461 6c6c 6564 0a20 2061 6e73   Installed.  ans
│ │ │ +00041890: 6962 6c65 2e62 7569 6c74 696e 2e73 7461  ible.builtin.sta
│ │ │ +000418a0: 743a 0a20 2020 2070 6174 683a 202f 7573  t:.    path: /us
│ │ │ +000418b0: 722f 7362 696e 2f70 7265 6c69 6e6b 0a20  r/sbin/prelink. 
│ │ │ +000418c0: 2020 2067 6574 5f63 6865 636b 7375 6d3a     get_checksum:
│ │ │ +000418d0: 2066 616c 7365 0a20 2072 6567 6973 7465   false.  registe
│ │ │ +000418e0: 723a 2070 7265 6c69 6e6b 0a20 2074 6167  r: prelink.  tag
│ │ │ +000418f0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00041900: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00041910: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00041920: 6564 6975 6d5f 636f 6d70 6c65 7869 7479  edium_complexity
│ │ │ +00041930: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00041940: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00041950: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00041960: 636b 6167 655f 7072 656c 696e 6b5f 7265  ckage_prelink_re
│ │ │ +00041970: 6d6f 7665 640a 0a2d 206e 616d 653a 2052  moved..- name: R
│ │ │ +00041980: 6573 746f 7265 2050 7265 6c69 6e6b 6564  estore Prelinked
│ │ │ +00041990: 2042 696e 6172 6965 730a 2020 616e 7369   Binaries.  ansi
│ │ │ +000419a0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +000419b0: 616e 643a 0a20 2020 2063 6d64 3a20 7072  and:.    cmd: pr
│ │ │ +000419c0: 656c 696e 6b20 2d75 610a 2020 7768 656e  elink -ua.  when
│ │ │ +000419d0: 3a20 7072 656c 696e 6b2e 7374 6174 2e65  : prelink.stat.e
│ │ │ +000419e0: 7869 7374 730a 2020 7461 6773 3a0a 2020  xists.  tags:.  
│ │ │ +000419f0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00041a00: 6779 0a20 202d 206c 6f77 5f64 6973 7275  gy.  - low_disru
│ │ │ +00041a10: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00041a20: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00041a30: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00041a40: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00041a50: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00041a60: 5f70 7265 6c69 6e6b 5f72 656d 6f76 6564  _prelink_removed
│ │ │ +00041a70: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ +00041a80: 2070 7265 6c69 6e6b 2069 7320 5265 6d6f   prelink is Remo
│ │ │ +00041a90: 7665 640a 2020 616e 7369 626c 652e 6275  ved.  ansible.bu
│ │ │ +00041aa0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00041ab0: 2020 206e 616d 653a 2070 7265 6c69 6e6b     name: prelink
│ │ │ +00041ac0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00041ad0: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +00041ae0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00041af0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00041b00: 6f6e 0a20 202d 206d 6564 6975 6d5f 636f  on.  - medium_co
│ │ │ +00041b10: 6d70 6c65 7869 7479 0a20 202d 206d 6564  mplexity.  - med
│ │ │ +00041b20: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00041b30: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00041b40: 640a 2020 2d20 7061 636b 6167 655f 7072  d.  - package_pr
│ │ │ +00041b50: 656c 696e 6b5f 7265 6d6f 7665 640a 3c2f  elink_removed.
Rem │ │ │ +00041c10: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00041c20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00041c30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ +00041cb0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00041cc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00041ce0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00041d00: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00041d10: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00041d50: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +00041d60: 7564 6520 7265 6d6f 7665 5f70 7265 6c69  ude remove_preli
│ │ │ +00041d70: 6e6b 0a0a 636c 6173 7320 7265 6d6f 7665  nk..class remove
│ │ │ +00041d80: 5f70 7265 6c69 6e6b 207b 0a20 2070 6163  _prelink {.  pac
│ │ │ +00041d90: 6b61 6765 207b 2027 7072 656c 696e 6b27  kage { 'prelink'
│ │ │ +00041da0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00041db0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00041dc0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00041dd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediatio │ │ │ -00056180: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00056190: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -000561a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ -000561f0: 616d 6520 3d20 2273 7564 6f22 0a76 6572  ame = "sudo".ver
│ │ │ -00056200: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remedi │ │ │ -000562c0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000562d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000562e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00056310: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00056320: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00056330: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00056340: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00056350: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00056360: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00056370: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000563b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000563c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000563e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000563f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -00056410: 6e73 7461 6c6c 5f73 7564 6f0a 0a63 6c61  nstall_sudo..cla
│ │ │ -00056420: 7373 2069 6e73 7461 6c6c 5f73 7564 6f20  ss install_sudo 
│ │ │ -00056430: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ -00056440: 7564 6f27 3a0a 2020 2020 656e 7375 7265  udo':.    ensure
│ │ │ -00056450: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -00056460: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ -00056520: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00056530: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00056540: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00056570: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00056580: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00056590: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000565a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000565b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000565c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000565d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00056610: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00056620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00056640: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00056650: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00056670: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00056680: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00056690: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000566a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000566b0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000566c0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -000566d0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -000566e0: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ -000566f0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00056700: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00056710: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00056720: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00056730: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00056740: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00056750: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00056760: 7375 646f 5f69 6e73 7461 6c6c 6564 0a0a  sudo_installed..
│ │ │ -00056770: 2d20 6e61 6d65 3a20 456e 7375 7265 2073  - name: Ensure s
│ │ │ -00056780: 7564 6f20 6973 2069 6e73 7461 6c6c 6564  udo is installed
│ │ │ -00056790: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -000567a0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -000567b0: 6e61 6d65 3a20 7375 646f 0a20 2020 2073  name: sudo.    s
│ │ │ -000567c0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -000567d0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -000567e0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -000567f0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00056800: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00056810: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00056820: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00056830: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00056840: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ -00056850: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00056860: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00056870: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00056880: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00056890: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000568a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000568b0: 6167 655f 7375 646f 5f69 6e73 7461 6c6c  age_sudo_install
│ │ │ -000568c0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00056180: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00056190: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ +00056220: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00056240: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00056250: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00056260: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00056270: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00056290: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000562d0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000562e0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000562f0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00056300: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00056310: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00056320: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00056330: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +00056340: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +00056350: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00056360: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00056370: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00056380: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00056390: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000563a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000563b0: 0a20 202d 2070 6163 6b61 6765 5f73 7564  .  - package_sud
│ │ │ +000563c0: 6f5f 696e 7374 616c 6c65 640a 0a2d 206e  o_installed..- n
│ │ │ +000563d0: 616d 653a 2045 6e73 7572 6520 7375 646f  ame: Ensure sudo
│ │ │ +000563e0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000563f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00056400: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00056410: 653a 2073 7564 6f0a 2020 2020 7374 6174  e: sudo.    stat
│ │ │ +00056420: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +00056430: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +00056440: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00056450: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +00056460: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00056470: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00056480: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +00056490: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +000564a0: 360a 2020 2d20 656e 6162 6c65 5f73 7472  6.  - enable_str
│ │ │ +000564b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000564c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000564d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000564e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000564f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00056500: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00056510: 5f73 7564 6f5f 696e 7374 616c 6c65 640a  _sudo_installed.
│ │ │ +00056520: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +000565d0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000565e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ +00056690: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000566e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00056670: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000566a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000566c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000566d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000566f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00056700: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00056720: 7564 6520 696e 7374 616c 6c5f 7375 646f  ude install_sudo
│ │ │ +00056730: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +00056740: 7375 646f 207b 0a20 2070 6163 6b61 6765  sudo {.  package
│ │ │ +00056750: 207b 2027 7375 646f 273a 0a20 2020 2065   { 'sudo':.    e
│ │ │ +00056760: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +00056770: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +00056780: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +00056830: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00056840: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00056850: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00056860: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00056870: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00056880: 7365 2220 6964 3d22 6964 3433 223e 3c70 se" id="id43">

.[[pack │ │ │ +000568a0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2273 ages]].name = "s │ │ │ +000568b0: 7564 6f22 0a76 6572 7369 6f6e 203d 2022 udo".version = " │ │ │ +000568c0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *". │ │ │ 000568d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22

Re │ │ │ -000a8230: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000a8240: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000a8250: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000a8260: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000a8270: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000a8280: 7365 2220 6964 3d22 6964 3135 3722 3e3c se" id="id157">< │ │ │ -000a8290: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -000a82a0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -000a82b0: 6c69 6270 616d 2d6d 6f64 756c 6573 220a libpam-modules". │ │ │ -000a82c0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".
Re │ │ │ -000a8380: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -000a8390: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000a83a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000a8440: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000a8490: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000a8420: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000a8450: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000a8470: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000a8480: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000a84a0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000a84b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000a84d0: 7564 6520 696e 7374 616c 6c5f 6c69 6270  ude install_libp
│ │ │ -000a84e0: 616d 2d6d 6f64 756c 6573 0a0a 636c 6173  am-modules..clas
│ │ │ -000a84f0: 7320 696e 7374 616c 6c5f 6c69 6270 616d  s install_libpam
│ │ │ -000a8500: 2d6d 6f64 756c 6573 207b 0a20 2070 6163  -modules {.  pac
│ │ │ -000a8510: 6b61 6765 207b 2027 6c69 6270 616d 2d6d  kage { 'libpam-m
│ │ │ -000a8520: 6f64 756c 6573 273a 0a20 2020 2065 6e73  odules':.    ens
│ │ │ -000a8530: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -000a8540: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -000a8560: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000a8600: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000a8610: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000a8620: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000a86c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000a8710: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000a86a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000a86d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000a86f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000a8700: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000a8720: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000a8730: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000a8750: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000a8760: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000a8770: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000a8780: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000a8790: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000a87a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000a87b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000a87c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000a87d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000a87e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000a87f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000a8800: 6163 6b61 6765 5f70 616d 5f6d 6f64 756c  ackage_pam_modul
│ │ │ -000a8810: 6573 5f69 6e73 7461 6c6c 6564 0a0a 2d20  es_installed..- 
│ │ │ -000a8820: 6e61 6d65 3a20 456e 7375 7265 206c 6962  name: Ensure lib
│ │ │ -000a8830: 7061 6d2d 6d6f 6475 6c65 7320 6973 2069  pam-modules is i
│ │ │ -000a8840: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -000a8850: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000a8860: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c69  ge:.    name: li
│ │ │ -000a8870: 6270 616d 2d6d 6f64 756c 6573 0a20 2020  bpam-modules.   
│ │ │ -000a8880: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -000a8890: 2020 7768 656e 3a20 2722 6c69 6270 616d    when: '"libpam
│ │ │ -000a88a0: 2d72 756e 7469 6d65 2220 696e 2061 6e73  -runtime" in ans
│ │ │ -000a88b0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000a88c0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -000a88d0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000a88e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000a88f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000a8900: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000a8910: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000a8920: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000a8930: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ -000a8940: 6d6f 6475 6c65 735f 696e 7374 616c 6c65  modules_installe
│ │ │ -000a8950: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000a8230: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +000a8240: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ +000a82e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000a82f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000a8340: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000a8380: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000a8390: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000a83a0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000a83b0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000a83c0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +000a83d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000a83e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000a83f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000a8400: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000a8410: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000a8420: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000a8430: 7061 636b 6167 655f 7061 6d5f 6d6f 6475  package_pam_modu
│ │ │ +000a8440: 6c65 735f 696e 7374 616c 6c65 640a 0a2d  les_installed..-
│ │ │ +000a8450: 206e 616d 653a 2045 6e73 7572 6520 6c69   name: Ensure li
│ │ │ +000a8460: 6270 616d 2d6d 6f64 756c 6573 2069 7320  bpam-modules is 
│ │ │ +000a8470: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +000a8480: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000a8490: 6167 653a 0a20 2020 206e 616d 653a 206c  age:.    name: l
│ │ │ +000a84a0: 6962 7061 6d2d 6d6f 6475 6c65 730a 2020  ibpam-modules.  
│ │ │ +000a84b0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +000a84c0: 0a20 2077 6865 6e3a 2027 226c 6962 7061  .  when: '"libpa
│ │ │ +000a84d0: 6d2d 7275 6e74 696d 6522 2069 6e20 616e  m-runtime" in an
│ │ │ +000a84e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000a84f0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +000a8500: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000a8510: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000a8520: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000a8530: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000a8540: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000a8550: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000a8560: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ +000a8570: 5f6d 6f64 756c 6573 5f69 6e73 7461 6c6c  _modules_install
│ │ │ +000a8580: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000a8590: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +000a8640: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000a8650: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +000a82d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000a8300: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000a8310: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000a8350: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000a8360: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +000a86d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000a86f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000a8740: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000a8790: 5f6c 6962 7061 6d2d 6d6f 6475 6c65 730a  _libpam-modules.
│ │ │ +000a87a0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6c  .class install_l
│ │ │ +000a87b0: 6962 7061 6d2d 6d6f 6475 6c65 7320 7b0a  ibpam-modules {.
│ │ │ +000a87c0: 2020 7061 636b 6167 6520 7b20 276c 6962    package { 'lib
│ │ │ +000a87d0: 7061 6d2d 6d6f 6475 6c65 7327 3a0a 2020  pam-modules':.  
│ │ │ +000a87e0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000a87f0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000a8800: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000a8810: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000a88c0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000a88d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000a88e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>< │ │ │ -000a9a70: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disr │ │ │ +000a8700: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000a8710: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000a8750: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000a8760: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ -000a99f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000a9a00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000a9a40: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000a9a50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000a9a90: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000a9aa0: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -000a9ab0: 7561 6c69 7479 0a0a 636c 6173 7320 696e  uality..class in
│ │ │ -000a9ac0: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -000a9ad0: 7561 6c69 7479 207b 0a20 2070 6163 6b61  uality {.  packa
│ │ │ -000a9ae0: 6765 207b 2027 6c69 6270 616d 2d70 7771  ge { 'libpam-pwq
│ │ │ -000a9af0: 7561 6c69 7479 273a 0a20 2020 2065 6e73  uality':.    ens
│ │ │ -000a9b00: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -000a9b10: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -000a9b30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000a9bd0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000a9be0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000a9bf0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000a9c90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000a9ce0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000a9c70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000a9ca0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000a9cc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000a9cd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000a9cf0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000a9d00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000a9d20: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000a9d30: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000a9d40: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000a9d50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000a9d60: 2020 7461 6773 3a0a 2020 2d20 4449 5341    tags:.  - DISA
│ │ │ -000a9d70: 2d53 5449 472d 5542 5455 2d32 322d 3231  -STIG-UBTU-22-21
│ │ │ -000a9d80: 3530 3130 0a20 202d 2065 6e61 626c 655f  5010.  - enable_
│ │ │ -000a9d90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000a9da0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000a9db0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000a9dc0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000a9dd0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000a9de0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000a9df0: 6167 655f 7061 6d5f 7077 7175 616c 6974  age_pam_pwqualit
│ │ │ -000a9e00: 795f 696e 7374 616c 6c65 640a 0a2d 206e  y_installed..- n
│ │ │ -000a9e10: 616d 653a 2045 6e73 7572 6520 6c69 6270  ame: Ensure libp
│ │ │ -000a9e20: 616d 2d70 7771 7561 6c69 7479 2069 7320  am-pwquality is 
│ │ │ -000a9e30: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000a9e40: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000a9e50: 6167 653a 0a20 2020 206e 616d 653a 206c  age:.    name: l
│ │ │ -000a9e60: 6962 7061 6d2d 7077 7175 616c 6974 790a  ibpam-pwquality.
│ │ │ -000a9e70: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -000a9e80: 6e74 0a20 2077 6865 6e3a 2027 226c 6962  nt.  when: '"lib
│ │ │ -000a9e90: 7061 6d2d 7275 6e74 696d 6522 2069 6e20  pam-runtime" in 
│ │ │ -000a9ea0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000a9eb0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -000a9ec0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ -000a9ed0: 5455 2d32 322d 3231 3530 3130 0a20 202d  TU-22-215010.  -
│ │ │ -000a9ee0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000a9ef0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000a9f00: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000a9f10: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000a9f20: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000a9f30: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000a9f40: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ -000a9f50: 7077 7175 616c 6974 795f 696e 7374 616c  pwquality_instal
│ │ │ -000a9f60: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

< │ │ │ +000a9890: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000a98a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000a98c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000a98d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000a98f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000a9910: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000a9940: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +000a9950: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +000a9960: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +000a9970: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +000a9980: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +000a9990: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ +000a99a0: 4254 552d 3232 2d32 3135 3031 300a 2020  BTU-22-215010.  
│ │ │ +000a99b0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000a99c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000a99d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000a99e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000a99f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000a9a00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000a9a10: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ +000a9a20: 5f70 7771 7561 6c69 7479 5f69 6e73 7461  _pwquality_insta
│ │ │ +000a9a30: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +000a9a40: 7375 7265 206c 6962 7061 6d2d 7077 7175  sure libpam-pwqu
│ │ │ +000a9a50: 616c 6974 7920 6973 2069 6e73 7461 6c6c  ality is install
│ │ │ +000a9a60: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +000a9a70: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000a9a80: 2020 6e61 6d65 3a20 6c69 6270 616d 2d70    name: libpam-p
│ │ │ +000a9a90: 7771 7561 6c69 7479 0a20 2020 2073 7461  wquality.    sta
│ │ │ +000a9aa0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +000a9ab0: 656e 3a20 2722 6c69 6270 616d 2d72 756e  en: '"libpam-run
│ │ │ +000a9ac0: 7469 6d65 2220 696e 2061 6e73 6962 6c65  time" in ansible
│ │ │ +000a9ad0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000a9ae0: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ +000a9af0: 412d 5354 4947 2d55 4254 552d 3232 2d32  A-STIG-UBTU-22-2
│ │ │ +000a9b00: 3135 3031 300a 2020 2d20 656e 6162 6c65  15010.  - enable
│ │ │ +000a9b10: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000a9b20: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000a9b30: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000a9b40: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000a9b50: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000a9b60: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000a9b70: 6b61 6765 5f70 616d 5f70 7771 7561 6c69  kage_pam_pwquali
│ │ │ +000a9b80: 7479 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ty_installed.
│ │ │ +000a9ba0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000a9c40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000a9c50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000a9c60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +000a9ce0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000a9d10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000a9d30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000a9d40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000a9d60: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000a9d80: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000a9d90: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ +000a9da0: 6d2d 7077 7175 616c 6974 790a 0a63 6c61  m-pwquality..cla
│ │ │ +000a9db0: 7373 2069 6e73 7461 6c6c 5f6c 6962 7061  ss install_libpa
│ │ │ +000a9dc0: 6d2d 7077 7175 616c 6974 7920 7b0a 2020  m-pwquality {.  
│ │ │ +000a9dd0: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ +000a9de0: 6d2d 7077 7175 616c 6974 7927 3a0a 2020  m-pwquality':.  
│ │ │ +000a9df0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000a9e00: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000a9e10: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000a9e20: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000a9ed0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000a9ee0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000a9ef0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +000a9f30: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +000a9f40: 203d 2022 6c69 6270 616d 2d70 7771 7561   = "libpam-pwqua
│ │ │ +000a9f50: 6c69 7479 220a 7665 7273 696f 6e20 3d20  lity".version = 
│ │ │ +000a9f60: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediati │ │ │ -000aaac0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000aaad0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000aaae0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -000aab30: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -000aab40: 7275 6e74 696d 6522 0a76 6572 7369 6f6e  runtime".version
│ │ │ -000aab50: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000aac10: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000aac20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000aaca0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000aacb0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000aacd0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000aace0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000aad00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000aad20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000aad50: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000aad60: 7461 6c6c 5f6c 6962 7061 6d2d 7275 6e74  tall_libpam-runt
│ │ │ -000aad70: 696d 650a 0a63 6c61 7373 2069 6e73 7461  ime..class insta
│ │ │ -000aad80: 6c6c 5f6c 6962 7061 6d2d 7275 6e74 696d  ll_libpam-runtim
│ │ │ -000aad90: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ -000aada0: 276c 6962 7061 6d2d 7275 6e74 696d 6527  'libpam-runtime'
│ │ │ -000aadb0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000aadc0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000aadd0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000aae90: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000aaea0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000aaf20: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000aaf30: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000aaf50: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000aaf60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000aaf80: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000aafa0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000aafd0: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ -000aafe0: 7572 6520 6c69 6270 616d 2d72 756e 7469  ure libpam-runti
│ │ │ -000aaff0: 6d65 2069 7320 696e 7374 616c 6c65 640a  me is installed.
│ │ │ -000ab000: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000ab010: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000ab020: 616d 653a 206c 6962 7061 6d2d 7275 6e74  ame: libpam-runt
│ │ │ -000ab030: 696d 650a 2020 2020 7374 6174 653a 2070  ime.    state: p
│ │ │ -000ab040: 7265 7365 6e74 0a20 2074 6167 733a 0a20  resent.  tags:. 
│ │ │ -000ab050: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000ab060: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000ab070: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000ab080: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000ab090: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000ab0a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000ab0b0: 640a 2020 2d20 7061 636b 6167 655f 7061  d.  - package_pa
│ │ │ -000ab0c0: 6d5f 7275 6e74 696d 655f 696e 7374 616c  m_runtime_instal
│ │ │ -000ab0d0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

│ │ │ +000aab50: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000aab60: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000aab70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000aabb0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000aabc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000aabe0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000aac00: 3c63 6f64 653e 2d20 6e61 6d65 3a20 456e  - name: En
│ │ │ +000aac10: 7375 7265 206c 6962 7061 6d2d 7275 6e74  sure libpam-runt
│ │ │ +000aac20: 696d 6520 6973 2069 6e73 7461 6c6c 6564  ime is installed
│ │ │ +000aac30: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000aac40: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000aac50: 6e61 6d65 3a20 6c69 6270 616d 2d72 756e  name: libpam-run
│ │ │ +000aac60: 7469 6d65 0a20 2020 2073 7461 7465 3a20  time.    state: 
│ │ │ +000aac70: 7072 6573 656e 740a 2020 7461 6773 3a0a  present.  tags:.
│ │ │ +000aac80: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000aac90: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000aaca0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000aacb0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000aacc0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000aacd0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000aace0: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ +000aacf0: 616d 5f72 756e 7469 6d65 5f69 6e73 7461  am_runtime_insta
│ │ │ +000aad00: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation │ │ │ +000aadc0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000aadd0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000aae60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000aae80: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000aaea0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000aaed0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000aaee0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000aaef0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +000aaf10: 6c6c 5f6c 6962 7061 6d2d 7275 6e74 696d  ll_libpam-runtim
│ │ │ +000aaf20: 650a 0a63 6c61 7373 2069 6e73 7461 6c6c  e..class install
│ │ │ +000aaf30: 5f6c 6962 7061 6d2d 7275 6e74 696d 6520  _libpam-runtime 
│ │ │ +000aaf40: 7b0a 2020 7061 636b 6167 6520 7b20 276c  {.  package { 'l
│ │ │ +000aaf50: 6962 7061 6d2d 7275 6e74 696d 6527 3a0a  ibpam-runtime':.
│ │ │ +000aaf60: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000aaf70: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000aaf80: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000ab040: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000ab050: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000ab0a0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000ab0b0: 6d65 203d 2022 6c69 6270 616d 2d72 756e  me = "libpam-run
│ │ │ +000ab0c0: 7469 6d65 220a 7665 7273 696f 6e20 3d20  time".version = 
│ │ │ +000ab0d0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Rem │ │ │ -000e3220: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000e3230: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000e3240: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -000e3290: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ -000e32a0: 7070 6172 6d6f 722d 7574 696c 7322 0a76 pparmor-utils".v │ │ │ -000e32b0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ -000e32d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000e3370: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000e3380: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000e3390: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000e3410: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000e3440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000e3460: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000e3470: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000e3490: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000e34b0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000e34c0: 6465 2069 6e73 7461 6c6c 5f61 7070 6172  de install_appar
│ │ │ -000e34d0: 6d6f 722d 7574 696c 730a 0a63 6c61 7373  mor-utils..class
│ │ │ -000e34e0: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f   install_apparmo
│ │ │ -000e34f0: 722d 7574 696c 7320 7b0a 2020 7061 636b  r-utils {.  pack
│ │ │ -000e3500: 6167 6520 7b20 2761 7070 6172 6d6f 722d  age { 'apparmor-
│ │ │ -000e3510: 7574 696c 7327 3a0a 2020 2020 656e 7375  utils':.    ensu
│ │ │ -000e3520: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -000e3530: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -000e3550: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000e3560: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000e3570: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000e3580: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000e3590: 6432 3634 2220 7461 6269 6e64 6578 3d22 d264" tabindex=" │ │ │ -000e35a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000e35b0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000e35c0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000e35d0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000e35e0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -000e35f0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -000e3600: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000e3610: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000e3690: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000e36c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000e36e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000e36f0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000e3710: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000e3730: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000e3740: 653a 2045 6e73 7572 6520 6170 7061 726d  e: Ensure apparm
│ │ │ -000e3750: 6f72 2d75 7469 6c73 2069 7320 696e 7374  or-utils is inst
│ │ │ -000e3760: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000e3770: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000e3780: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ -000e3790: 6d6f 722d 7574 696c 730a 2020 2020 7374  mor-utils.    st
│ │ │ -000e37a0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000e37b0: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ -000e37c0: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ -000e37d0: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ -000e37e0: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ -000e37f0: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ -000e3800: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ -000e3810: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000e3820: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000e3830: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000e3840: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000e3850: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000e3860: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000e3870: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000e3880: 655f 6170 7061 726d 6f72 2d75 7469 6c73  e_apparmor-utils
│ │ │ -000e3890: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000e3240: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +000e32e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000e3330: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000e32c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000e32f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000e3310: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000e3320: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000e3340: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000e3350: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000e3370: 6d65 3a20 456e 7375 7265 2061 7070 6172  me: Ensure appar
│ │ │ +000e3380: 6d6f 722d 7574 696c 7320 6973 2069 6e73  mor-utils is ins
│ │ │ +000e3390: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000e33a0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000e33b0: 3a0a 2020 2020 6e61 6d65 3a20 6170 7061  :.    name: appa
│ │ │ +000e33c0: 726d 6f72 2d75 7469 6c73 0a20 2020 2073  rmor-utils.    s
│ │ │ +000e33d0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000e33e0: 7768 656e 3a20 616e 7369 626c 655f 7669  when: ansible_vi
│ │ │ +000e33f0: 7274 7561 6c69 7a61 7469 6f6e 5f74 7970  rtualization_typ
│ │ │ +000e3400: 6520 6e6f 7420 696e 205b 2264 6f63 6b65  e not in ["docke
│ │ │ +000e3410: 7222 2c20 226c 7863 222c 2022 6f70 656e  r", "lxc", "open
│ │ │ +000e3420: 767a 222c 2022 706f 646d 616e 222c 2022  vz", "podman", "
│ │ │ +000e3430: 636f 6e74 6169 6e65 7222 5d0a 2020 7461  container"].  ta
│ │ │ +000e3440: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ +000e3450: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000e3460: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000e3470: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000e3480: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000e3490: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000e34a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000e34b0: 6765 5f61 7070 6172 6d6f 722d 7574 696c  ge_apparmor-util
│ │ │ +000e34c0: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000e34e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000e34f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000e3500: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000e3510: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000e3520: 6432 3633 2220 7461 6269 6e64 6578 3d22 d263" tabindex=" │ │ │ +000e3530: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000e3540: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000e3550: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000e3560: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000e3570: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000e3580: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000e3590: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000e3620: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000e3630: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000e3650: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000e3670: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000e3680: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000e36c0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000e36d0: 6520 696e 7374 616c 6c5f 6170 7061 726d e install_apparm │ │ │ +000e36e0: 6f72 2d75 7469 6c73 0a0a 636c 6173 7320 or-utils..class │ │ │ +000e36f0: 696e 7374 616c 6c5f 6170 7061 726d 6f72 install_apparmor │ │ │ +000e3700: 2d75 7469 6c73 207b 0a20 2070 6163 6b61 -utils {. packa │ │ │ +000e3710: 6765 207b 2027 6170 7061 726d 6f72 2d75 ge { 'apparmor-u │ │ │ +000e3720: 7469 6c73 273a 0a20 2020 2065 6e73 7572 tils':. ensur │ │ │ +000e3730: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000e3740: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +000e3800: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000e3810: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000e3820: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +000e3870: 6573 5d5d 0a6e 616d 6520 3d20 2261 7070  es]].name = "app
│ │ │ +000e3880: 6172 6d6f 722d 7574 696c 7322 0a76 6572  armor-utils".ver
│ │ │ +000e3890: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediati │ │ │ -000e46a0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000e46b0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000e46c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -000e4710: 0a6e 616d 6520 3d20 2261 7070 6172 6d6f  .name = "apparmo
│ │ │ -000e4720: 7222 0a76 6572 7369 6f6e 203d 2022 2a22  r".version = "*"
│ │ │ -000e4730: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -000e47f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000e4800: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000e48d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000e48e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000e4930: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ -000e4940: 7070 6172 6d6f 720a 0a63 6c61 7373 2069  pparmor..class i
│ │ │ -000e4950: 6e73 7461 6c6c 5f61 7070 6172 6d6f 7220  nstall_apparmor 
│ │ │ -000e4960: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ -000e4970: 7070 6172 6d6f 7227 3a0a 2020 2020 656e  pparmor':.    en
│ │ │ -000e4980: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000e4990: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -000e4a50: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000e4a60: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:low
Disrup │ │ │ -000e48b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000e48c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000e4900: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000e4910: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -000e4b00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000e4b10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000e4b60: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000e4ba0: 616d 653a 2045 6e73 7572 6520 6170 7061  ame: Ensure appa
│ │ │ -000e4bb0: 726d 6f72 2069 7320 696e 7374 616c 6c65  rmor is installe
│ │ │ -000e4bc0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000e4bd0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000e4be0: 206e 616d 653a 2061 7070 6172 6d6f 720a   name: apparmor.
│ │ │ -000e4bf0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -000e4c00: 6e74 0a20 2077 6865 6e3a 2061 6e73 6962  nt.  when: ansib
│ │ │ -000e4c10: 6c65 5f76 6972 7475 616c 697a 6174 696f  le_virtualizatio
│ │ │ -000e4c20: 6e5f 7479 7065 206e 6f74 2069 6e20 5b22  n_type not in ["
│ │ │ -000e4c30: 646f 636b 6572 222c 2022 6c78 6322 2c20  docker", "lxc", 
│ │ │ -000e4c40: 226f 7065 6e76 7a22 2c20 2270 6f64 6d61  "openvz", "podma
│ │ │ -000e4c50: 6e22 2c20 2263 6f6e 7461 696e 6572 225d  n", "container"]
│ │ │ -000e4c60: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ -000e4c70: 412d 5354 4947 2d55 4254 552d 3232 2d34  A-STIG-UBTU-22-4
│ │ │ -000e4c80: 3331 3031 300a 2020 2d20 656e 6162 6c65  31010.  - enable
│ │ │ -000e4c90: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000e4ca0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000e4cb0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000e4cc0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000e4cd0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000e4ce0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000e4cf0: 6b61 6765 5f61 7070 6172 6d6f 725f 696e  kage_apparmor_in
│ │ │ -000e4d00: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000e46a0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +000e46b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +000e4730: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +000e47c0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ -000e4af0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000e4b20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000e4b30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000e4b70: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000e4b80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +000e4740: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000e4750: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +000e4790: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000e47a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +000e47e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 456e  - name: En
│ │ │ +000e47f0: 7375 7265 2061 7070 6172 6d6f 7220 6973  sure apparmor is
│ │ │ +000e4800: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +000e4810: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +000e4820: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +000e4830: 6170 7061 726d 6f72 0a20 2020 2073 7461  apparmor.    sta
│ │ │ +000e4840: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +000e4850: 656e 3a20 616e 7369 626c 655f 7669 7274  en: ansible_virt
│ │ │ +000e4860: 7561 6c69 7a61 7469 6f6e 5f74 7970 6520  ualization_type 
│ │ │ +000e4870: 6e6f 7420 696e 205b 2264 6f63 6b65 7222  not in ["docker"
│ │ │ +000e4880: 2c20 226c 7863 222c 2022 6f70 656e 767a  , "lxc", "openvz
│ │ │ +000e4890: 222c 2022 706f 646d 616e 222c 2022 636f  ", "podman", "co
│ │ │ +000e48a0: 6e74 6169 6e65 7222 5d0a 2020 7461 6773  ntainer"].  tags
│ │ │ +000e48b0: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ +000e48c0: 5542 5455 2d32 322d 3433 3130 3130 0a20  UBTU-22-431010. 
│ │ │ +000e48d0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000e48e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000e48f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000e4900: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000e4910: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000e4920: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000e4930: 640a 2020 2d20 7061 636b 6167 655f 6170  d.  - package_ap
│ │ │ +000e4940: 7061 726d 6f72 5f69 6e73 7461 6c6c 6564  parmor_installed
│ │ │ +000e4950: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +000e4a10: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000e4a20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +000e4af0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000e4b00: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +000e4b50: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ +000e4b60: 7070 6172 6d6f 720a 0a63 6c61 7373 2069  pparmor..class i
│ │ │ +000e4b70: 6e73 7461 6c6c 5f61 7070 6172 6d6f 7220  nstall_apparmor 
│ │ │ +000e4b80: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ +000e4b90: 7070 6172 6d6f 7227 3a0a 2020 2020 656e  pparmor':.    en
│ │ │ +000e4ba0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000e4bb0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000e4c70: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000e4c80: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000e4c90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000e4ca0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e4cb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e4cc0: 7365 2220 6964 3d22 6964 3236 3922 3e3c se" id="id269">< │ │ │ +000e4cd0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000e4ce0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000e4cf0: 6170 7061 726d 6f72 220a 7665 7273 696f apparmor".versio │ │ │ +000e4d00: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c n = "*".< │ │ │ 000e4d10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>R │ │ │ -000f0290: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000f02a0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000f02b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000f02c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000f02f0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -000f0300: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -000f0310: 2273 7973 7465 6d64 2d6a 6f75 726e 616c  "systemd-journal
│ │ │ -000f0320: 2d72 656d 6f74 6522 0a76 6572 7369 6f6e  -remote".version
│ │ │ -000f0330: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000f03f0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000f0400: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000f0480: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -000f04c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +000e4ad0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000e4ae0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000e4b20: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000e4b30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -000f0490: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -000f04b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -000f04e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -000f0500: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -000f0530: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000f0540: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ -000f0550: 726e 616c 2d72 656d 6f74 650a 0a63 6c61  rnal-remote..cla
│ │ │ -000f0560: 7373 2069 6e73 7461 6c6c 5f73 7973 7465  ss install_syste
│ │ │ -000f0570: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000f0580: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ -000f0590: 2773 7973 7465 6d64 2d6a 6f75 726e 616c  'systemd-journal
│ │ │ -000f05a0: 2d72 656d 6f74 6527 3a0a 2020 2020 656e  -remote':.    en
│ │ │ -000f05b0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000f05c0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -000f0680: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000f0690: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -000f0730: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f0740: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000f0790: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000f07d0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000f07e0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000f07f0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000f0800: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000f0810: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -000f0820: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000f0830: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000f0840: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000f0850: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000f0860: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000f0870: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000f0880: 7061 636b 6167 655f 7379 7374 656d 642d  package_systemd-
│ │ │ -000f0890: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 5f69  journal-remote_i
│ │ │ -000f08a0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -000f08b0: 3a20 456e 7375 7265 2073 7973 7465 6d64  : Ensure systemd
│ │ │ -000f08c0: 2d6a 6f75 726e 616c 2d72 656d 6f74 6520  -journal-remote 
│ │ │ -000f08d0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000f08e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000f08f0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000f0900: 3a20 7379 7374 656d 642d 6a6f 7572 6e61  : systemd-journa
│ │ │ -000f0910: 6c2d 7265 6d6f 7465 0a20 2020 2073 7461  l-remote.    sta
│ │ │ -000f0920: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -000f0930: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -000f0940: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000f0950: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000f0960: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -000f0970: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000f0980: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000f0990: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000f09a0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000f09b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000f09c0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000f09d0: 6167 655f 7379 7374 656d 642d 6a6f 7572  age_systemd-jour
│ │ │ -000f09e0: 6e61 6c2d 7265 6d6f 7465 5f69 6e73 7461  nal-remote_insta
│ │ │ -000f09f0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
C │ │ │ -000f0720: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000f0750: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000f0760: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000f07a0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000f07b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +000f0340: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000f03e0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +000f03f0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +000f0400: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +000f0410: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +000f0420: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ +000f0430: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000f0440: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000f0450: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000f0460: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +000f0470: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000f0480: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000f0490: 2070 6163 6b61 6765 5f73 7973 7465 6d64   package_systemd
│ │ │ +000f04a0: 2d6a 6f75 726e 616c 2d72 656d 6f74 655f  -journal-remote_
│ │ │ +000f04b0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +000f04c0: 653a 2045 6e73 7572 6520 7379 7374 656d  e: Ensure system
│ │ │ +000f04d0: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000f04e0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000f04f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000f0500: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000f0510: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ +000f0520: 616c 2d72 656d 6f74 650a 2020 2020 7374  al-remote.    st
│ │ │ +000f0530: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +000f0540: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +000f0550: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +000f0560: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +000f0570: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +000f0580: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000f0590: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000f05a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000f05b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000f05c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000f05d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000f05e0: 6b61 6765 5f73 7973 7465 6d64 2d6a 6f75  kage_systemd-jou
│ │ │ +000f05f0: 726e 616c 2d72 656d 6f74 655f 696e 7374  rnal-remote_inst
│ │ │ +000f0600: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediatio │ │ │ +000f06c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000f06d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000f0790: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f07a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +000f0330: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000f0360: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000f0370: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000f03b0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000f03c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +000f0760: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000f0780: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000f07b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000f07d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000f0810: 616c 6c5f 7379 7374 656d 642d 6a6f 7572  all_systemd-jour
│ │ │ +000f0820: 6e61 6c2d 7265 6d6f 7465 0a0a 636c 6173  nal-remote..clas
│ │ │ +000f0830: 7320 696e 7374 616c 6c5f 7379 7374 656d  s install_system
│ │ │ +000f0840: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000f0850: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000f0860: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000f0870: 7265 6d6f 7465 273a 0a20 2020 2065 6e73  remote':.    ens
│ │ │ +000f0880: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +000f0890: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +000f08b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000f0950: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000f0960: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000f0970: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +000f09c0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2273 ages]].name = "s │ │ │ +000f09d0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72 ystemd-journal-r │ │ │ +000f09e0: 656d 6f74 6522 0a76 6572 7369 6f6e 203d emote".version = │ │ │ +000f09f0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".

Remedi │ │ │ -000f1b60: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000f1b70: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000f1b80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000f1bc0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -000f1bd0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -000f1be0: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ -000f1bf0: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ -000f1c00: 6f61 6422 5d0a 3c2f 636f 6465 3e3c 2f70  oad"].

Remediatio │ │ │ -000f1cc0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000f1cd0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000f1d60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000f1d80: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000f1d90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f1da0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000f1db0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000f1dd0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ -000f1e10: 6c65 5f73 7973 7465 6d64 2d6a 6f75 726e  le_systemd-journ
│ │ │ -000f1e20: 616c 2d75 706c 6f61 640a 0a63 6c61 7373  al-upload..class
│ │ │ -000f1e30: 2065 6e61 626c 655f 7379 7374 656d 642d   enable_systemd-
│ │ │ -000f1e40: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 207b  journal-upload {
│ │ │ -000f1e50: 0a20 2073 6572 7669 6365 207b 2773 7973  .  service {'sys
│ │ │ -000f1e60: 7465 6d64 2d6a 6f75 726e 616c 2d75 706c  temd-journal-upl
│ │ │ -000f1e70: 6f61 6427 3a0a 2020 2020 656e 6162 6c65  oad':.    enable
│ │ │ -000f1e80: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ -000f1e90: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ -000f1ea0: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ -000f1eb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000f1f60: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000f1f70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000f2010: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000f20b0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000f20c0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000f20d0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000f20e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000f20f0: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -000f2100: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000f2110: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000f2120: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000f2130: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000f2140: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000f2150: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000f2160: 2073 6572 7669 6365 5f73 7973 7465 6d64   service_systemd
│ │ │ -000f2170: 2d6a 6f75 726e 616c 2d75 706c 6f61 645f  -journal-upload_
│ │ │ -000f2180: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -000f2190: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ -000f21a0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 2053  journal-upload S
│ │ │ -000f21b0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000f21c0: 7365 7276 6963 6520 7379 7374 656d 642d  service systemd-
│ │ │ -000f21d0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 0a20  journal-upload. 
│ │ │ -000f21e0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -000f21f0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -000f2200: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ -000f2210: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000f2220: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000f2230: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ -000f2240: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ -000f2250: 6162 6c65 2073 7973 7465 6d64 2d6a 6f75  able systemd-jou
│ │ │ -000f2260: 726e 616c 2d75 706c 6f61 6420 5365 7276  rnal-upload Serv
│ │ │ -000f2270: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -000f2280: 7669 6365 2073 7973 7465 6d64 2d6a 6f75  vice systemd-jou
│ │ │ -000f2290: 726e 616c 2d75 706c 6f61 640a 2020 2020  rnal-upload.    
│ │ │ -000f22a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000f22b0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -000f22c0: 616d 653a 2073 7973 7465 6d64 2d6a 6f75  ame: systemd-jou
│ │ │ -000f22d0: 726e 616c 2d75 706c 6f61 640a 2020 2020  rnal-upload.    
│ │ │ -000f22e0: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ -000f22f0: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ -000f2300: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ -000f2310: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ -000f2320: 6e3a 0a20 2020 202d 2027 2273 7973 7465  n:.    - '"syste
│ │ │ -000f2330: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000f2340: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000f2350: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000f2360: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000f2370: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000f2380: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000f2390: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000f23a0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000f23b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000f23c0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -000f23d0: 7669 6365 5f73 7973 7465 6d64 2d6a 6f75  vice_systemd-jou
│ │ │ -000f23e0: 726e 616c 2d75 706c 6f61 645f 656e 6162  rnal-upload_enab
│ │ │ -000f23f0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -000f2400: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -000f2410: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ -000f2420: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -000f2430: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -000f2440: 7327 0a20 202d 2028 2061 6e73 6962 6c65  s'.  - ( ansible
│ │ │ -000f2450: 5f76 6972 7475 616c 697a 6174 696f 6e5f  _virtualization_
│ │ │ -000f2460: 7479 7065 206e 6f74 2069 6e20 5b22 646f  type not in ["do
│ │ │ -000f2470: 636b 6572 222c 2022 6c78 6322 2c20 226f  cker", "lxc", "o
│ │ │ -000f2480: 7065 6e76 7a22 2c20 2270 6f64 6d61 6e22  penvz", "podman"
│ │ │ -000f2490: 2c20 2263 6f6e 7461 696e 6572 225d 0a20  , "container"]. 
│ │ │ -000f24a0: 2020 2061 6e64 2022 7379 7374 656d 642d     and "systemd-
│ │ │ -000f24b0: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 2220  journal-remote" 
│ │ │ -000f24c0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000f24d0: 2e70 6163 6b61 6765 7320 290a 3c2f 636f  .packages ).
│ │ │ -000f2000: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000f2030: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000f2040: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000f2080: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000f2090: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +000f1c20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000f1c40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000f1c70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000f1c00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000f1c10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000f1c30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000f1c50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000f1c60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000f1cb0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000f1cc0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000f1cd0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000f1ce0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000f1cf0: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +000f1d00: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000f1d10: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000f1d20: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000f1d30: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000f1d40: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000f1d50: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +000f1d60: 6963 655f 7379 7374 656d 642d 6a6f 7572 ice_systemd-jour │ │ │ +000f1d70: 6e61 6c2d 7570 6c6f 6164 5f65 6e61 626c nal-upload_enabl │ │ │ +000f1d80: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ +000f1d90: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e le systemd-journ │ │ │ +000f1da0: 616c 2d75 706c 6f61 6420 5365 7276 6963 al-upload Servic │ │ │ +000f1db0: 6520 2d20 456e 6162 6c65 2073 6572 7669 e - Enable servi │ │ │ +000f1dc0: 6365 2073 7973 7465 6d64 2d6a 6f75 726e ce systemd-journ │ │ │ +000f1dd0: 616c 2d75 706c 6f61 640a 2020 626c 6f63 al-upload. bloc │ │ │ +000f1de0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761 k:.. - name: Ga │ │ │ +000f1df0: 7468 6572 2074 6865 2070 6163 6b61 6765 ther the package │ │ │ +000f1e00: 2066 6163 7473 0a20 2020 2061 6e73 6962 facts. ansib │ │ │ +000f1e10: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +000f1e20: 6765 5f66 6163 7473 3a0a 2020 2020 2020 ge_facts:. │ │ │ +000f1e30: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20 manager: auto.. │ │ │ +000f1e40: 202d 206e 616d 653a 2045 6e61 626c 6520 - name: Enable │ │ │ +000f1e50: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000f1e60: 7570 6c6f 6164 2053 6572 7669 6365 202d upload Service - │ │ │ +000f1e70: 2045 6e61 626c 6520 5365 7276 6963 6520 Enable Service │ │ │ +000f1e80: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000f1e90: 7570 6c6f 6164 0a20 2020 2061 6e73 6962 upload. ansib │ │ │ +000f1ea0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ +000f1eb0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ +000f1ec0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000f1ed0: 7570 6c6f 6164 0a20 2020 2020 2065 6e61 upload. ena │ │ │ +000f1ee0: 626c 6564 3a20 7472 7565 0a20 2020 2020 bled: true. │ │ │ +000f1ef0: 2073 7461 7465 3a20 7374 6172 7465 640a state: started. │ │ │ +000f1f00: 2020 2020 2020 6d61 736b 6564 3a20 6661 masked: fa │ │ │ +000f1f10: 6c73 650a 2020 2020 7768 656e 3a0a 2020 lse. when:. │ │ │ +000f1f20: 2020 2d20 2722 7379 7374 656d 642d 6a6f - '"systemd-jo │ │ │ +000f1f30: 7572 6e61 6c2d 7265 6d6f 7465 2220 696e urnal-remote" in │ │ │ +000f1f40: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +000f1f50: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ +000f1f60: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +000f1f70: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +000f1f80: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +000f1f90: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +000f1fa0: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +000f1fb0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +000f1fc0: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +000f1fd0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000f1fe0: 7570 6c6f 6164 5f65 6e61 626c 6564 0a20 upload_enabled. │ │ │ +000f1ff0: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ +000f2000: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ +000f2010: 0a20 202d 2027 226c 696e 7578 2d62 6173 . - '"linux-bas │ │ │ +000f2020: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +000f2030: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +000f2040: 2d20 2820 616e 7369 626c 655f 7669 7274 - ( ansible_virt │ │ │ +000f2050: 7561 6c69 7a61 7469 6f6e 5f74 7970 6520 ualization_type │ │ │ +000f2060: 6e6f 7420 696e 205b 2264 6f63 6b65 7222 not in ["docker" │ │ │ +000f2070: 2c20 226c 7863 222c 2022 6f70 656e 767a , "lxc", "openvz │ │ │ +000f2080: 222c 2022 706f 646d 616e 222c 2022 636f ", "podman", "co │ │ │ +000f2090: 6e74 6169 6e65 7222 5d0a 2020 2020 616e ntainer"]. an │ │ │ +000f20a0: 6420 2273 7973 7465 6d64 2d6a 6f75 726e d "systemd-journ │ │ │ +000f20b0: 616c 2d72 656d 6f74 6522 2069 6e20 616e al-remote" in an │ │ │ +000f20c0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +000f20d0: 6167 6573 2029 0a3c 2f63 6f64 653e 3c2f ages ).

Remediati │ │ │ +000f2190: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +000f21a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000f2220: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000f2230: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000f2250: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000f2260: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000f2280: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000f22a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000f22d0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +000f22e0: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ +000f22f0: 6e61 6c2d 7570 6c6f 6164 0a0a 636c 6173  nal-upload..clas
│ │ │ +000f2300: 7320 656e 6162 6c65 5f73 7973 7465 6d64  s enable_systemd
│ │ │ +000f2310: 2d6a 6f75 726e 616c 2d75 706c 6f61 6420  -journal-upload 
│ │ │ +000f2320: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ +000f2330: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000f2340: 6c6f 6164 273a 0a20 2020 2065 6e61 626c  load':.    enabl
│ │ │ +000f2350: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +000f2360: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000f2370: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +000f2380: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000f2430: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000f2440: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000f2450: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +000f24a0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +000f24b0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +000f24c0: 205b 2273 7973 7465 6d64 2d6a 6f75 726e   ["systemd-journ
│ │ │ +000f24d0: 616c 2d75 706c 6f61 6422 5d0a 3c2f 636f  al-upload"].
< │ │ │ 000f24f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000f2500: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000f2510: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000f2520: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000f2530: 6432 3932 2220 7461 6269 6e64 6578 3d22 d292" tabindex=" │ │ │ 000f2540: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -62262,154 +62262,154 @@ │ │ │ 000f3350: 7365 2220 6461 7461 2d74 6172 6765 743d se" data-target= │ │ │ 000f3360: 2223 6964 3239 3422 2074 6162 696e 6465 "#id294" tabinde │ │ │ 000f3370: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 000f3380: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 000f3390: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 000f33a0: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 000f33b0: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -000f33c0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000f33d0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000f33e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000f33f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000f3420: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -000f3430: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -000f3440: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -000f3450: 5b22 7379 7374 656d 642d 6a6f 7572 6e61  ["systemd-journa
│ │ │ -000f3460: 6c64 225d 0a3c 2f63 6f64 653e 3c2f 7072  ld"].
Remediation │ │ │ -000f3520: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000f3530: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000f35c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000f35e0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000f3600: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000f3630: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000f3640: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000f3650: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ -000f3670: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ -000f3680: 6c64 0a0a 636c 6173 7320 656e 6162 6c65  ld..class enable
│ │ │ -000f3690: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ -000f36a0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -000f36b0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ -000f36c0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -000f36d0: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -000f36e0: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -000f36f0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -000f3710: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000f3720: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000f3730: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000f3740: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000f3750: 6432 3936 2220 7461 6269 6e64 6578 3d22 d296" tabindex=" │ │ │ -000f3760: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000f3770: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000f3780: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000f3790: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000f37a0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -000f37b0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -000f37c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000f37d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000f3850: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000f3880: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000f38a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000f38b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000f38d0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000f38f0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000f3900: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -000f3910: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -000f3920: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000f3930: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -000f3940: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -000f3950: 3830 302d 3533 2d53 432d 3234 0a20 202d  800-53-SC-24.  -
│ │ │ -000f3960: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000f3970: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000f3980: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000f3990: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000f39a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000f39b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000f39c0: 2020 2d20 7365 7276 6963 655f 7379 7374    - service_syst
│ │ │ -000f39d0: 656d 642d 6a6f 7572 6e61 6c64 5f65 6e61  emd-journald_ena
│ │ │ -000f39e0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -000f39f0: 6162 6c65 2073 7973 7465 6d64 2d6a 6f75  able systemd-jou
│ │ │ -000f3a00: 726e 616c 6420 5365 7276 6963 6520 2d20  rnald Service - 
│ │ │ -000f3a10: 456e 6162 6c65 2073 6572 7669 6365 2073  Enable service s
│ │ │ -000f3a20: 7973 7465 6d64 2d6a 6f75 726e 616c 640a  ystemd-journald.
│ │ │ -000f3a30: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -000f3a40: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000f3a50: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -000f3a60: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000f3a70: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -000f3a80: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -000f3a90: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ -000f3aa0: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ -000f3ab0: 7572 6e61 6c64 2053 6572 7669 6365 202d  urnald Service -
│ │ │ -000f3ac0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -000f3ad0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ -000f3ae0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -000f3af0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -000f3b00: 2020 2020 6e61 6d65 3a20 7379 7374 656d      name: system
│ │ │ -000f3b10: 642d 6a6f 7572 6e61 6c64 0a20 2020 2020  d-journald.     
│ │ │ -000f3b20: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ -000f3b30: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ -000f3b40: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ -000f3b50: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ -000f3b60: 3a0a 2020 2020 2d20 2722 7379 7374 656d  :.    - '"system
│ │ │ -000f3b70: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ -000f3b80: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000f3b90: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -000f3ba0: 3030 2d35 332d 5343 2d32 340a 2020 2d20  00-53-SC-24.  - 
│ │ │ -000f3bb0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000f3bc0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000f3bd0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000f3be0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000f3bf0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000f3c00: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000f3c10: 202d 2073 6572 7669 6365 5f73 7973 7465   - service_syste
│ │ │ -000f3c20: 6d64 2d6a 6f75 726e 616c 645f 656e 6162  md-journald_enab
│ │ │ -000f3c30: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -000f3c40: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -000f3c50: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -000f3c60: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -000f3c70: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +000f33c0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +000f33d0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +000f3470: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000f3510: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +000f3520: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +000f3530: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +000f3540: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +000f3550: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +000f3560: 5354 2d38 3030 2d35 332d 5343 2d32 340a  ST-800-53-SC-24.
│ │ │ +000f3570: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000f3580: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000f3590: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000f35a0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000f35b0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000f35c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000f35d0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +000f35e0: 7973 7465 6d64 2d6a 6f75 726e 616c 645f  ystemd-journald_
│ │ │ +000f35f0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +000f3600: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ +000f3610: 6a6f 7572 6e61 6c64 2053 6572 7669 6365  journald Service
│ │ │ +000f3620: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ +000f3630: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ +000f3640: 6c64 0a20 2062 6c6f 636b 3a0a 0a20 202d  ld.  block:..  -
│ │ │ +000f3650: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000f3660: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000f3670: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +000f3680: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ +000f3690: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ +000f36a0: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ +000f36b0: 3a20 456e 6162 6c65 2073 7973 7465 6d64  : Enable systemd
│ │ │ +000f36c0: 2d6a 6f75 726e 616c 6420 5365 7276 6963  -journald Servic
│ │ │ +000f36d0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +000f36e0: 6365 2073 7973 7465 6d64 2d6a 6f75 726e  ce systemd-journ
│ │ │ +000f36f0: 616c 640a 2020 2020 616e 7369 626c 652e  ald.    ansible.
│ │ │ +000f3700: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +000f3710: 0a20 2020 2020 206e 616d 653a 2073 7973  .      name: sys
│ │ │ +000f3720: 7465 6d64 2d6a 6f75 726e 616c 640a 2020  temd-journald.  
│ │ │ +000f3730: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ +000f3740: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +000f3750: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ +000f3760: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ +000f3770: 6865 6e3a 0a20 2020 202d 2027 2273 7973  hen:.    - '"sys
│ │ │ +000f3780: 7465 6d64 2220 696e 2061 6e73 6962 6c65  temd" in ansible
│ │ │ +000f3790: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000f37a0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000f37b0: 542d 3830 302d 3533 2d53 432d 3234 0a20  T-800-53-SC-24. 
│ │ │ +000f37c0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000f37d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000f37e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000f37f0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000f3800: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000f3810: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000f3820: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +000f3830: 7374 656d 642d 6a6f 7572 6e61 6c64 5f65  stemd-journald_e
│ │ │ +000f3840: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ +000f3850: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +000f3860: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +000f3870: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +000f3880: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +000f3890: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +000f38a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +000f3950: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000f3960: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +000f3460: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000f3490: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000f34a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000f34e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000f34f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +000f3a30: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000f3a40: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000f3a90: 696e 636c 7564 6520 656e 6162 6c65 5f73  include enable_s
│ │ │ +000f3aa0: 7973 7465 6d64 2d6a 6f75 726e 616c 640a  ystemd-journald.
│ │ │ +000f3ab0: 0a63 6c61 7373 2065 6e61 626c 655f 7379  .class enable_sy
│ │ │ +000f3ac0: 7374 656d 642d 6a6f 7572 6e61 6c64 207b  stemd-journald {
│ │ │ +000f3ad0: 0a20 2073 6572 7669 6365 207b 2773 7973  .  service {'sys
│ │ │ +000f3ae0: 7465 6d64 2d6a 6f75 726e 616c 6427 3a0a  temd-journald':.
│ │ │ +000f3af0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +000f3b00: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ +000f3b10: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ +000f3b20: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +000f3b30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000f3be0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +000f3bf0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +000f3c00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +000f3c40: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +000f3c50: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +000f3c60: 656e 6162 6c65 6420 3d20 5b22 7379 7374  enabled = ["syst
│ │ │ +000f3c70: 656d 642d 6a6f 7572 6e61 6c64 225d 0a3c  emd-journald"].<
│ │ │  000f3c80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -00107f20: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00107f30: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00108000: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disru │ │ │ +000f3a10: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000f3a20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000f3a60: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000f3a70: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00107fc0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00107fe0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00108030: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00108040: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00108070: 6f76 655f 6970 7461 626c 6573 2d70 6572  ove_iptables-per
│ │ │ -00108080: 7369 7374 656e 740a 0a63 6c61 7373 2072  sistent..class r
│ │ │ -00108090: 656d 6f76 655f 6970 7461 626c 6573 2d70  emove_iptables-p
│ │ │ -001080a0: 6572 7369 7374 656e 7420 7b0a 2020 7061  ersistent {.  pa
│ │ │ -001080b0: 636b 6167 6520 7b20 2769 7074 6162 6c65  ckage { 'iptable
│ │ │ -001080c0: 732d 7065 7273 6973 7465 6e74 273a 0a20  s-persistent':. 
│ │ │ -001080d0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001080e0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -001080f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001081a0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -001081b0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001081c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00108290: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001082a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001082f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00108300: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00108310: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00108320: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00108330: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00108340: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00108350: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00108360: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00108370: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00108380: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00108390: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -001083a0: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ -001083b0: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ -001083c0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -001083d0: 2027 5265 6d6f 7665 2069 7074 6162 6c65   'Remove iptable
│ │ │ -001083e0: 732d 7065 7273 6973 7465 6e74 2050 6163  s-persistent Pac
│ │ │ -001083f0: 6b61 6765 3a20 456e 7375 7265 2069 7074  kage: Ensure ipt
│ │ │ -00108400: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -00108410: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00108420: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00108430: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00108440: 3a20 6970 7461 626c 6573 2d70 6572 7369  : iptables-persi
│ │ │ -00108450: 7374 656e 740a 2020 2020 7374 6174 653a  stent.    state:
│ │ │ -00108460: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -00108470: 2722 7566 7722 2069 6e20 616e 7369 626c  '"ufw" in ansibl
│ │ │ -00108480: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00108490: 270a 2020 7461 6773 3a0a 2020 2d20 6469  '.  tags:.  - di
│ │ │ -001084a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -001084b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -001084c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -001084d0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -001084e0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -001084f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00108500: 2d20 7061 636b 6167 655f 6970 7461 626c  - package_iptabl
│ │ │ -00108510: 6573 2d70 6572 7369 7374 656e 745f 7265  es-persistent_re
│ │ │ -00108520: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


< │ │ │ +00107ff0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00108000: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -00108270: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00108280: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001082c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001082d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00107fc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00107fe0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00108010: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00108030: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00108060: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00108070: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00108080: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00108090: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +001080a0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +001080b0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +001080c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +001080d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +001080e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +001080f0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00108100: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00108110: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00108120: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ +00108130: 7465 6e74 5f72 656d 6f76 6564 0a0a 2d20  tent_removed..- 
│ │ │ +00108140: 6e61 6d65 3a20 2752 656d 6f76 6520 6970  name: 'Remove ip
│ │ │ +00108150: 7461 626c 6573 2d70 6572 7369 7374 656e  tables-persisten
│ │ │ +00108160: 7420 5061 636b 6167 653a 2045 6e73 7572  t Package: Ensur
│ │ │ +00108170: 6520 6970 7461 626c 6573 2d70 6572 7369  e iptables-persi
│ │ │ +00108180: 7374 656e 7420 6973 2072 656d 6f76 6564  stent is removed
│ │ │ +00108190: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +001081a0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +001081b0: 206e 616d 653a 2069 7074 6162 6c65 732d   name: iptables-
│ │ │ +001081c0: 7065 7273 6973 7465 6e74 0a20 2020 2073  persistent.    s
│ │ │ +001081d0: 7461 7465 3a20 6162 7365 6e74 0a20 2077  tate: absent.  w
│ │ │ +001081e0: 6865 6e3a 2027 2275 6677 2220 696e 2061  hen: '"ufw" in a
│ │ │ +001081f0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00108200: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00108210: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00108220: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00108230: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00108240: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00108250: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00108260: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00108270: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ +00108280: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ +00108290: 6e74 5f72 656d 6f76 6564 0a3c 2f63 6f64  nt_removed.
Remed │ │ │ +00108350: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00108360: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00108410: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00108430: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00108460: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +001083f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00108400: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00108420: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00108440: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00108450: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00108490: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +001084a0: 6465 2072 656d 6f76 655f 6970 7461 626c de remove_iptabl │ │ │ +001084b0: 6573 2d70 6572 7369 7374 656e 740a 0a63 es-persistent..c │ │ │ +001084c0: 6c61 7373 2072 656d 6f76 655f 6970 7461 lass remove_ipta │ │ │ +001084d0: 626c 6573 2d70 6572 7369 7374 656e 7420 bles-persistent │ │ │ +001084e0: 7b0a 2020 7061 636b 6167 6520 7b20 2769 {. package { 'i │ │ │ +001084f0: 7074 6162 6c65 732d 7065 7273 6973 7465 ptables-persiste │ │ │ +00108500: 6e74 273a 0a20 2020 2065 6e73 7572 6520 nt':. ensure │ │ │ +00108510: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +00108520: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediati │ │ │ -00158bb0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00158bc0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00158bd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -00158c20: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -00158c30: 6162 6c65 6420 3d20 5b22 6e66 7461 626c  abled = ["nftabl
│ │ │ -00158c40: 6573 225d 0a3c 2f63 6f64 653e 3c2f 7072  es"].
Remediation │ │ │ -00158d00: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00158d10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00158da0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00158dc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00158de0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00158e10: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00158e20: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00158e30: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ -00158e50: 655f 6e66 7461 626c 6573 0a0a 636c 6173  e_nftables..clas
│ │ │ -00158e60: 7320 656e 6162 6c65 5f6e 6674 6162 6c65  s enable_nftable
│ │ │ -00158e70: 7320 7b0a 2020 7365 7276 6963 6520 7b27  s {.  service {'
│ │ │ -00158e80: 6e66 7461 626c 6573 273a 0a20 2020 2065  nftables':.    e
│ │ │ -00158e90: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ -00158ea0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00158eb0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ -00158ec0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00158f80: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00158f90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00159020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00159040: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00159060: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00159090: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001590a0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -001590b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -001590d0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -001590e0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -001590f0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00159100: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00159110: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00159120: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00159130: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00159140: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00159150: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00159160: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00159170: 640a 2020 2d20 7365 7276 6963 655f 6e66  d.  - service_nf
│ │ │ -00159180: 7461 626c 6573 5f65 6e61 626c 6564 0a0a  tables_enabled..
│ │ │ -00159190: 2d20 6e61 6d65 3a20 5665 7269 6679 206e  - name: Verify n
│ │ │ -001591a0: 6674 6162 6c65 7320 5365 7276 6963 6520  ftables Service 
│ │ │ -001591b0: 6973 2045 6e61 626c 6564 202d 2045 6e61  is Enabled - Ena
│ │ │ -001591c0: 626c 6520 7365 7276 6963 6520 6e66 7461  ble service nfta
│ │ │ -001591d0: 626c 6573 0a20 2062 6c6f 636b 3a0a 0a20  bles.  block:.. 
│ │ │ -001591e0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -001591f0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00159200: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -00159210: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -00159220: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -00159230: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -00159240: 6d65 3a20 5665 7269 6679 206e 6674 6162  me: Verify nftab
│ │ │ -00159250: 6c65 7320 5365 7276 6963 6520 6973 2045  les Service is E
│ │ │ -00159260: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ -00159270: 5365 7276 6963 6520 6e66 7461 626c 6573  Service nftables
│ │ │ -00159280: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00159290: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -001592a0: 2020 2020 6e61 6d65 3a20 6e66 7461 626c      name: nftabl
│ │ │ -001592b0: 6573 0a20 2020 2020 2065 6e61 626c 6564  es.      enabled
│ │ │ -001592c0: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -001592d0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -001592e0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -001592f0: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -00159300: 2722 6e66 7461 626c 6573 2220 696e 2061  '"nftables" in a
│ │ │ -00159310: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00159320: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00159330: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00159340: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00159350: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00159360: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00159370: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00159380: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00159390: 640a 2020 2d20 7365 7276 6963 655f 6e66  d.  - service_nf
│ │ │ -001593a0: 7461 626c 6573 5f65 6e61 626c 6564 0a20  tables_enabled. 
│ │ │ -001593b0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -001593c0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -001593d0: 2028 2022 6e66 7461 626c 6573 2220 696e   ( "nftables" in
│ │ │ -001593e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -001593f0: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ -00159400: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00159410: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00159420: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +00158bb0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +00158bc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00158c40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00158c50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00158c60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00158ca0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00158cb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00158cd0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00158cf0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00158d00: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00158d10: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00158d20: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00158d30: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00158d40: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +00158d50: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00158d60: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00158d70: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00158d80: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00158d90: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00158da0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00158db0: 5f6e 6674 6162 6c65 735f 656e 6162 6c65  _nftables_enable
│ │ │ +00158dc0: 640a 0a2d 206e 616d 653a 2056 6572 6966  d..- name: Verif
│ │ │ +00158dd0: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ +00158de0: 6365 2069 7320 456e 6162 6c65 6420 2d20  ce is Enabled - 
│ │ │ +00158df0: 456e 6162 6c65 2073 6572 7669 6365 206e  Enable service n
│ │ │ +00158e00: 6674 6162 6c65 730a 2020 626c 6f63 6b3a  ftables.  block:
│ │ │ +00158e10: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +00158e20: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00158e30: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +00158e40: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00158e50: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +00158e60: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +00158e70: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ +00158e80: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ +00158e90: 7320 456e 6162 6c65 6420 2d20 456e 6162  s Enabled - Enab
│ │ │ +00158ea0: 6c65 2053 6572 7669 6365 206e 6674 6162  le Service nftab
│ │ │ +00158eb0: 6c65 730a 2020 2020 616e 7369 626c 652e  les.    ansible.
│ │ │ +00158ec0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00158ed0: 0a20 2020 2020 206e 616d 653a 206e 6674  .      name: nft
│ │ │ +00158ee0: 6162 6c65 730a 2020 2020 2020 656e 6162  ables.      enab
│ │ │ +00158ef0: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +00158f00: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +00158f10: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +00158f20: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +00158f30: 202d 2027 226e 6674 6162 6c65 7322 2069   - '"nftables" i
│ │ │ +00158f40: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00158f50: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00158f60: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +00158f70: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00158f80: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00158f90: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00158fa0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00158fb0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00158fc0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00158fd0: 5f6e 6674 6162 6c65 735f 656e 6162 6c65  _nftables_enable
│ │ │ +00158fe0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00158ff0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00159000: 656e 3a20 2820 226e 6674 6162 6c65 7322  en: ( "nftables"
│ │ │ +00159010: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00159020: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ +00159030: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00159040: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00159050: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
< │ │ │ +00159070: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00159080: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00159090: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +001590a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +001590b0: 6434 3038 2220 7461 6269 6e64 6578 3d22 d408" tabindex=" │ │ │ +001590c0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +001590d0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +001590e0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +001590f0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00159100: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00159110: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00159120: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +001591b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +001591c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +001591e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00159200: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00159210: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00159250: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00159260: 6520 656e 6162 6c65 5f6e 6674 6162 6c65 e enable_nftable │ │ │ +00159270: 730a 0a63 6c61 7373 2065 6e61 626c 655f s..class enable_ │ │ │ +00159280: 6e66 7461 626c 6573 207b 0a20 2073 6572 nftables {. ser │ │ │ +00159290: 7669 6365 207b 276e 6674 6162 6c65 7327 vice {'nftables' │ │ │ +001592a0: 3a0a 2020 2020 656e 6162 6c65 203d 2667 :. enable =&g │ │ │ +001592b0: 743b 2074 7275 652c 0a20 2020 2065 6e73 t; true,. ens │ │ │ +001592c0: 7572 6520 3d26 6774 3b20 2772 756e 6e69 ure => 'runni │ │ │ +001592d0: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ng',. }.}.
Remed │ │ │ +00159390: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +001593a0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +001593b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +00159400: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00159410: 5d0a 656e 6162 6c65 6420 3d20 5b22 6e66  ].enabled = ["nf
│ │ │ +00159420: 7461 626c 6573 225d 0a3c 2f63 6f64 653e  tables"].
│ │ │  00159430: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediati │ │ │ -0015a1d0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0015a1e0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0015a1f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0015a240: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0015a250: 736b 6564 203d 205b 226e 6674 6162 6c65  sked = ["nftable
│ │ │ -0015a260: 7322 5d0a 3c2f 636f 6465 3e3c 2f70 7265  s"].
Remediation │ │ │ -0015a320: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ -0015a330: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0015a3b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0015a3c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0015a3d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ -0015a400: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ -0015a410: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -0015a420: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ -0015a430: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ -0015a470: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -0015a480: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -0015a490: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -0015a4a0: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -0015a4b0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -0015a4c0: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -0015a4d0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -0015a4e0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -0015a4f0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -0015a500: 202d 206e 616d 653a 206e 6674 6162 6c65 - name: nftable │ │ │ -0015a510: 732e 7365 7276 6963 650a 2020 2020 2020 s.service. │ │ │ -0015a520: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -0015a530: 0a20 2020 2020 2020 206d 6173 6b3a 2074 . mask: t │ │ │ -0015a540: 7275 650a 2020 2020 2020 2d20 6e61 6d65 rue. - name │ │ │ -0015a550: 3a20 6e66 7461 626c 6573 2e73 6f63 6b65 : nftables.socke │ │ │ -0015a560: 740a 2020 2020 2020 2020 656e 6162 6c65 t. enable │ │ │ -0015a570: 643a 2066 616c 7365 0a20 2020 2020 2020 d: false. │ │ │ -0015a580: 206d 6173 6b3a 2074 7275 650a 3c2f 636f mask: true.

< │ │ │ -0015a5a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0015a5b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0015a5c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0015a5d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0015a5e0: 6434 3134 2220 7461 6269 6e64 6578 3d22 d414" tabindex=" │ │ │ -0015a5f0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0015a600: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0015a610: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0015a620: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0015a630: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0015a640: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0015a650: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0015a6e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0015a6f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0015a710: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0015a730: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0015a740: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0015a780: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0015a790: 6520 6469 7361 626c 655f 6e66 7461 626c e disable_nftabl │ │ │ -0015a7a0: 6573 0a0a 636c 6173 7320 6469 7361 626c es..class disabl │ │ │ -0015a7b0: 655f 6e66 7461 626c 6573 207b 0a20 2073 e_nftables {. s │ │ │ -0015a7c0: 6572 7669 6365 207b 276e 6674 6162 6c65 ervice {'nftable │ │ │ -0015a7d0: 7327 3a0a 2020 2020 656e 6162 6c65 203d s':. enable = │ │ │ -0015a7e0: 2667 743b 2066 616c 7365 2c0a 2020 2020 > false,. │ │ │ -0015a7f0: 656e 7375 7265 203d 2667 743b 2027 7374 ensure => 'st │ │ │ -0015a800: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f opped',. }.}.
Re │ │ │ -0015a8c0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0015a8d0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0015a970: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0015a980: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0015a9d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0015aa10: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0015aa20: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0015aa30: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0015aa40: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0015aa50: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ -0015aa60: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ -0015aa70: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ -0015aa80: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0015aa90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0015aaa0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0015aab0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0015aac0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0015aad0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0015aae0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0015aaf0: 6e66 7461 626c 6573 5f64 6973 6162 6c65  nftables_disable
│ │ │ -0015ab00: 640a 0a2d 206e 616d 653a 2056 6572 6966  d..- name: Verif
│ │ │ -0015ab10: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ -0015ab20: 6365 2069 7320 4469 7361 626c 6564 202d  ce is Disabled -
│ │ │ -0015ab30: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ -0015ab40: 206e 6674 6162 6c65 730a 2020 626c 6f63   nftables.  bloc
│ │ │ -0015ab50: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 5665  k:..  - name: Ve
│ │ │ -0015ab60: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ -0015ab70: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ -0015ab80: 6420 2d20 436f 6c6c 6563 7420 7379 7374  d - Collect syst
│ │ │ -0015ab90: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -0015aba0: 7365 6e74 2069 6e0a 2020 2020 2020 7468  sent in.      th
│ │ │ -0015abb0: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -0015abc0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -0015abd0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -0015abe0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -0015abf0: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -0015ac00: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -0015ac10: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -0015ac20: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -0015ac30: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -0015ac40: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -0015ac50: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0015ac60: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0015ac70: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0015ac80: 202d 206e 616d 653a 2056 6572 6966 7920   - name: Verify 
│ │ │ -0015ac90: 6e66 7461 626c 6573 2053 6572 7669 6365  nftables Service
│ │ │ -0015aca0: 2069 7320 4469 7361 626c 6564 202d 2045   is Disabled - E
│ │ │ -0015acb0: 6e73 7572 6520 6e66 7461 626c 6573 2e73  nsure nftables.s
│ │ │ -0015acc0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -0015acd0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0015ace0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0015acf0: 2020 2020 6e61 6d65 3a20 6e66 7461 626c      name: nftabl
│ │ │ -0015ad00: 6573 2e73 6572 7669 6365 0a20 2020 2020  es.service.     
│ │ │ -0015ad10: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0015ad20: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0015ad30: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -0015ad40: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0015ad50: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0015ad60: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0015ad70: 2073 6561 7263 6828 226e 6674 6162 6c65   search("nftable
│ │ │ -0015ad80: 732e 7365 7276 6963 6522 2c20 6d75 6c74  s.service", mult
│ │ │ -0015ad90: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -0015ada0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -0015adb0: 6574 2045 7869 7374 7320 2d20 6e66 7461  et Exists - nfta
│ │ │ -0015adc0: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ -0015add0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0015ade0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0015adf0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0015ae00: 6669 6c65 7320 6e66 7461 626c 6573 2e73  files nftables.s
│ │ │ -0015ae10: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -0015ae20: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -0015ae30: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -0015ae40: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -0015ae50: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -0015ae60: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0015ae70: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -0015ae80: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -0015ae90: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -0015aea0: 616d 653a 2056 6572 6966 7920 6e66 7461  ame: Verify nfta
│ │ │ -0015aeb0: 626c 6573 2053 6572 7669 6365 2069 7320  bles Service is 
│ │ │ -0015aec0: 4469 7361 626c 6564 202d 2044 6973 6162  Disabled - Disab
│ │ │ -0015aed0: 6c65 2053 6f63 6b65 7420 6e66 7461 626c  le Socket nftabl
│ │ │ -0015aee0: 6573 0a20 2020 2061 6e73 6962 6c65 2e62  es.    ansible.b
│ │ │ -0015aef0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0015af00: 2020 2020 2020 6e61 6d65 3a20 6e66 7461        name: nfta
│ │ │ -0015af10: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ -0015af20: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0015af30: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -0015af40: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ -0015af50: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0015af60: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -0015af70: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0015af80: 6573 2069 7320 7365 6172 6368 2822 6e66  es is search("nf
│ │ │ -0015af90: 7461 626c 6573 2e73 6f63 6b65 7422 2c20  tables.socket", 
│ │ │ -0015afa0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -0015afb0: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -0015afc0: 4453 5376 342d 312e 320a 2020 2d20 5043  DSSv4-1.2.  - PC
│ │ │ -0015afd0: 492d 4453 5376 342d 312e 322e 310a 2020  I-DSSv4-1.2.1.  
│ │ │ -0015afe0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0015aff0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0015b000: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0015b010: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0015b020: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0015b030: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0015b040: 640a 2020 2d20 7365 7276 6963 655f 6e66  d.  - service_nf
│ │ │ -0015b050: 7461 626c 6573 5f64 6973 6162 6c65 640a  tables_disabled.
│ │ │ -0015b060: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -0015b070: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ -0015b080: 3a20 2820 226e 6674 6162 6c65 7322 2069  : ( "nftables" i
│ │ │ -0015b090: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0015b0a0: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ -0015b0b0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0015b0c0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0015b0d0: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
│ │ │ +0015a260: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0015a2f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0015a300: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -0015a960: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0015a990: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0015a9a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0015a9e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0015a9f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +0015a270: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0015a280: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0015a2c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0015a2d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +0015a320: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0015a330: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0015a340: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0015a350: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0015a360: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +0015a370: 2d31 2e32 0a20 202d 2050 4349 2d44 5353  -1.2.  - PCI-DSS
│ │ │ +0015a380: 7634 2d31 2e32 2e31 0a20 202d 2064 6973  v4-1.2.1.  - dis
│ │ │ +0015a390: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0015a3a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0015a3b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0015a3c0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0015a3d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0015a3e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0015a3f0: 2073 6572 7669 6365 5f6e 6674 6162 6c65   service_nftable
│ │ │ +0015a400: 735f 6469 7361 626c 6564 0a0a 2d20 6e61  s_disabled..- na
│ │ │ +0015a410: 6d65 3a20 5665 7269 6679 206e 6674 6162  me: Verify nftab
│ │ │ +0015a420: 6c65 7320 5365 7276 6963 6520 6973 2044  les Service is D
│ │ │ +0015a430: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ +0015a440: 6520 7365 7276 6963 6520 6e66 7461 626c  e service nftabl
│ │ │ +0015a450: 6573 0a20 2062 6c6f 636b 3a0a 0a20 202d  es.  block:..  -
│ │ │ +0015a460: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ +0015a470: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ +0015a480: 7320 4469 7361 626c 6564 202d 2043 6f6c  s Disabled - Col
│ │ │ +0015a490: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +0015a4a0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +0015a4b0: 0a20 2020 2020 2074 6865 2053 7973 7465  .      the Syste
│ │ │ +0015a4c0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +0015a4d0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0015a4e0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0015a4f0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +0015a500: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +0015a510: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +0015a520: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0015a530: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0015a540: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0015a550: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0015a560: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0015a570: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0015a580: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0015a590: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ +0015a5a0: 7320 5365 7276 6963 6520 6973 2044 6973  s Service is Dis
│ │ │ +0015a5b0: 6162 6c65 6420 2d20 456e 7375 7265 206e  abled - Ensure n
│ │ │ +0015a5c0: 6674 6162 6c65 732e 7365 7276 6963 6520  ftables.service 
│ │ │ +0015a5d0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +0015a5e0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0015a5f0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0015a600: 653a 206e 6674 6162 6c65 732e 7365 7276  e: nftables.serv
│ │ │ +0015a610: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +0015a620: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +0015a630: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0015a640: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0015a650: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +0015a660: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +0015a670: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +0015a680: 2822 6e66 7461 626c 6573 2e73 6572 7669  ("nftables.servi
│ │ │ +0015a690: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +0015a6a0: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +0015a6b0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +0015a6c0: 7473 202d 206e 6674 6162 6c65 732e 736f  ts - nftables.so
│ │ │ +0015a6d0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +0015a6e0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0015a6f0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +0015a700: 6973 742d 756e 6974 2d66 696c 6573 206e  ist-unit-files n
│ │ │ +0015a710: 6674 6162 6c65 732e 736f 636b 6574 0a20  ftables.socket. 
│ │ │ +0015a720: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +0015a730: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +0015a740: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0015a750: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0015a760: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +0015a770: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +0015a780: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0015a790: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0015a7a0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 5665  se..  - name: Ve
│ │ │ +0015a7b0: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ +0015a7c0: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ +0015a7d0: 6420 2d20 4469 7361 626c 6520 536f 636b  d - Disable Sock
│ │ │ +0015a7e0: 6574 206e 6674 6162 6c65 730a 2020 2020  et nftables.    
│ │ │ +0015a7f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0015a800: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0015a810: 616d 653a 206e 6674 6162 6c65 732e 736f  ame: nftables.so
│ │ │ +0015a820: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +0015a830: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0015a840: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0015a850: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0015a860: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +0015a870: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +0015a880: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0015a890: 6561 7263 6828 226e 6674 6162 6c65 732e  earch("nftables.
│ │ │ +0015a8a0: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +0015a8b0: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +0015a8c0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0015a8d0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0015a8e0: 2d31 2e32 2e31 0a20 202d 2064 6973 6162  -1.2.1.  - disab
│ │ │ +0015a8f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0015a900: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0015a910: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0015a920: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0015a930: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0015a940: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0015a950: 6572 7669 6365 5f6e 6674 6162 6c65 735f  ervice_nftables_
│ │ │ +0015a960: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +0015a970: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +0015a980: 636b 0a20 2077 6865 6e3a 2028 2022 6e66  ck.  when: ( "nf
│ │ │ +0015a990: 7461 626c 6573 2220 696e 2061 6e73 6962  tables" in ansib
│ │ │ +0015a9a0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0015a9b0: 7320 616e 6420 226c 696e 7578 2d62 6173  s and "linux-bas
│ │ │ +0015a9c0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0015a9d0: 6374 732e 7061 636b 6167 6573 0a20 2020  cts.packages.   
│ │ │ +0015a9e0: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +0015a9f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ +0015aaa0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +0015aab0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0015ab30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0015ab40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0015ab60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0015ab70: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +0015ab80: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +0015ab90: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +0015aba0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0015abc0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0015abd0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +0015abf0: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +0015ac00: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +0015ac10: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +0015ac20: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +0015ac30: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +0015ac40: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +0015ac50: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +0015ac60: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +0015ac70: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +0015ac80: 2d20 6e61 6d65 3a20 6e66 7461 626c 6573 - name: nftables │ │ │ +0015ac90: 2e73 6572 7669 6365 0a20 2020 2020 2020 .service. │ │ │ +0015aca0: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +0015acb0: 2020 2020 2020 2020 6d61 736b 3a20 7472 mask: tr │ │ │ +0015acc0: 7565 0a20 2020 2020 202d 206e 616d 653a ue. - name: │ │ │ +0015acd0: 206e 6674 6162 6c65 732e 736f 636b 6574 nftables.socket │ │ │ +0015ace0: 0a20 2020 2020 2020 2065 6e61 626c 6564 . enabled │ │ │ +0015acf0: 3a20 6661 6c73 650a 2020 2020 2020 2020 : false. │ │ │ +0015ad00: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64 mask: true.
Remed │ │ │ +0015adc0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0015add0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0015ae80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0015aea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0015aed0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0015ae60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0015ae70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0015ae90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0015aeb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0015aec0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0015af10: 2064 6973 6162 6c65 5f6e 6674 6162 6c65 disable_nftable │ │ │ +0015af20: 730a 0a63 6c61 7373 2064 6973 6162 6c65 s..class disable │ │ │ +0015af30: 5f6e 6674 6162 6c65 7320 7b0a 2020 7365 _nftables {. se │ │ │ +0015af40: 7276 6963 6520 7b27 6e66 7461 626c 6573 rvice {'nftables │ │ │ +0015af50: 273a 0a20 2020 2065 6e61 626c 6520 3d26 ':. enable =& │ │ │ +0015af60: 6774 3b20 6661 6c73 652c 0a20 2020 2065 gt; false,. e │ │ │ +0015af70: 6e73 7572 6520 3d26 6774 3b20 2773 746f nsure => 'sto │ │ │ +0015af80: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63 pped',. }.}.

│ │ │ +0015afa0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0015b040: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0015b050: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0015b060: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +0015b0b0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +0015b0c0: 6573 5d0a 6d61 736b 6564 203d 205b 226e es].masked = ["n │ │ │ +0015b0d0: 6674 6162 6c65 7322 5d0a 3c2f 636f 6465 ftables"].Remediation OSB │ │ │ -0016b870: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0016b880: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...

.[c
│ │ │ -0016b8d0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -0016b8e0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -0016b8f0: 205b 2262 6c75 6574 6f6f 7468 225d 0a3c   ["bluetooth"].<
│ │ │ -0016b900: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0016b9b0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -0016b9c0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -0016b9d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0016ba50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0016ba70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -0016baa0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -0016ba80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0016ba90: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -0016bab0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -0016bad0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0016bae0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -0016bb10: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -0016bb20: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -0016bb30: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -0016bb40: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -0016bb50: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -0016bb60: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -0016bb70: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -0016bb80: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -0016bb90: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -0016bba0: 6d65 3a20 626c 7565 746f 6f74 682e 7365  me: bluetooth.se
│ │ │ -0016bbb0: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -0016bbc0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0016bbd0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -0016bbe0: 2020 2020 2020 2d20 6e61 6d65 3a20 626c        - name: bl
│ │ │ -0016bbf0: 7565 746f 6f74 682e 736f 636b 6574 0a20  uetooth.socket. 
│ │ │ -0016bc00: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -0016bc10: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -0016bc20: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e  sk: true.
│ │ │ -0016bc30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0016bce0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0016bcf0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0016bd00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0016bd10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0016bd20: 7365 2220 6964 3d22 6964 3434 3722 3e3c se" id="id447">< │ │ │ -0016bd30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0016bd40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0016bd50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0016bd60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0016bd70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0016bd80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0016bd90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0016bdd0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0016bde0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0016be00: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0016be10: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0016be30: 6973 6162 6c65 5f62 6c75 6574 6f6f 7468  isable_bluetooth
│ │ │ -0016be40: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -0016be50: 626c 7565 746f 6f74 6820 7b0a 2020 7365  bluetooth {.  se
│ │ │ -0016be60: 7276 6963 6520 7b27 626c 7565 746f 6f74  rvice {'bluetoot
│ │ │ -0016be70: 6827 3a0a 2020 2020 656e 6162 6c65 203d  h':.    enable =
│ │ │ -0016be80: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -0016be90: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -0016bea0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -0016bf60: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0016bf70: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0016c010: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0016c020: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0016c070: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0016c0b0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0016c0c0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0016c0d0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0016c0e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0016c0f0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0016c100: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ -0016c110: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -0016c120: 332d 4143 2d31 3828 3329 0a20 202d 204e  3-AC-18(3).  - N
│ │ │ -0016c130: 4953 542d 3830 302d 3533 2d41 432d 3138  IST-800-53-AC-18
│ │ │ -0016c140: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0016c150: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0016c160: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0016c170: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0016c180: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -0016c190: 4e49 5354 2d38 3030 2d35 332d 4d50 2d37  NIST-800-53-MP-7
│ │ │ -0016c1a0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0016c1b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0016c1c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0016c1d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0016c1e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0016c1f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0016c200: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0016c210: 5f62 6c75 6574 6f6f 7468 5f64 6973 6162  _bluetooth_disab
│ │ │ -0016c220: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ -0016c230: 6162 6c65 2042 6c75 6574 6f6f 7468 2053  able Bluetooth S
│ │ │ -0016c240: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0016c250: 2073 6572 7669 6365 2062 6c75 6574 6f6f   service bluetoo
│ │ │ -0016c260: 7468 0a20 2062 6c6f 636b 3a0a 0a20 202d  th.  block:..  -
│ │ │ -0016c270: 206e 616d 653a 2044 6973 6162 6c65 2042   name: Disable B
│ │ │ -0016c280: 6c75 6574 6f6f 7468 2053 6572 7669 6365  luetooth Service
│ │ │ -0016c290: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -0016c2a0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -0016c2b0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -0016c2c0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -0016c2d0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -0016c2e0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -0016c2f0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -0016c300: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -0016c310: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -0016c320: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0016c330: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0016c340: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0016c350: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0016c360: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0016c370: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0016c380: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0016c390: 3a20 4469 7361 626c 6520 426c 7565 746f  : Disable Blueto
│ │ │ -0016c3a0: 6f74 6820 5365 7276 6963 6520 2d20 456e  oth Service - En
│ │ │ -0016c3b0: 7375 7265 2062 6c75 6574 6f6f 7468 2e73  sure bluetooth.s
│ │ │ -0016c3c0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -0016c3d0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0016c3e0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0016c3f0: 2020 2020 6e61 6d65 3a20 626c 7565 746f      name: blueto
│ │ │ -0016c400: 6f74 682e 7365 7276 6963 650a 2020 2020  oth.service.    
│ │ │ -0016c410: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0016c420: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0016c430: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0016c440: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0016c450: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0016c460: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0016c470: 7320 7365 6172 6368 2822 626c 7565 746f  s search("blueto
│ │ │ -0016c480: 6f74 682e 7365 7276 6963 6522 2c20 6d75  oth.service", mu
│ │ │ -0016c490: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ -0016c4a0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ -0016c4b0: 636b 6574 2045 7869 7374 7320 2d20 626c  cket Exists - bl
│ │ │ -0016c4c0: 7565 746f 6f74 682e 736f 636b 6574 0a20  uetooth.socket. 
│ │ │ -0016c4d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0016c4e0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0016c4f0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0016c500: 6974 2d66 696c 6573 2062 6c75 6574 6f6f  it-files bluetoo
│ │ │ -0016c510: 7468 2e73 6f63 6b65 740a 2020 2020 7265  th.socket.    re
│ │ │ -0016c520: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -0016c530: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -0016c540: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0016c550: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0016c560: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0016c570: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0016c580: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0016c590: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0016c5a0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0016c5b0: 2042 6c75 6574 6f6f 7468 2053 6572 7669   Bluetooth Servi
│ │ │ -0016c5c0: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -0016c5d0: 6b65 7420 626c 7565 746f 6f74 680a 2020  ket bluetooth.  
│ │ │ -0016c5e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0016c5f0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -0016c600: 206e 616d 653a 2062 6c75 6574 6f6f 7468   name: bluetooth
│ │ │ -0016c610: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -0016c620: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0016c630: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0016c640: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -0016c650: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0016c660: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0016c670: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0016c680: 7320 7365 6172 6368 2822 626c 7565 746f  s search("blueto
│ │ │ -0016c690: 6f74 682e 736f 636b 6574 222c 206d 756c  oth.socket", mul
│ │ │ -0016c6a0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -0016c6b0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0016c6c0: 302d 3137 312d 332e 312e 3136 0a20 202d  0-171-3.1.16.  -
│ │ │ -0016c6d0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -0016c6e0: 3138 2833 290a 2020 2d20 4e49 5354 2d38  18(3).  - NIST-8
│ │ │ -0016c6f0: 3030 2d35 332d 4143 2d31 3828 6129 0a20  00-53-AC-18(a). 
│ │ │ -0016c700: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0016c710: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0016c720: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0016c730: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0016c740: 4d2d 3728 6229 0a20 202d 204e 4953 542d  M-7(b).  - NIST-
│ │ │ -0016c750: 3830 302d 3533 2d4d 502d 370a 2020 2d20  800-53-MP-7.  - 
│ │ │ -0016c760: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0016c770: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0016c780: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0016c790: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0016c7a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0016c7b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0016c7c0: 2020 2d20 7365 7276 6963 655f 626c 7565    - service_blue
│ │ │ -0016c7d0: 746f 6f74 685f 6469 7361 626c 6564 0a20  tooth_disabled. 
│ │ │ -0016c7e0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0016c7f0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0016c800: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0016c810: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0016c820: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.Remediation Ans
│ │ │ +0016b870: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0016b880: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
C │ │ │ -0016c000: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0016c030: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0016c040: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0016c080: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0016c090: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0016b950: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0016b960: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0016b9c0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0016b9d0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0016b9e0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0016b9f0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0016ba00: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0016ba10: 312e 3136 0a20 202d 204e 4953 542d 3830  1.16.  - NIST-80
│ │ │ +0016ba20: 302d 3533 2d41 432d 3138 2833 290a 2020  0-53-AC-18(3).  
│ │ │ +0016ba30: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +0016ba40: 2d31 3828 6129 0a20 202d 204e 4953 542d  -18(a).  - NIST-
│ │ │ +0016ba50: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0016ba60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0016ba70: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0016ba80: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0016ba90: 202d 204e 4953 542d 3830 302d 3533 2d4d   - NIST-800-53-M
│ │ │ +0016baa0: 502d 370a 2020 2d20 6469 7361 626c 655f  P-7.  - disable_
│ │ │ +0016bab0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0016bac0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0016bad0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0016bae0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0016baf0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0016bb00: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0016bb10: 6963 655f 626c 7565 746f 6f74 685f 6469  ice_bluetooth_di
│ │ │ +0016bb20: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +0016bb30: 4469 7361 626c 6520 426c 7565 746f 6f74  Disable Bluetoot
│ │ │ +0016bb40: 6820 5365 7276 6963 6520 2d20 4469 7361  h Service - Disa
│ │ │ +0016bb50: 626c 6520 7365 7276 6963 6520 626c 7565  ble service blue
│ │ │ +0016bb60: 746f 6f74 680a 2020 626c 6f63 6b3a 0a0a  tooth.  block:..
│ │ │ +0016bb70: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0016bb80: 6520 426c 7565 746f 6f74 6820 5365 7276  e Bluetooth Serv
│ │ │ +0016bb90: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +0016bba0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +0016bbb0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +0016bbc0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +0016bbd0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0016bbe0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +0016bbf0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +0016bc00: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +0016bc10: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +0016bc20: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +0016bc30: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0016bc40: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0016bc50: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +0016bc60: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0016bc70: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0016bc80: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0016bc90: 616d 653a 2044 6973 6162 6c65 2042 6c75  ame: Disable Blu
│ │ │ +0016bca0: 6574 6f6f 7468 2053 6572 7669 6365 202d  etooth Service -
│ │ │ +0016bcb0: 2045 6e73 7572 6520 626c 7565 746f 6f74   Ensure bluetoot
│ │ │ +0016bcc0: 682e 7365 7276 6963 6520 6973 204d 6173  h.service is Mas
│ │ │ +0016bcd0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +0016bce0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0016bcf0: 0a20 2020 2020 206e 616d 653a 2062 6c75  .      name: blu
│ │ │ +0016bd00: 6574 6f6f 7468 2e73 6572 7669 6365 0a20  etooth.service. 
│ │ │ +0016bd10: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0016bd20: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0016bd30: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0016bd40: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0016bd50: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0016bd60: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0016bd70: 7320 6973 2073 6561 7263 6828 2262 6c75  s is search("blu
│ │ │ +0016bd80: 6574 6f6f 7468 2e73 6572 7669 6365 222c  etooth.service",
│ │ │ +0016bd90: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0016bda0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +0016bdb0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +0016bdc0: 2062 6c75 6574 6f6f 7468 2e73 6f63 6b65   bluetooth.socke
│ │ │ +0016bdd0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +0016bde0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0016bdf0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0016be00: 2d75 6e69 742d 6669 6c65 7320 626c 7565  -unit-files blue
│ │ │ +0016be10: 746f 6f74 682e 736f 636b 6574 0a20 2020  tooth.socket.   
│ │ │ +0016be20: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +0016be30: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +0016be40: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0016be50: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0016be60: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +0016be70: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +0016be80: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0016be90: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0016bea0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0016beb0: 626c 6520 426c 7565 746f 6f74 6820 5365  ble Bluetooth Se
│ │ │ +0016bec0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +0016bed0: 536f 636b 6574 2062 6c75 6574 6f6f 7468  Socket bluetooth
│ │ │ +0016bee0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0016bef0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +0016bf00: 2020 2020 6e61 6d65 3a20 626c 7565 746f      name: blueto
│ │ │ +0016bf10: 6f74 682e 736f 636b 6574 0a20 2020 2020  oth.socket.     
│ │ │ +0016bf20: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0016bf30: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0016bf40: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +0016bf50: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0016bf60: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0016bf70: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0016bf80: 7320 6973 2073 6561 7263 6828 2262 6c75  s is search("blu
│ │ │ +0016bf90: 6574 6f6f 7468 2e73 6f63 6b65 7422 2c20  etooth.socket", 
│ │ │ +0016bfa0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0016bfb0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0016bfc0: 2d38 3030 2d31 3731 2d33 2e31 2e31 360a  -800-171-3.1.16.
│ │ │ +0016bfd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0016bfe0: 4143 2d31 3828 3329 0a20 202d 204e 4953  AC-18(3).  - NIS
│ │ │ +0016bff0: 542d 3830 302d 3533 2d41 432d 3138 2861  T-800-53-AC-18(a
│ │ │ +0016c000: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0016c010: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0016c020: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +0016c030: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0016c040: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ +0016c050: 5354 2d38 3030 2d35 332d 4d50 2d37 0a20  ST-800-53-MP-7. 
│ │ │ +0016c060: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0016c070: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0016c080: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0016c090: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0016c0a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0016c0b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0016c0c0: 6564 0a20 202d 2073 6572 7669 6365 5f62  ed.  - service_b
│ │ │ +0016c0d0: 6c75 6574 6f6f 7468 5f64 6973 6162 6c65  luetooth_disable
│ │ │ +0016c0e0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +0016c0f0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +0016c100: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0016c110: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0016c120: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +0016c140: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0016c1e0: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +0016c1f0: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +0016c200: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +0016b930: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0016b940: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0016b980: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0016b990: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0016c2f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0016c320: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +0016c340: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +0016c350: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +0016c360: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +0016c370: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +0016c380: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +0016c390: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +0016c3a0: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +0016c3b0: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +0016c3c0: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +0016c3d0: 3a20 626c 7565 746f 6f74 682e 7365 7276  : bluetooth.serv
│ │ │ +0016c3e0: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ +0016c3f0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0016c400: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ +0016c410: 2020 2020 2d20 6e61 6d65 3a20 626c 7565      - name: blue
│ │ │ +0016c420: 746f 6f74 682e 736f 636b 6574 0a20 2020  tooth.socket.   
│ │ │ +0016c430: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0016c440: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +0016c450: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.Remediati
│ │ │ +0016c510: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0016c520: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0016c5a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0016c5e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +0016c2b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +0016c2c0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +0016c300: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0016c310: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ +0016c5b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0016c5d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0016c600: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0016c620: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +0016c650: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +0016c660: 6162 6c65 5f62 6c75 6574 6f6f 7468 0a0a  able_bluetooth..
│ │ │ +0016c670: 636c 6173 7320 6469 7361 626c 655f 626c  class disable_bl
│ │ │ +0016c680: 7565 746f 6f74 6820 7b0a 2020 7365 7276  uetooth {.  serv
│ │ │ +0016c690: 6963 6520 7b27 626c 7565 746f 6f74 6827  ice {'bluetooth'
│ │ │ +0016c6a0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +0016c6b0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +0016c6c0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +0016c6d0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +0016c6f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0016c700: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0016c710: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0016c720: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0016c730: 6434 3438 2220 7461 6269 6e64 6578 3d22 d448" tabindex=" │ │ │ +0016c740: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0016c750: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0016c760: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0016c770: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0016c780: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0016c790: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0016c7a0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0016c7b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +0016c800: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0016c810: 735d 0a6d 6173 6b65 6420 3d20 5b22 626c s].masked = ["bl │ │ │ +0016c820: 7565 746f 6f74 6822 5d0a 3c2f 636f 6465 uetooth"].Reme │ │ │ -001d6ba0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -001d6bb0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001d6c40: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001d6c50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001d6c70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001d6c90: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001d6ca0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001d6ce0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -001d6cf0: 7564 6520 7265 6d6f 7665 5f61 7574 6f66  ude remove_autof
│ │ │ -001d6d00: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -001d6d10: 6175 746f 6673 207b 0a20 2070 6163 6b61  autofs {.  packa
│ │ │ -001d6d20: 6765 207b 2027 6175 746f 6673 273a 0a20  ge { 'autofs':. 
│ │ │ -001d6d30: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001d6d40: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -001d6d50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001d6e00: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -001d6e10: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001d6e20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001d6ef0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001d6f00: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001d6f50: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -001d6f60: 6175 746f 6673 2050 6163 6b61 6765 3a20  autofs Package: 
│ │ │ -001d6f70: 456e 7375 7265 2061 7574 6f66 7320 6973  Ensure autofs is
│ │ │ -001d6f80: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -001d6f90: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -001d6fa0: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ -001d6fb0: 7574 6f66 730a 2020 2020 7374 6174 653a  utofs.    state:
│ │ │ -001d6fc0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -001d6fd0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -001d6fe0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -001d6ff0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -001d7000: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -001d7010: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -001d7020: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -001d7030: 0a20 202d 2070 6163 6b61 6765 5f61 7574  .  - package_aut
│ │ │ -001d7040: 6f66 735f 7265 6d6f 7665 640a 3c2f 636f  ofs_removed.<
│ │ │ +001d6bc0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -001d6ed0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001d6ee0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001d6f20: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001d6f30: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +001d6c40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001d6c70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001d6c90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001d6ca0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001d6cc0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001d6cd0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +001d6cf0: 6d65 3a20 2752 656d 6f76 6520 6175 746f  me: 'Remove auto
│ │ │ +001d6d00: 6673 2050 6163 6b61 6765 3a20 456e 7375  fs Package: Ensu
│ │ │ +001d6d10: 7265 2061 7574 6f66 7320 6973 2072 656d  re autofs is rem
│ │ │ +001d6d20: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +001d6d30: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +001d6d40: 0a20 2020 206e 616d 653a 2061 7574 6f66  .    name: autof
│ │ │ +001d6d50: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ +001d6d60: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +001d6d70: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +001d6d80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +001d6d90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +001d6da0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +001d6db0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001d6dc0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +001d6dd0: 2070 6163 6b61 6765 5f61 7574 6f66 735f   package_autofs_
│ │ │ +001d6de0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +001d6df0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +001d6ea0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +001d6eb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +001d6f30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +001d6f40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001d6f50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +001d6f90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001d6fa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +001d6fc0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +001d6fd0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +001d6ff0: 7265 6d6f 7665 5f61 7574 6f66 730a 0a63  remove_autofs..c
│ │ │ +001d7000: 6c61 7373 2072 656d 6f76 655f 6175 746f  lass remove_auto
│ │ │ +001d7010: 6673 207b 0a20 2070 6163 6b61 6765 207b  fs {.  package {
│ │ │ +001d7020: 2027 6175 746f 6673 273a 0a20 2020 2065   'autofs':.    e
│ │ │ +001d7030: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +001d7040: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 001d7060: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 001d7070: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 001d7080: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 001d7090: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 001d70a0: 6436 3935 2220 7461 6269 6e64 6578 3d22 d695" tabindex=" │ │ │ 001d70b0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -120962,259 +120962,259 @@ │ │ │ 001d8810: 7267 6574 3d22 2369 6436 3937 2220 7461 rget="#id697" ta │ │ │ 001d8820: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 001d8830: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 001d8840: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 001d8850: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 001d8860: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 001d8870: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -001d8880: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -001d8890: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -001d88e0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -001d88f0: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -001d8900: 6420 3d20 5b22 6175 746f 6673 225d 0a3c  d = ["autofs"].<
│ │ │ -001d8910: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -001d89c0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -001d89d0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -001d89e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -001d8a60: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001d8a80: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -001d8ab0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -001d8a90: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001d8aa0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -001d8ac0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -001d8ae0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001d8af0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -001d8b20: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -001d8b30: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -001d8b40: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -001d8b50: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -001d8b60: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -001d8b70: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -001d8b80: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -001d8b90: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -001d8ba0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -001d8bb0: 6d65 3a20 6175 746f 6673 2e73 6572 7669  me: autofs.servi
│ │ │ -001d8bc0: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ -001d8bd0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -001d8be0: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ -001d8bf0: 2020 202d 206e 616d 653a 2061 7574 6f66     - name: autof
│ │ │ -001d8c00: 732e 736f 636b 6574 0a20 2020 2020 2020  s.socket.       
│ │ │ -001d8c10: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -001d8c20: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -001d8c30: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ -001d8c40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -001d8cf0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -001d8d00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -001d8d80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001d8da0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001d8df0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -001d8e40: 5f61 7574 6f66 730a 0a63 6c61 7373 2064  _autofs..class d
│ │ │ -001d8e50: 6973 6162 6c65 5f61 7574 6f66 7320 7b0a  isable_autofs {.
│ │ │ -001d8e60: 2020 7365 7276 6963 6520 7b27 6175 746f    service {'auto
│ │ │ -001d8e70: 6673 273a 0a20 2020 2065 6e61 626c 6520  fs':.    enable 
│ │ │ -001d8e80: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -001d8e90: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -001d8ea0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -001d8eb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -001d8f60: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -001d8f70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disr │ │ │ -001d8db0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001d8dc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001d8e00: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -001d8e10: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -001d9010: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -001d90b0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -001d90c0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -001d90d0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -001d90e0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -001d90f0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -001d9100: 4953 542d 3830 302d 3137 312d 332e 342e  IST-800-171-3.4.
│ │ │ -001d9110: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -001d9120: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -001d9130: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -001d9140: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001d9150: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ -001d9160: 5354 2d38 3030 2d35 332d 4d50 2d37 0a20  ST-800-53-MP-7. 
│ │ │ -001d9170: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -001d9180: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -001d9190: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -001d91a0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -001d91b0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -001d91c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -001d91d0: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ -001d91e0: 7574 6f66 735f 6469 7361 626c 6564 0a0a  utofs_disabled..
│ │ │ -001d91f0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -001d9200: 7468 6520 4175 746f 6d6f 756e 7465 7220  the Automounter 
│ │ │ -001d9210: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -001d9220: 6520 6175 746f 6673 0a20 2062 6c6f 636b  e autofs.  block
│ │ │ -001d9230: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -001d9240: 6162 6c65 2074 6865 2041 7574 6f6d 6f75  able the Automou
│ │ │ -001d9250: 6e74 6572 202d 2043 6f6c 6c65 6374 2073  nter - Collect s
│ │ │ -001d9260: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ -001d9270: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ -001d9280: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ -001d9290: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -001d92a0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -001d92b0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -001d92c0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ -001d92d0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ -001d92e0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ -001d92f0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -001d9300: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -001d9310: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -001d9320: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -001d9330: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -001d9340: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -001d9350: 6e61 6d65 3a20 4469 7361 626c 6520 7468  name: Disable th
│ │ │ -001d9360: 6520 4175 746f 6d6f 756e 7465 7220 2d20  e Automounter - 
│ │ │ -001d9370: 456e 7375 7265 2061 7574 6f66 732e 7365  Ensure autofs.se
│ │ │ -001d9380: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -001d9390: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -001d93a0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -001d93b0: 2020 206e 616d 653a 2061 7574 6f66 732e     name: autofs.
│ │ │ -001d93c0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -001d93d0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -001d93e0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -001d93f0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -001d9400: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -001d9410: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -001d9420: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -001d9430: 6172 6368 2822 6175 746f 6673 2e73 6572  arch("autofs.ser
│ │ │ -001d9440: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -001d9450: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -001d9460: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -001d9470: 6973 7473 202d 2061 7574 6f66 732e 736f  ists - autofs.so
│ │ │ -001d9480: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -001d9490: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -001d94a0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -001d94b0: 6973 742d 756e 6974 2d66 696c 6573 2061  ist-unit-files a
│ │ │ -001d94c0: 7574 6f66 732e 736f 636b 6574 0a20 2020  utofs.socket.   
│ │ │ -001d94d0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -001d94e0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -001d94f0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -001d9500: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -001d9510: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -001d9520: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -001d9530: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -001d9540: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -001d9550: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -001d9560: 626c 6520 7468 6520 4175 746f 6d6f 756e  ble the Automoun
│ │ │ -001d9570: 7465 7220 2d20 4469 7361 626c 6520 536f  ter - Disable So
│ │ │ -001d9580: 636b 6574 2061 7574 6f66 730a 2020 2020  cket autofs.    
│ │ │ -001d9590: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001d95a0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -001d95b0: 616d 653a 2061 7574 6f66 732e 736f 636b  ame: autofs.sock
│ │ │ -001d95c0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -001d95d0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -001d95e0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -001d95f0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -001d9600: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -001d9610: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -001d9620: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -001d9630: 7263 6828 2261 7574 6f66 732e 736f 636b  rch("autofs.sock
│ │ │ -001d9640: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -001d9650: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -001d9660: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -001d9670: 342e 360a 2020 2d20 4e49 5354 2d38 3030  4.6.  - NIST-800
│ │ │ -001d9680: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -001d9690: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -001d96a0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -001d96b0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -001d96c0: 4e49 5354 2d38 3030 2d35 332d 4d50 2d37  NIST-800-53-MP-7
│ │ │ -001d96d0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -001d96e0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -001d96f0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -001d9700: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -001d9710: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -001d9720: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001d9730: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -001d9740: 5f61 7574 6f66 735f 6469 7361 626c 6564  _autofs_disabled
│ │ │ -001d9750: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -001d9760: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -001d9770: 6e3a 2028 2022 6175 746f 6673 2220 696e  n: ( "autofs" in
│ │ │ -001d9780: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -001d9790: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ -001d97a0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -001d97b0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -001d97c0: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +001d8880: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +001d8890: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +001d8960: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ -001d9000: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001d9030: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -001d9040: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -001d9080: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -001d9090: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +001d8920: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +001d8940: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +001d8990: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001d89a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +001d89d0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +001d89e0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +001d89f0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +001d8a00: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +001d8a10: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +001d8a20: 2d33 2e34 2e36 0a20 202d 204e 4953 542d  -3.4.6.  - NIST-
│ │ │ +001d8a30: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +001d8a40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001d8a50: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +001d8a60: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +001d8a70: 202d 204e 4953 542d 3830 302d 3533 2d4d   - NIST-800-53-M
│ │ │ +001d8a80: 502d 370a 2020 2d20 6469 7361 626c 655f  P-7.  - disable_
│ │ │ +001d8a90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +001d8aa0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +001d8ab0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +001d8ac0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +001d8ad0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +001d8ae0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +001d8af0: 6963 655f 6175 746f 6673 5f64 6973 6162  ice_autofs_disab
│ │ │ +001d8b00: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +001d8b10: 6162 6c65 2074 6865 2041 7574 6f6d 6f75  able the Automou
│ │ │ +001d8b20: 6e74 6572 202d 2044 6973 6162 6c65 2073  nter - Disable s
│ │ │ +001d8b30: 6572 7669 6365 2061 7574 6f66 730a 2020  ervice autofs.  
│ │ │ +001d8b40: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +001d8b50: 3a20 4469 7361 626c 6520 7468 6520 4175  : Disable the Au
│ │ │ +001d8b60: 746f 6d6f 756e 7465 7220 2d20 436f 6c6c  tomounter - Coll
│ │ │ +001d8b70: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +001d8b80: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +001d8b90: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +001d8ba0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +001d8bb0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +001d8bc0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +001d8bd0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +001d8be0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +001d8bf0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +001d8c00: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +001d8c10: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +001d8c20: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +001d8c30: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +001d8c40: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +001d8c50: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +001d8c60: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +001d8c70: 6c65 2074 6865 2041 7574 6f6d 6f75 6e74  le the Automount
│ │ │ +001d8c80: 6572 202d 2045 6e73 7572 6520 6175 746f  er - Ensure auto
│ │ │ +001d8c90: 6673 2e73 6572 7669 6365 2069 7320 4d61  fs.service is Ma
│ │ │ +001d8ca0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +001d8cb0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +001d8cc0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6175  :.      name: au
│ │ │ +001d8cd0: 746f 6673 2e73 6572 7669 6365 0a20 2020  tofs.service.   
│ │ │ +001d8ce0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +001d8cf0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +001d8d00: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +001d8d10: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +001d8d20: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +001d8d30: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +001d8d40: 6973 2073 6561 7263 6828 2261 7574 6f66  is search("autof
│ │ │ +001d8d50: 732e 7365 7276 6963 6522 2c20 6d75 6c74  s.service", mult
│ │ │ +001d8d60: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +001d8d70: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +001d8d80: 6574 2045 7869 7374 7320 2d20 6175 746f  et Exists - auto
│ │ │ +001d8d90: 6673 2e73 6f63 6b65 740a 2020 2020 616e  fs.socket.    an
│ │ │ +001d8da0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +001d8db0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +001d8dc0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +001d8dd0: 6c65 7320 6175 746f 6673 2e73 6f63 6b65  les autofs.socke
│ │ │ +001d8de0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +001d8df0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +001d8e00: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +001d8e10: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +001d8e20: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +001d8e30: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +001d8e40: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +001d8e50: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +001d8e60: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +001d8e70: 2044 6973 6162 6c65 2074 6865 2041 7574   Disable the Aut
│ │ │ +001d8e80: 6f6d 6f75 6e74 6572 202d 2044 6973 6162  omounter - Disab
│ │ │ +001d8e90: 6c65 2053 6f63 6b65 7420 6175 746f 6673  le Socket autofs
│ │ │ +001d8ea0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +001d8eb0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +001d8ec0: 2020 2020 6e61 6d65 3a20 6175 746f 6673      name: autofs
│ │ │ +001d8ed0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +001d8ee0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +001d8ef0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +001d8f00: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +001d8f10: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +001d8f20: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +001d8f30: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +001d8f40: 7320 7365 6172 6368 2822 6175 746f 6673  s search("autofs
│ │ │ +001d8f50: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +001d8f60: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +001d8f70: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +001d8f80: 3731 2d33 2e34 2e36 0a20 202d 204e 4953  71-3.4.6.  - NIS
│ │ │ +001d8f90: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001d8fa0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001d8fb0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +001d8fc0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +001d8fd0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001d8fe0: 2d4d 502d 370a 2020 2d20 6469 7361 626c  -MP-7.  - disabl
│ │ │ +001d8ff0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001d9000: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001d9010: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001d9020: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001d9030: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001d9040: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001d9050: 7276 6963 655f 6175 746f 6673 5f64 6973  rvice_autofs_dis
│ │ │ +001d9060: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +001d9070: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +001d9080: 2020 7768 656e 3a20 2820 2261 7574 6f66    when: ( "autof
│ │ │ +001d9090: 7322 2069 6e20 616e 7369 626c 655f 6661  s" in ansible_fa
│ │ │ +001d90a0: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ +001d90b0: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ +001d90c0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +001d90d0: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
Re │ │ │ +001d9190: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ +001d91a0: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ +001d91b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ +001d9280: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +001d92a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +001d92d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +001d9260: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ +001d9270: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ +001d92b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +001d92c0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ +001d92f0: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ +001d9300: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ +001d9310: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ +001d9320: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ +001d9330: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ +001d9340: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ +001d9350: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ +001d9360: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ +001d9370: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ +001d9380: 653a 2061 7574 6f66 732e 7365 7276 6963  e: autofs.servic
│ │ │ +001d9390: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ +001d93a0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +001d93b0: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ +001d93c0: 2020 2d20 6e61 6d65 3a20 6175 746f 6673    - name: autofs
│ │ │ +001d93d0: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +001d93e0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +001d93f0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +001d9400: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +001d9410: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001d94c0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001d94d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001d95a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001d95b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +001d9600: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +001d9610: 6175 746f 6673 0a0a 636c 6173 7320 6469  autofs..class di
│ │ │ +001d9620: 7361 626c 655f 6175 746f 6673 207b 0a20  sable_autofs {. 
│ │ │ +001d9630: 2073 6572 7669 6365 207b 2761 7574 6f66   service {'autof
│ │ │ +001d9640: 7327 3a0a 2020 2020 656e 6162 6c65 203d  s':.    enable =
│ │ │ +001d9650: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +001d9660: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +001d9670: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +001d9730: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +001d9740: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +001d9750: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +001d9760: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001d9770: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001d9780: 7365 2220 6964 3d22 6964 3730 3022 3e3c se" id="id700">< │ │ │ +001d9790: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +001d97a0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +001d97b0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +001d97c0: 6175 746f 6673 225d 0a3c 2f63 6f64 653e autofs"]. │ │ │ 001d97d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remedi │ │ │ -00223880: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00223890: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002238a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -002238e0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -002238f0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00223900: 0a6d 6173 6b65 6420 3d20 5b22 6170 706f  .masked = ["appo
│ │ │ -00223910: 7274 225d 0a3c 2f63 6f64 653e 3c2f 7072  rt"].
Remediation │ │ │ -002239d0: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ -002239e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002239f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00223a00: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00223a10: 7365 2220 6964 3d22 6964 3739 3122 3e3c se" id="id791">< │ │ │ -00223a20: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00223a30: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00223a40: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00223a50: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00223a60: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption: │ │ │ -00223ae0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
low
Disru │ │ │ +001d9580: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001d9590: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001d95d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +001d95e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -00223a70: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00223a80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
medium
Re │ │ │ -00223ac0: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ -00223ad0: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue
Strategy:disable
< │ │ │ -00223b10: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ -00223b20: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ -00223b30: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ -00223b40: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ -00223b50: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ -00223b60: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ -00223b70: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ -00223b80: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ -00223b90: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ -00223ba0: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ -00223bb0: 2020 2d20 6e61 6d65 3a20 6170 706f 7274 - name: apport │ │ │ -00223bc0: 2e73 6572 7669 6365 0a20 2020 2020 2020 .service. │ │ │ -00223bd0: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ -00223be0: 2020 2020 2020 2020 6d61 736b 3a20 7472 mask: tr │ │ │ -00223bf0: 7565 0a20 2020 2020 202d 206e 616d 653a ue. - name: │ │ │ -00223c00: 2061 7070 6f72 742e 736f 636b 6574 0a20 apport.socket. │ │ │ -00223c10: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ -00223c20: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ -00223c30: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ -00223c40: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -00223cf0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00223d00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00223d10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00223d20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00223d30: 7365 2220 6964 3d22 6964 3739 3222 3e3c se" id="id792">< │ │ │ -00223d40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00223d50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00223d60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00223d70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00223d80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00223d90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00223da0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00223de0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00223df0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00223e10: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00223e20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -00223e40: 6973 6162 6c65 5f61 7070 6f72 740a 0a63  isable_apport..c
│ │ │ -00223e50: 6c61 7373 2064 6973 6162 6c65 5f61 7070  lass disable_app
│ │ │ -00223e60: 6f72 7420 7b0a 2020 7365 7276 6963 6520  ort {.  service 
│ │ │ -00223e70: 7b27 6170 706f 7274 273a 0a20 2020 2065  {'apport':.    e
│ │ │ -00223e80: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -00223e90: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00223ea0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -00223eb0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00223f70: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00223f80: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00224010: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00224030: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00224040: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00224050: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00224060: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00224080: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002240b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -002240c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -002240d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -002240e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002240f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00224100: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00224110: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00224120: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00224130: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00224140: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00224150: 0a20 202d 2073 6572 7669 6365 5f61 7070  .  - service_app
│ │ │ -00224160: 6f72 745f 6469 7361 626c 6564 0a20 202d  ort_disabled.  -
│ │ │ -00224170: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -00224180: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ -00224190: 6c65 2041 7070 6f72 7420 5365 7276 6963  le Apport Servic
│ │ │ -002241a0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -002241b0: 6963 6520 6170 706f 7274 0a20 2062 6c6f  ice apport.  blo
│ │ │ -002241c0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -002241d0: 6973 6162 6c65 2041 7070 6f72 7420 5365  isable Apport Se
│ │ │ -002241e0: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -002241f0: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00224200: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00224210: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00224220: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00224230: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00224240: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00224250: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -00224260: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -00224270: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -00224280: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00224290: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002242a0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002242b0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -002242c0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -002242d0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -002242e0: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ -002242f0: 7070 6f72 7420 5365 7276 6963 6520 2d20  pport Service - 
│ │ │ -00224300: 456e 7375 7265 2061 7070 6f72 742e 7365  Ensure apport.se
│ │ │ -00224310: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00224320: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00224330: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00224340: 2020 206e 616d 653a 2061 7070 6f72 742e     name: apport.
│ │ │ -00224350: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -00224360: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -00224370: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00224380: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -00224390: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -002243a0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -002243b0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -002243c0: 6172 6368 2822 6170 706f 7274 2e73 6572  arch("apport.ser
│ │ │ -002243d0: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -002243e0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -002243f0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00224400: 6973 7473 202d 2061 7070 6f72 742e 736f  ists - apport.so
│ │ │ -00224410: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00224420: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00224430: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00224440: 6973 742d 756e 6974 2d66 696c 6573 2061  ist-unit-files a
│ │ │ -00224450: 7070 6f72 742e 736f 636b 6574 0a20 2020  pport.socket.   
│ │ │ -00224460: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -00224470: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -00224480: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -00224490: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002244a0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002244b0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -002244c0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002244d0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002244e0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002244f0: 626c 6520 4170 706f 7274 2053 6572 7669  ble Apport Servi
│ │ │ -00224500: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -00224510: 6b65 7420 6170 706f 7274 0a20 2020 2061  ket apport.    a
│ │ │ -00224520: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00224530: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00224540: 6d65 3a20 6170 706f 7274 2e73 6f63 6b65  me: apport.socke
│ │ │ -00224550: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -00224560: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -00224570: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00224580: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00224590: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002245a0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002245b0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002245c0: 6368 2822 6170 706f 7274 2e73 6f63 6b65  ch("apport.socke
│ │ │ -002245d0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -002245e0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -002245f0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00224600: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00224610: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00224620: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -00224630: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00224640: 7365 7276 6963 655f 6170 706f 7274 5f64  service_apport_d
│ │ │ -00224650: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -00224660: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -00224670: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365  k.  - unknown_se
│ │ │ -00224680: 7665 7269 7479 0a20 2077 6865 6e3a 2027  verity.  when: '
│ │ │ -00224690: 2261 7070 6f72 7422 2069 6e20 616e 7369  "apport" in ansi
│ │ │ -002246a0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002246b0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

│ │ │ +00223940: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00223960: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00223990: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00223920: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00223930: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00223950: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00223970: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00223980: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002239c0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002239d0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +002239e0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +002239f0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00223a00: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00223a10: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ +00223a20: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +00223a30: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +00223a40: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +00223a50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00223a60: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ +00223a70: 655f 6170 706f 7274 5f64 6973 6162 6c65 e_apport_disable │ │ │ +00223a80: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365 d. - unknown_se │ │ │ +00223a90: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20 verity..- name: │ │ │ +00223aa0: 4469 7361 626c 6520 4170 706f 7274 2053 Disable Apport S │ │ │ +00223ab0: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ +00223ac0: 2073 6572 7669 6365 2061 7070 6f72 740a service apport. │ │ │ +00223ad0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ +00223ae0: 6d65 3a20 4469 7361 626c 6520 4170 706f me: Disable Appo │ │ │ +00223af0: 7274 2053 6572 7669 6365 202d 2043 6f6c rt Service - Col │ │ │ +00223b00: 6c65 6374 2073 7973 7465 6d64 2053 6572 lect systemd Ser │ │ │ +00223b10: 7669 6365 7320 5072 6573 656e 7420 696e vices Present in │ │ │ +00223b20: 2074 6865 2053 7973 7465 6d0a 2020 2020 the System. │ │ │ +00223b30: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00223b40: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ +00223b50: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ +00223b60: 6669 6c65 7320 2d2d 7479 7065 2073 6572 files --type ser │ │ │ +00223b70: 7669 6365 0a20 2020 2072 6567 6973 7465 vice. registe │ │ │ +00223b80: 723a 2073 6572 7669 6365 5f65 7869 7374 r: service_exist │ │ │ +00223b90: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +00223ba0: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +00223bb0: 696c 6564 5f77 6865 6e3a 2073 6572 7669 iled_when: servi │ │ │ +00223bc0: 6365 5f65 7869 7374 732e 7263 206e 6f74 ce_exists.rc not │ │ │ +00223bd0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063 in [0, 1]. c │ │ │ +00223be0: 6865 636b 5f6d 6f64 653a 2066 616c 7365 heck_mode: false │ │ │ +00223bf0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361 .. - name: Disa │ │ │ +00223c00: 626c 6520 4170 706f 7274 2053 6572 7669 ble Apport Servi │ │ │ +00223c10: 6365 202d 2045 6e73 7572 6520 6170 706f ce - Ensure appo │ │ │ +00223c20: 7274 2e73 6572 7669 6365 2069 7320 4d61 rt.service is Ma │ │ │ +00223c30: 736b 6564 0a20 2020 2061 6e73 6962 6c65 sked. ansible │ │ │ +00223c40: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ +00223c50: 3a0a 2020 2020 2020 6e61 6d65 3a20 6170 :. name: ap │ │ │ +00223c60: 706f 7274 2e73 6572 7669 6365 0a20 2020 port.service. │ │ │ +00223c70: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ +00223c80: 640a 2020 2020 2020 656e 6162 6c65 643a d. enabled: │ │ │ +00223c90: 2066 616c 7365 0a20 2020 2020 206d 6173 false. mas │ │ │ +00223ca0: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ +00223cb0: 656e 3a20 7365 7276 6963 655f 6578 6973 en: service_exis │ │ │ +00223cc0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ +00223cd0: 6973 2073 6561 7263 6828 2261 7070 6f72 is search("appor │ │ │ +00223ce0: 742e 7365 7276 6963 6522 2c20 6d75 6c74 t.service", mult │ │ │ +00223cf0: 696c 696e 653d 5472 7565 290a 0a20 202d iline=True).. - │ │ │ +00223d00: 206e 616d 653a 2055 6e69 7420 536f 636b name: Unit Sock │ │ │ +00223d10: 6574 2045 7869 7374 7320 2d20 6170 706f et Exists - appo │ │ │ +00223d20: 7274 2e73 6f63 6b65 740a 2020 2020 616e rt.socket. an │ │ │ +00223d30: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ +00223d40: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ +00223d50: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ +00223d60: 6c65 7320 6170 706f 7274 2e73 6f63 6b65 les apport.socke │ │ │ +00223d70: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ +00223d80: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +00223d90: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +00223da0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +00223db0: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ +00223dc0: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ +00223dd0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ +00223de0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ +00223df0: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ +00223e00: 2044 6973 6162 6c65 2041 7070 6f72 7420 Disable Apport │ │ │ +00223e10: 5365 7276 6963 6520 2d20 4469 7361 626c Service - Disabl │ │ │ +00223e20: 6520 536f 636b 6574 2061 7070 6f72 740a e Socket apport. │ │ │ +00223e30: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +00223e40: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ +00223e50: 2020 206e 616d 653a 2061 7070 6f72 742e name: apport. │ │ │ +00223e60: 736f 636b 6574 0a20 2020 2020 2065 6e61 socket. ena │ │ │ +00223e70: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ +00223e80: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ +00223e90: 0a20 2020 2020 206d 6173 6b65 643a 2074 . masked: t │ │ │ +00223ea0: 7275 650a 2020 2020 7768 656e 3a20 736f rue. when: so │ │ │ +00223eb0: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ +00223ec0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973 .stdout_lines is │ │ │ +00223ed0: 2073 6561 7263 6828 2261 7070 6f72 742e search("apport. │ │ │ +00223ee0: 736f 636b 6574 222c 206d 756c 7469 6c69 socket", multili │ │ │ +00223ef0: 6e65 3d54 7275 6529 0a20 2074 6167 733a ne=True). tags: │ │ │ +00223f00: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +00223f10: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +00223f20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00223f30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +00223f40: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00223f50: 0a20 202d 2073 6572 7669 6365 5f61 7070 . - service_app │ │ │ +00223f60: 6f72 745f 6469 7361 626c 6564 0a20 202d ort_disabled. - │ │ │ +00223f70: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ +00223f80: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f _block. - unkno │ │ │ +00223f90: 776e 5f73 6576 6572 6974 790a 2020 7768 wn_severity. wh │ │ │ +00223fa0: 656e 3a20 2722 6170 706f 7274 2220 696e en: '"apport" in │ │ │ +00223fb0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00223fc0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +00223fd0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +00224080: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ +00224090: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002240a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Reboot:true │ │ │ +00224190: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ +002241d0: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ +002241e0: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ +002241f0: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ +00224200: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ +00224210: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ +00224220: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ +00224230: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ +00224240: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ +00224250: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ +00224260: 2020 2020 2020 2d20 6e61 6d65 3a20 6170        - name: ap
│ │ │ +00224270: 706f 7274 2e73 6572 7669 6365 0a20 2020  port.service.   
│ │ │ +00224280: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00224290: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +002242a0: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ +002242b0: 616d 653a 2061 7070 6f72 742e 736f 636b  ame: apport.sock
│ │ │ +002242c0: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ +002242d0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002242e0: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ +00224300: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +002243a0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002243b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002243c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00224120: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00224150: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +00224160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ +002241a0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002241b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +00224440: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00224470: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00224490: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002244a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002244c0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +002244e0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +002244f0: 6465 2064 6973 6162 6c65 5f61 7070 6f72  de disable_appor
│ │ │ +00224500: 740a 0a63 6c61 7373 2064 6973 6162 6c65  t..class disable
│ │ │ +00224510: 5f61 7070 6f72 7420 7b0a 2020 7365 7276  _apport {.  serv
│ │ │ +00224520: 6963 6520 7b27 6170 706f 7274 273a 0a20  ice {'apport':. 
│ │ │ +00224530: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00224540: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +00224550: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +00224560: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00224570: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00224620: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00224630: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00224640: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +00224680: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00224690: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +002246a0: 6d61 736b 6564 203d 205b 2261 7070 6f72  masked = ["appor
│ │ │ +002246b0: 7422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  t"].
Remediation │ │ │ -002262a0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002262b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00226330: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00226350: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002263a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002263d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00226340: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00226360: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002263b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002263c0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -002263f0: 7665 5f61 7661 6869 2d64 6165 6d6f 6e0a  ve_avahi-daemon.
│ │ │ -00226400: 0a63 6c61 7373 2072 656d 6f76 655f 6176  .class remove_av
│ │ │ -00226410: 6168 692d 6461 656d 6f6e 207b 0a20 2070  ahi-daemon {.  p
│ │ │ -00226420: 6163 6b61 6765 207b 2027 6176 6168 692d  ackage { 'avahi-
│ │ │ -00226430: 6461 656d 6f6e 273a 0a20 2020 2065 6e73  daemon':.    ens
│ │ │ -00226440: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00226450: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00226510: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00226520: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002265d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002265f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00226620: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002265b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002265c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002265e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00226600: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00226610: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00226650: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00226660: 3a20 2755 6e69 6e73 7461 6c6c 2061 7661 : 'Uninstall ava │ │ │ -00226670: 6869 2053 6572 7665 7220 5061 636b 6167 hi Server Packag │ │ │ -00226680: 653a 2045 6e73 7572 6520 6176 6168 692d e: Ensure avahi- │ │ │ -00226690: 6461 656d 6f6e 2069 7320 7265 6d6f 7665 daemon is remove │ │ │ -002266a0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -002266b0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -002266c0: 2020 6e61 6d65 3a20 6176 6168 692d 6461 name: avahi-da │ │ │ -002266d0: 656d 6f6e 0a20 2020 2073 7461 7465 3a20 emon. state: │ │ │ -002266e0: 6162 7365 6e74 0a20 2074 6167 733a 0a20 absent. tags:. │ │ │ -002266f0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -00226700: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ -00226710: 3830 302d 3533 2d43 4d2d 3728 6129 0a20 800-53-CM-7(a). │ │ │ -00226720: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -00226730: 4d2d 3728 6229 0a20 202d 2064 6973 6162 M-7(b). - disab │ │ │ -00226740: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -00226750: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00226760: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -00226770: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -00226780: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -00226790: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -002267a0: 6163 6b61 6765 5f61 7661 6869 5f72 656d ackage_avahi_rem │ │ │ -002267b0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072 oved.
Complexity: │ │ │ +00226340: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00226360: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00226380: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002263b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002263c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +002263f0: 6e73 7461 6c6c 2061 7661 6869 2053 6572  nstall avahi Ser
│ │ │ +00226400: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +00226410: 7572 6520 6176 6168 692d 6461 656d 6f6e  ure avahi-daemon
│ │ │ +00226420: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00226430: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00226440: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00226450: 3a20 6176 6168 692d 6461 656d 6f6e 0a20  : avahi-daemon. 
│ │ │ +00226460: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00226470: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00226480: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00226490: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002264a0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +002264b0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +002264c0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002264d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002264e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002264f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00226500: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00226510: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00226520: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00226530: 5f61 7661 6869 5f72 656d 6f76 6564 0a3c  _avahi_removed.<
│ │ │ +00226540: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +002265f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00226600: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +002266a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002266b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00226700: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00226740: 6e63 6c75 6465 2072 656d 6f76 655f 6176  nclude remove_av
│ │ │ +00226750: 6168 692d 6461 656d 6f6e 0a0a 636c 6173  ahi-daemon..clas
│ │ │ +00226760: 7320 7265 6d6f 7665 5f61 7661 6869 2d64  s remove_avahi-d
│ │ │ +00226770: 6165 6d6f 6e20 7b0a 2020 7061 636b 6167  aemon {.  packag
│ │ │ +00226780: 6520 7b20 2761 7661 6869 2d64 6165 6d6f  e { 'avahi-daemo
│ │ │ +00226790: 6e27 3a0a 2020 2020 656e 7375 7265 203d  n':.    ensure =
│ │ │ +002267a0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002267b0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remed
│ │ │ -00227c70: 6961 7469 6f6e 204f 5342 7569 6c64 2042  iation OSBuild B
│ │ │ -00227c80: 6c75 6570 7269 6e74 2073 6e69 7070 6574  lueprint snippet
│ │ │ -00227c90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
.[customi
│ │ │ -00227ce0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00227cf0: 5d0a 6d61 736b 6564 203d 205b 2261 7661  ].masked = ["ava
│ │ │ -00227d00: 6869 2d64 6165 6d6f 6e22 5d0a 3c2f 636f  hi-daemon"].
< │ │ │ -00227d20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00227d30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00227d40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00227d50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00227d60: 6438 3031 2220 7461 6269 6e64 6578 3d22 d801" tabindex=" │ │ │ -00227d70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00227d80: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00227d90: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00227da0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00227db0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00227dc0: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ -00227dd0: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
C │ │ │ +00226690: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002266c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002266d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00226710: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00226720: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00227e70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -00227f20: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -00227f30: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -00227f40: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -00227f50: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -00227f60: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -00227f70: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -00227f80: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -00227f90: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -00227fa0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -00227fb0: 2061 7661 6869 2d64 6165 6d6f 6e2e 7365   avahi-daemon.se
│ │ │ -00227fc0: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -00227fd0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00227fe0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -00227ff0: 2020 2020 2020 2d20 6e61 6d65 3a20 6176        - name: av
│ │ │ -00228000: 6168 692d 6461 656d 6f6e 2e73 6f63 6b65  ahi-daemon.socke
│ │ │ -00228010: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ -00228020: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -00228030: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ -00228050: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00228060: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00228070: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00228080: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00228090: 6438 3032 2220 7461 6269 6e64 6578 3d22 d802" tabindex=" │ │ │ -002280a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -002280b0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -002280c0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -002280d0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -002280e0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -002280f0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00228100: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00227e60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00227e90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -00227ea0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -00227ee0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00227ef0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -00228190: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002281a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002281c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002281e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002281f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00228230: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00228240: 6520 6469 7361 626c 655f 6176 6168 692d e disable_avahi- │ │ │ -00228250: 6461 656d 6f6e 0a0a 636c 6173 7320 6469 daemon..class di │ │ │ -00228260: 7361 626c 655f 6176 6168 692d 6461 656d sable_avahi-daem │ │ │ -00228270: 6f6e 207b 0a20 2073 6572 7669 6365 207b on {. service { │ │ │ -00228280: 2761 7661 6869 2d64 6165 6d6f 6e27 3a0a 'avahi-daemon':. │ │ │ -00228290: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ -002282a0: 2066 616c 7365 2c0a 2020 2020 656e 7375 false,. ensu │ │ │ -002282b0: 7265 203d 2667 743b 2027 7374 6f70 7065 re => 'stoppe │ │ │ -002282c0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedi │ │ │ -00228380: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00228390: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00228440: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00228460: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00228490: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00228420: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00228430: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00228450: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00228470: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00228480: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002284c0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002284d0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -002284e0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -002284f0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00228500: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00228510: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00228520: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00228530: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00228540: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -00228550: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -00228560: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -00228570: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -00228580: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ -00228590: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -002285a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -002285b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -002285c0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -002285d0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -002285e0: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -002285f0: 6963 655f 6176 6168 692d 6461 656d 6f6e ice_avahi-daemon │ │ │ -00228600: 5f64 6973 6162 6c65 640a 0a2d 206e 616d _disabled..- nam │ │ │ -00228610: 653a 2044 6973 6162 6c65 2041 7661 6869 e: Disable Avahi │ │ │ -00228620: 2053 6572 7665 7220 536f 6674 7761 7265 Server Software │ │ │ -00228630: 202d 2044 6973 6162 6c65 2073 6572 7669 - Disable servi │ │ │ -00228640: 6365 2061 7661 6869 2d64 6165 6d6f 6e0a ce avahi-daemon. │ │ │ -00228650: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ -00228660: 6d65 3a20 4469 7361 626c 6520 4176 6168 me: Disable Avah │ │ │ -00228670: 6920 5365 7276 6572 2053 6f66 7477 6172 i Server Softwar │ │ │ -00228680: 6520 2d20 436f 6c6c 6563 7420 7379 7374 e - Collect syst │ │ │ -00228690: 656d 6420 5365 7276 6963 6573 2050 7265 emd Services Pre │ │ │ -002286a0: 7365 6e74 2069 6e20 7468 650a 2020 2020 sent in the. │ │ │ -002286b0: 2020 5379 7374 656d 0a20 2020 2061 6e73 System. ans │ │ │ -002286c0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -002286d0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -002286e0: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -002286f0: 6573 202d 2d74 7970 6520 7365 7276 6963 es --type servic │ │ │ -00228700: 650a 2020 2020 7265 6769 7374 6572 3a20 e. register: │ │ │ -00228710: 7365 7276 6963 655f 6578 6973 7473 0a20 service_exists. │ │ │ -00228720: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -00228730: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -00228740: 645f 7768 656e 3a20 7365 7276 6963 655f d_when: service_ │ │ │ -00228750: 6578 6973 7473 2e72 6320 6e6f 7420 696e exists.rc not in │ │ │ -00228760: 205b 302c 2031 5d0a 2020 2020 6368 6563 [0, 1]. chec │ │ │ -00228770: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20 k_mode: false.. │ │ │ -00228780: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ -00228790: 2041 7661 6869 2053 6572 7665 7220 536f Avahi Server So │ │ │ -002287a0: 6674 7761 7265 202d 2045 6e73 7572 6520 ftware - Ensure │ │ │ -002287b0: 6176 6168 692d 6461 656d 6f6e 2e73 6572 avahi-daemon.ser │ │ │ -002287c0: 7669 6365 2069 7320 4d61 736b 6564 0a20 vice is Masked. │ │ │ -002287d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -002287e0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -002287f0: 2020 6e61 6d65 3a20 6176 6168 692d 6461 name: avahi-da │ │ │ -00228800: 656d 6f6e 2e73 6572 7669 6365 0a20 2020 emon.service. │ │ │ -00228810: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ -00228820: 640a 2020 2020 2020 656e 6162 6c65 643a d. enabled: │ │ │ -00228830: 2066 616c 7365 0a20 2020 2020 206d 6173 false. mas │ │ │ -00228840: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ -00228850: 656e 3a20 7365 7276 6963 655f 6578 6973 en: service_exis │ │ │ -00228860: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ -00228870: 6973 2073 6561 7263 6828 2261 7661 6869 is search("avahi │ │ │ -00228880: 2d64 6165 6d6f 6e2e 7365 7276 6963 6522 -daemon.service" │ │ │ -00228890: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -002288a0: 290a 0a20 202d 206e 616d 653a 2055 6e69 ).. - name: Uni │ │ │ -002288b0: 7420 536f 636b 6574 2045 7869 7374 7320 t Socket Exists │ │ │ -002288c0: 2d20 6176 6168 692d 6461 656d 6f6e 2e73 - avahi-daemon.s │ │ │ -002288d0: 6f63 6b65 740a 2020 2020 616e 7369 626c ocket. ansibl │ │ │ -002288e0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ -002288f0: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ -00228900: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ -00228910: 6176 6168 692d 6461 656d 6f6e 2e73 6f63 avahi-daemon.soc │ │ │ -00228920: 6b65 740a 2020 2020 7265 6769 7374 6572 ket. register │ │ │ -00228930: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ -00228940: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -00228950: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -00228960: 2066 6169 6c65 645f 7768 656e 3a20 736f failed_when: so │ │ │ -00228970: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -00228980: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ -00228990: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ -002289a0: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ -002289b0: 653a 2044 6973 6162 6c65 2041 7661 6869 e: Disable Avahi │ │ │ -002289c0: 2053 6572 7665 7220 536f 6674 7761 7265 Server Software │ │ │ -002289d0: 202d 2044 6973 6162 6c65 2053 6f63 6b65 - Disable Socke │ │ │ -002289e0: 7420 6176 6168 692d 6461 656d 6f6e 0a20 t avahi-daemon. │ │ │ -002289f0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00228a00: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -00228a10: 2020 6e61 6d65 3a20 6176 6168 692d 6461 name: avahi-da │ │ │ -00228a20: 656d 6f6e 2e73 6f63 6b65 740a 2020 2020 emon.socket. │ │ │ -00228a30: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -00228a40: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -00228a50: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -00228a60: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -00228a70: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -00228a80: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -00228a90: 6573 2069 7320 7365 6172 6368 2822 6176 es is search("av │ │ │ -00228aa0: 6168 692d 6461 656d 6f6e 2e73 6f63 6b65 ahi-daemon.socke │ │ │ -00228ab0: 7422 2c20 6d75 6c74 696c 696e 653d 5472 t", multiline=Tr │ │ │ -00228ac0: 7565 290a 2020 7461 6773 3a0a 2020 2d20 ue). tags:. - │ │ │ -00228ad0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -00228ae0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00228af0: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ -00228b00: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -00228b10: 2862 290a 2020 2d20 5043 492d 4453 5376 (b). - PCI-DSSv │ │ │ -00228b20: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -00228b30: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ -00228b40: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -00228b50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -00228b60: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -00228b70: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -00228b80: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -00228b90: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -00228ba0: 2d20 7365 7276 6963 655f 6176 6168 692d - service_avahi- │ │ │ -00228bb0: 6461 656d 6f6e 5f64 6973 6162 6c65 640a daemon_disabled. │ │ │ -00228bc0: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ -00228bd0: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ -00228be0: 3a20 2820 2261 7661 6869 2d64 6165 6d6f : ( "avahi-daemo │ │ │ -00228bf0: 6e22 2069 6e20 616e 7369 626c 655f 6661 n" in ansible_fa │ │ │ -00228c00: 6374 732e 7061 636b 6167 6573 2061 6e64 cts.packages and │ │ │ -00228c10: 2022 6c69 6e75 782d 6261 7365 2220 696e "linux-base" in │ │ │ -00228c20: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00228c30: 6163 6b61 6765 730a 2020 2020 290a 3c2f ackages. ).
Comp │ │ │ +00227d10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00227d20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00227d40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00227d60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00227d70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00227db0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00227dc0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00227dd0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00227de0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00227df0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00227e00: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00227e10: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00227e20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00227e30: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00227e40: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00227e50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00227e60: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00227e70: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +00227e80: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00227e90: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00227ea0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00227eb0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00227ec0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00227ed0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00227ee0: 7669 6365 5f61 7661 6869 2d64 6165 6d6f  vice_avahi-daemo
│ │ │ +00227ef0: 6e5f 6469 7361 626c 6564 0a0a 2d20 6e61  n_disabled..- na
│ │ │ +00227f00: 6d65 3a20 4469 7361 626c 6520 4176 6168  me: Disable Avah
│ │ │ +00227f10: 6920 5365 7276 6572 2053 6f66 7477 6172  i Server Softwar
│ │ │ +00227f20: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +00227f30: 6963 6520 6176 6168 692d 6461 656d 6f6e  ice avahi-daemon
│ │ │ +00227f40: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +00227f50: 616d 653a 2044 6973 6162 6c65 2041 7661  ame: Disable Ava
│ │ │ +00227f60: 6869 2053 6572 7665 7220 536f 6674 7761  hi Server Softwa
│ │ │ +00227f70: 7265 202d 2043 6f6c 6c65 6374 2073 7973  re - Collect sys
│ │ │ +00227f80: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00227f90: 6573 656e 7420 696e 2074 6865 0a20 2020  esent in the.   
│ │ │ +00227fa0: 2020 2053 7973 7465 6d0a 2020 2020 616e     System.    an
│ │ │ +00227fb0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00227fc0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00227fd0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00227fe0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00227ff0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00228000: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00228010: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00228020: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00228030: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +00228040: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00228050: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00228060: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00228070: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00228080: 6520 4176 6168 6920 5365 7276 6572 2053  e Avahi Server S
│ │ │ +00228090: 6f66 7477 6172 6520 2d20 456e 7375 7265  oftware - Ensure
│ │ │ +002280a0: 2061 7661 6869 2d64 6165 6d6f 6e2e 7365   avahi-daemon.se
│ │ │ +002280b0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +002280c0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002280d0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002280e0: 2020 206e 616d 653a 2061 7661 6869 2d64     name: avahi-d
│ │ │ +002280f0: 6165 6d6f 6e2e 7365 7276 6963 650a 2020  aemon.service.  
│ │ │ +00228100: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00228110: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +00228120: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +00228130: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00228140: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00228150: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00228160: 2069 7320 7365 6172 6368 2822 6176 6168   is search("avah
│ │ │ +00228170: 692d 6461 656d 6f6e 2e73 6572 7669 6365  i-daemon.service
│ │ │ +00228180: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00228190: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +002281a0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +002281b0: 202d 2061 7661 6869 2d64 6165 6d6f 6e2e   - avahi-daemon.
│ │ │ +002281c0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +002281d0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +002281e0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +002281f0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00228200: 2061 7661 6869 2d64 6165 6d6f 6e2e 736f   avahi-daemon.so
│ │ │ +00228210: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +00228220: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +00228230: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +00228240: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +00228250: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +00228260: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00228270: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +00228280: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +00228290: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002282a0: 6d65 3a20 4469 7361 626c 6520 4176 6168  me: Disable Avah
│ │ │ +002282b0: 6920 5365 7276 6572 2053 6f66 7477 6172  i Server Softwar
│ │ │ +002282c0: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +002282d0: 6574 2061 7661 6869 2d64 6165 6d6f 6e0a  et avahi-daemon.
│ │ │ +002282e0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002282f0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00228300: 2020 206e 616d 653a 2061 7661 6869 2d64     name: avahi-d
│ │ │ +00228310: 6165 6d6f 6e2e 736f 636b 6574 0a20 2020  aemon.socket.   
│ │ │ +00228320: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +00228330: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00228340: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +00228350: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +00228360: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +00228370: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +00228380: 6e65 7320 6973 2073 6561 7263 6828 2261  nes is search("a
│ │ │ +00228390: 7661 6869 2d64 6165 6d6f 6e2e 736f 636b  vahi-daemon.sock
│ │ │ +002283a0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +002283b0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +002283c0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002283d0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +002283e0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +002283f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00228400: 3728 6229 0a20 202d 2050 4349 2d44 5353  7(b).  - PCI-DSS
│ │ │ +00228410: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +00228420: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +00228430: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00228440: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00228450: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00228460: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00228470: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00228480: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00228490: 202d 2073 6572 7669 6365 5f61 7661 6869   - service_avahi
│ │ │ +002284a0: 2d64 6165 6d6f 6e5f 6469 7361 626c 6564  -daemon_disabled
│ │ │ +002284b0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +002284c0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +002284d0: 6e3a 2028 2022 6176 6168 692d 6461 656d  n: ( "avahi-daem
│ │ │ +002284e0: 6f6e 2220 696e 2061 6e73 6962 6c65 5f66  on" in ansible_f
│ │ │ +002284f0: 6163 7473 2e70 6163 6b61 6765 7320 616e  acts.packages an
│ │ │ +00228500: 6420 226c 696e 7578 2d62 6173 6522 2069  d "linux-base" i
│ │ │ +00228510: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00228520: 7061 636b 6167 6573 0a20 2020 2029 0a3c  packages.    ).<
│ │ │ +00228530: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +002285e0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +002285f0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +00228600: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00228680: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002286a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ +002286d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +002286b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002286c0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ +002286e0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ +00228700: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00228710: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ +00228740: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ +00228750: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ +00228760: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ +00228770: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ +00228780: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ +00228790: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ +002287a0: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ +002287b0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ +002287c0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ +002287d0: 6d65 3a20 6176 6168 692d 6461 656d 6f6e  me: avahi-daemon
│ │ │ +002287e0: 2e73 6572 7669 6365 0a20 2020 2020 2020  .service.       
│ │ │ +002287f0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00228800: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ +00228810: 7565 0a20 2020 2020 202d 206e 616d 653a  ue.      - name:
│ │ │ +00228820: 2061 7661 6869 2d64 6165 6d6f 6e2e 736f   avahi-daemon.so
│ │ │ +00228830: 636b 6574 0a20 2020 2020 2020 2065 6e61  cket.        ena
│ │ │ +00228840: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00228850: 2020 2020 6d61 736b 3a20 7472 7565 0a3c      mask: true.<
│ │ │ +00228860: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00228910: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00228920: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +002289c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002289d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00228a20: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00228a60: 6c75 6465 2064 6973 6162 6c65 5f61 7661  lude disable_ava
│ │ │ +00228a70: 6869 2d64 6165 6d6f 6e0a 0a63 6c61 7373  hi-daemon..class
│ │ │ +00228a80: 2064 6973 6162 6c65 5f61 7661 6869 2d64   disable_avahi-d
│ │ │ +00228a90: 6165 6d6f 6e20 7b0a 2020 7365 7276 6963  aemon {.  servic
│ │ │ +00228aa0: 6520 7b27 6176 6168 692d 6461 656d 6f6e  e {'avahi-daemon
│ │ │ +00228ab0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +00228ac0: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +00228ad0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +00228ae0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +00228b00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00228ba0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00228bb0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00228bc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +00228c10: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +00228c20: 6573 5d0a 6d61 736b 6564 203d 205b 2261 es].masked = ["a │ │ │ +00228c30: 7661 6869 2d64 6165 6d6f 6e22 5d0a 3c2f vahi-daemon"].Remed │ │ │ -002393c0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002393d0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002393e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

.[[packag
│ │ │ -00239430: 6573 5d5d 0a6e 616d 6520 3d20 2263 726f  es]].name = "cro
│ │ │ -00239440: 6e22 0a76 6572 7369 6f6e 203d 2022 2a22  n".version = "*"
│ │ │ -00239450: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00239510: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00239520: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +002289b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002289e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002289f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00228a30: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00228a40: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -002395f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00239600: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00239650: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f63  nclude install_c
│ │ │ -00239660: 726f 6e0a 0a63 6c61 7373 2069 6e73 7461  ron..class insta
│ │ │ -00239670: 6c6c 5f63 726f 6e20 7b0a 2020 7061 636b  ll_cron {.  pack
│ │ │ -00239680: 6167 6520 7b20 2763 726f 6e27 3a0a 2020  age { 'cron':.  
│ │ │ -00239690: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002396a0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -002396b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002396c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00239770: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00239780: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ -002395d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002395e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00239620: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00239630: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00239800: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00239820: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00239870: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -002398c0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002398d0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -002398e0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -002398f0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00239900: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00239910: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ -00239920: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -00239930: 5353 7634 2d32 2e32 2e36 0a20 202d 2065  SSv4-2.2.6.  - e
│ │ │ -00239940: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00239950: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00239960: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00239970: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00239980: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00239990: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002399a0: 2d20 7061 636b 6167 655f 6372 6f6e 5f69  - package_cron_i
│ │ │ -002399b0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -002399c0: 3a20 456e 7375 7265 2063 726f 6e20 6973  : Ensure cron is
│ │ │ -002399d0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -002399e0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002399f0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00239a00: 6372 6f6e 0a20 2020 2073 7461 7465 3a20  cron.    state: 
│ │ │ -00239a10: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -00239a20: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00239a30: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00239a40: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00239a50: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00239a60: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00239a70: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00239a80: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -00239a90: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00239aa0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00239ab0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00239ac0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00239ad0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00239ae0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00239af0: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ -00239b00: 6f6e 5f69 6e73 7461 6c6c 6564 0a3c 2f63  on_installed.
low
Disr │ │ │ -00239830: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00239840: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00239880: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00239890: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +00239460: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00239470: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00239490: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002394b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002394c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00239500: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00239510: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00239520: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00239530: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00239540: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00239550: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00239560: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00239570: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +00239580: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +00239590: 322e 360a 2020 2d20 656e 6162 6c65 5f73 2.6. - enable_s │ │ │ +002395a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +002395b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +002395c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +002395d0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +002395e0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +002395f0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +00239600: 6765 5f63 726f 6e5f 696e 7374 616c 6c65 ge_cron_installe │ │ │ +00239610: 640a 0a2d 206e 616d 653a 2045 6e73 7572 d..- name: Ensur │ │ │ +00239620: 6520 6372 6f6e 2069 7320 696e 7374 616c e cron is instal │ │ │ +00239630: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +00239640: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +00239650: 2020 206e 616d 653a 2063 726f 6e0a 2020 name: cron. │ │ │ +00239660: 2020 7374 6174 653a 2070 7265 7365 6e74 state: present │ │ │ +00239670: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ +00239680: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ +00239690: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +002396a0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49 '. tags:. - NI │ │ │ +002396b0: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +002396c0: 290a 2020 2d20 5043 492d 4453 5376 342d ). - PCI-DSSv4- │ │ │ +002396d0: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ +002396e0: 342d 322e 322e 360a 2020 2d20 656e 6162 4-2.2.6. - enab │ │ │ +002396f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +00239700: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +00239710: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +00239720: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +00239730: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +00239740: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +00239750: 6163 6b61 6765 5f63 726f 6e5f 696e 7374 ackage_cron_inst │ │ │ +00239760: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediatio │ │ │ +00239820: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00239830: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +002398c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002398e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002398f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00239900: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00239910: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00239930: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +00239970: 616c 6c5f 6372 6f6e 0a0a 636c 6173 7320  all_cron..class 
│ │ │ +00239980: 696e 7374 616c 6c5f 6372 6f6e 207b 0a20  install_cron {. 
│ │ │ +00239990: 2070 6163 6b61 6765 207b 2027 6372 6f6e   package { 'cron
│ │ │ +002399a0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002399b0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +002399c0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +00239a80: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00239a90: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00239aa0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +00239af0: 0a6e 616d 6520 3d20 2263 726f 6e22 0a76  .name = "cron".v
│ │ │ +00239b00: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 00239b20: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remed │ │ │ -0023ad30: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0023ad40: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0023ad50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -0023ada0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -0023adb0: 5d0a 656e 6162 6c65 6420 3d20 5b22 6372  ].enabled = ["cr
│ │ │ -0023adc0: 6f6e 225d 0a3c 2f63 6f64 653e 3c2f 7072  on"].
Remediation │ │ │ -0023ae80: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0023ae90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0023af20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0023af40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0023af60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0023af90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0023afa0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -0023afb0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ -0023afd0: 655f 6372 6f6e 0a0a 636c 6173 7320 656e  e_cron..class en
│ │ │ -0023afe0: 6162 6c65 5f63 726f 6e20 7b0a 2020 7365  able_cron {.  se
│ │ │ -0023aff0: 7276 6963 6520 7b27 6372 6f6e 273a 0a20  rvice {'cron':. 
│ │ │ -0023b000: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0023b010: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -0023b020: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -0023b030: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0023b040: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0023b0f0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0023b100: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0023b110: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0023b120: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0023b130: 7365 2220 6964 3d22 6964 3834 3922 3e3c se" id="id849">< │ │ │ -0023b140: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0023b150: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0023b160: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0023b170: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0023b180: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0023b190: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0023b1a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0023b1e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0023b1f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0023b210: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0023b220: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -0023b240: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0023b250: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0023b260: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0023b270: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0023b280: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0023b290: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -0023b2a0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0023b2b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0023b2c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0023b2d0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0023b2e0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0023b2f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0023b300: 2d20 7365 7276 6963 655f 6372 6f6e 5f65  - service_cron_e
│ │ │ -0023b310: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -0023b320: 456e 6162 6c65 2063 726f 6e20 5365 7276  Enable cron Serv
│ │ │ -0023b330: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ -0023b340: 7669 6365 2063 726f 6e0a 2020 626c 6f63  vice cron.  bloc
│ │ │ -0023b350: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -0023b360: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0023b370: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -0023b380: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0023b390: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -0023b3a0: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -0023b3b0: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -0023b3c0: 6372 6f6e 2053 6572 7669 6365 202d 2045  cron Service - E
│ │ │ -0023b3d0: 6e61 626c 6520 5365 7276 6963 6520 6372  nable Service cr
│ │ │ -0023b3e0: 6f6e 0a20 2020 2061 6e73 6962 6c65 2e62  on.    ansible.b
│ │ │ -0023b3f0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0023b400: 2020 2020 2020 6e61 6d65 3a20 6372 6f6e        name: cron
│ │ │ -0023b410: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0023b420: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -0023b430: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -0023b440: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -0023b450: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -0023b460: 6372 6f6e 2220 696e 2061 6e73 6962 6c65  cron" in ansible
│ │ │ -0023b470: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -0023b480: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0023b490: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0023b4a0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0023b4b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0023b4c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0023b4d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0023b4e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0023b4f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0023b500: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0023b510: 6372 6f6e 5f65 6e61 626c 6564 0a20 202d  cron_enabled.  -
│ │ │ -0023b520: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0023b530: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -0023b540: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0023b550: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0023b560: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0023ad30: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +0023ad40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Comp │ │ │ +0023add0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0023ade0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0023ae00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0023ae20: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0023ae30: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0023ae70: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0023ae80: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0023ae90: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0023aea0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0023aeb0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0023aec0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0023aed0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0023aee0: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ +0023aef0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +0023af00: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +0023af10: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +0023af20: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +0023af30: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0023af40: 0a20 202d 2073 6572 7669 6365 5f63 726f . - service_cro │ │ │ +0023af50: 6e5f 656e 6162 6c65 640a 0a2d 206e 616d n_enabled..- nam │ │ │ +0023af60: 653a 2045 6e61 626c 6520 6372 6f6e 2053 e: Enable cron S │ │ │ +0023af70: 6572 7669 6365 202d 2045 6e61 626c 6520 ervice - Enable │ │ │ +0023af80: 7365 7276 6963 6520 6372 6f6e 0a20 2062 service cron. b │ │ │ +0023af90: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ +0023afa0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0023afb0: 6167 6520 6661 6374 730a 2020 2020 616e age facts. an │ │ │ +0023afc0: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +0023afd0: 636b 6167 655f 6661 6374 733a 0a20 2020 ckage_facts:. │ │ │ +0023afe0: 2020 206d 616e 6167 6572 3a20 6175 746f manager: auto │ │ │ +0023aff0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162 .. - name: Enab │ │ │ +0023b000: 6c65 2063 726f 6e20 5365 7276 6963 6520 le cron Service │ │ │ +0023b010: 2d20 456e 6162 6c65 2053 6572 7669 6365 - Enable Service │ │ │ +0023b020: 2063 726f 6e0a 2020 2020 616e 7369 626c cron. ansibl │ │ │ +0023b030: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +0023b040: 643a 0a20 2020 2020 206e 616d 653a 2063 d:. name: c │ │ │ +0023b050: 726f 6e0a 2020 2020 2020 656e 6162 6c65 ron. enable │ │ │ +0023b060: 643a 2074 7275 650a 2020 2020 2020 7374 d: true. st │ │ │ +0023b070: 6174 653a 2073 7461 7274 6564 0a20 2020 ate: started. │ │ │ +0023b080: 2020 206d 6173 6b65 643a 2066 616c 7365 masked: false │ │ │ +0023b090: 0a20 2020 2077 6865 6e3a 0a20 2020 202d . when:. - │ │ │ +0023b0a0: 2027 2263 726f 6e22 2069 6e20 616e 7369 '"cron" in ansi │ │ │ +0023b0b0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +0023b0c0: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +0023b0d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +0023b0e0: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ +0023b0f0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0023b100: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0023b110: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0023b120: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +0023b130: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0023b140: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +0023b150: 6365 5f63 726f 6e5f 656e 6162 6c65 640a ce_cron_enabled. │ │ │ +0023b160: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +0023b170: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +0023b180: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ +0023b190: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +0023b1a0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
Remed │ │ │ +0023b260: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0023b270: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0023b320: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0023b340: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0023b370: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0023b300: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0023b310: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0023b330: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0023b350: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0023b360: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0023b3b0: 2065 6e61 626c 655f 6372 6f6e 0a0a 636c enable_cron..cl │ │ │ +0023b3c0: 6173 7320 656e 6162 6c65 5f63 726f 6e20 ass enable_cron │ │ │ +0023b3d0: 7b0a 2020 7365 7276 6963 6520 7b27 6372 {. service {'cr │ │ │ +0023b3e0: 6f6e 273a 0a20 2020 2065 6e61 626c 6520 on':. enable │ │ │ +0023b3f0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020 => true,. │ │ │ +0023b400: 656e 7375 7265 203d 2667 743b 2027 7275 ensure => 'ru │ │ │ +0023b410: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f nning',. }.}.

Re │ │ │ +0023b4d0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0023b4e0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0023b4f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0023b500: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0023b510: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0023b520: 7365 2220 6964 3d22 6964 3834 3922 3e3c se" id="id849">< │ │ │ +0023b530: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +0023b540: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +0023b550: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +0023b560: 2263 726f 6e22 5d0a 3c2f 636f 6465 3e3c "cron"].< │ │ │ 0023b570: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remed │ │ │ -002577d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002577e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00257890: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002578b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002578e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00257870: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00257880: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002578a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002578c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002578d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00257910: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00257920: 6465 2072 656d 6f76 655f 6e69 730a 0a63 de remove_nis..c │ │ │ -00257930: 6c61 7373 2072 656d 6f76 655f 6e69 7320 lass remove_nis │ │ │ -00257940: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ -00257950: 6973 273a 0a20 2020 2065 6e73 7572 6520 is':. ensure │ │ │ -00257960: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ -00257970: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -00257a30: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00257a40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00257ac0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00257ad0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00257af0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00257b00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00257b20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00257b40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00257b70: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00257b80: 6e69 6e73 7461 6c6c 2074 6865 206e 6973  ninstall the nis
│ │ │ -00257b90: 2070 6163 6b61 6765 3a20 456e 7375 7265   package: Ensure
│ │ │ -00257ba0: 206e 6973 2069 7320 7265 6d6f 7665 6427   nis is removed'
│ │ │ -00257bb0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00257bc0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00257bd0: 6e61 6d65 3a20 6e69 730a 2020 2020 7374  name: nis.    st
│ │ │ -00257be0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00257bf0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00257c00: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00257c10: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00257c20: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00257c30: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -00257c40: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00257c50: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00257c60: 5f6e 6973 5f72 656d 6f76 6564 0a3c 2f63  _nis_removed.
Comp │ │ │ +00257870: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00257880: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002578a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002578c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002578d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00257910: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00257920: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +00257930: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ +00257940: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ +00257950: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00257960: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00257970: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ +00257980: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00257990: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +002579a0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002579b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002579c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002579d0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +002579e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002579f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00257a00: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ +00257a10: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00257a20: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00257ad0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00257ae0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00257bb0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00257bc0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00257c20: 5f6e 6973 0a0a 636c 6173 7320 7265 6d6f  _nis..class remo
│ │ │ +00257c30: 7665 5f6e 6973 207b 0a20 2070 6163 6b61  ve_nis {.  packa
│ │ │ +00257c40: 6765 207b 2027 6e69 7327 3a0a 2020 2020  ge { 'nis':.    
│ │ │ +00257c50: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00257c60: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00257c80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation Pup │ │ │ -00259a20: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00259a30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +00257b90: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00257ba0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00257be0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00257bf0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00259b00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00259b10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00259b60: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00259b70: 6973 632d 6468 6370 2d73 6572 7665 720a  isc-dhcp-server.
│ │ │ -00259b80: 0a63 6c61 7373 2072 656d 6f76 655f 6973  .class remove_is
│ │ │ -00259b90: 632d 6468 6370 2d73 6572 7665 7220 7b0a  c-dhcp-server {.
│ │ │ -00259ba0: 2020 7061 636b 6167 6520 7b20 2769 7363    package { 'isc
│ │ │ -00259bb0: 2d64 6863 702d 7365 7276 6572 273a 0a20  -dhcp-server':. 
│ │ │ -00259bc0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00259bd0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00259be0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00259c90: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00259ca0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00259cb0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -00259ae0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00259af0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00259b30: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00259b40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00259d80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00259d90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00259de0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00259df0: 6c6c 2044 4843 5020 5365 7276 6572 2050  ll DHCP Server P
│ │ │ -00259e00: 6163 6b61 6765 3a20 456e 7375 7265 2069  ackage: Ensure i
│ │ │ -00259e10: 7363 2d64 6863 702d 7365 7276 6572 2069  sc-dhcp-server i
│ │ │ -00259e20: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00259e30: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00259e40: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00259e50: 6973 632d 6468 6370 2d73 6572 7665 720a  isc-dhcp-server.
│ │ │ -00259e60: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00259e70: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -00259e80: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00259e90: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00259ea0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00259eb0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00259ec0: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -00259ed0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00259ee0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00259ef0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00259f00: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00259f10: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00259f20: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00259f30: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00259f40: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00259f50: 7061 636b 6167 655f 6468 6370 5f72 656d  package_dhcp_rem
│ │ │ -00259f60: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation Ans
│ │ │ +00259a20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00259a30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:low
Disrup │ │ │ -00259d60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00259d70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00259db0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00259dc0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +00259b00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00259b10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00259b70: 616c 6c20 4448 4350 2053 6572 7665 7220  all DHCP Server 
│ │ │ +00259b80: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00259b90: 6973 632d 6468 6370 2d73 6572 7665 7220  isc-dhcp-server 
│ │ │ +00259ba0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00259bb0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00259bc0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00259bd0: 2069 7363 2d64 6863 702d 7365 7276 6572   isc-dhcp-server
│ │ │ +00259be0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00259bf0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +00259c00: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00259c10: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00259c20: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00259c30: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00259c40: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +00259c50: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00259c60: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00259c70: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00259c80: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00259c90: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00259ca0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00259cb0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00259cc0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00259cd0: 2070 6163 6b61 6765 5f64 6863 705f 7265   package_dhcp_re
│ │ │ +00259ce0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00259da0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00259db0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00259e70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00259e80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ +00259ae0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00259af0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00259b30: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00259b40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +00259e40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00259e60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00259e90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00259eb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00259ee0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00259ef0: 6d6f 7665 5f69 7363 2d64 6863 702d 7365  move_isc-dhcp-se
│ │ │ +00259f00: 7276 6572 0a0a 636c 6173 7320 7265 6d6f  rver..class remo
│ │ │ +00259f10: 7665 5f69 7363 2d64 6863 702d 7365 7276  ve_isc-dhcp-serv
│ │ │ +00259f20: 6572 207b 0a20 2070 6163 6b61 6765 207b  er {.  package {
│ │ │ +00259f30: 2027 6973 632d 6468 6370 2d73 6572 7665   'isc-dhcp-serve
│ │ │ +00259f40: 7227 3a0a 2020 2020 656e 7375 7265 203d  r':.    ensure =
│ │ │ +00259f50: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +00259f60: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation O │ │ │ -0025ae10: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0025ae20: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0025ae30: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -0025ae70: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -0025ae80: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -0025ae90: 203d 205b 2264 6863 7064 3622 5d0a 3c2f   = ["dhcpd6"].
Re │ │ │ -0025af50: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -0025af60: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -0025af70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -0025b040: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0025b060: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0025b090: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -0025b020: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ -0025b030: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ -0025b070: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0025b080: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ -0025b0b0: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ -0025b0c0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ -0025b0d0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ -0025b0e0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ -0025b0f0: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ -0025b100: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ -0025b110: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ -0025b120: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ -0025b130: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ -0025b140: 653a 2064 6863 7064 362e 7365 7276 6963  e: dhcpd6.servic
│ │ │ -0025b150: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -0025b160: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -0025b170: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -0025b180: 2020 2d20 6e61 6d65 3a20 6468 6370 6436    - name: dhcpd6
│ │ │ -0025b190: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ -0025b1a0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0025b1b0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ -0025b1c0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ -0025b1d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -0025b280: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0025b290: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0025b360: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0025b370: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0025b3c0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -0025b3d0: 6468 6370 6436 0a0a 636c 6173 7320 6469  dhcpd6..class di
│ │ │ -0025b3e0: 7361 626c 655f 6468 6370 6436 207b 0a20  sable_dhcpd6 {. 
│ │ │ -0025b3f0: 2073 6572 7669 6365 207b 2764 6863 7064   service {'dhcpd
│ │ │ -0025b400: 3627 3a0a 2020 2020 656e 6162 6c65 203d  6':.    enable =
│ │ │ -0025b410: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -0025b420: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -0025b430: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -0025b4f0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0025b500: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disru │ │ │ -0025b340: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0025b350: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0025b390: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0025b3a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0025b5a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0025b5b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0025b600: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0025b640: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0025b650: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0025b660: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0025b670: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0025b680: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ -0025b690: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0025b6a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0025b6b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0025b6c0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0025b6d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0025b6e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0025b6f0: 2d20 7365 7276 6963 655f 6468 6370 6436  - service_dhcpd6
│ │ │ -0025b700: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -0025b710: 653a 2044 6973 6162 6c65 2044 4843 5044  e: Disable DHCPD
│ │ │ -0025b720: 3620 5365 7276 6963 6520 2d20 4469 7361  6 Service - Disa
│ │ │ -0025b730: 626c 6520 7365 7276 6963 6520 6468 6370  ble service dhcp
│ │ │ -0025b740: 6436 0a20 2062 6c6f 636b 3a0a 0a20 202d  d6.  block:..  -
│ │ │ -0025b750: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -0025b760: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ -0025b770: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -0025b780: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -0025b790: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -0025b7a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0025b7b0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0025b7c0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0025b7d0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -0025b7e0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -0025b7f0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -0025b800: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -0025b810: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -0025b820: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -0025b830: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -0025b840: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0025b850: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0025b860: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0025b870: 6973 6162 6c65 2044 4843 5044 3620 5365  isable DHCPD6 Se
│ │ │ -0025b880: 7276 6963 6520 2d20 456e 7375 7265 2064  rvice - Ensure d
│ │ │ -0025b890: 6863 7064 362e 7365 7276 6963 6520 6973  hcpd6.service is
│ │ │ -0025b8a0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -0025b8b0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0025b8c0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0025b8d0: 2064 6863 7064 362e 7365 7276 6963 650a   dhcpd6.service.
│ │ │ -0025b8e0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0025b8f0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -0025b900: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0025b910: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0025b920: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -0025b930: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0025b940: 6573 2069 7320 7365 6172 6368 2822 6468  es is search("dh
│ │ │ -0025b950: 6370 6436 2e73 6572 7669 6365 222c 206d  cpd6.service", m
│ │ │ -0025b960: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -0025b970: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -0025b980: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ -0025b990: 6863 7064 362e 736f 636b 6574 0a20 2020  hcpd6.socket.   
│ │ │ -0025b9a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0025b9b0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0025b9c0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0025b9d0: 2d66 696c 6573 2064 6863 7064 362e 736f  -files dhcpd6.so
│ │ │ -0025b9e0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -0025b9f0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -0025ba00: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -0025ba10: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -0025ba20: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -0025ba30: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0025ba40: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0025ba50: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0025ba60: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0025ba70: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ -0025ba80: 4436 2053 6572 7669 6365 202d 2044 6973  D6 Service - Dis
│ │ │ -0025ba90: 6162 6c65 2053 6f63 6b65 7420 6468 6370  able Socket dhcp
│ │ │ -0025baa0: 6436 0a20 2020 2061 6e73 6962 6c65 2e62  d6.    ansible.b
│ │ │ -0025bab0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0025bac0: 2020 2020 2020 6e61 6d65 3a20 6468 6370        name: dhcp
│ │ │ -0025bad0: 6436 2e73 6f63 6b65 740a 2020 2020 2020  d6.socket.      
│ │ │ -0025bae0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0025baf0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -0025bb00: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -0025bb10: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0025bb20: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0025bb30: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -0025bb40: 2069 7320 7365 6172 6368 2822 6468 6370   is search("dhcp
│ │ │ -0025bb50: 6436 2e73 6f63 6b65 7422 2c20 6d75 6c74  d6.socket", mult
│ │ │ -0025bb60: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -0025bb70: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -0025bb80: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0025bb90: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0025bba0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0025bbb0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0025bbc0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0025bbd0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0025bbe0: 6963 655f 6468 6370 6436 5f64 6973 6162  ice_dhcpd6_disab
│ │ │ -0025bbf0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -0025bc00: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -0025bc10: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0025bc20: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0025bc30: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0025ae00: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +0025ae10: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0025ae20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ -0025b590: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0025b5c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0025b5d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0025b610: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0025b620: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +0025aea0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0025aec0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0025af10: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0025af40: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0025aeb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0025aed0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0025af20: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0025af30: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +0025af60: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0025af70: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0025af80: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0025af90: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0025afa0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0025afb0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0025afc0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0025afd0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0025afe0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0025aff0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0025b000: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +0025b010: 6863 7064 365f 6469 7361 626c 6564 0a0a  hcpd6_disabled..
│ │ │ +0025b020: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0025b030: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ +0025b040: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0025b050: 2064 6863 7064 360a 2020 626c 6f63 6b3a   dhcpd6.  block:
│ │ │ +0025b060: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0025b070: 626c 6520 4448 4350 4436 2053 6572 7669  ble DHCPD6 Servi
│ │ │ +0025b080: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0025b090: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0025b0a0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0025b0b0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0025b0c0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0025b0d0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0025b0e0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0025b0f0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0025b100: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0025b110: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0025b120: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0025b130: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0025b140: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0025b150: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0025b160: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0025b170: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0025b180: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +0025b190: 4436 2053 6572 7669 6365 202d 2045 6e73  D6 Service - Ens
│ │ │ +0025b1a0: 7572 6520 6468 6370 6436 2e73 6572 7669  ure dhcpd6.servi
│ │ │ +0025b1b0: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +0025b1c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0025b1d0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0025b1e0: 6e61 6d65 3a20 6468 6370 6436 2e73 6572  name: dhcpd6.ser
│ │ │ +0025b1f0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +0025b200: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +0025b210: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0025b220: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0025b230: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +0025b240: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +0025b250: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +0025b260: 6828 2264 6863 7064 362e 7365 7276 6963  h("dhcpd6.servic
│ │ │ +0025b270: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +0025b280: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +0025b290: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +0025b2a0: 7320 2d20 6468 6370 6436 2e73 6f63 6b65  s - dhcpd6.socke
│ │ │ +0025b2b0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +0025b2c0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0025b2d0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0025b2e0: 2d75 6e69 742d 6669 6c65 7320 6468 6370  -unit-files dhcp
│ │ │ +0025b2f0: 6436 2e73 6f63 6b65 740a 2020 2020 7265  d6.socket.    re
│ │ │ +0025b300: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +0025b310: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +0025b320: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0025b330: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0025b340: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0025b350: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0025b360: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0025b370: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0025b380: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0025b390: 2044 4843 5044 3620 5365 7276 6963 6520   DHCPD6 Service 
│ │ │ +0025b3a0: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +0025b3b0: 2064 6863 7064 360a 2020 2020 616e 7369   dhcpd6.    ansi
│ │ │ +0025b3c0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0025b3d0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0025b3e0: 2064 6863 7064 362e 736f 636b 6574 0a20   dhcpd6.socket. 
│ │ │ +0025b3f0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0025b400: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +0025b410: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +0025b420: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0025b430: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0025b440: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0025b450: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0025b460: 2264 6863 7064 362e 736f 636b 6574 222c  "dhcpd6.socket",
│ │ │ +0025b470: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0025b480: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +0025b490: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0025b4a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0025b4b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0025b4c0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0025b4d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0025b4e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0025b4f0: 2073 6572 7669 6365 5f64 6863 7064 365f   service_dhcpd6_
│ │ │ +0025b500: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +0025b510: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +0025b520: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +0025b530: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0025b540: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0025b550: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +0025b610: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ +0025b620: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0025b6a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0025b6b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0025b6c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ +0025b6f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ +0025b700: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +0025b710: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ +0025b720: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ +0025b760: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +0025b770: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +0025b780: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +0025b790: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +0025b7a0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +0025b7b0: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +0025b7c0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +0025b7d0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +0025b7e0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +0025b7f0: 202d 206e 616d 653a 2064 6863 7064 362e - name: dhcpd6. │ │ │ +0025b800: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +0025b810: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +0025b820: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +0025b830: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +0025b840: 6468 6370 6436 2e73 6f63 6b65 740a 2020 dhcpd6.socket. │ │ │ +0025b850: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ +0025b860: 616c 7365 0a20 2020 2020 2020 206d 6173 alse. mas │ │ │ +0025b870: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c k: true.< │ │ │ +0025b880: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +0025b930: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0025b940: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0025b9c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0025b9d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0025b9e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0025ba20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0025ba30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0025ba50: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0025ba70: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +0025ba80: 7361 626c 655f 6468 6370 6436 0a0a 636c  sable_dhcpd6..cl
│ │ │ +0025ba90: 6173 7320 6469 7361 626c 655f 6468 6370  ass disable_dhcp
│ │ │ +0025baa0: 6436 207b 0a20 2073 6572 7669 6365 207b  d6 {.  service {
│ │ │ +0025bab0: 2764 6863 7064 3627 3a0a 2020 2020 656e  'dhcpd6':.    en
│ │ │ +0025bac0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +0025bad0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +0025bae0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +0025baf0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +0025bbb0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0025bbc0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +0025bc10: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +0025bc20: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +0025bc30: 6420 3d20 5b22 6468 6370 6436 225d 0a3c  d = ["dhcpd6"].<
│ │ │  0025bc40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation OSB │ │ │ -0025d040: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0025d050: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -0025d0a0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -0025d0b0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -0025d0c0: 205b 2264 6863 7064 225d 0a3c 2f63 6f64   ["dhcpd"].
Remed │ │ │ -0025d180: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -0025d190: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
< │ │ │ -0025d230: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0025d240: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0025d270: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0025d280: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -0025d2d0: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -0025d2e0: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -0025d2f0: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -0025d300: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -0025d310: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -0025d320: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -0025d330: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -0025d340: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -0025d350: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -0025d360: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -0025d370: 6468 6370 642e 7365 7276 6963 650a 2020  dhcpd.service.  
│ │ │ -0025d380: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0025d390: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -0025d3a0: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ -0025d3b0: 6e61 6d65 3a20 6468 6370 642e 736f 636b  name: dhcpd.sock
│ │ │ -0025d3c0: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -0025d3d0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0025d3e0: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -0025d400: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0025d4a0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0025d4b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0025d4c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -0025d220: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0025d250: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -0025d260: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -0025d2a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0025d2b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0025d540: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0025d570: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0025d590: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0025d5a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0025d5c0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0025d5e0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0025d5f0: 6465 2064 6973 6162 6c65 5f64 6863 7064  de disable_dhcpd
│ │ │ -0025d600: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -0025d610: 6468 6370 6420 7b0a 2020 7365 7276 6963  dhcpd {.  servic
│ │ │ -0025d620: 6520 7b27 6468 6370 6427 3a0a 2020 2020  e {'dhcpd':.    
│ │ │ -0025d630: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -0025d640: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -0025d650: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -0025d660: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0025d720: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0025d730: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0025d7b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0025d7c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0025d7e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0025d7f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0025d810: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0025d830: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0025d860: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0025d870: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0025d880: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0025d890: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0025d8a0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0025d8b0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0025d8c0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0025d8d0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0025d8e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0025d8f0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0025d900: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0025d910: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0025d920: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0025d930: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0025d940: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0025d950: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0025d960: 2d20 7365 7276 6963 655f 6468 6370 645f  - service_dhcpd_
│ │ │ -0025d970: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ -0025d980: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ -0025d990: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0025d9a0: 2073 6572 7669 6365 2064 6863 7064 0a20   service dhcpd. 
│ │ │ -0025d9b0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0025d9c0: 653a 2044 6973 6162 6c65 2044 4843 5020  e: Disable DHCP 
│ │ │ -0025d9d0: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ -0025d9e0: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -0025d9f0: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -0025da00: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -0025da10: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -0025da20: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -0025da30: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -0025da40: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -0025da50: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -0025da60: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -0025da70: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -0025da80: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -0025da90: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -0025daa0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0025dab0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0025dac0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0025dad0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0025dae0: 2044 4843 5020 5365 7276 6963 6520 2d20   DHCP Service - 
│ │ │ -0025daf0: 456e 7375 7265 2064 6863 7064 2e73 6572  Ensure dhcpd.ser
│ │ │ -0025db00: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -0025db10: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0025db20: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0025db30: 2020 6e61 6d65 3a20 6468 6370 642e 7365    name: dhcpd.se
│ │ │ -0025db40: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -0025db50: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -0025db60: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0025db70: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -0025db80: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -0025db90: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -0025dba0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0025dbb0: 6368 2822 6468 6370 642e 7365 7276 6963  ch("dhcpd.servic
│ │ │ -0025dbc0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -0025dbd0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -0025dbe0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -0025dbf0: 7320 2d20 6468 6370 642e 736f 636b 6574  s - dhcpd.socket
│ │ │ -0025dc00: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0025dc10: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -0025dc20: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -0025dc30: 756e 6974 2d66 696c 6573 2064 6863 7064  unit-files dhcpd
│ │ │ -0025dc40: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0025dc50: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0025dc60: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0025dc70: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0025dc80: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0025dc90: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0025dca0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0025dcb0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0025dcc0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0025dcd0: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -0025dce0: 4843 5020 5365 7276 6963 6520 2d20 4469  HCP Service - Di
│ │ │ -0025dcf0: 7361 626c 6520 536f 636b 6574 2064 6863  sable Socket dhc
│ │ │ -0025dd00: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ -0025dd10: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0025dd20: 2020 2020 2020 6e61 6d65 3a20 6468 6370        name: dhcp
│ │ │ -0025dd30: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -0025dd40: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0025dd50: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0025dd60: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0025dd70: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0025dd80: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0025dd90: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0025dda0: 6973 2073 6561 7263 6828 2264 6863 7064  is search("dhcpd
│ │ │ -0025ddb0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0025ddc0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0025ddd0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0025dde0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0025ddf0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0025de00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0025de10: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0025de20: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0025de30: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0025de40: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0025de50: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0025de60: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0025de70: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0025de80: 2d20 7365 7276 6963 655f 6468 6370 645f  - service_dhcpd_
│ │ │ -0025de90: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0025dea0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0025deb0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -0025dec0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0025ded0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0025dee0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation Ans │ │ │ +0025d040: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0025d050: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0025d120: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0025d130: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +0025d190: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0025d1a0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0025d1b0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0025d1c0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0025d1d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0025d1e0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +0025d1f0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +0025d200: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0025d210: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +0025d220: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0025d230: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0025d240: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0025d250: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0025d260: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0025d270: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0025d280: 7669 6365 5f64 6863 7064 5f64 6973 6162  vice_dhcpd_disab
│ │ │ +0025d290: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +0025d2a0: 6162 6c65 2044 4843 5020 5365 7276 6963  able DHCP Servic
│ │ │ +0025d2b0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +0025d2c0: 6963 6520 6468 6370 640a 2020 626c 6f63  ice dhcpd.  bloc
│ │ │ +0025d2d0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +0025d2e0: 7361 626c 6520 4448 4350 2053 6572 7669  sable DHCP Servi
│ │ │ +0025d2f0: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0025d300: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0025d310: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0025d320: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0025d330: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0025d340: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0025d350: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0025d360: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0025d370: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0025d380: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0025d390: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0025d3a0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0025d3b0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0025d3c0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0025d3d0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0025d3e0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0025d3f0: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +0025d400: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +0025d410: 6520 6468 6370 642e 7365 7276 6963 6520  e dhcpd.service 
│ │ │ +0025d420: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +0025d430: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0025d440: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0025d450: 653a 2064 6863 7064 2e73 6572 7669 6365  e: dhcpd.service
│ │ │ +0025d460: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0025d470: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +0025d480: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0025d490: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0025d4a0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +0025d4b0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0025d4c0: 6e65 7320 6973 2073 6561 7263 6828 2264  nes is search("d
│ │ │ +0025d4d0: 6863 7064 2e73 6572 7669 6365 222c 206d  hcpd.service", m
│ │ │ +0025d4e0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +0025d4f0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +0025d500: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ +0025d510: 6863 7064 2e73 6f63 6b65 740a 2020 2020  hcpd.socket.    
│ │ │ +0025d520: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0025d530: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0025d540: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0025d550: 6669 6c65 7320 6468 6370 642e 736f 636b  files dhcpd.sock
│ │ │ +0025d560: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +0025d570: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0025d580: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +0025d590: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +0025d5a0: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +0025d5b0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0025d5c0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0025d5d0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0025d5e0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0025d5f0: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ +0025d600: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0025d610: 2053 6f63 6b65 7420 6468 6370 640a 2020   Socket dhcpd.  
│ │ │ +0025d620: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0025d630: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0025d640: 206e 616d 653a 2064 6863 7064 2e73 6f63   name: dhcpd.soc
│ │ │ +0025d650: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0025d660: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0025d670: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0025d680: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0025d690: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0025d6a0: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0025d6b0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0025d6c0: 6172 6368 2822 6468 6370 642e 736f 636b  arch("dhcpd.sock
│ │ │ +0025d6d0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +0025d6e0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +0025d6f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0025d700: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +0025d710: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +0025d720: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0025d730: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +0025d740: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0025d750: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0025d760: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0025d770: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0025d780: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0025d790: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0025d7a0: 7669 6365 5f64 6863 7064 5f64 6973 6162  vice_dhcpd_disab
│ │ │ +0025d7b0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0025d7c0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0025d7d0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0025d7e0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0025d7f0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0025d800: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0025d8b0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +0025d8c0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +0025d8d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ +0025d100: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0025d110: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0025d150: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0025d160: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0025d950: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0025d970: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ +0025d9a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +0025d980: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0025d990: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ +0025d9b0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ +0025d9d0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0025d9e0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ +0025da10: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ +0025da20: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ +0025da30: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ +0025da40: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ +0025da50: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ +0025da60: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ +0025da70: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ +0025da80: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ +0025da90: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ +0025daa0: 6d65 3a20 6468 6370 642e 7365 7276 6963  me: dhcpd.servic
│ │ │ +0025dab0: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ +0025dac0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +0025dad0: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ +0025dae0: 2020 2d20 6e61 6d65 3a20 6468 6370 642e    - name: dhcpd.
│ │ │ +0025daf0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +0025db00: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0025db10: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +0025db20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0025dbe0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0025dbf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0025dcc0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0025dcd0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0025dd20: 6e63 6c75 6465 2064 6973 6162 6c65 5f64  nclude disable_d
│ │ │ +0025dd30: 6863 7064 0a0a 636c 6173 7320 6469 7361  hcpd..class disa
│ │ │ +0025dd40: 626c 655f 6468 6370 6420 7b0a 2020 7365  ble_dhcpd {.  se
│ │ │ +0025dd50: 7276 6963 6520 7b27 6468 6370 6427 3a0a  rvice {'dhcpd':.
│ │ │ +0025dd60: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0025dd70: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +0025dd80: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +0025dd90: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +0025de50: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0025de60: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0025de70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0025deb0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0025dec0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0025ded0: 0a6d 6173 6b65 6420 3d20 5b22 6468 6370  .masked = ["dhcp
│ │ │ +0025dee0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation Pup │ │ │ -0025fa80: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0025fa90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +0025dca0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0025dcb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0025dcf0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0025dd00: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0025fb60: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0025fb70: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0025fbc0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0025fbd0: 6269 6e64 390a 0a63 6c61 7373 2072 656d  bind9..class rem
│ │ │ -0025fbe0: 6f76 655f 6269 6e64 3920 7b0a 2020 7061  ove_bind9 {.  pa
│ │ │ -0025fbf0: 636b 6167 6520 7b20 2762 696e 6439 273a  ckage { 'bind9':
│ │ │ -0025fc00: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0025fc10: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -0025fc20: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0025fc30: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0025fce0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0025fcf0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ -0025fb40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0025fb50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0025fb90: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0025fba0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0025fd70: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0025fd90: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0025fde0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0025fe10: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0025fe30: 7461 6c6c 2062 696e 6420 5061 636b 6167  tall bind Packag
│ │ │ -0025fe40: 653a 2045 6e73 7572 6520 6269 6e64 3920  e: Ensure bind9 
│ │ │ -0025fe50: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -0025fe60: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0025fe70: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0025fe80: 2062 696e 6439 0a20 2020 2073 7461 7465   bind9.    state
│ │ │ -0025fe90: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -0025fea0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0025feb0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -0025fec0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -0025fed0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0025fee0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -0025fef0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0025ff00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0025ff10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0025ff20: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0025ff30: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0025ff40: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0025ff50: 636b 6167 655f 6269 6e64 5f72 656d 6f76  ckage_bind_remov
│ │ │ -0025ff60: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0025fa70: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +0025fa80: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0025fa90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -0025fda0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0025fdb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0025fdf0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0025fe00: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +0025fb60: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0025fb70: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +0025fbd0: 616c 6c20 6269 6e64 2050 6163 6b61 6765  all bind Package
│ │ │ +0025fbe0: 3a20 456e 7375 7265 2062 696e 6439 2069  : Ensure bind9 i
│ │ │ +0025fbf0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0025fc00: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0025fc10: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0025fc20: 6269 6e64 390a 2020 2020 7374 6174 653a  bind9.    state:
│ │ │ +0025fc30: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +0025fc40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0025fc50: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0025fc60: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +0025fc70: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0025fc80: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +0025fc90: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0025fca0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0025fcb0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0025fcc0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +0025fcd0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0025fce0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0025fcf0: 6b61 6765 5f62 696e 645f 7265 6d6f 7665  kage_bind_remove
│ │ │ +0025fd00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0025fd10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0025fdc0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0025fdd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +0025fb40: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0025fb50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0025fb90: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0025fba0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +0025fea0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0025feb0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0025ff10: 5f62 696e 6439 0a0a 636c 6173 7320 7265  _bind9..class re
│ │ │ +0025ff20: 6d6f 7665 5f62 696e 6439 207b 0a20 2070  move_bind9 {.  p
│ │ │ +0025ff30: 6163 6b61 6765 207b 2027 6269 6e64 3927  ackage { 'bind9'
│ │ │ +0025ff40: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0025ff50: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0025ff60: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0025ff70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediatio │ │ │ -00260dd0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00260de0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00260ea0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00260eb0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ +0025fe80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0025fe90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0025fed0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0025fee0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -00260e70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00260e90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00260ec0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00260ee0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00260f10: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00260f20: 6d6f 7665 5f64 6e73 6d61 7371 0a0a 636c  move_dnsmasq..cl
│ │ │ -00260f30: 6173 7320 7265 6d6f 7665 5f64 6e73 6d61  ass remove_dnsma
│ │ │ -00260f40: 7371 207b 0a20 2070 6163 6b61 6765 207b  sq {.  package {
│ │ │ -00260f50: 2027 646e 736d 6173 7127 3a0a 2020 2020   'dnsmasq':.    
│ │ │ -00260f60: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00260f70: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00260f90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00261030: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00261040: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00261050: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -002610f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00261140: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00261180: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -00261190: 646e 736d 6173 7120 5061 636b 6167 653a  dnsmasq Package:
│ │ │ -002611a0: 2045 6e73 7572 6520 646e 736d 6173 7120   Ensure dnsmasq 
│ │ │ -002611b0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -002611c0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002611d0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002611e0: 2064 6e73 6d61 7371 0a20 2020 2073 7461   dnsmasq.    sta
│ │ │ -002611f0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00261200: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00261210: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00261220: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00261230: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00261240: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00261250: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00261260: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00261270: 646e 736d 6173 715f 7265 6d6f 7665 640a  dnsmasq_removed.
│ │ │ +00260dd0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +00260de0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00260e60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00260ea0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -002610d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00261100: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00261120: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00261130: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00261150: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00261160: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00260e70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00260e90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00260ec0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00260ee0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00260f10: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00260f20: 6e69 6e73 7461 6c6c 2064 6e73 6d61 7371  ninstall dnsmasq
│ │ │ +00260f30: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +00260f40: 2064 6e73 6d61 7371 2069 7320 7265 6d6f   dnsmasq is remo
│ │ │ +00260f50: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00260f60: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00260f70: 2020 2020 6e61 6d65 3a20 646e 736d 6173      name: dnsmas
│ │ │ +00260f80: 710a 2020 2020 7374 6174 653a 2061 6273  q.    state: abs
│ │ │ +00260f90: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00260fa0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00260fb0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00260fc0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00260fd0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +00260fe0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00260ff0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00261000: 2070 6163 6b61 6765 5f64 6e73 6d61 7371   package_dnsmasq
│ │ │ +00261010: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00261020: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +002610d0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002610e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002610f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00261100: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00261110: 7365 2220 6964 3d22 6964 3933 3122 3e3c se" id="id931">< │ │ │ +00261120: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00261130: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00261140: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00261150: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00261160: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00261170: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00261180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002611c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002611d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002611f0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00261200: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00261220: 2072 656d 6f76 655f 646e 736d 6173 710a remove_dnsmasq. │ │ │ +00261230: 0a63 6c61 7373 2072 656d 6f76 655f 646e .class remove_dn │ │ │ +00261240: 736d 6173 7120 7b0a 2020 7061 636b 6167 smasq {. packag │ │ │ +00261250: 6520 7b20 2764 6e73 6d61 7371 273a 0a20 e { 'dnsmasq':. │ │ │ +00261260: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +00261270: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 00261280: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediation O │ │ │ -00262090: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -002620a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002620b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -002620f0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00262100: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00262110: 203d 205b 2264 6e73 6d61 7371 225d 0a3c   = ["dnsmasq"].<
│ │ │ -00262120: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -002621d0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -002621e0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -002621f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00262270: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00262290: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -002622c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -002622a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002622b0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -002622d0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -002622f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00262300: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -00262330: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -00262340: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -00262350: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -00262360: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -00262370: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -00262380: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -00262390: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -002623a0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -002623b0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -002623c0: 6d65 3a20 646e 736d 6173 712e 7365 7276  me: dnsmasq.serv
│ │ │ -002623d0: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ -002623e0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002623f0: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ -00262400: 2020 2020 2d20 6e61 6d65 3a20 646e 736d      - name: dnsm
│ │ │ -00262410: 6173 712e 736f 636b 6574 0a20 2020 2020  asq.socket.     
│ │ │ -00262420: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00262430: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -00262440: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.
Remediation │ │ │ -00262500: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00262510: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -002625a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002625c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002625e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00262610: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00262620: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00262630: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -00262650: 6c65 5f64 6e73 6d61 7371 0a0a 636c 6173  le_dnsmasq..clas
│ │ │ -00262660: 7320 6469 7361 626c 655f 646e 736d 6173  s disable_dnsmas
│ │ │ -00262670: 7120 7b0a 2020 7365 7276 6963 6520 7b27  q {.  service {'
│ │ │ -00262680: 646e 736d 6173 7127 3a0a 2020 2020 656e  dnsmasq':.    en
│ │ │ -00262690: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -002626a0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002626b0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -002626c0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00262780: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00262790: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00262820: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00262840: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00262860: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00262890: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002628a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -002628d0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -002628e0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -002628f0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00262900: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00262910: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00262920: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00262930: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00262940: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00262950: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00262960: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00262970: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00262980: 646e 736d 6173 715f 6469 7361 626c 6564  dnsmasq_disabled
│ │ │ -00262990: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -002629a0: 6520 646e 736d 6173 7120 5365 7276 6963  e dnsmasq Servic
│ │ │ -002629b0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -002629c0: 6963 6520 646e 736d 6173 710a 2020 626c  ice dnsmasq.  bl
│ │ │ -002629d0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -002629e0: 4469 7361 626c 6520 646e 736d 6173 7120  Disable dnsmasq 
│ │ │ -002629f0: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ -00262a00: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -00262a10: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -00262a20: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -00262a30: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00262a40: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00262a50: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00262a60: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -00262a70: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -00262a80: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -00262a90: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -00262aa0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -00262ab0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -00262ac0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -00262ad0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -00262ae0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -00262af0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00262b00: 2064 6e73 6d61 7371 2053 6572 7669 6365   dnsmasq Service
│ │ │ -00262b10: 202d 2045 6e73 7572 6520 646e 736d 6173   - Ensure dnsmas
│ │ │ -00262b20: 712e 7365 7276 6963 6520 6973 204d 6173  q.service is Mas
│ │ │ -00262b30: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -00262b40: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00262b50: 0a20 2020 2020 206e 616d 653a 2064 6e73  .      name: dns
│ │ │ -00262b60: 6d61 7371 2e73 6572 7669 6365 0a20 2020  masq.service.   
│ │ │ -00262b70: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -00262b80: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -00262b90: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -00262ba0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -00262bb0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00262bc0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -00262bd0: 6973 2073 6561 7263 6828 2264 6e73 6d61  is search("dnsma
│ │ │ -00262be0: 7371 2e73 6572 7669 6365 222c 206d 756c  sq.service", mul
│ │ │ -00262bf0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -00262c00: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -00262c10: 6b65 7420 4578 6973 7473 202d 2064 6e73  ket Exists - dns
│ │ │ -00262c20: 6d61 7371 2e73 6f63 6b65 740a 2020 2020  masq.socket.    
│ │ │ -00262c30: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00262c40: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00262c50: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00262c60: 6669 6c65 7320 646e 736d 6173 712e 736f  files dnsmasq.so
│ │ │ -00262c70: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -00262c80: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -00262c90: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00262ca0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00262cb0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00262cc0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00262cd0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00262ce0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00262cf0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00262d00: 6d65 3a20 4469 7361 626c 6520 646e 736d  me: Disable dnsm
│ │ │ -00262d10: 6173 7120 5365 7276 6963 6520 2d20 4469  asq Service - Di
│ │ │ -00262d20: 7361 626c 6520 536f 636b 6574 2064 6e73  sable Socket dns
│ │ │ -00262d30: 6d61 7371 0a20 2020 2061 6e73 6962 6c65  masq.    ansible
│ │ │ -00262d40: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -00262d50: 3a0a 2020 2020 2020 6e61 6d65 3a20 646e  :.      name: dn
│ │ │ -00262d60: 736d 6173 712e 736f 636b 6574 0a20 2020  smasq.socket.   
│ │ │ -00262d70: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00262d80: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00262d90: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -00262da0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -00262db0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -00262dc0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00262dd0: 6e65 7320 6973 2073 6561 7263 6828 2264  nes is search("d
│ │ │ -00262de0: 6e73 6d61 7371 2e73 6f63 6b65 7422 2c20  nsmasq.socket", 
│ │ │ -00262df0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00262e00: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00262e10: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00262e20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00262e30: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00262e40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00262e50: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00262e60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00262e70: 7365 7276 6963 655f 646e 736d 6173 715f  service_dnsmasq_
│ │ │ -00262e80: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -00262e90: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -00262ea0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -00262eb0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00262ec0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00262ed0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation A │ │ │ +00262090: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +002620a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00262120: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00262140: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00262190: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002621c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00262130: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00262150: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002621a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002621b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002621e0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002621f0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00262200: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00262210: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00262220: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00262230: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00262240: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00262250: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00262260: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00262270: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00262280: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +00262290: 6e73 6d61 7371 5f64 6973 6162 6c65 640a  nsmasq_disabled.
│ │ │ +002622a0: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +002622b0: 2064 6e73 6d61 7371 2053 6572 7669 6365   dnsmasq Service
│ │ │ +002622c0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +002622d0: 6365 2064 6e73 6d61 7371 0a20 2062 6c6f  ce dnsmasq.  blo
│ │ │ +002622e0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +002622f0: 6973 6162 6c65 2064 6e73 6d61 7371 2053  isable dnsmasq S
│ │ │ +00262300: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +00262310: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00262320: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00262330: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00262340: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00262350: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00262360: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00262370: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00262380: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00262390: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +002623a0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002623b0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002623c0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +002623d0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002623e0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002623f0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00262400: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00262410: 646e 736d 6173 7120 5365 7276 6963 6520  dnsmasq Service 
│ │ │ +00262420: 2d20 456e 7375 7265 2064 6e73 6d61 7371  - Ensure dnsmasq
│ │ │ +00262430: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +00262440: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +00262450: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00262460: 2020 2020 2020 6e61 6d65 3a20 646e 736d        name: dnsm
│ │ │ +00262470: 6173 712e 7365 7276 6963 650a 2020 2020  asq.service.    
│ │ │ +00262480: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00262490: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002624a0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +002624b0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002624c0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +002624d0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002624e0: 7320 7365 6172 6368 2822 646e 736d 6173  s search("dnsmas
│ │ │ +002624f0: 712e 7365 7276 6963 6522 2c20 6d75 6c74  q.service", mult
│ │ │ +00262500: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00262510: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00262520: 6574 2045 7869 7374 7320 2d20 646e 736d  et Exists - dnsm
│ │ │ +00262530: 6173 712e 736f 636b 6574 0a20 2020 2061  asq.socket.    a
│ │ │ +00262540: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00262550: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00262560: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00262570: 696c 6573 2064 6e73 6d61 7371 2e73 6f63  iles dnsmasq.soc
│ │ │ +00262580: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +00262590: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002625a0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002625b0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002625c0: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +002625d0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002625e0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002625f0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00262600: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00262610: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ +00262620: 7371 2053 6572 7669 6365 202d 2044 6973  sq Service - Dis
│ │ │ +00262630: 6162 6c65 2053 6f63 6b65 7420 646e 736d  able Socket dnsm
│ │ │ +00262640: 6173 710a 2020 2020 616e 7369 626c 652e  asq.    ansible.
│ │ │ +00262650: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00262660: 0a20 2020 2020 206e 616d 653a 2064 6e73  .      name: dns
│ │ │ +00262670: 6d61 7371 2e73 6f63 6b65 740a 2020 2020  masq.socket.    
│ │ │ +00262680: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00262690: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002626a0: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +002626b0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002626c0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002626d0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002626e0: 6573 2069 7320 7365 6172 6368 2822 646e  es is search("dn
│ │ │ +002626f0: 736d 6173 712e 736f 636b 6574 222c 206d  smasq.socket", m
│ │ │ +00262700: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +00262710: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00262720: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00262730: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00262740: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00262750: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00262760: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00262770: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00262780: 6572 7669 6365 5f64 6e73 6d61 7371 5f64  ervice_dnsmasq_d
│ │ │ +00262790: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +002627a0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +002627b0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +002627c0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +002627d0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002627e0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002627f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ +002628a0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +002628b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00262930: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00262940: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00262960: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00262970: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +00262980: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +00262990: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +002629a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002629c0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002629d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +002629f0: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +00262a00: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +00262a10: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +00262a20: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +00262a30: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +00262a40: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +00262a50: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +00262a60: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +00262a70: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +00262a80: 2d20 6e61 6d65 3a20 646e 736d 6173 712e - name: dnsmasq. │ │ │ +00262a90: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +00262aa0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +00262ab0: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +00262ac0: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +00262ad0: 646e 736d 6173 712e 736f 636b 6574 0a20 dnsmasq.socket. │ │ │ +00262ae0: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ +00262af0: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ +00262b00: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ +00262b10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +00262bc0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00262bd0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00262be0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00262bf0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00262c00: 7365 2220 6964 3d22 6964 3933 3622 3e3c se" id="id936">< │ │ │ +00262c10: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00262c20: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00262c30: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00262c40: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00262c50: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00262c60: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00262c70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00262cb0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00262cc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00262ce0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00262cf0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ +00262d10: 6973 6162 6c65 5f64 6e73 6d61 7371 0a0a  isable_dnsmasq..
│ │ │ +00262d20: 636c 6173 7320 6469 7361 626c 655f 646e  class disable_dn
│ │ │ +00262d30: 736d 6173 7120 7b0a 2020 7365 7276 6963  smasq {.  servic
│ │ │ +00262d40: 6520 7b27 646e 736d 6173 7127 3a0a 2020  e {'dnsmasq':.  
│ │ │ +00262d50: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +00262d60: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +00262d70: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +00262d80: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00262d90: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00262e40: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +00262e50: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +00262e60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +00262eb0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00262ec0: 6173 6b65 6420 3d20 5b22 646e 736d 6173  asked = ["dnsmas
│ │ │ +00262ed0: 7122 5d0a 3c2f 636f 6465 3e3c 2f70 7265  q"].
Remediation │ │ │ -00264b80: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00264b90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00264c10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00264c30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00264c80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00264cb0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00264c20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00264c40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00264c90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00264ca0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -00264cd0: 7665 5f76 7366 7470 640a 0a63 6c61 7373  ve_vsftpd..class
│ │ │ -00264ce0: 2072 656d 6f76 655f 7673 6674 7064 207b   remove_vsftpd {
│ │ │ -00264cf0: 0a20 2070 6163 6b61 6765 207b 2027 7673  .  package { 'vs
│ │ │ -00264d00: 6674 7064 273a 0a20 2020 2065 6e73 7572  ftpd':.    ensur
│ │ │ -00264d10: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -00264d20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00264d30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00264de0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00264df0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00264e00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00264e10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00264e20: 7365 2220 6964 3d22 6964 3934 3122 3e3c se" id="id941">< │ │ │ -00264e30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00264e40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00264e50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00264e60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00264e70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00264e80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00264e90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00264ed0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00264ee0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00264f00: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00264f10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -00264f30: 2755 6e69 6e73 7461 6c6c 2076 7366 7470 'Uninstall vsftp │ │ │ -00264f40: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ -00264f50: 6520 7673 6674 7064 2069 7320 7265 6d6f e vsftpd is remo │ │ │ -00264f60: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -00264f70: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -00264f80: 2020 2020 6e61 6d65 3a20 7673 6674 7064 name: vsftpd │ │ │ -00264f90: 0a20 2020 2073 7461 7465 3a20 6162 7365 . state: abse │ │ │ -00264fa0: 6e74 0a20 2074 6167 733a 0a20 202d 204e nt. tags:. - N │ │ │ -00264fb0: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00264fc0: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -00264fd0: 3533 2d43 4d2d 370a 2020 2d20 4e49 5354 53-CM-7. - NIST │ │ │ -00264fe0: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ -00264ff0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00265000: 434d 2d37 2862 290a 2020 2d20 4e49 5354 CM-7(b). - NIST │ │ │ -00265010: 2d38 3030 2d35 332d 434d 2d37 2e31 2869 -800-53-CM-7.1(i │ │ │ -00265020: 6929 0a20 202d 204e 4953 542d 3830 302d i). - NIST-800- │ │ │ -00265030: 3533 2d49 412d 3528 3129 2863 290a 2020 53-IA-5(1)(c). │ │ │ -00265040: 2d20 4e49 5354 2d38 3030 2d35 332d 4941 - NIST-800-53-IA │ │ │ -00265050: 2d35 2831 292e 3128 7629 0a20 202d 2064 -5(1).1(v). - d │ │ │ -00265060: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -00265070: 2020 2d20 6869 6768 5f73 6576 6572 6974 - high_severit │ │ │ -00265080: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -00265090: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -002650a0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ -002650b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -002650c0: 2070 6163 6b61 6765 5f76 7366 7470 645f package_vsftpd_ │ │ │ -002650d0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +00264b80: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +00264b90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00264c20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00264c40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00264c60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00264c90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00264ca0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +00264cd0: 6e73 7461 6c6c 2076 7366 7470 6420 5061  nstall vsftpd Pa
│ │ │ +00264ce0: 636b 6167 653a 2045 6e73 7572 6520 7673  ckage: Ensure vs
│ │ │ +00264cf0: 6674 7064 2069 7320 7265 6d6f 7665 6427  ftpd is removed'
│ │ │ +00264d00: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00264d10: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00264d20: 6e61 6d65 3a20 7673 6674 7064 0a20 2020  name: vsftpd.   
│ │ │ +00264d30: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00264d40: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00264d50: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00264d60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00264d70: 4d2d 370a 2020 2d20 4e49 5354 2d38 3030  M-7.  - NIST-800
│ │ │ +00264d80: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00264d90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00264da0: 2862 290a 2020 2d20 4e49 5354 2d38 3030  (b).  - NIST-800
│ │ │ +00264db0: 2d35 332d 434d 2d37 2e31 2869 6929 0a20  -53-CM-7.1(ii). 
│ │ │ +00264dc0: 202d 204e 4953 542d 3830 302d 3533 2d49   - NIST-800-53-I
│ │ │ +00264dd0: 412d 3528 3129 2863 290a 2020 2d20 4e49  A-5(1)(c).  - NI
│ │ │ +00264de0: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ +00264df0: 292e 3128 7629 0a20 202d 2064 6973 6162  ).1(v).  - disab
│ │ │ +00264e00: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00264e10: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +00264e20: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00264e30: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00264e40: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00264e50: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00264e60: 6b61 6765 5f76 7366 7470 645f 7265 6d6f  kage_vsftpd_remo
│ │ │ +00264e70: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +00264f30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00264f40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00264fc0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00264fe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00265030: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00265060: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00264fd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00264ff0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00265040: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00265050: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00265080: 7665 5f76 7366 7470 640a 0a63 6c61 7373  ve_vsftpd..class
│ │ │ +00265090: 2072 656d 6f76 655f 7673 6674 7064 207b   remove_vsftpd {
│ │ │ +002650a0: 0a20 2070 6163 6b61 6765 207b 2027 7673  .  package { 'vs
│ │ │ +002650b0: 6674 7064 273a 0a20 2020 2065 6e73 7572  ftpd':.    ensur
│ │ │ +002650c0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +002650d0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  002650e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation O │ │ │ -00266470: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00266480: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00266490: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -002664d0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -002664e0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -002664f0: 203d 205b 2276 7366 7470 6422 5d0a 3c2f   = ["vsftpd"].
Re │ │ │ -002665b0: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -002665c0: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -002665d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -002666a0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002666c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002666f0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -00266680: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ -00266690: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ -002666d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002666e0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ -00266710: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ -00266720: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ -00266730: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ -00266740: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ -00266750: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ -00266760: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ -00266770: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ -00266780: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ -00266790: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ -002667a0: 653a 2076 7366 7470 642e 7365 7276 6963  e: vsftpd.servic
│ │ │ -002667b0: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -002667c0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -002667d0: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -002667e0: 2020 2d20 6e61 6d65 3a20 7673 6674 7064    - name: vsftpd
│ │ │ -002667f0: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ -00266800: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00266810: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ -00266820: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ -00266830: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -002668e0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002668f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -002669c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002669d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00266a20: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00266a30: 7673 6674 7064 0a0a 636c 6173 7320 6469  vsftpd..class di
│ │ │ -00266a40: 7361 626c 655f 7673 6674 7064 207b 0a20  sable_vsftpd {. 
│ │ │ -00266a50: 2073 6572 7669 6365 207b 2776 7366 7470   service {'vsftp
│ │ │ -00266a60: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -00266a70: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -00266a80: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -00266a90: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -00266b50: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00266b60: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disru │ │ │ -002669a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002669b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002669f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00266a00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00266c00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00266c10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00266c60: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00266ca0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00266cb0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00266cc0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00266cd0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00266ce0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00266cf0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00266d00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00266d10: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00266d20: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00266d30: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00266d40: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00266d50: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00266d60: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00266d70: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00266d80: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00266d90: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00266da0: 655f 7673 6674 7064 5f64 6973 6162 6c65  e_vsftpd_disable
│ │ │ -00266db0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -00266dc0: 6c65 2076 7366 7470 6420 5365 7276 6963  le vsftpd Servic
│ │ │ -00266dd0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -00266de0: 6963 6520 7673 6674 7064 0a20 2062 6c6f  ice vsftpd.  blo
│ │ │ -00266df0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -00266e00: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ -00266e10: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -00266e20: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00266e30: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00266e40: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00266e50: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00266e60: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00266e70: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00266e80: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -00266e90: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -00266ea0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -00266eb0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00266ec0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00266ed0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00266ee0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00266ef0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00266f00: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00266f10: 206e 616d 653a 2044 6973 6162 6c65 2076   name: Disable v
│ │ │ -00266f20: 7366 7470 6420 5365 7276 6963 6520 2d20  sftpd Service - 
│ │ │ -00266f30: 456e 7375 7265 2076 7366 7470 642e 7365  Ensure vsftpd.se
│ │ │ -00266f40: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00266f50: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00266f60: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00266f70: 2020 206e 616d 653a 2076 7366 7470 642e     name: vsftpd.
│ │ │ -00266f80: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -00266f90: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -00266fa0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00266fb0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -00266fc0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00266fd0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -00266fe0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00266ff0: 6172 6368 2822 7673 6674 7064 2e73 6572  arch("vsftpd.ser
│ │ │ -00267000: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00267010: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00267020: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00267030: 6973 7473 202d 2076 7366 7470 642e 736f  ists - vsftpd.so
│ │ │ -00267040: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00267050: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00267060: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00267070: 6973 742d 756e 6974 2d66 696c 6573 2076  ist-unit-files v
│ │ │ -00267080: 7366 7470 642e 736f 636b 6574 0a20 2020  sftpd.socket.   
│ │ │ -00267090: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002670a0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002670b0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002670c0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002670d0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002670e0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -002670f0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00267100: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00267110: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00267120: 626c 6520 7673 6674 7064 2053 6572 7669  ble vsftpd Servi
│ │ │ -00267130: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -00267140: 6b65 7420 7673 6674 7064 0a20 2020 2061  ket vsftpd.    a
│ │ │ -00267150: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00267160: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00267170: 6d65 3a20 7673 6674 7064 2e73 6f63 6b65  me: vsftpd.socke
│ │ │ -00267180: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -00267190: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002671a0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002671b0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002671c0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002671d0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002671e0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002671f0: 6368 2822 7673 6674 7064 2e73 6f63 6b65  ch("vsftpd.socke
│ │ │ -00267200: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -00267210: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -00267220: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00267230: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00267240: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00267250: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00267260: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -00267270: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00267280: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00267290: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002672a0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002672b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002672c0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002672d0: 6963 655f 7673 6674 7064 5f64 6973 6162  ice_vsftpd_disab
│ │ │ -002672e0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -002672f0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -00267300: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00267310: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00267320: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00266460: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00266470: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00266480: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ -00266bf0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00266c20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00266c30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00266c70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00266c80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00266500: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00266520: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00266570: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002665a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00266510: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00266530: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00266580: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00266590: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002665c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002665d0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +002665e0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +002665f0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00266600: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00266610: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00266620: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00266630: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00266640: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00266650: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00266660: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00266670: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00266680: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00266690: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002666a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002666b0: 6572 7669 6365 5f76 7366 7470 645f 6469  ervice_vsftpd_di
│ │ │ +002666c0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +002666d0: 4469 7361 626c 6520 7673 6674 7064 2053  Disable vsftpd S
│ │ │ +002666e0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002666f0: 2073 6572 7669 6365 2076 7366 7470 640a   service vsftpd.
│ │ │ +00266700: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00266710: 6d65 3a20 4469 7361 626c 6520 7673 6674  me: Disable vsft
│ │ │ +00266720: 7064 2053 6572 7669 6365 202d 2043 6f6c  pd Service - Col
│ │ │ +00266730: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +00266740: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +00266750: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +00266760: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00266770: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +00266780: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +00266790: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +002667a0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +002667b0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +002667c0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002667d0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002667e0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +002667f0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +00266800: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00266810: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00266820: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00266830: 626c 6520 7673 6674 7064 2053 6572 7669  ble vsftpd Servi
│ │ │ +00266840: 6365 202d 2045 6e73 7572 6520 7673 6674  ce - Ensure vsft
│ │ │ +00266850: 7064 2e73 6572 7669 6365 2069 7320 4d61  pd.service is Ma
│ │ │ +00266860: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +00266870: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00266880: 3a0a 2020 2020 2020 6e61 6d65 3a20 7673  :.      name: vs
│ │ │ +00266890: 6674 7064 2e73 6572 7669 6365 0a20 2020  ftpd.service.   
│ │ │ +002668a0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002668b0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +002668c0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +002668d0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002668e0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002668f0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +00266900: 6973 2073 6561 7263 6828 2276 7366 7470  is search("vsftp
│ │ │ +00266910: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +00266920: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00266930: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00266940: 6574 2045 7869 7374 7320 2d20 7673 6674  et Exists - vsft
│ │ │ +00266950: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ +00266960: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00266970: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00266980: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00266990: 6c65 7320 7673 6674 7064 2e73 6f63 6b65  les vsftpd.socke
│ │ │ +002669a0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +002669b0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002669c0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002669d0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002669e0: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +002669f0: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00266a00: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00266a10: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00266a20: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00266a30: 2044 6973 6162 6c65 2076 7366 7470 6420   Disable vsftpd 
│ │ │ +00266a40: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00266a50: 6520 536f 636b 6574 2076 7366 7470 640a  e Socket vsftpd.
│ │ │ +00266a60: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00266a70: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00266a80: 2020 206e 616d 653a 2076 7366 7470 642e     name: vsftpd.
│ │ │ +00266a90: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +00266aa0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00266ab0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00266ac0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00266ad0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +00266ae0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00266af0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00266b00: 2073 6561 7263 6828 2276 7366 7470 642e   search("vsftpd.
│ │ │ +00266b10: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +00266b20: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +00266b30: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00266b40: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00266b50: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00266b60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00266b70: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00266b80: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00266b90: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00266ba0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00266bb0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00266bc0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00266bd0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00266be0: 2073 6572 7669 6365 5f76 7366 7470 645f   service_vsftpd_
│ │ │ +00266bf0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00266c00: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00266c10: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +00266c20: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00266c30: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00266c40: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00266d00: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ +00266d10: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00266d90: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00266da0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00266db0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ +00266de0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ +00266df0: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +00266e00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ +00266e10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ +00266e50: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +00266e60: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +00266e70: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +00266e80: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +00266e90: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +00266ea0: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +00266eb0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +00266ec0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +00266ed0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +00266ee0: 202d 206e 616d 653a 2076 7366 7470 642e - name: vsftpd. │ │ │ +00266ef0: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +00266f00: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +00266f10: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +00266f20: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +00266f30: 7673 6674 7064 2e73 6f63 6b65 740a 2020 vsftpd.socket. │ │ │ +00266f40: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ +00266f50: 616c 7365 0a20 2020 2020 2020 206d 6173 alse. mas │ │ │ +00266f60: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c k: true.< │ │ │ +00266f70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +00267020: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00267030: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +002670b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002670c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002670d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00267110: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00267120: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00267140: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00267160: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +00267170: 7361 626c 655f 7673 6674 7064 0a0a 636c  sable_vsftpd..cl
│ │ │ +00267180: 6173 7320 6469 7361 626c 655f 7673 6674  ass disable_vsft
│ │ │ +00267190: 7064 207b 0a20 2073 6572 7669 6365 207b  pd {.  service {
│ │ │ +002671a0: 2776 7366 7470 6427 3a0a 2020 2020 656e  'vsftpd':.    en
│ │ │ +002671b0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +002671c0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +002671d0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +002671e0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +002672a0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +002672b0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00267300: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00267310: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +00267320: 6420 3d20 5b22 7673 6674 7064 225d 0a3c  d = ["vsftpd"].<
│ │ │  00267330: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Reme │ │ │ -00268320: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00268330: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -002683c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002683d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002683f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00268410: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00268420: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00268460: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00268470: 7564 6520 7265 6d6f 7665 5f66 7470 0a0a  ude remove_ftp..
│ │ │ -00268480: 636c 6173 7320 7265 6d6f 7665 5f66 7470  class remove_ftp
│ │ │ -00268490: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -002684a0: 6674 7027 3a0a 2020 2020 656e 7375 7265  ftp':.    ensure
│ │ │ -002684b0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -002684c0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00268580: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00268590: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00268610: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00268620: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00268630: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00268670: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00268680: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002686a0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002686b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -002686d0: 5265 6d6f 7665 2066 7470 2050 6163 6b61  Remove ftp Packa
│ │ │ -002686e0: 6765 3a20 456e 7375 7265 2066 7470 2069  ge: Ensure ftp i
│ │ │ -002686f0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00268700: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00268710: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00268720: 6674 700a 2020 2020 7374 6174 653a 2061  ftp.    state: a
│ │ │ -00268730: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00268740: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -00268750: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00268760: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -00268770: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00268780: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00268790: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002687a0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -002687b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002687c0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002687d0: 5f66 7470 5f72 656d 6f76 6564 0a3c 2f63  _ftp_removed.<
│ │ │ +00268340: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +002683c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002683f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00268410: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00268420: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00268440: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00268450: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00268470: 6d65 3a20 2752 656d 6f76 6520 6674 7020  me: 'Remove ftp 
│ │ │ +00268480: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00268490: 6674 7020 6973 2072 656d 6f76 6564 270a  ftp is removed'.
│ │ │ +002684a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002684b0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002684c0: 616d 653a 2066 7470 0a20 2020 2073 7461  ame: ftp.    sta
│ │ │ +002684d0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +002684e0: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +002684f0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00268500: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00268510: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00268520: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00268530: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00268540: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +00268550: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00268560: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00268570: 636b 6167 655f 6674 705f 7265 6d6f 7665  ckage_ftp_remove
│ │ │ +00268580: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00268590: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00268640: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00268650: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00268720: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00268730: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00268790: 5f66 7470 0a0a 636c 6173 7320 7265 6d6f  _ftp..class remo
│ │ │ +002687a0: 7665 5f66 7470 207b 0a20 2070 6163 6b61  ve_ftp {.  packa
│ │ │ +002687b0: 6765 207b 2027 6674 7027 3a0a 2020 2020  ge { 'ftp':.    
│ │ │ +002687c0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +002687d0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 002687f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation Pu │ │ │ -0026a3c0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0026a3d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +00268700: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00268710: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00268750: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00268760: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -0026a4a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0026a4b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -0026a510: 5f61 7061 6368 6532 0a0a 636c 6173 7320  _apache2..class 
│ │ │ -0026a520: 7265 6d6f 7665 5f61 7061 6368 6532 207b  remove_apache2 {
│ │ │ -0026a530: 0a20 2070 6163 6b61 6765 207b 2027 6170  .  package { 'ap
│ │ │ -0026a540: 6163 6865 3227 3a0a 2020 2020 656e 7375  ache2':.    ensu
│ │ │ -0026a550: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0026a560: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0026a570: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0026a620: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0026a630: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0026a640: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0026a670: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ -0026a480: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0026a490: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0026a4d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0026a4e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0026a6e0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0026a700: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0026a730: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0026a6c0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0026a6d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0026a710: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0026a720: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0026a770: 2027 556e 696e 7374 616c 6c20 6170 6163 'Uninstall apac │ │ │ -0026a780: 6865 3220 5061 636b 6167 653a 2045 6e73 he2 Package: Ens │ │ │ -0026a790: 7572 6520 6170 6163 6865 3220 6973 2072 ure apache2 is r │ │ │ -0026a7a0: 656d 6f76 6564 270a 2020 616e 7369 626c emoved'. ansibl │ │ │ -0026a7b0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -0026a7c0: 653a 0a20 2020 206e 616d 653a 2061 7061 e:. name: apa │ │ │ -0026a7d0: 6368 6532 0a20 2020 2073 7461 7465 3a20 che2. state: │ │ │ -0026a7e0: 6162 7365 6e74 0a20 2074 6167 733a 0a20 absent. tags:. │ │ │ -0026a7f0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -0026a800: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ -0026a810: 3830 302d 3533 2d43 4d2d 3728 6129 0a20 800-53-CM-7(a). │ │ │ -0026a820: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -0026a830: 4d2d 3728 6229 0a20 202d 2064 6973 6162 M-7(b). - disab │ │ │ -0026a840: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -0026a850: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -0026a860: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -0026a870: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f n. - no_reboot_ │ │ │ -0026a880: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -0026a890: 6765 5f68 7474 7064 5f72 656d 6f76 6564 ge_httpd_removed │ │ │ -0026a8a0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576 . - unknown_sev │ │ │ -0026a8b0: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70 erity.

Remediation An │ │ │ +0026a3c0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0026a3d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0026a450: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0026a470: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0026a4c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0026a4f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +0026a510: 7461 6c6c 2061 7061 6368 6532 2050 6163  tall apache2 Pac
│ │ │ +0026a520: 6b61 6765 3a20 456e 7375 7265 2061 7061  kage: Ensure apa
│ │ │ +0026a530: 6368 6532 2069 7320 7265 6d6f 7665 6427  che2 is removed'
│ │ │ +0026a540: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0026a550: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0026a560: 6e61 6d65 3a20 6170 6163 6865 320a 2020  name: apache2.  
│ │ │ +0026a570: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0026a580: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0026a590: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0026a5a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0026a5b0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0026a5c0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0026a5d0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0026a5e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0026a5f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0026a600: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0026a610: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0026a620: 2020 2d20 7061 636b 6167 655f 6874 7470    - package_http
│ │ │ +0026a630: 645f 7265 6d6f 7665 640a 2020 2d20 756e  d_removed.  - un
│ │ │ +0026a640: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +0026a650: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0026a700: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0026a710: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +0026a480: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0026a490: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0026a4d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0026a4e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0026a7b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026a7c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0026a810: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0026a850: 6e63 6c75 6465 2072 656d 6f76 655f 6170  nclude remove_ap
│ │ │ +0026a860: 6163 6865 320a 0a63 6c61 7373 2072 656d  ache2..class rem
│ │ │ +0026a870: 6f76 655f 6170 6163 6865 3220 7b0a 2020  ove_apache2 {.  
│ │ │ +0026a880: 7061 636b 6167 6520 7b20 2761 7061 6368  package { 'apach
│ │ │ +0026a890: 6532 273a 0a20 2020 2065 6e73 7572 6520  e2':.    ensure 
│ │ │ +0026a8a0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0026a8b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

R │ │ │ -0026bbe0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0026bbf0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0026bc00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0026bc10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0026bc40: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0026bc50: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0026bc60: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0026bc70: 2261 7061 6368 6532 225d 0a3c 2f63 6f64  "apache2"].
Remed │ │ │ -0026bd30: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -0026bd40: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
C │ │ │ +0026a7a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0026a7d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0026a7e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0026a820: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0026a830: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0026bde0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0026bdf0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0026be20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0026be30: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -0026be80: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -0026be90: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -0026bea0: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -0026beb0: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -0026bec0: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -0026bed0: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -0026bee0: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -0026bef0: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -0026bf00: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -0026bf10: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -0026bf20: 6170 6163 6865 322e 7365 7276 6963 650a  apache2.service.
│ │ │ -0026bf30: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -0026bf40: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -0026bf50: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ -0026bf60: 2d20 6e61 6d65 3a20 6170 6163 6865 322e  - name: apache2.
│ │ │ -0026bf70: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ -0026bf80: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0026bf90: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -0026bfa0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0026c060: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0026c070: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -0026bdd0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0026be00: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -0026be10: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -0026be50: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0026be60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0026c140: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0026c150: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0026c1a0: 6e63 6c75 6465 2064 6973 6162 6c65 5f61  nclude disable_a
│ │ │ -0026c1b0: 7061 6368 6532 0a0a 636c 6173 7320 6469  pache2..class di
│ │ │ -0026c1c0: 7361 626c 655f 6170 6163 6865 3220 7b0a  sable_apache2 {.
│ │ │ -0026c1d0: 2020 7365 7276 6963 6520 7b27 6170 6163    service {'apac
│ │ │ -0026c1e0: 6865 3227 3a0a 2020 2020 656e 6162 6c65  he2':.    enable
│ │ │ -0026c1f0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -0026c200: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0026c210: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -0026c220: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0026c2d0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0026c2e0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0026c2f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -0026c120: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0026c130: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0026c170: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0026c180: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0026c3c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0026c3d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0026c420: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0026c430: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0026c440: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0026c450: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0026c460: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0026c470: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0026c480: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0026c490: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0026c4a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0026c4b0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -0026c4c0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0026c4d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0026c4e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0026c4f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0026c500: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0026c510: 6874 7470 645f 6469 7361 626c 6564 0a20  httpd_disabled. 
│ │ │ -0026c520: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -0026c530: 6974 790a 0a2d 206e 616d 653a 2044 6973  ity..- name: Dis
│ │ │ -0026c540: 6162 6c65 2061 7061 6368 6532 2053 6572  able apache2 Ser
│ │ │ -0026c550: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ -0026c560: 6572 7669 6365 2061 7061 6368 6532 0a20  ervice apache2. 
│ │ │ -0026c570: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0026c580: 653a 2044 6973 6162 6c65 2061 7061 6368  e: Disable apach
│ │ │ -0026c590: 6532 2053 6572 7669 6365 202d 2043 6f6c  e2 Service - Col
│ │ │ -0026c5a0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -0026c5b0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -0026c5c0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -0026c5d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0026c5e0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0026c5f0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0026c600: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -0026c610: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -0026c620: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -0026c630: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0026c640: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0026c650: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -0026c660: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -0026c670: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0026c680: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0026c690: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0026c6a0: 626c 6520 6170 6163 6865 3220 5365 7276  ble apache2 Serv
│ │ │ -0026c6b0: 6963 6520 2d20 456e 7375 7265 2061 7061  ice - Ensure apa
│ │ │ -0026c6c0: 6368 6532 2e73 6572 7669 6365 2069 7320  che2.service is 
│ │ │ -0026c6d0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -0026c6e0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0026c6f0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0026c700: 6170 6163 6865 322e 7365 7276 6963 650a  apache2.service.
│ │ │ -0026c710: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0026c720: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -0026c730: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0026c740: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0026c750: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -0026c760: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0026c770: 6573 2069 7320 7365 6172 6368 2822 6170  es is search("ap
│ │ │ -0026c780: 6163 6865 322e 7365 7276 6963 6522 2c20  ache2.service", 
│ │ │ -0026c790: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -0026c7a0: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -0026c7b0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -0026c7c0: 6170 6163 6865 322e 736f 636b 6574 0a20  apache2.socket. 
│ │ │ -0026c7d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0026c7e0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0026c7f0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0026c800: 6974 2d66 696c 6573 2061 7061 6368 6532  it-files apache2
│ │ │ -0026c810: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0026c820: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0026c830: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0026c840: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0026c850: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0026c860: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0026c870: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0026c880: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0026c890: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0026c8a0: 206e 616d 653a 2044 6973 6162 6c65 2061   name: Disable a
│ │ │ -0026c8b0: 7061 6368 6532 2053 6572 7669 6365 202d  pache2 Service -
│ │ │ -0026c8c0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -0026c8d0: 6170 6163 6865 320a 2020 2020 616e 7369  apache2.    ansi
│ │ │ -0026c8e0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0026c8f0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0026c900: 2061 7061 6368 6532 2e73 6f63 6b65 740a   apache2.socket.
│ │ │ -0026c910: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0026c920: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -0026c930: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -0026c940: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0026c950: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -0026c960: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -0026c970: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -0026c980: 2822 6170 6163 6865 322e 736f 636b 6574  ("apache2.socket
│ │ │ -0026c990: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0026c9a0: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ -0026c9b0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0026c9c0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0026c9d0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0026c9e0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0026c9f0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -0026ca00: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0026ca10: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0026ca20: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0026ca30: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0026ca40: 6564 0a20 202d 2073 6572 7669 6365 5f68  ed.  - service_h
│ │ │ -0026ca50: 7474 7064 5f64 6973 6162 6c65 640a 2020  ttpd_disabled.  
│ │ │ -0026ca60: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -0026ca70: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e  e_block.  - unkn
│ │ │ -0026ca80: 6f77 6e5f 7365 7665 7269 7479 0a20 2077  own_severity.  w
│ │ │ -0026ca90: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0026caa0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0026cab0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Complexity:low
Disrup │ │ │ -0026c3a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0026c3b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0026c3f0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0026c400: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0026bc90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0026bd30: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0026bd40: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0026bd50: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0026bd60: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0026bd70: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0026bd80: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0026bd90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0026bda0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0026bdb0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0026bdc0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0026bdd0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0026bde0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0026bdf0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0026be00: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0026be10: 6564 0a20 202d 2073 6572 7669 6365 5f68  ed.  - service_h
│ │ │ +0026be20: 7474 7064 5f64 6973 6162 6c65 640a 2020  ttpd_disabled.  
│ │ │ +0026be30: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +0026be40: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ +0026be50: 626c 6520 6170 6163 6865 3220 5365 7276  ble apache2 Serv
│ │ │ +0026be60: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ +0026be70: 7276 6963 6520 6170 6163 6865 320a 2020  rvice apache2.  
│ │ │ +0026be80: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +0026be90: 3a20 4469 7361 626c 6520 6170 6163 6865  : Disable apache
│ │ │ +0026bea0: 3220 5365 7276 6963 6520 2d20 436f 6c6c  2 Service - Coll
│ │ │ +0026beb0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +0026bec0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +0026bed0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +0026bee0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +0026bef0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +0026bf00: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +0026bf10: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +0026bf20: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +0026bf30: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0026bf40: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +0026bf50: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +0026bf60: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +0026bf70: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +0026bf80: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +0026bf90: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +0026bfa0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0026bfb0: 6c65 2061 7061 6368 6532 2053 6572 7669  le apache2 Servi
│ │ │ +0026bfc0: 6365 202d 2045 6e73 7572 6520 6170 6163  ce - Ensure apac
│ │ │ +0026bfd0: 6865 322e 7365 7276 6963 6520 6973 204d  he2.service is M
│ │ │ +0026bfe0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ +0026bff0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0026c000: 643a 0a20 2020 2020 206e 616d 653a 2061  d:.      name: a
│ │ │ +0026c010: 7061 6368 6532 2e73 6572 7669 6365 0a20  pache2.service. 
│ │ │ +0026c020: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0026c030: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0026c040: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0026c050: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0026c060: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0026c070: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0026c080: 7320 6973 2073 6561 7263 6828 2261 7061  s is search("apa
│ │ │ +0026c090: 6368 6532 2e73 6572 7669 6365 222c 206d  che2.service", m
│ │ │ +0026c0a0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +0026c0b0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +0026c0c0: 6f63 6b65 7420 4578 6973 7473 202d 2061  ocket Exists - a
│ │ │ +0026c0d0: 7061 6368 6532 2e73 6f63 6b65 740a 2020  pache2.socket.  
│ │ │ +0026c0e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0026c0f0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0026c100: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0026c110: 742d 6669 6c65 7320 6170 6163 6865 322e  t-files apache2.
│ │ │ +0026c120: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +0026c130: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +0026c140: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0026c150: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0026c160: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0026c170: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0026c180: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +0026c190: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +0026c1a0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +0026c1b0: 6e61 6d65 3a20 4469 7361 626c 6520 6170  name: Disable ap
│ │ │ +0026c1c0: 6163 6865 3220 5365 7276 6963 6520 2d20  ache2 Service - 
│ │ │ +0026c1d0: 4469 7361 626c 6520 536f 636b 6574 2061  Disable Socket a
│ │ │ +0026c1e0: 7061 6368 6532 0a20 2020 2061 6e73 6962  pache2.    ansib
│ │ │ +0026c1f0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0026c200: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0026c210: 6170 6163 6865 322e 736f 636b 6574 0a20  apache2.socket. 
│ │ │ +0026c220: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0026c230: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +0026c240: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +0026c250: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0026c260: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0026c270: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0026c280: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0026c290: 2261 7061 6368 6532 2e73 6f63 6b65 7422  "apache2.socket"
│ │ │ +0026c2a0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +0026c2b0: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ +0026c2c0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0026c2d0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0026c2e0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +0026c2f0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +0026c300: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +0026c310: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0026c320: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0026c330: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0026c340: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0026c350: 640a 2020 2d20 7365 7276 6963 655f 6874  d.  - service_ht
│ │ │ +0026c360: 7470 645f 6469 7361 626c 6564 0a20 202d  tpd_disabled.  -
│ │ │ +0026c370: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +0026c380: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f  _block.  - unkno
│ │ │ +0026c390: 776e 5f73 6576 6572 6974 790a 2020 7768  wn_severity.  wh
│ │ │ +0026c3a0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0026c3b0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0026c3c0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +0026c3e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0026c480: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +0026c490: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +0026c4a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +0026bc80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0026bcb0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0026bcc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0026bd00: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0026bd10: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0026c590: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0026c5c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +0026c5e0: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +0026c5f0: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +0026c600: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +0026c610: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +0026c620: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +0026c630: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +0026c640: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +0026c650: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +0026c660: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +0026c670: 3a20 6170 6163 6865 322e 7365 7276 6963  : apache2.servic
│ │ │ +0026c680: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ +0026c690: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +0026c6a0: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ +0026c6b0: 2020 2d20 6e61 6d65 3a20 6170 6163 6865    - name: apache
│ │ │ +0026c6c0: 322e 736f 636b 6574 0a20 2020 2020 2020  2.socket.       
│ │ │ +0026c6d0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0026c6e0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ +0026c6f0: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ +0026c700: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0026c7b0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0026c7c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ +0026c550: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +0026c560: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +0026c5a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0026c5b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0026c840: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0026c860: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0026c8b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +0026c900: 5f61 7061 6368 6532 0a0a 636c 6173 7320  _apache2..class 
│ │ │ +0026c910: 6469 7361 626c 655f 6170 6163 6865 3220  disable_apache2 
│ │ │ +0026c920: 7b0a 2020 7365 7276 6963 6520 7b27 6170  {.  service {'ap
│ │ │ +0026c930: 6163 6865 3227 3a0a 2020 2020 656e 6162  ache2':.    enab
│ │ │ +0026c940: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +0026c950: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0026c960: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +0026c970: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0026c980: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +0026ca30: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0026ca40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0026ca50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +0026ca90: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +0026caa0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +0026cab0: 3d20 5b22 6170 6163 6865 3222 5d0a 3c2f  = ["apache2"].
Remediatio │ │ │ -0026e150: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0026e160: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0026e220: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0026e230: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +0026c870: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0026c880: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0026c8c0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0026c8d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -0026e1f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0026e210: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0026e240: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0026e260: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0026e290: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -0026e2a0: 6d6f 7665 5f6e 6769 6e78 0a0a 636c 6173  move_nginx..clas
│ │ │ -0026e2b0: 7320 7265 6d6f 7665 5f6e 6769 6e78 207b  s remove_nginx {
│ │ │ -0026e2c0: 0a20 2070 6163 6b61 6765 207b 2027 6e67  .  package { 'ng
│ │ │ -0026e2d0: 696e 7827 3a0a 2020 2020 656e 7375 7265  inx':.    ensure
│ │ │ -0026e2e0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0026e2f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -0026e3b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0026e3c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0026e440: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0026e450: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0026e460: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0026e4a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0026e4b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0026e4d0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0026e4e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -0026e500: 556e 696e 7374 616c 6c20 6e67 696e 7820  Uninstall nginx 
│ │ │ -0026e510: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -0026e520: 6e67 696e 7820 6973 2072 656d 6f76 6564  nginx is removed
│ │ │ -0026e530: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0026e540: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0026e550: 206e 616d 653a 206e 6769 6e78 0a20 2020   name: nginx.   
│ │ │ -0026e560: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0026e570: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0026e580: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0026e590: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0026e5a0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -0026e5b0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -0026e5c0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0026e5d0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0026e5e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0026e5f0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -0026e600: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0026e610: 202d 2070 6163 6b61 6765 5f6e 6769 6e78   - package_nginx
│ │ │ -0026e620: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ -0026e630: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
< │ │ │ +0026e1e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0026e1f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0026e210: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0026e220: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0026e240: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0026e260: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0026e290: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +0026e2a0: 6e69 6e73 7461 6c6c 206e 6769 6e78 2050  ninstall nginx P
│ │ │ +0026e2b0: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ +0026e2c0: 6769 6e78 2069 7320 7265 6d6f 7665 6427  ginx is removed'
│ │ │ +0026e2d0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0026e2e0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0026e2f0: 6e61 6d65 3a20 6e67 696e 780a 2020 2020  name: nginx.    
│ │ │ +0026e300: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0026e310: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0026e320: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0026e330: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0026e340: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0026e350: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0026e360: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0026e370: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0026e380: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0026e390: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0026e3a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0026e3b0: 2d20 7061 636b 6167 655f 6e67 696e 785f  - package_nginx_
│ │ │ +0026e3c0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +0026e3d0: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +0026e3f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0026e490: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0026e4a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0026e4b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0026e530: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0026e560: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0026e580: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0026e590: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0026e5b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0026e5c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0026e5e0: 6c75 6465 2072 656d 6f76 655f 6e67 696e  lude remove_ngin
│ │ │ +0026e5f0: 780a 0a63 6c61 7373 2072 656d 6f76 655f  x..class remove_
│ │ │ +0026e600: 6e67 696e 7820 7b0a 2020 7061 636b 6167  nginx {.  packag
│ │ │ +0026e610: 6520 7b20 276e 6769 6e78 273a 0a20 2020  e { 'nginx':.   
│ │ │ +0026e620: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +0026e630: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediation │ │ │ -0026f3f0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -0026f400: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -0026f450: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -0026f460: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -0026f470: 6420 3d20 5b22 6e67 696e 7822 5d0a 3c2f  d = ["nginx"].
Re │ │ │ -0026f530: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -0026f540: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -0026f550: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -0026f620: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0026f640: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0026f670: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -0026f600: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ -0026f610: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ -0026f650: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0026f660: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ -0026f690: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ -0026f6a0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ -0026f6b0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ -0026f6c0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ -0026f6d0: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ -0026f6e0: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ -0026f6f0: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ -0026f700: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ -0026f710: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ -0026f720: 653a 206e 6769 6e78 2e73 6572 7669 6365  e: nginx.service
│ │ │ -0026f730: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -0026f740: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -0026f750: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -0026f760: 202d 206e 616d 653a 206e 6769 6e78 2e73   - name: nginx.s
│ │ │ -0026f770: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -0026f780: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0026f790: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -0026f7a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0026f850: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0026f860: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0026f900: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0026f9a0: 636c 7564 6520 6469 7361 626c 655f 6e67  clude disable_ng
│ │ │ -0026f9b0: 696e 780a 0a63 6c61 7373 2064 6973 6162  inx..class disab
│ │ │ -0026f9c0: 6c65 5f6e 6769 6e78 207b 0a20 2073 6572  le_nginx {.  ser
│ │ │ -0026f9d0: 7669 6365 207b 276e 6769 6e78 273a 0a20  vice {'nginx':. 
│ │ │ -0026f9e0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0026f9f0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0026fa00: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0026fa10: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0026fa20: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0026fad0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0026fae0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0026faf0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0026fb20: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -0026f8f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0026f920: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0026f930: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0026f970: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0026f980: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0026fb90: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0026fbb0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0026fbe0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0026fb70: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0026fb80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0026fbc0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0026fbd0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0026fc20: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0026fc30: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0026fc40: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0026fc50: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0026fc60: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -0026fc70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0026fc80: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0026fc90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0026fca0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0026fcb0: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -0026fcc0: 5f6e 6769 6e78 5f64 6973 6162 6c65 640a _nginx_disabled. │ │ │ -0026fcd0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665 - unknown_seve │ │ │ -0026fce0: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469 rity..- name: Di │ │ │ -0026fcf0: 7361 626c 6520 6e67 696e 7820 5365 7276 sable nginx Serv │ │ │ -0026fd00: 6963 6520 2d20 4469 7361 626c 6520 7365 ice - Disable se │ │ │ -0026fd10: 7276 6963 6520 6e67 696e 780a 2020 626c rvice nginx. bl │ │ │ -0026fd20: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ -0026fd30: 4469 7361 626c 6520 6e67 696e 7820 5365 Disable nginx Se │ │ │ -0026fd40: 7276 6963 6520 2d20 436f 6c6c 6563 7420 rvice - Collect │ │ │ -0026fd50: 7379 7374 656d 6420 5365 7276 6963 6573 systemd Services │ │ │ -0026fd60: 2050 7265 7365 6e74 2069 6e20 7468 6520 Present in the │ │ │ -0026fd70: 5379 7374 656d 0a20 2020 2061 6e73 6962 System. ansib │ │ │ -0026fd80: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -0026fd90: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -0026fda0: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -0026fdb0: 202d 2d74 7970 6520 7365 7276 6963 650a --type service. │ │ │ -0026fdc0: 2020 2020 7265 6769 7374 6572 3a20 7365 register: se │ │ │ -0026fdd0: 7276 6963 655f 6578 6973 7473 0a20 2020 rvice_exists. │ │ │ -0026fde0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ -0026fdf0: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ -0026fe00: 7768 656e 3a20 7365 7276 6963 655f 6578 when: service_ex │ │ │ -0026fe10: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ -0026fe20: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ -0026fe30: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ -0026fe40: 206e 616d 653a 2044 6973 6162 6c65 206e name: Disable n │ │ │ -0026fe50: 6769 6e78 2053 6572 7669 6365 202d 2045 ginx Service - E │ │ │ -0026fe60: 6e73 7572 6520 6e67 696e 782e 7365 7276 nsure nginx.serv │ │ │ -0026fe70: 6963 6520 6973 204d 6173 6b65 640a 2020 ice is Masked. │ │ │ -0026fe80: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -0026fe90: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -0026fea0: 206e 616d 653a 206e 6769 6e78 2e73 6572 name: nginx.ser │ │ │ -0026feb0: 7669 6365 0a20 2020 2020 2073 7461 7465 vice. state │ │ │ -0026fec0: 3a20 7374 6f70 7065 640a 2020 2020 2020 : stopped. │ │ │ -0026fed0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -0026fee0: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ -0026fef0: 650a 2020 2020 7768 656e 3a20 7365 7276 e. when: serv │ │ │ -0026ff00: 6963 655f 6578 6973 7473 2e73 7464 6f75 ice_exists.stdou │ │ │ -0026ff10: 745f 6c69 6e65 7320 6973 2073 6561 7263 t_lines is searc │ │ │ -0026ff20: 6828 226e 6769 6e78 2e73 6572 7669 6365 h("nginx.service │ │ │ -0026ff30: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -0026ff40: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e e).. - name: Un │ │ │ -0026ff50: 6974 2053 6f63 6b65 7420 4578 6973 7473 it Socket Exists │ │ │ -0026ff60: 202d 206e 6769 6e78 2e73 6f63 6b65 740a - nginx.socket. │ │ │ -0026ff70: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -0026ff80: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -0026ff90: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -0026ffa0: 6e69 742d 6669 6c65 7320 6e67 696e 782e nit-files nginx. │ │ │ -0026ffb0: 736f 636b 6574 0a20 2020 2072 6567 6973 socket. regis │ │ │ -0026ffc0: 7465 723a 2073 6f63 6b65 745f 6669 6c65 ter: socket_file │ │ │ -0026ffd0: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ -0026ffe0: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ -0026fff0: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ -00270000: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -00270010: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -00270020: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -00270030: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -00270040: 6e61 6d65 3a20 4469 7361 626c 6520 6e67 name: Disable ng │ │ │ -00270050: 696e 7820 5365 7276 6963 6520 2d20 4469 inx Service - Di │ │ │ -00270060: 7361 626c 6520 536f 636b 6574 206e 6769 sable Socket ngi │ │ │ -00270070: 6e78 0a20 2020 2061 6e73 6962 6c65 2e62 nx. ansible.b │ │ │ -00270080: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -00270090: 2020 2020 2020 6e61 6d65 3a20 6e67 696e name: ngin │ │ │ -002700a0: 782e 736f 636b 6574 0a20 2020 2020 2065 x.socket. e │ │ │ -002700b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ -002700c0: 2020 2020 7374 6174 653a 2073 746f 7070 state: stopp │ │ │ -002700d0: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ -002700e0: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ -002700f0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -00270100: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ -00270110: 6973 2073 6561 7263 6828 226e 6769 6e78 is search("nginx │ │ │ -00270120: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c .socket", multil │ │ │ -00270130: 696e 653d 5472 7565 290a 2020 7461 6773 ine=True). tags │ │ │ -00270140: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -00270150: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00270160: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00270170: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00270180: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00270190: 640a 2020 2d20 7365 7276 6963 655f 6e67 d. - service_ng │ │ │ -002701a0: 696e 785f 6469 7361 626c 6564 0a20 202d inx_disabled. - │ │ │ -002701b0: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -002701c0: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f _block. - unkno │ │ │ -002701d0: 776e 5f73 6576 6572 6974 790a 2020 7768 wn_severity. wh │ │ │ -002701e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -002701f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -00270200: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63 ts.packages'.

Complexity: │ │ │ +0026f490: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0026f4b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0026f4d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0026f500: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0026f510: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +0026f540: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0026f550: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0026f560: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0026f570: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0026f580: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0026f590: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0026f5a0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0026f5b0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0026f5c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0026f5d0: 2020 2d20 7365 7276 6963 655f 6e67 696e    - service_ngin
│ │ │ +0026f5e0: 785f 6469 7361 626c 6564 0a20 202d 2075  x_disabled.  - u
│ │ │ +0026f5f0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +0026f600: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +0026f610: 206e 6769 6e78 2053 6572 7669 6365 202d   nginx Service -
│ │ │ +0026f620: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0026f630: 206e 6769 6e78 0a20 2062 6c6f 636b 3a0a   nginx.  block:.
│ │ │ +0026f640: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0026f650: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ +0026f660: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +0026f670: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +0026f680: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +0026f690: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +0026f6a0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0026f6b0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0026f6c0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +0026f6d0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +0026f6e0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +0026f6f0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0026f700: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0026f710: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0026f720: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0026f730: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0026f740: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0026f750: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0026f760: 3a20 4469 7361 626c 6520 6e67 696e 7820  : Disable nginx 
│ │ │ +0026f770: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ +0026f780: 206e 6769 6e78 2e73 6572 7669 6365 2069   nginx.service i
│ │ │ +0026f790: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +0026f7a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0026f7b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0026f7c0: 3a20 6e67 696e 782e 7365 7276 6963 650a  : nginx.service.
│ │ │ +0026f7d0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0026f7e0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +0026f7f0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0026f800: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0026f810: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +0026f820: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0026f830: 6573 2069 7320 7365 6172 6368 2822 6e67  es is search("ng
│ │ │ +0026f840: 696e 782e 7365 7276 6963 6522 2c20 6d75  inx.service", mu
│ │ │ +0026f850: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0026f860: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0026f870: 636b 6574 2045 7869 7374 7320 2d20 6e67  cket Exists - ng
│ │ │ +0026f880: 696e 782e 736f 636b 6574 0a20 2020 2061  inx.socket.    a
│ │ │ +0026f890: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +0026f8a0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +0026f8b0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +0026f8c0: 696c 6573 206e 6769 6e78 2e73 6f63 6b65  iles nginx.socke
│ │ │ +0026f8d0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +0026f8e0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0026f8f0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0026f900: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0026f910: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +0026f920: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +0026f930: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0026f940: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0026f950: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0026f960: 2044 6973 6162 6c65 206e 6769 6e78 2053   Disable nginx S
│ │ │ +0026f970: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0026f980: 2053 6f63 6b65 7420 6e67 696e 780a 2020   Socket nginx.  
│ │ │ +0026f990: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0026f9a0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0026f9b0: 206e 616d 653a 206e 6769 6e78 2e73 6f63   name: nginx.soc
│ │ │ +0026f9c0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0026f9d0: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0026f9e0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0026f9f0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0026fa00: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0026fa10: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0026fa20: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0026fa30: 6172 6368 2822 6e67 696e 782e 736f 636b  arch("nginx.sock
│ │ │ +0026fa40: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +0026fa50: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +0026fa60: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0026fa70: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0026fa80: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0026fa90: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0026faa0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0026fab0: 2073 6572 7669 6365 5f6e 6769 6e78 5f64   service_nginx_d
│ │ │ +0026fac0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +0026fad0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +0026fae0: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365  k.  - unknown_se
│ │ │ +0026faf0: 7665 7269 7479 0a20 2077 6865 6e3a 2027  verity.  when: '
│ │ │ +0026fb00: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +0026fb10: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0026fb20: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0026fb30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0026fbe0: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ +0026fbf0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ +0026fcf0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +0026fd30: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +0026fd40: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +0026fd50: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +0026fd60: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +0026fd70: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +0026fd80: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +0026fd90: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +0026fda0: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +0026fdb0: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +0026fdc0: 2020 2020 202d 206e 616d 653a 206e 6769       - name: ngi
│ │ │ +0026fdd0: 6e78 2e73 6572 7669 6365 0a20 2020 2020  nx.service.     
│ │ │ +0026fde0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0026fdf0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ +0026fe00: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ +0026fe10: 653a 206e 6769 6e78 2e73 6f63 6b65 740a  e: nginx.socket.
│ │ │ +0026fe20: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +0026fe30: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +0026fe40: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remedi │ │ │ +0026ff00: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0026ff10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0026ff20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0026ff50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Comp │ │ │ +0026fc80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0026fc90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0026fcb0: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +0026fcc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +0026fd00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0026fd10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0026ffc0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0026ffe0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00270010: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00270030: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0026ffa0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0026ffb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0026fff0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00270000: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00270050: 6469 7361 626c 655f 6e67 696e 780a 0a63 disable_nginx..c │ │ │ +00270060: 6c61 7373 2064 6973 6162 6c65 5f6e 6769 lass disable_ngi │ │ │ +00270070: 6e78 207b 0a20 2073 6572 7669 6365 207b nx {. service { │ │ │ +00270080: 276e 6769 6e78 273a 0a20 2020 2065 6e61 'nginx':. ena │ │ │ +00270090: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ +002700a0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +002700b0: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ +002700c0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ +002700d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +00270180: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00270190: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002701a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +002701e0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +002701f0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00270200: 203d 205b 226e 6769 6e78 225d 0a3c 2f63   = ["nginx"].
│ │ │ 00270220: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 R │ │ │ -00271760: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00271770: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00271810: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00271820: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00271870: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002718b0: 6e63 6c75 6465 2072 656d 6f76 655f 646f  nclude remove_do
│ │ │ -002718c0: 7665 636f 742d 636f 7265 0a0a 636c 6173  vecot-core..clas
│ │ │ -002718d0: 7320 7265 6d6f 7665 5f64 6f76 6563 6f74  s remove_dovecot
│ │ │ -002718e0: 2d63 6f72 6520 7b0a 2020 7061 636b 6167  -core {.  packag
│ │ │ -002718f0: 6520 7b20 2764 6f76 6563 6f74 2d63 6f72  e { 'dovecot-cor
│ │ │ -00271900: 6527 3a0a 2020 2020 656e 7375 7265 203d  e':.    ensure =
│ │ │ -00271910: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00271920: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -002719e0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -002719f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -00271ab0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00271ac0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00271800: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00271830: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00271840: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00271880: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00271890: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -00271a80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00271aa0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00271ad0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00271af0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00271b20: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00271b30: 696e 7374 616c 6c20 646f 7665 636f 7420  install dovecot 
│ │ │ -00271b40: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00271b50: 646f 7665 636f 742d 636f 7265 2069 7320  dovecot-core is 
│ │ │ -00271b60: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00271b70: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00271b80: 6765 3a0a 2020 2020 6e61 6d65 3a20 646f  ge:.    name: do
│ │ │ -00271b90: 7665 636f 742d 636f 7265 0a20 2020 2073  vecot-core.    s
│ │ │ -00271ba0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00271bb0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -00271bc0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00271bd0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00271be0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00271bf0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00271c00: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00271c10: 5f64 6f76 6563 6f74 5f72 656d 6f76 6564  _dovecot_removed
│ │ │ -00271c20: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -00271c30: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.


│ │ │ +00271810: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002718b0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +002718c0: 6c20 646f 7665 636f 7420 5061 636b 6167  l dovecot Packag
│ │ │ +002718d0: 653a 2045 6e73 7572 6520 646f 7665 636f  e: Ensure doveco
│ │ │ +002718e0: 742d 636f 7265 2069 7320 7265 6d6f 7665  t-core is remove
│ │ │ +002718f0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00271900: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00271910: 2020 6e61 6d65 3a20 646f 7665 636f 742d    name: dovecot-
│ │ │ +00271920: 636f 7265 0a20 2020 2073 7461 7465 3a20  core.    state: 
│ │ │ +00271930: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00271940: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00271950: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00271960: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00271970: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00271980: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00271990: 202d 2070 6163 6b61 6765 5f64 6f76 6563   - package_dovec
│ │ │ +002719a0: 6f74 5f72 656d 6f76 6564 0a20 202d 2075  ot_removed.  - u
│ │ │ +002719b0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +002719c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00271a70: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00271a80: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00271800: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00271830: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00271840: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00271880: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00271890: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00271b20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00271bc0: 696e 636c 7564 6520 7265 6d6f 7665 5f64  include remove_d
│ │ │ +00271bd0: 6f76 6563 6f74 2d63 6f72 650a 0a63 6c61  ovecot-core..cla
│ │ │ +00271be0: 7373 2072 656d 6f76 655f 646f 7665 636f  ss remove_doveco
│ │ │ +00271bf0: 742d 636f 7265 207b 0a20 2070 6163 6b61  t-core {.  packa
│ │ │ +00271c00: 6765 207b 2027 646f 7665 636f 742d 636f  ge { 'dovecot-co
│ │ │ +00271c10: 7265 273a 0a20 2020 2065 6e73 7572 6520  re':.    ensure 
│ │ │ +00271c20: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +00271c30: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remedi │ │ │ -00272a20: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00272a30: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00272a40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00272a80: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -00272a90: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00272aa0: 0a6d 6173 6b65 6420 3d20 5b22 646f 7665  .masked = ["dove
│ │ │ -00272ab0: 636f 7422 5d0a 3c2f 636f 6465 3e3c 2f70  cot"].

Remediatio │ │ │ -00272b70: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ -00272b80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00272b90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00272bc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +00271b10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00271b40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00271b50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00271b90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00271ba0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00272c30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ -00272c10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00272c20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ -00272c60: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ -00272c70: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ -00272cb0: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ -00272cc0: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ -00272cd0: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ -00272ce0: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ -00272cf0: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ -00272d00: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ -00272d10: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ -00272d20: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ -00272d30: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ -00272d40: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ -00272d50: 2020 202d 206e 616d 653a 2064 6f76 6563     - name: dovec
│ │ │ -00272d60: 6f74 2e73 6572 7669 6365 0a20 2020 2020  ot.service.     
│ │ │ -00272d70: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00272d80: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -00272d90: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ -00272da0: 653a 2064 6f76 6563 6f74 2e73 6f63 6b65  e: dovecot.socke
│ │ │ -00272db0: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ -00272dc0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -00272dd0: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ -00272df0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00272e00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00272e10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00272e20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00272e30: 6439 3830 2220 7461 6269 6e64 6578 3d22 d980" tabindex=" │ │ │ -00272e40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00272e50: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00272e60: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00272e70: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00272e80: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00272e90: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00272ea0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00272f30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00272f40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00272f60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00272f80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00272f90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00272fd0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00272fe0: 6520 6469 7361 626c 655f 646f 7665 636f e disable_doveco │ │ │ -00272ff0: 740a 0a63 6c61 7373 2064 6973 6162 6c65 t..class disable │ │ │ -00273000: 5f64 6f76 6563 6f74 207b 0a20 2073 6572 _dovecot {. ser │ │ │ -00273010: 7669 6365 207b 2764 6f76 6563 6f74 273a vice {'dovecot': │ │ │ -00273020: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ -00273030: 3b20 6661 6c73 652c 0a20 2020 2065 6e73 ; false,. ens │ │ │ -00273040: 7572 6520 3d26 6774 3b20 2773 746f 7070 ure => 'stopp │ │ │ -00273050: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ -00273110: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00273120: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -002731b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002731c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002731e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00273200: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00273210: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00273250: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00273260: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00273270: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00273280: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00273290: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -002732a0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002732b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002732c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002732d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002732e0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -002732f0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00273300: 6365 5f64 6f76 6563 6f74 5f64 6973 6162  ce_dovecot_disab
│ │ │ -00273310: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ -00273320: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ -00273330: 3a20 4469 7361 626c 6520 446f 7665 636f  : Disable Doveco
│ │ │ -00273340: 7420 5365 7276 6963 6520 2d20 4469 7361  t Service - Disa
│ │ │ -00273350: 626c 6520 7365 7276 6963 6520 646f 7665  ble service dove
│ │ │ -00273360: 636f 740a 2020 626c 6f63 6b3a 0a0a 2020  cot.  block:..  
│ │ │ -00273370: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00273380: 446f 7665 636f 7420 5365 7276 6963 6520  Dovecot Service 
│ │ │ -00273390: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002733a0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002733b0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002733c0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002733d0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002733e0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002733f0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00273400: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00273410: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00273420: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00273430: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00273440: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00273450: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -00273460: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00273470: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00273480: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00273490: 2044 6973 6162 6c65 2044 6f76 6563 6f74   Disable Dovecot
│ │ │ -002734a0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ -002734b0: 6520 646f 7665 636f 742e 7365 7276 6963  e dovecot.servic
│ │ │ -002734c0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -002734d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002734e0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002734f0: 616d 653a 2064 6f76 6563 6f74 2e73 6572  ame: dovecot.ser
│ │ │ -00273500: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -00273510: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00273520: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00273530: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00273540: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -00273550: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -00273560: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00273570: 6828 2264 6f76 6563 6f74 2e73 6572 7669  h("dovecot.servi
│ │ │ -00273580: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ -00273590: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ -002735a0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ -002735b0: 7473 202d 2064 6f76 6563 6f74 2e73 6f63  ts - dovecot.soc
│ │ │ -002735c0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -002735d0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002735e0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002735f0: 7374 2d75 6e69 742d 6669 6c65 7320 646f  st-unit-files do
│ │ │ -00273600: 7665 636f 742e 736f 636b 6574 0a20 2020  vecot.socket.   
│ │ │ -00273610: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -00273620: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -00273630: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -00273640: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -00273650: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -00273660: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -00273670: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00273680: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00273690: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002736a0: 626c 6520 446f 7665 636f 7420 5365 7276  ble Dovecot Serv
│ │ │ -002736b0: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ -002736c0: 636b 6574 2064 6f76 6563 6f74 0a20 2020  cket dovecot.   
│ │ │ -002736d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002736e0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002736f0: 6e61 6d65 3a20 646f 7665 636f 742e 736f  name: dovecot.so
│ │ │ -00273700: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -00273710: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00273720: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00273730: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00273740: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -00273750: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -00273760: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00273770: 6561 7263 6828 2264 6f76 6563 6f74 2e73  earch("dovecot.s
│ │ │ -00273780: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00273790: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -002737a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002737b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002737c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002737d0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -002737e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002737f0: 2020 2d20 7365 7276 6963 655f 646f 7665    - service_dove
│ │ │ -00273800: 636f 745f 6469 7361 626c 6564 0a20 202d  cot_disabled.  -
│ │ │ -00273810: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00273820: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f  _block.  - unkno
│ │ │ -00273830: 776e 5f73 6576 6572 6974 790a 2020 7768  wn_severity.  wh
│ │ │ -00273840: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00273850: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00273860: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00272ae0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00272b00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00272b30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00272ac0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00272ad0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00272af0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00272b10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00272b20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00272b60: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00272b70: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00272b80: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00272b90: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00272ba0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00272bb0: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ +00272bc0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +00272bd0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +00272be0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +00272bf0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00272c00: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ +00272c10: 655f 646f 7665 636f 745f 6469 7361 626c e_dovecot_disabl │ │ │ +00272c20: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73 ed. - unknown_s │ │ │ +00272c30: 6576 6572 6974 790a 0a2d 206e 616d 653a everity..- name: │ │ │ +00272c40: 2044 6973 6162 6c65 2044 6f76 6563 6f74 Disable Dovecot │ │ │ +00272c50: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ +00272c60: 6c65 2073 6572 7669 6365 2064 6f76 6563 le service dovec │ │ │ +00272c70: 6f74 0a20 2062 6c6f 636b 3a0a 0a20 202d ot. block:.. - │ │ │ +00272c80: 206e 616d 653a 2044 6973 6162 6c65 2044 name: Disable D │ │ │ +00272c90: 6f76 6563 6f74 2053 6572 7669 6365 202d ovecot Service - │ │ │ +00272ca0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ +00272cb0: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ +00272cc0: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ +00272cd0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +00272ce0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ +00272cf0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ +00272d00: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ +00272d10: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ +00272d20: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ +00272d30: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ +00272d40: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ +00272d50: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ +00272d60: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ +00272d70: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +00272d80: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +00272d90: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +00272da0: 4469 7361 626c 6520 446f 7665 636f 7420 Disable Dovecot │ │ │ +00272db0: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ +00272dc0: 2064 6f76 6563 6f74 2e73 6572 7669 6365 dovecot.service │ │ │ +00272dd0: 2069 7320 4d61 736b 6564 0a20 2020 2061 is Masked. a │ │ │ +00272de0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ +00272df0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ +00272e00: 6d65 3a20 646f 7665 636f 742e 7365 7276 me: dovecot.serv │ │ │ +00272e10: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ +00272e20: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ +00272e30: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +00272e40: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +00272e50: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ +00272e60: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ +00272e70: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ +00272e80: 2822 646f 7665 636f 742e 7365 7276 6963 ("dovecot.servic │ │ │ +00272e90: 6522 2c20 6d75 6c74 696c 696e 653d 5472 e", multiline=Tr │ │ │ +00272ea0: 7565 290a 0a20 202d 206e 616d 653a 2055 ue).. - name: U │ │ │ +00272eb0: 6e69 7420 536f 636b 6574 2045 7869 7374 nit Socket Exist │ │ │ +00272ec0: 7320 2d20 646f 7665 636f 742e 736f 636b s - dovecot.sock │ │ │ +00272ed0: 6574 0a20 2020 2061 6e73 6962 6c65 2e62 et. ansible.b │ │ │ +00272ee0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +00272ef0: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +00272f00: 742d 756e 6974 2d66 696c 6573 2064 6f76 t-unit-files dov │ │ │ +00272f10: 6563 6f74 2e73 6f63 6b65 740a 2020 2020 ecot.socket. │ │ │ +00272f20: 7265 6769 7374 6572 3a20 736f 636b 6574 register: socket │ │ │ +00272f30: 5f66 696c 655f 6578 6973 7473 0a20 2020 _file_exists. │ │ │ +00272f40: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ +00272f50: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ +00272f60: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ +00272f70: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ +00272f80: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ +00272f90: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ +00272fa0: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ +00272fb0: 6c65 2044 6f76 6563 6f74 2053 6572 7669 le Dovecot Servi │ │ │ +00272fc0: 6365 202d 2044 6973 6162 6c65 2053 6f63 ce - Disable Soc │ │ │ +00272fd0: 6b65 7420 646f 7665 636f 740a 2020 2020 ket dovecot. │ │ │ +00272fe0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00272ff0: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +00273000: 616d 653a 2064 6f76 6563 6f74 2e73 6f63 ame: dovecot.soc │ │ │ +00273010: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ +00273020: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ +00273030: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +00273040: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +00273050: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ +00273060: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ +00273070: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +00273080: 6172 6368 2822 646f 7665 636f 742e 736f arch("dovecot.so │ │ │ +00273090: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ +002730a0: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ +002730b0: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ +002730c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ +002730d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ +002730e0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f isruption. - no │ │ │ +002730f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +00273100: 202d 2073 6572 7669 6365 5f64 6f76 6563 - service_dovec │ │ │ +00273110: 6f74 5f64 6973 6162 6c65 640a 2020 2d20 ot_disabled. - │ │ │ +00273120: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ +00273130: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ +00273140: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ +00273150: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +00273160: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +00273170: 732e 7061 636b 6167 6573 270a 3c2f 636f s.packages'.
< │ │ │ +00273190: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002731a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002731b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002731c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002731d0: 6439 3739 2220 7461 6269 6e64 6578 3d22 d979" tabindex=" │ │ │ +002731e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +002731f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00273200: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00273210: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00273220: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00273230: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +00273240: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
│ │ │ +002732e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ +00273390: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ +002733a0: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ +002733b0: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ +002733c0: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ +002733d0: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ +002733e0: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ +002733f0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ +00273400: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ +00273410: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ +00273420: 2064 6f76 6563 6f74 2e73 6572 7669 6365   dovecot.service
│ │ │ +00273430: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +00273440: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +00273450: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +00273460: 202d 206e 616d 653a 2064 6f76 6563 6f74   - name: dovecot
│ │ │ +00273470: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +00273480: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00273490: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +002734a0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +002734b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00273560: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00273570: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +002732d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00273300: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ +00273310: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ +00273350: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00273360: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +00273640: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00273650: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002736a0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002736b0: 646f 7665 636f 740a 0a63 6c61 7373 2064  dovecot..class d
│ │ │ +002736c0: 6973 6162 6c65 5f64 6f76 6563 6f74 207b  isable_dovecot {
│ │ │ +002736d0: 0a20 2073 6572 7669 6365 207b 2764 6f76  .  service {'dov
│ │ │ +002736e0: 6563 6f74 273a 0a20 2020 2065 6e61 626c  ecot':.    enabl
│ │ │ +002736f0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +00273700: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00273710: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +00273720: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +002737e0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002737f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +00273840: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00273850: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00273860: 205b 2264 6f76 6563 6f74 225d 0a3c 2f63   ["dovecot"].
│ │ │ 00273880: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediat │ │ │ -002751c0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002751d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00275250: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002752e0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002752f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00273620: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00273630: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00273670: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00273680: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -00275260: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00275270: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002752b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002752c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -00275310: 7265 6d6f 7665 5f6c 6461 702d 7574 696c  remove_ldap-util
│ │ │ -00275320: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -00275330: 6c64 6170 2d75 7469 6c73 207b 0a20 2070  ldap-utils {.  p
│ │ │ -00275340: 6163 6b61 6765 207b 2027 6c64 6170 2d75  ackage { 'ldap-u
│ │ │ -00275350: 7469 6c73 273a 0a20 2020 2065 6e73 7572  tils':.    ensur
│ │ │ -00275360: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -00275370: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00275380: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00275430: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00275440: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00275450: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00275460: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00275470: 7365 2220 6964 3d22 6964 3938 3522 3e3c se" id="id985">< │ │ │ -00275480: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00275490: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002754a0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002754b0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002754c0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002754d0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002754e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00275520: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00275530: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00275550: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00275560: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -00275580: 2745 6e73 7572 6520 4c44 4150 2063 6c69 'Ensure LDAP cli │ │ │ -00275590: 656e 7420 6973 206e 6f74 2069 6e73 7461 ent is not insta │ │ │ -002755a0: 6c6c 6564 3a20 456e 7375 7265 206c 6461 lled: Ensure lda │ │ │ -002755b0: 702d 7574 696c 7320 6973 2072 656d 6f76 p-utils is remov │ │ │ -002755c0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -002755d0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -002755e0: 2020 206e 616d 653a 206c 6461 702d 7574 name: ldap-ut │ │ │ -002755f0: 696c 730a 2020 2020 7374 6174 653a 2061 ils. state: a │ │ │ -00275600: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ -00275610: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00275620: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00275630: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00275640: 7372 7570 7469 6f6e 0a20 202d 206c 6f77 sruption. - low │ │ │ -00275650: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00275660: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00275670: 202d 2070 6163 6b61 6765 5f6f 7065 6e6c - package_openl │ │ │ -00275680: 6461 702d 636c 6965 6e74 735f 7265 6d6f dap-clients_remo │ │ │ -00275690: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
< │ │ │ +002751e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002751f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00275200: 7365 2220 6964 3d22 6964 3938 3422 3e3c se" id="id984">< │ │ │ +00275210: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00275220: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00275230: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00275240: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00275250: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00275260: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00275270: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002752b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002752c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002752e0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002752f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00275310: 2745 6e73 7572 6520 4c44 4150 2063 6c69 'Ensure LDAP cli │ │ │ +00275320: 656e 7420 6973 206e 6f74 2069 6e73 7461 ent is not insta │ │ │ +00275330: 6c6c 6564 3a20 456e 7375 7265 206c 6461 lled: Ensure lda │ │ │ +00275340: 702d 7574 696c 7320 6973 2072 656d 6f76 p-utils is remov │ │ │ +00275350: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +00275360: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +00275370: 2020 206e 616d 653a 206c 6461 702d 7574 name: ldap-ut │ │ │ +00275380: 696c 730a 2020 2020 7374 6174 653a 2061 ils. state: a │ │ │ +00275390: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ +002753a0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +002753b0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +002753c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +002753d0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77 sruption. - low │ │ │ +002753e0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +002753f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +00275400: 202d 2070 6163 6b61 6765 5f6f 7065 6e6c - package_openl │ │ │ +00275410: 6461 702d 636c 6965 6e74 735f 7265 6d6f dap-clients_remo │ │ │ +00275420: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
Remediation │ │ │ +002754e0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002754f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00275570: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00275590: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002755e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00275610: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00275580: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002755a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002755f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00275600: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00275630: 7665 5f6c 6461 702d 7574 696c 730a 0a63  ve_ldap-utils..c
│ │ │ +00275640: 6c61 7373 2072 656d 6f76 655f 6c64 6170  lass remove_ldap
│ │ │ +00275650: 2d75 7469 6c73 207b 0a20 2070 6163 6b61  -utils {.  packa
│ │ │ +00275660: 6765 207b 2027 6c64 6170 2d75 7469 6c73  ge { 'ldap-utils
│ │ │ +00275670: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00275680: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00275690: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00276e50: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00276e60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00276ef0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00276f10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00276f30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00276f60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00276f70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00276fa0: 6f76 655f 736c 6170 640a 0a63 6c61 7373  ove_slapd..class
│ │ │ -00276fb0: 2072 656d 6f76 655f 736c 6170 6420 7b0a   remove_slapd {.
│ │ │ -00276fc0: 2020 7061 636b 6167 6520 7b20 2773 6c61    package { 'sla
│ │ │ -00276fd0: 7064 273a 0a20 2020 2065 6e73 7572 6520  pd':.    ensure 
│ │ │ -00276fe0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00276ff0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -002770b0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002770c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00277140: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00277150: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00277170: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00277180: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002771a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002771c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002771f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00277200: 6e69 6e73 7461 6c6c 2073 6c61 7064 2050  ninstall slapd P
│ │ │ -00277210: 6163 6b61 6765 3a20 456e 7375 7265 2073  ackage: Ensure s
│ │ │ -00277220: 6c61 7064 2069 7320 7265 6d6f 7665 6427  lapd is removed'
│ │ │ -00277230: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00277240: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00277250: 6e61 6d65 3a20 736c 6170 640a 2020 2020  name: slapd.    
│ │ │ -00277260: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00277270: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00277280: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00277290: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002772a0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -002772b0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -002772c0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002772d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002772e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002772f0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -00277300: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00277310: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00277320: 202d 2070 6163 6b61 6765 5f6f 7065 6e6c   - package_openl
│ │ │ -00277330: 6461 702d 7365 7276 6572 735f 7265 6d6f  dap-servers_remo
│ │ │ -00277340: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

Remediation P │ │ │ +002771a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002771b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00277230: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00277250: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002772a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002772d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +002772f0: 655f 736c 6170 640a 0a63 6c61 7373 2072  e_slapd..class r
│ │ │ +00277300: 656d 6f76 655f 736c 6170 6420 7b0a 2020  emove_slapd {.  
│ │ │ +00277310: 7061 636b 6167 6520 7b20 2773 6c61 7064  package { 'slapd
│ │ │ +00277320: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00277330: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00277340: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -00278110: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00278120: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00278130: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00278140: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00278170: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00278180: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00278190: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002781a0: 2273 6c61 7064 225d 0a3c 2f63 6f64 653e  "slapd"].
│ │ │ -002781b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00278260: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ -00278270: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00278280: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +00277260: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00277270: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002772b0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002772c0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Reboot:true │ │ │ -00278370: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -002783b0: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -002783c0: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -002783d0: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -002783e0: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -002783f0: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -00278400: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -00278410: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -00278420: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -00278430: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -00278440: 2020 2020 2020 2d20 6e61 6d65 3a20 736c        - name: sl
│ │ │ -00278450: 6170 642e 7365 7276 6963 650a 2020 2020  apd.service.    
│ │ │ -00278460: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00278470: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -00278480: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ -00278490: 6d65 3a20 736c 6170 642e 736f 636b 6574  me: slapd.socket
│ │ │ -002784a0: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -002784b0: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -002784c0: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64  mask: true.
Remed │ │ │ -00278580: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00278590: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Com │ │ │ -00278300: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00278330: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -00278340: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -00278380: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00278390: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00278640: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00278660: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00278690: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00278620: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00278630: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00278650: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00278670: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00278680: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -002786d0: 2064 6973 6162 6c65 5f73 6c61 7064 0a0a disable_slapd.. │ │ │ -002786e0: 636c 6173 7320 6469 7361 626c 655f 736c class disable_sl │ │ │ -002786f0: 6170 6420 7b0a 2020 7365 7276 6963 6520 apd {. service │ │ │ -00278700: 7b27 736c 6170 6427 3a0a 2020 2020 656e {'slapd':. en │ │ │ -00278710: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ -00278720: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ -00278730: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ -00278740: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -00278800: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00278810: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -002788a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002788c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002788e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00278910: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00278920: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -00278950: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00278960: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00278970: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00278980: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00278990: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002789a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002789b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002789c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002789d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002789e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002789f0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00278a00: 736c 6170 645f 6469 7361 626c 6564 0a0a  slapd_disabled..
│ │ │ -00278a10: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00278a20: 4c44 4150 2053 6572 7665 7220 2873 6c61  LDAP Server (sla
│ │ │ -00278a30: 7064 2920 2d20 4469 7361 626c 6520 7365  pd) - Disable se
│ │ │ -00278a40: 7276 6963 6520 736c 6170 640a 2020 626c  rvice slapd.  bl
│ │ │ -00278a50: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00278a60: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ -00278a70: 7665 7220 2873 6c61 7064 2920 2d20 436f  ver (slapd) - Co
│ │ │ -00278a80: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -00278a90: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -00278aa0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -00278ab0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00278ac0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00278ad0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00278ae0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -00278af0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -00278b00: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -00278b10: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00278b20: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00278b30: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -00278b40: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -00278b50: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00278b60: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00278b70: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00278b80: 6162 6c65 204c 4441 5020 5365 7276 6572  able LDAP Server
│ │ │ -00278b90: 2028 736c 6170 6429 202d 2045 6e73 7572   (slapd) - Ensur
│ │ │ -00278ba0: 6520 736c 6170 642e 7365 7276 6963 6520  e slapd.service 
│ │ │ -00278bb0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -00278bc0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00278bd0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00278be0: 653a 2073 6c61 7064 2e73 6572 7669 6365  e: slapd.service
│ │ │ -00278bf0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -00278c00: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -00278c10: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00278c20: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -00278c30: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -00278c40: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00278c50: 6e65 7320 6973 2073 6561 7263 6828 2273  nes is search("s
│ │ │ -00278c60: 6c61 7064 2e73 6572 7669 6365 222c 206d  lapd.service", m
│ │ │ -00278c70: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00278c80: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00278c90: 6f63 6b65 7420 4578 6973 7473 202d 2073  ocket Exists - s
│ │ │ -00278ca0: 6c61 7064 2e73 6f63 6b65 740a 2020 2020  lapd.socket.    
│ │ │ -00278cb0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00278cc0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00278cd0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00278ce0: 6669 6c65 7320 736c 6170 642e 736f 636b  files slapd.sock
│ │ │ -00278cf0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -00278d00: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00278d10: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -00278d20: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -00278d30: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -00278d40: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00278d50: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00278d60: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00278d70: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00278d80: 3a20 4469 7361 626c 6520 4c44 4150 2053  : Disable LDAP S
│ │ │ -00278d90: 6572 7665 7220 2873 6c61 7064 2920 2d20  erver (slapd) - 
│ │ │ -00278da0: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ -00278db0: 6c61 7064 0a20 2020 2061 6e73 6962 6c65  lapd.    ansible
│ │ │ -00278dc0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -00278dd0: 3a0a 2020 2020 2020 6e61 6d65 3a20 736c  :.      name: sl
│ │ │ -00278de0: 6170 642e 736f 636b 6574 0a20 2020 2020  apd.socket.     
│ │ │ -00278df0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00278e00: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00278e10: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -00278e20: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -00278e30: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00278e40: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00278e50: 7320 6973 2073 6561 7263 6828 2273 6c61  s is search("sla
│ │ │ -00278e60: 7064 2e73 6f63 6b65 7422 2c20 6d75 6c74  pd.socket", mult
│ │ │ -00278e70: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00278e80: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00278e90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00278ea0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00278eb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00278ec0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00278ed0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00278ee0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00278ef0: 6963 655f 736c 6170 645f 6469 7361 626c  ice_slapd_disabl
│ │ │ -00278f00: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00278f10: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00278f20: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00278f30: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00278f40: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
│ │ │ +002781c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00278260: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00278270: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00278280: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00278290: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002782a0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +002782b0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002782c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002782d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002782e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002782f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00278300: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00278310: 202d 2073 6572 7669 6365 5f73 6c61 7064   - service_slapd
│ │ │ +00278320: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ +00278330: 653a 2044 6973 6162 6c65 204c 4441 5020  e: Disable LDAP 
│ │ │ +00278340: 5365 7276 6572 2028 736c 6170 6429 202d  Server (slapd) -
│ │ │ +00278350: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +00278360: 2073 6c61 7064 0a20 2062 6c6f 636b 3a0a   slapd.  block:.
│ │ │ +00278370: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +00278380: 6c65 204c 4441 5020 5365 7276 6572 2028  le LDAP Server (
│ │ │ +00278390: 736c 6170 6429 202d 2043 6f6c 6c65 6374  slapd) - Collect
│ │ │ +002783a0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +002783b0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +002783c0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +002783d0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002783e0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +002783f0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00278400: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00278410: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00278420: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00278430: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00278440: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00278450: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00278460: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00278470: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00278480: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00278490: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002784a0: 4c44 4150 2053 6572 7665 7220 2873 6c61  LDAP Server (sla
│ │ │ +002784b0: 7064 2920 2d20 456e 7375 7265 2073 6c61  pd) - Ensure sla
│ │ │ +002784c0: 7064 2e73 6572 7669 6365 2069 7320 4d61  pd.service is Ma
│ │ │ +002784d0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +002784e0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002784f0: 3a0a 2020 2020 2020 6e61 6d65 3a20 736c  :.      name: sl
│ │ │ +00278500: 6170 642e 7365 7276 6963 650a 2020 2020  apd.service.    
│ │ │ +00278510: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00278520: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00278530: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +00278540: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00278550: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00278560: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00278570: 7320 7365 6172 6368 2822 736c 6170 642e  s search("slapd.
│ │ │ +00278580: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +00278590: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +002785a0: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +002785b0: 2045 7869 7374 7320 2d20 736c 6170 642e   Exists - slapd.
│ │ │ +002785c0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +002785d0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +002785e0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +002785f0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00278600: 2073 6c61 7064 2e73 6f63 6b65 740a 2020   slapd.socket.  
│ │ │ +00278610: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +00278620: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +00278630: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00278640: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00278650: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +00278660: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +00278670: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00278680: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +00278690: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002786a0: 6162 6c65 204c 4441 5020 5365 7276 6572  able LDAP Server
│ │ │ +002786b0: 2028 736c 6170 6429 202d 2044 6973 6162   (slapd) - Disab
│ │ │ +002786c0: 6c65 2053 6f63 6b65 7420 736c 6170 640a  le Socket slapd.
│ │ │ +002786d0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002786e0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002786f0: 2020 206e 616d 653a 2073 6c61 7064 2e73     name: slapd.s
│ │ │ +00278700: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +00278710: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00278720: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00278730: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00278740: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +00278750: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00278760: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00278770: 7365 6172 6368 2822 736c 6170 642e 736f  search("slapd.so
│ │ │ +00278780: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00278790: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +002787a0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002787b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002787c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002787d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +002787e0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +002787f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00278800: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +00278810: 6c61 7064 5f64 6973 6162 6c65 640a 2020  lapd_disabled.  
│ │ │ +00278820: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +00278830: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +00278840: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00278850: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00278860: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00278870: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00278920: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ +00278930: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00278940: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +002781b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002781e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002781f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00278230: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00278240: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Reboot:true │ │ │ +00278a30: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ +00278a70: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ +00278a80: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ +00278a90: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ +00278aa0: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ +00278ab0: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ +00278ac0: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ +00278ad0: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ +00278ae0: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ +00278af0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ +00278b00: 2020 2020 2020 2d20 6e61 6d65 3a20 736c        - name: sl
│ │ │ +00278b10: 6170 642e 7365 7276 6963 650a 2020 2020  apd.service.    
│ │ │ +00278b20: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00278b30: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +00278b40: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +00278b50: 6d65 3a20 736c 6170 642e 736f 636b 6574  me: slapd.socket
│ │ │ +00278b60: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +00278b70: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +00278b80: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64  mask: true.
Remed │ │ │ +00278c40: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00278c50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Com │ │ │ +002789c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002789f0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +00278a00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ +00278a40: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00278a50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00278d00: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00278d20: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00278d50: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00278ce0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00278cf0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00278d10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00278d30: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00278d40: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00278d90: 2064 6973 6162 6c65 5f73 6c61 7064 0a0a disable_slapd.. │ │ │ +00278da0: 636c 6173 7320 6469 7361 626c 655f 736c class disable_sl │ │ │ +00278db0: 6170 6420 7b0a 2020 7365 7276 6963 6520 apd {. service │ │ │ +00278dc0: 7b27 736c 6170 6427 3a0a 2020 2020 656e {'slapd':. en │ │ │ +00278dd0: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ +00278de0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ +00278df0: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ +00278e00: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ +00278ec0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00278ed0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00278f20: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00278f30: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +00278f40: 6420 3d20 5b22 736c 6170 6422 5d0a 3c2f  d = ["slapd"].
Rem │ │ │ -0027d5f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0027d600: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0027d610: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0027d6b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0027d700: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0027d740: 636c 7564 6520 7265 6d6f 7665 5f72 7063  clude remove_rpc
│ │ │ -0027d750: 6269 6e64 0a0a 636c 6173 7320 7265 6d6f  bind..class remo
│ │ │ -0027d760: 7665 5f72 7063 6269 6e64 207b 0a20 2070  ve_rpcbind {.  p
│ │ │ -0027d770: 6163 6b61 6765 207b 2027 7270 6362 696e  ackage { 'rpcbin
│ │ │ -0027d780: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -0027d790: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0027d7a0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -0027d860: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -0027d870: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -0027d8f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0027d980: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0027d990: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -0027d690: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0027d6c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0027d6e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0027d6f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0027d710: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0027d720: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -0027d900: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027d910: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0027d950: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027d960: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ -0027d9b0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0027d9c0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0027d9d0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0027d9e0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0027d9f0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -0027da00: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0027da10: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0027da20: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0027da30: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -0027da40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0027da50: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0027da60: 7270 6362 696e 645f 7265 6d6f 7665 640a  rpcbind_removed.
│ │ │ -0027da70: 0a2d 206e 616d 653a 2027 556e 696e 7374  .- name: 'Uninst
│ │ │ -0027da80: 616c 6c20 7270 6362 696e 6420 5061 636b  all rpcbind Pack
│ │ │ -0027da90: 6167 653a 2045 6e73 7572 6520 7270 6362  age: Ensure rpcb
│ │ │ -0027daa0: 696e 6420 6973 2072 656d 6f76 6564 270a  ind is removed'.
│ │ │ -0027dab0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0027dac0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0027dad0: 616d 653a 2072 7063 6269 6e64 0a20 2020  ame: rpcbind.   
│ │ │ -0027dae0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0027daf0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -0027db00: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0027db10: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -0027db20: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -0027db30: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0027db40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0027db50: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0027db60: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -0027db70: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0027db80: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0027db90: 6b61 6765 5f72 7063 6269 6e64 5f72 656d  kage_rpcbind_rem
│ │ │ -0027dba0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +0027d610: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +0027d6a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027d6b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0027d700: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0027d740: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0027d750: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0027d760: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0027d770: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0027d780: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +0027d790: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0027d7a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0027d7b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0027d7c0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +0027d7d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0027d7e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0027d7f0: 6163 6b61 6765 5f72 7063 6269 6e64 5f72  ackage_rpcbind_r
│ │ │ +0027d800: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ +0027d810: 2755 6e69 6e73 7461 6c6c 2072 7063 6269  'Uninstall rpcbi
│ │ │ +0027d820: 6e64 2050 6163 6b61 6765 3a20 456e 7375  nd Package: Ensu
│ │ │ +0027d830: 7265 2072 7063 6269 6e64 2069 7320 7265  re rpcbind is re
│ │ │ +0027d840: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0027d850: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0027d860: 3a0a 2020 2020 6e61 6d65 3a20 7270 6362  :.    name: rpcb
│ │ │ +0027d870: 696e 640a 2020 2020 7374 6174 653a 2061  ind.    state: a
│ │ │ +0027d880: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ +0027d890: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0027d8a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0027d8b0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +0027d8c0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0027d8d0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0027d8e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0027d8f0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +0027d900: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +0027d910: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0027d920: 2020 2d20 7061 636b 6167 655f 7270 6362    - package_rpcb
│ │ │ +0027d930: 696e 645f 7265 6d6f 7665 640a 3c2f 636f  ind_removed.
< │ │ │ +0027d950: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0027d960: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0027d970: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0027d980: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0027d990: 6431 3030 3222 2074 6162 696e 6465 783d d1002" tabindex= │ │ │ +0027d9a0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +0027d9b0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +0027d9c0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +0027d9d0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +0027d9e0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +0027d9f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0027da00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0027da10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +0027d690: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0027d6c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0027d6d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0027d710: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0027d720: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +0027dab0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0027db00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0027db40: 636c 7564 6520 7265 6d6f 7665 5f72 7063  clude remove_rpc
│ │ │ +0027db50: 6269 6e64 0a0a 636c 6173 7320 7265 6d6f  bind..class remo
│ │ │ +0027db60: 7665 5f72 7063 6269 6e64 207b 0a20 2070  ve_rpcbind {.  p
│ │ │ +0027db70: 6163 6b61 6765 207b 2027 7270 6362 696e  ackage { 'rpcbin
│ │ │ +0027db80: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +0027db90: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0027dba0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remedi
│ │ │ -0027ecb0: 6174 696f 6e20 4f53 4275 696c 6420 426c  ation OSBuild Bl
│ │ │ -0027ecc0: 7565 7072 696e 7420 736e 6970 7065 7420  ueprint snippet 
│ │ │ -0027ecd0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
.[customi
│ │ │ -0027ed20: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -0027ed30: 5d0a 6d61 736b 6564 203d 205b 2272 7063  ].masked = ["rpc
│ │ │ -0027ed40: 6269 6e64 225d 0a3c 2f63 6f64 653e 3c2f  bind"].
Remediat │ │ │ -0027ee00: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ -0027ee10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Co │ │ │ +0027da90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0027dac0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0027dae0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0027daf0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0027db10: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0027db20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Reboot:true │ │ │ -0027ef10: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -0027ef50: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -0027ef60: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -0027ef70: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -0027ef80: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -0027ef90: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -0027efa0: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -0027efb0: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -0027efc0: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -0027efd0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -0027efe0: 2020 2020 2020 2d20 6e61 6d65 3a20 7270        - name: rp
│ │ │ -0027eff0: 6362 696e 642e 7365 7276 6963 650a 2020  cbind.service.  
│ │ │ -0027f000: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0027f010: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -0027f020: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ -0027f030: 6e61 6d65 3a20 7270 6362 696e 642e 736f  name: rpcbind.so
│ │ │ -0027f040: 636b 6574 0a20 2020 2020 2020 2065 6e61  cket.        ena
│ │ │ -0027f050: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0027f060: 2020 2020 6d61 736b 3a20 7472 7565 0a3c      mask: true.<
│ │ │ -0027f070: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -0027f120: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0027f130: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Com │ │ │ -0027eea0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0027eed0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -0027eee0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -0027ef20: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0027ef30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0027f210: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0027f220: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0027f270: 6e63 6c75 6465 2064 6973 6162 6c65 5f72  nclude disable_r
│ │ │ -0027f280: 7063 6269 6e64 0a0a 636c 6173 7320 6469  pcbind..class di
│ │ │ -0027f290: 7361 626c 655f 7270 6362 696e 6420 7b0a  sable_rpcbind {.
│ │ │ -0027f2a0: 2020 7365 7276 6963 6520 7b27 7270 6362    service {'rpcb
│ │ │ -0027f2b0: 696e 6427 3a0a 2020 2020 656e 6162 6c65  ind':.    enable
│ │ │ -0027f2c0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -0027f2d0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0027f2e0: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -0027f2f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -0027f3b0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0027f3c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ -0027f1f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0027f200: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0027f240: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0027f250: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0027f440: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0027f460: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0027f4b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0027f4e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0027f500: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0027f510: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0027f520: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0027f530: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0027f540: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -0027f550: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -0027f560: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -0027f570: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0027f580: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0027f590: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0027f5a0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -0027f5b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0027f5c0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0027f5d0: 5f72 7063 6269 6e64 5f64 6973 6162 6c65  _rpcbind_disable
│ │ │ -0027f5e0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0027f5f0: 6c65 2072 7063 6269 6e64 2053 6572 7669  le rpcbind Servi
│ │ │ -0027f600: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ -0027f610: 7669 6365 2072 7063 6269 6e64 0a20 2062  vice rpcbind.  b
│ │ │ -0027f620: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -0027f630: 2044 6973 6162 6c65 2072 7063 6269 6e64   Disable rpcbind
│ │ │ -0027f640: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ -0027f650: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -0027f660: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ -0027f670: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -0027f680: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0027f690: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0027f6a0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0027f6b0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -0027f6c0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -0027f6d0: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -0027f6e0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0027f6f0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0027f700: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -0027f710: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0027f720: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0027f730: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0027f740: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0027f750: 6520 7270 6362 696e 6420 5365 7276 6963  e rpcbind Servic
│ │ │ -0027f760: 6520 2d20 456e 7375 7265 2072 7063 6269  e - Ensure rpcbi
│ │ │ -0027f770: 6e64 2e73 6572 7669 6365 2069 7320 4d61  nd.service is Ma
│ │ │ -0027f780: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ -0027f790: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0027f7a0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7270  :.      name: rp
│ │ │ -0027f7b0: 6362 696e 642e 7365 7276 6963 650a 2020  cbind.service.  
│ │ │ -0027f7c0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0027f7d0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -0027f7e0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -0027f7f0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -0027f800: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -0027f810: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -0027f820: 2069 7320 7365 6172 6368 2822 7270 6362   is search("rpcb
│ │ │ -0027f830: 696e 642e 7365 7276 6963 6522 2c20 6d75  ind.service", mu
│ │ │ -0027f840: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ -0027f850: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ -0027f860: 636b 6574 2045 7869 7374 7320 2d20 7270  cket Exists - rp
│ │ │ -0027f870: 6362 696e 642e 736f 636b 6574 0a20 2020  cbind.socket.   
│ │ │ -0027f880: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0027f890: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0027f8a0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0027f8b0: 2d66 696c 6573 2072 7063 6269 6e64 2e73  -files rpcbind.s
│ │ │ -0027f8c0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -0027f8d0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -0027f8e0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -0027f8f0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -0027f900: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -0027f910: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0027f920: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -0027f930: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -0027f940: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -0027f950: 616d 653a 2044 6973 6162 6c65 2072 7063  ame: Disable rpc
│ │ │ -0027f960: 6269 6e64 2053 6572 7669 6365 202d 2044  bind Service - D
│ │ │ -0027f970: 6973 6162 6c65 2053 6f63 6b65 7420 7270  isable Socket rp
│ │ │ -0027f980: 6362 696e 640a 2020 2020 616e 7369 626c  cbind.    ansibl
│ │ │ -0027f990: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0027f9a0: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -0027f9b0: 7063 6269 6e64 2e73 6f63 6b65 740a 2020  pcbind.socket.  
│ │ │ -0027f9c0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0027f9d0: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -0027f9e0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -0027f9f0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -0027fa00: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0027fa10: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -0027fa20: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -0027fa30: 7270 6362 696e 642e 736f 636b 6574 222c  rpcbind.socket",
│ │ │ -0027fa40: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0027fa50: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -0027fa60: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0027fa70: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -0027fa80: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0027fa90: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0027faa0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0027fab0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -0027fac0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -0027fad0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0027fae0: 2020 2d20 7365 7276 6963 655f 7270 6362    - service_rpcb
│ │ │ -0027faf0: 696e 645f 6469 7361 626c 6564 0a20 202d  ind_disabled.  -
│ │ │ -0027fb00: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0027fb10: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -0027fb20: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0027fb30: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0027fb40: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0027ecb0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +0027ecc0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
low
Disr │ │ │ -0027f470: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0027f480: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0027f4c0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0027f4d0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ +0027ed50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0027ed60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0027ed80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0027eda0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0027edb0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0027edf0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0027ee00: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0027ee10: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0027ee20: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0027ee30: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0027ee40: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +0027ee50: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +0027ee60: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +0027ee70: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0027ee80: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0027ee90: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0027eea0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +0027eeb0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0027eec0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0027eed0: 2d20 7365 7276 6963 655f 7270 6362 696e  - service_rpcbin
│ │ │ +0027eee0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ +0027eef0: 6d65 3a20 4469 7361 626c 6520 7270 6362  me: Disable rpcb
│ │ │ +0027ef00: 696e 6420 5365 7276 6963 6520 2d20 4469  ind Service - Di
│ │ │ +0027ef10: 7361 626c 6520 7365 7276 6963 6520 7270  sable service rp
│ │ │ +0027ef20: 6362 696e 640a 2020 626c 6f63 6b3a 0a0a  cbind.  block:..
│ │ │ +0027ef30: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0027ef40: 6520 7270 6362 696e 6420 5365 7276 6963  e rpcbind Servic
│ │ │ +0027ef50: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +0027ef60: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +0027ef70: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +0027ef80: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +0027ef90: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0027efa0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0027efb0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +0027efc0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +0027efd0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +0027efe0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0027eff0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0027f000: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0027f010: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0027f020: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0027f030: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0027f040: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0027f050: 653a 2044 6973 6162 6c65 2072 7063 6269  e: Disable rpcbi
│ │ │ +0027f060: 6e64 2053 6572 7669 6365 202d 2045 6e73  nd Service - Ens
│ │ │ +0027f070: 7572 6520 7270 6362 696e 642e 7365 7276  ure rpcbind.serv
│ │ │ +0027f080: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +0027f090: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0027f0a0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0027f0b0: 206e 616d 653a 2072 7063 6269 6e64 2e73   name: rpcbind.s
│ │ │ +0027f0c0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +0027f0d0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +0027f0e0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0027f0f0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027f100: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +0027f110: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +0027f120: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +0027f130: 7263 6828 2272 7063 6269 6e64 2e73 6572  rch("rpcbind.ser
│ │ │ +0027f140: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +0027f150: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +0027f160: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +0027f170: 6973 7473 202d 2072 7063 6269 6e64 2e73  ists - rpcbind.s
│ │ │ +0027f180: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +0027f190: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +0027f1a0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +0027f1b0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +0027f1c0: 7270 6362 696e 642e 736f 636b 6574 0a20  rpcbind.socket. 
│ │ │ +0027f1d0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +0027f1e0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +0027f1f0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0027f200: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0027f210: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +0027f220: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +0027f230: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0027f240: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0027f250: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0027f260: 7361 626c 6520 7270 6362 696e 6420 5365  sable rpcbind Se
│ │ │ +0027f270: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +0027f280: 536f 636b 6574 2072 7063 6269 6e64 0a20  Socket rpcbind. 
│ │ │ +0027f290: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0027f2a0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0027f2b0: 2020 6e61 6d65 3a20 7270 6362 696e 642e    name: rpcbind.
│ │ │ +0027f2c0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0027f2d0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027f2e0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0027f2f0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027f300: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0027f310: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0027f320: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0027f330: 2073 6561 7263 6828 2272 7063 6269 6e64   search("rpcbind
│ │ │ +0027f340: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +0027f350: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +0027f360: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ +0027f370: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0027f380: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +0027f390: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0027f3a0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0027f3b0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0027f3c0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +0027f3d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0027f3e0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0027f3f0: 7669 6365 5f72 7063 6269 6e64 5f64 6973  vice_rpcbind_dis
│ │ │ +0027f400: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0027f410: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0027f420: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +0027f430: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +0027f440: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0027f450: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ku │ │ │ +0027f510: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ +0027f520: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0027f5a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0027f5b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0027f5d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0027f5e0: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +0027f5f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +0027f600: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +0027f610: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0027f630: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0027f640: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +0027f660: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +0027f670: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +0027f680: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +0027f690: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +0027f6a0: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +0027f6b0: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +0027f6c0: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +0027f6d0: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +0027f6e0: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +0027f6f0: 2d20 6e61 6d65 3a20 7270 6362 696e 642e - name: rpcbind. │ │ │ +0027f700: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +0027f710: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +0027f720: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +0027f730: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +0027f740: 7270 6362 696e 642e 736f 636b 6574 0a20 rpcbind.socket. │ │ │ +0027f750: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ +0027f760: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ +0027f770: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ +0027f780: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +0027f830: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0027f840: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0027f850: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0027f8f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0027f910: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0027f940: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0027f8d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0027f8e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0027f900: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0027f920: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0027f930: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0027f980: 2064 6973 6162 6c65 5f72 7063 6269 6e64 disable_rpcbind │ │ │ +0027f990: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +0027f9a0: 7270 6362 696e 6420 7b0a 2020 7365 7276 rpcbind {. serv │ │ │ +0027f9b0: 6963 6520 7b27 7270 6362 696e 6427 3a0a ice {'rpcbind':. │ │ │ +0027f9c0: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ +0027f9d0: 2066 616c 7365 2c0a 2020 2020 656e 7375 false,. ensu │ │ │ +0027f9e0: 7265 203d 2667 743b 2027 7374 6f70 7065 re => 'stoppe │ │ │ +0027f9f0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remed │ │ │ +0027fab0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0027fac0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0027fad0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +0027fb20: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0027fb30: 735d 0a6d 6173 6b65 6420 3d20 5b22 7270 s].masked = ["rp │ │ │ +0027fb40: 6362 696e 6422 5d0a 3c2f 636f 6465 3e3c cbind"].< │ │ │ 0027fb50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediation │ │ │ -00281750: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00281760: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ -002817c0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -002817d0: 6b65 6420 3d20 5b22 6e66 732d 7365 7276  ked = ["nfs-serv
│ │ │ -002817e0: 6572 225d 0a3c 2f63 6f64 653e 3c2f 7072  er"].
Remediatio │ │ │ -002818a0: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ -002818b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002818c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00281960: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ -00281940: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00281950: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00281970: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ -00281990: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002819a0: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ -002819c0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002819d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ -002819f0: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ -00281a00: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ -00281a10: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ -00281a20: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ -00281a30: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ -00281a40: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ -00281a50: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ -00281a60: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ -00281a70: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ -00281a80: 2020 2020 2d20 6e61 6d65 3a20 6e66 732d      - name: nfs-
│ │ │ -00281a90: 7365 7276 6572 2e73 6572 7669 6365 0a20  server.service. 
│ │ │ -00281aa0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -00281ab0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -00281ac0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -00281ad0: 206e 616d 653a 206e 6673 2d73 6572 7665   name: nfs-serve
│ │ │ -00281ae0: 722e 736f 636b 6574 0a20 2020 2020 2020  r.socket.       
│ │ │ -00281af0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00281b00: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -00281b10: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ -00281b20: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00281bd0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00281be0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -00281c70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00281c90: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00281cb0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00281ce0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00281cf0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00281d00: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -00281d20: 6c65 5f6e 6673 2d73 6572 7665 720a 0a63  le_nfs-server..c
│ │ │ -00281d30: 6c61 7373 2064 6973 6162 6c65 5f6e 6673  lass disable_nfs
│ │ │ -00281d40: 2d73 6572 7665 7220 7b0a 2020 7365 7276  -server {.  serv
│ │ │ -00281d50: 6963 6520 7b27 6e66 732d 7365 7276 6572  ice {'nfs-server
│ │ │ -00281d60: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00281d70: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -00281d80: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -00281d90: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -00281db0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00281e50: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00281e60: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00281f00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00281fa0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00281fb0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00281fc0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00281fd0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00281fe0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00281ff0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00282000: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00282010: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -00282020: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00282030: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -00282040: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00282050: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00282060: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00282070: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00282080: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ -00282090: 6673 5f64 6973 6162 6c65 640a 2020 2d20  fs_disabled.  - 
│ │ │ -002820a0: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -002820b0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -002820c0: 6520 4e65 7477 6f72 6b20 4669 6c65 2053  e Network File S
│ │ │ -002820d0: 7973 7465 6d20 286e 6673 2920 2d20 4469  ystem (nfs) - Di
│ │ │ -002820e0: 7361 626c 6520 7365 7276 6963 6520 6e66  sable service nf
│ │ │ -002820f0: 732d 7365 7276 6572 0a20 2062 6c6f 636b  s-server.  block
│ │ │ -00282100: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -00282110: 6162 6c65 204e 6574 776f 726b 2046 696c  able Network Fil
│ │ │ -00282120: 6520 5379 7374 656d 2028 6e66 7329 202d  e System (nfs) -
│ │ │ -00282130: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -00282140: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -00282150: 7420 696e 0a20 2020 2020 2074 6865 2053  t in.      the S
│ │ │ -00282160: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ -00282170: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00282180: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -00282190: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002821a0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ -002821b0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ -002821c0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ -002821d0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -002821e0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -002821f0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00282200: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00282210: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00282220: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00282230: 6e61 6d65 3a20 4469 7361 626c 6520 4e65  name: Disable Ne
│ │ │ -00282240: 7477 6f72 6b20 4669 6c65 2053 7973 7465  twork File Syste
│ │ │ -00282250: 6d20 286e 6673 2920 2d20 456e 7375 7265  m (nfs) - Ensure
│ │ │ -00282260: 206e 6673 2d73 6572 7665 722e 7365 7276   nfs-server.serv
│ │ │ -00282270: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -00282280: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00282290: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002822a0: 206e 616d 653a 206e 6673 2d73 6572 7665   name: nfs-serve
│ │ │ -002822b0: 722e 7365 7276 6963 650a 2020 2020 2020  r.service.      
│ │ │ -002822c0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -002822d0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002822e0: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -002822f0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00282300: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00282310: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00282320: 7365 6172 6368 2822 6e66 732d 7365 7276  search("nfs-serv
│ │ │ -00282330: 6572 2e73 6572 7669 6365 222c 206d 756c  er.service", mul
│ │ │ -00282340: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -00282350: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -00282360: 6b65 7420 4578 6973 7473 202d 206e 6673  ket Exists - nfs
│ │ │ -00282370: 2d73 6572 7665 722e 736f 636b 6574 0a20  -server.socket. 
│ │ │ -00282380: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00282390: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -002823a0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -002823b0: 6974 2d66 696c 6573 206e 6673 2d73 6572  it-files nfs-ser
│ │ │ -002823c0: 7665 722e 736f 636b 6574 0a20 2020 2072  ver.socket.    r
│ │ │ -002823d0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -002823e0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -002823f0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -00282400: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -00282410: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00282420: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -00282430: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -00282440: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -00282450: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00282460: 6520 4e65 7477 6f72 6b20 4669 6c65 2053  e Network File S
│ │ │ -00282470: 7973 7465 6d20 286e 6673 2920 2d20 4469  ystem (nfs) - Di
│ │ │ -00282480: 7361 626c 6520 536f 636b 6574 206e 6673  sable Socket nfs
│ │ │ -00282490: 2d73 6572 7665 720a 2020 2020 616e 7369  -server.    ansi
│ │ │ -002824a0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002824b0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002824c0: 206e 6673 2d73 6572 7665 722e 736f 636b   nfs-server.sock
│ │ │ -002824d0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -002824e0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -002824f0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -00282500: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00282510: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -00282520: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -00282530: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -00282540: 7263 6828 226e 6673 2d73 6572 7665 722e  rch("nfs-server.
│ │ │ -00282550: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -00282560: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -00282570: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00282580: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -00282590: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002825a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002825b0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -002825c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002825d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002825e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002825f0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00282600: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00282610: 7669 6365 5f6e 6673 5f64 6973 6162 6c65  vice_nfs_disable
│ │ │ -00282620: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00282630: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ -00282640: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -00282650: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00282660: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00282670: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00282680: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00281750: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +00281760: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002817e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00281820: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ -00281ef0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00281f20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00281f30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00281f70: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00281f80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +002817f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00281810: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00281840: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00281860: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00281890: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +002818a0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +002818b0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +002818c0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +002818d0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +002818e0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +002818f0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00281900: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00281910: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00281920: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +00281930: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00281940: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00281950: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00281960: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +00281970: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00281980: 7276 6963 655f 6e66 735f 6469 7361 626c  rvice_nfs_disabl
│ │ │ +00281990: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +002819a0: 6576 6572 6974 790a 0a2d 206e 616d 653a  everity..- name:
│ │ │ +002819b0: 2044 6973 6162 6c65 204e 6574 776f 726b   Disable Network
│ │ │ +002819c0: 2046 696c 6520 5379 7374 656d 2028 6e66   File System (nf
│ │ │ +002819d0: 7329 202d 2044 6973 6162 6c65 2073 6572  s) - Disable ser
│ │ │ +002819e0: 7669 6365 206e 6673 2d73 6572 7665 720a  vice nfs-server.
│ │ │ +002819f0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00281a00: 6d65 3a20 4469 7361 626c 6520 4e65 7477  me: Disable Netw
│ │ │ +00281a10: 6f72 6b20 4669 6c65 2053 7973 7465 6d20  ork File System 
│ │ │ +00281a20: 286e 6673 2920 2d20 436f 6c6c 6563 7420  (nfs) - Collect 
│ │ │ +00281a30: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +00281a40: 2050 7265 7365 6e74 2069 6e0a 2020 2020   Present in.    
│ │ │ +00281a50: 2020 7468 6520 5379 7374 656d 0a20 2020    the System.   
│ │ │ +00281a60: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00281a70: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00281a80: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00281a90: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +00281aa0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +00281ab0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +00281ac0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00281ad0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00281ae0: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +00281af0: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +00281b00: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00281b10: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +00281b20: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +00281b30: 6162 6c65 204e 6574 776f 726b 2046 696c  able Network Fil
│ │ │ +00281b40: 6520 5379 7374 656d 2028 6e66 7329 202d  e System (nfs) -
│ │ │ +00281b50: 2045 6e73 7572 6520 6e66 732d 7365 7276   Ensure nfs-serv
│ │ │ +00281b60: 6572 2e73 6572 7669 6365 2069 7320 4d61  er.service is Ma
│ │ │ +00281b70: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +00281b80: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00281b90: 3a0a 2020 2020 2020 6e61 6d65 3a20 6e66  :.      name: nf
│ │ │ +00281ba0: 732d 7365 7276 6572 2e73 6572 7669 6365  s-server.service
│ │ │ +00281bb0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00281bc0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +00281bd0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00281be0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00281bf0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +00281c00: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +00281c10: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ +00281c20: 6673 2d73 6572 7665 722e 7365 7276 6963  fs-server.servic
│ │ │ +00281c30: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +00281c40: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +00281c50: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +00281c60: 7320 2d20 6e66 732d 7365 7276 6572 2e73  s - nfs-server.s
│ │ │ +00281c70: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +00281c80: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00281c90: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00281ca0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00281cb0: 6e66 732d 7365 7276 6572 2e73 6f63 6b65  nfs-server.socke
│ │ │ +00281cc0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00281cd0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00281ce0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00281cf0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00281d00: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00281d10: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00281d20: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00281d30: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00281d40: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00281d50: 2044 6973 6162 6c65 204e 6574 776f 726b   Disable Network
│ │ │ +00281d60: 2046 696c 6520 5379 7374 656d 2028 6e66   File System (nf
│ │ │ +00281d70: 7329 202d 2044 6973 6162 6c65 2053 6f63  s) - Disable Soc
│ │ │ +00281d80: 6b65 7420 6e66 732d 7365 7276 6572 0a20  ket nfs-server. 
│ │ │ +00281d90: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00281da0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00281db0: 2020 6e61 6d65 3a20 6e66 732d 7365 7276    name: nfs-serv
│ │ │ +00281dc0: 6572 2e73 6f63 6b65 740a 2020 2020 2020  er.socket.      
│ │ │ +00281dd0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00281de0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00281df0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +00281e00: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +00281e10: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00281e20: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00281e30: 2069 7320 7365 6172 6368 2822 6e66 732d   is search("nfs-
│ │ │ +00281e40: 7365 7276 6572 2e73 6f63 6b65 7422 2c20  server.socket", 
│ │ │ +00281e50: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00281e60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00281e70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00281e80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00281e90: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00281ea0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +00281eb0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00281ec0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00281ed0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00281ee0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00281ef0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00281f00: 2020 2d20 7365 7276 6963 655f 6e66 735f    - service_nfs_
│ │ │ +00281f10: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00281f20: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00281f30: 636b 0a20 202d 2075 6e6b 6e6f 776e 5f73  ck.  - unknown_s
│ │ │ +00281f40: 6576 6572 6974 790a 2020 7768 656e 3a20  everity.  when: 
│ │ │ +00281f50: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00281f60: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00281f70: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00281f80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00282030: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ +00282040: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00282050: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +002820e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002820f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00282120: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00282130: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ +00282180: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ +00282190: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ +002821a0: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ +002821b0: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ +002821c0: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ +002821d0: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ +002821e0: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ +002821f0: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ +00282200: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ +00282210: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ +00282220: 6e66 732d 7365 7276 6572 2e73 6572 7669  nfs-server.servi
│ │ │ +00282230: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +00282240: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00282250: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +00282260: 2020 202d 206e 616d 653a 206e 6673 2d73     - name: nfs-s
│ │ │ +00282270: 6572 7665 722e 736f 636b 6574 0a20 2020  erver.socket.   
│ │ │ +00282280: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00282290: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +002822a0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.Remediat
│ │ │ +00282360: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +00282370: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +002823b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002823c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002823d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002823e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002823f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00282480: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00282490: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +002820d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00282100: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ +00282110: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ +00282150: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00282160: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ +00282400: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00282410: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00282450: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00282460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ +002824b0: 6973 6162 6c65 5f6e 6673 2d73 6572 7665  isable_nfs-serve
│ │ │ +002824c0: 720a 0a63 6c61 7373 2064 6973 6162 6c65  r..class disable
│ │ │ +002824d0: 5f6e 6673 2d73 6572 7665 7220 7b0a 2020  _nfs-server {.  
│ │ │ +002824e0: 7365 7276 6963 6520 7b27 6e66 732d 7365  service {'nfs-se
│ │ │ +002824f0: 7276 6572 273a 0a20 2020 2065 6e61 626c  rver':.    enabl
│ │ │ +00282500: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +00282510: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00282520: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +00282530: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OS │ │ │ +002825f0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00282600: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00282610: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ +00282650: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00282660: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00282670: 203d 205b 226e 6673 2d73 6572 7665 7222   = ["nfs-server"
│ │ │ +00282680: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00282690: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -00283670: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00283680: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -00283710: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00283730: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00283750: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00283780: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00283790: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -002837c0: 6f76 655f 6e66 732d 6b65 726e 656c 2d73  ove_nfs-kernel-s
│ │ │ -002837d0: 6572 7665 720a 0a63 6c61 7373 2072 656d  erver..class rem
│ │ │ -002837e0: 6f76 655f 6e66 732d 6b65 726e 656c 2d73  ove_nfs-kernel-s
│ │ │ -002837f0: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ -00283800: 6520 7b20 276e 6673 2d6b 6572 6e65 6c2d  e { 'nfs-kernel-
│ │ │ -00283810: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ -00283820: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00283830: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -002838f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00283900: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -00283990: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002839c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002839e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002839f0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00283a10: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00283a20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00283a40: 6d65 3a20 2755 6e69 6e73 7461 6c6c 206e  me: 'Uninstall n
│ │ │ -00283a50: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572  fs-kernel-server
│ │ │ -00283a60: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -00283a70: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276   nfs-kernel-serv
│ │ │ -00283a80: 6572 2069 7320 7265 6d6f 7665 6427 0a20  er is removed'. 
│ │ │ -00283a90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00283aa0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00283ab0: 6d65 3a20 6e66 732d 6b65 726e 656c 2d73  me: nfs-kernel-s
│ │ │ -00283ac0: 6572 7665 720a 2020 2020 7374 6174 653a  erver.    state:
│ │ │ -00283ad0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -00283ae0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ -00283af0: 5455 2d32 322d 3231 3530 3430 0a20 202d  TU-22-215040.  -
│ │ │ -00283b00: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00283b10: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00283b20: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00283b30: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -00283b40: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00283b50: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00283b60: 2d20 7061 636b 6167 655f 6e66 732d 6b65  - package_nfs-ke
│ │ │ -00283b70: 726e 656c 2d73 6572 7665 725f 7265 6d6f  rnel-server_remo
│ │ │ -00283b80: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

Complexity │ │ │ +00283710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00283730: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00283740: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00283750: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00283760: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00283780: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002837b0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +002837c0: 696e 7374 616c 6c20 6e66 732d 6b65 726e  install nfs-kern
│ │ │ +002837d0: 656c 2d73 6572 7665 7220 5061 636b 6167  el-server Packag
│ │ │ +002837e0: 653a 2045 6e73 7572 6520 6e66 732d 6b65  e: Ensure nfs-ke
│ │ │ +002837f0: 726e 656c 2d73 6572 7665 7220 6973 2072  rnel-server is r
│ │ │ +00283800: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00283810: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00283820: 653a 0a20 2020 206e 616d 653a 206e 6673  e:.    name: nfs
│ │ │ +00283830: 2d6b 6572 6e65 6c2d 7365 7276 6572 0a20  -kernel-server. 
│ │ │ +00283840: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00283850: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ +00283860: 412d 5354 4947 2d55 4254 552d 3232 2d32  A-STIG-UBTU-22-2
│ │ │ +00283870: 3135 3034 300a 2020 2d20 6469 7361 626c  15040.  - disabl
│ │ │ +00283880: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00283890: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002838a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002838b0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002838c0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002838d0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002838e0: 6765 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ge_nfs-kernel-se
│ │ │ +002838f0: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +00283910: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002839b0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002839c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002839d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +00283a60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00283a70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00283ac0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00283b00: 6e63 6c75 6465 2072 656d 6f76 655f 6e66  nclude remove_nf
│ │ │ +00283b10: 732d 6b65 726e 656c 2d73 6572 7665 720a  s-kernel-server.
│ │ │ +00283b20: 0a63 6c61 7373 2072 656d 6f76 655f 6e66  .class remove_nf
│ │ │ +00283b30: 732d 6b65 726e 656c 2d73 6572 7665 7220  s-kernel-server 
│ │ │ +00283b40: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ +00283b50: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572  fs-kernel-server
│ │ │ +00283b60: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00283b70: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00283b80: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Reme │ │ │ -00295c70: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00295c80: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ +00283a50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00283a80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00283a90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00283ad0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00283ae0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -00295d10: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00295d40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00295d60: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00295d70: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00295d90: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00295da0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00295dc0: 6c75 6465 2072 656d 6f76 655f 7869 6e65  lude remove_xine
│ │ │ -00295dd0: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ -00295de0: 5f78 696e 6574 6420 7b0a 2020 7061 636b  _xinetd {.  pack
│ │ │ -00295df0: 6167 6520 7b20 2778 696e 6574 6427 3a0a  age { 'xinetd':.
│ │ │ -00295e00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00295e10: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -00295e20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -00295ee0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00295ef0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -00295f70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00295f90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00295fe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00296010: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00295f80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00295fa0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00295ff0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00296000: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00296030: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00296040: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00296050: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00296060: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00296070: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00296080: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00296090: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -002960a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002960b0: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ -002960c0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -002960d0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -002960e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002960f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00296100: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00296110: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -00296120: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00296130: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00296140: 2d20 7061 636b 6167 655f 7869 6e65 7464  - package_xinetd
│ │ │ -00296150: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ -00296160: 3a20 2755 6e69 6e73 7461 6c6c 2078 696e  : 'Uninstall xin
│ │ │ -00296170: 6574 6420 7061 636b 6167 6520 6966 206e  etd package if n
│ │ │ -00296180: 6f74 2075 7365 6420 6279 206e 6574 776f  ot used by netwo
│ │ │ -00296190: 726b 2073 6572 7669 6365 733a 2045 6e73  rk services: Ens
│ │ │ -002961a0: 7572 6520 7869 6e65 7464 2069 730a 2020  ure xinetd is.  
│ │ │ -002961b0: 2020 7265 6d6f 7665 6427 0a20 2061 6e73    removed'.  ans
│ │ │ -002961c0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002961d0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002961e0: 7869 6e65 7464 0a20 2020 2073 7461 7465  xinetd.    state
│ │ │ -002961f0: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ -00296200: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00296210: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00296220: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00296230: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00296240: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00296250: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00296260: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00296270: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ -00296280: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00296290: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002962a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002962b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002962c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002962d0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -002962e0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -002962f0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00296300: 0a20 202d 2070 6163 6b61 6765 5f78 696e  .  - package_xin
│ │ │ -00296310: 6574 645f 7265 6d6f 7665 640a 3c2f 636f  etd_removed.<
│ │ │ +00295c90: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low< │ │ │ +00295d30: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00295d80: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00295dc0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00295dd0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00295de0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00295df0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00295e00: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00295e10: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00295e20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00295e30: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00295e40: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00295e50: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00295e60: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00295e70: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +00295e80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00295e90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00295ea0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00295eb0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +00295ec0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00295ed0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00295ee0: 6167 655f 7869 6e65 7464 5f72 656d 6f76  age_xinetd_remov
│ │ │ +00295ef0: 6564 0a0a 2d20 6e61 6d65 3a20 2755 6e69  ed..- name: 'Uni
│ │ │ +00295f00: 6e73 7461 6c6c 2078 696e 6574 6420 7061  nstall xinetd pa
│ │ │ +00295f10: 636b 6167 6520 6966 206e 6f74 2075 7365  ckage if not use
│ │ │ +00295f20: 6420 6279 206e 6574 776f 726b 2073 6572  d by network ser
│ │ │ +00295f30: 7669 6365 733a 2045 6e73 7572 6520 7869  vices: Ensure xi
│ │ │ +00295f40: 6e65 7464 2069 730a 2020 2020 7265 6d6f  netd is.    remo
│ │ │ +00295f50: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00295f60: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00295f70: 2020 2020 6e61 6d65 3a20 7869 6e65 7464      name: xinetd
│ │ │ +00295f80: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00295f90: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00295fa0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00295fb0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00295fc0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00295fd0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00295fe0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00295ff0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00296000: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00296010: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ +00296020: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00296030: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +00296040: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00296050: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00296060: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00296070: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +00296080: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00296090: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +002960a0: 6163 6b61 6765 5f78 696e 6574 645f 7265  ackage_xinetd_re
│ │ │ +002960b0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediati │ │ │ +00296170: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00296180: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00296200: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00296290: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002962a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ +00295d10: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00295d40: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00295d60: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00295d70: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00295d90: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00295da0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +00296210: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00296220: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00296260: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00296270: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +002962c0: 7265 6d6f 7665 5f78 696e 6574 640a 0a63  remove_xinetd..c
│ │ │ +002962d0: 6c61 7373 2072 656d 6f76 655f 7869 6e65  lass remove_xine
│ │ │ +002962e0: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ +002962f0: 2027 7869 6e65 7464 273a 0a20 2020 2065   'xinetd':.    e
│ │ │ +00296300: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00296310: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00296330: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00296340: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00296350: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00296360: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00296370: 6431 3035 3022 2074 6162 696e 6465 783d d1050" tabindex= │ │ │ 00296380: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -169888,254 +169888,254 @@ │ │ │ 002979f0: 7267 6574 3d22 2369 6431 3035 3222 2074 rget="#id1052" t │ │ │ 00297a00: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 00297a10: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 00297a20: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 00297a30: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 00297a40: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 00297a50: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -00297a60: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00297a70: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ -00297ad0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -00297ae0: 6b65 6420 3d20 5b22 7869 6e65 7464 225d  ked = ["xinetd"]
│ │ │ -00297af0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ku │ │ │ -00297bb0: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -00297bc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00297c40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00297c50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00297c70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00297c80: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ -00297c90: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ -00297ca0: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ -00297cb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00297cd0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00297ce0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ -00297d00: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ -00297d10: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ -00297d20: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ -00297d30: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ -00297d40: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ -00297d50: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ -00297d60: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ -00297d70: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ -00297d80: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ -00297d90: 2d20 6e61 6d65 3a20 7869 6e65 7464 2e73 - name: xinetd.s │ │ │ -00297da0: 6572 7669 6365 0a20 2020 2020 2020 2065 ervice. e │ │ │ -00297db0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ -00297dc0: 2020 2020 2020 6d61 736b 3a20 7472 7565 mask: true │ │ │ -00297dd0: 0a20 2020 2020 202d 206e 616d 653a 2078 . - name: x │ │ │ -00297de0: 696e 6574 642e 736f 636b 6574 0a20 2020 inetd.socket. │ │ │ -00297df0: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ -00297e00: 6c73 650a 2020 2020 2020 2020 6d61 736b lse. mask │ │ │ -00297e10: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f : true.
Remediat │ │ │ -00297ed0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00297ee0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00297f20: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00297f30: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00297f40: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00297f50: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00297f60: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00297f70: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00297f80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00297fc0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00297fd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00297ff0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00298000: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -00298020: 6973 6162 6c65 5f78 696e 6574 640a 0a63  isable_xinetd..c
│ │ │ -00298030: 6c61 7373 2064 6973 6162 6c65 5f78 696e  lass disable_xin
│ │ │ -00298040: 6574 6420 7b0a 2020 7365 7276 6963 6520  etd {.  service 
│ │ │ -00298050: 7b27 7869 6e65 7464 273a 0a20 2020 2065  {'xinetd':.    e
│ │ │ -00298060: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -00298070: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00298080: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -00298090: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -00298150: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00298160: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002981e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002981f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00298200: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00298240: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00298250: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00298270: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00298280: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -002982a0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002982b0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002982c0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002982d0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002982e0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002982f0: 3137 312d 332e 342e 370a 2020 2d20 4e49  171-3.4.7.  - NI
│ │ │ -00298300: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00298310: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00298320: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00298330: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00298340: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00298350: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00298360: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00298370: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00298380: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00298390: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002983a0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002983b0: 655f 7869 6e65 7464 5f64 6973 6162 6c65  e_xinetd_disable
│ │ │ -002983c0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -002983d0: 6c65 2078 696e 6574 6420 5365 7276 6963  le xinetd Servic
│ │ │ -002983e0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -002983f0: 6963 6520 7869 6e65 7464 0a20 2062 6c6f  ice xinetd.  blo
│ │ │ -00298400: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -00298410: 6973 6162 6c65 2078 696e 6574 6420 5365  isable xinetd Se
│ │ │ -00298420: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -00298430: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00298440: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00298450: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00298460: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00298470: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00298480: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00298490: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -002984a0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -002984b0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -002984c0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002984d0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002984e0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002984f0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00298500: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00298510: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00298520: 206e 616d 653a 2044 6973 6162 6c65 2078   name: Disable x
│ │ │ -00298530: 696e 6574 6420 5365 7276 6963 6520 2d20  inetd Service - 
│ │ │ -00298540: 456e 7375 7265 2078 696e 6574 642e 7365  Ensure xinetd.se
│ │ │ -00298550: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00298560: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00298570: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00298580: 2020 206e 616d 653a 2078 696e 6574 642e     name: xinetd.
│ │ │ -00298590: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -002985a0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002985b0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002985c0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -002985d0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -002985e0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -002985f0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00298600: 6172 6368 2822 7869 6e65 7464 2e73 6572  arch("xinetd.ser
│ │ │ -00298610: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00298620: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00298630: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00298640: 6973 7473 202d 2078 696e 6574 642e 736f  ists - xinetd.so
│ │ │ -00298650: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00298660: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00298670: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00298680: 6973 742d 756e 6974 2d66 696c 6573 2078  ist-unit-files x
│ │ │ -00298690: 696e 6574 642e 736f 636b 6574 0a20 2020  inetd.socket.   
│ │ │ -002986a0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002986b0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002986c0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002986d0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002986e0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002986f0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -00298700: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00298710: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00298720: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00298730: 626c 6520 7869 6e65 7464 2053 6572 7669  ble xinetd Servi
│ │ │ -00298740: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -00298750: 6b65 7420 7869 6e65 7464 0a20 2020 2061  ket xinetd.    a
│ │ │ -00298760: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00298770: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00298780: 6d65 3a20 7869 6e65 7464 2e73 6f63 6b65  me: xinetd.socke
│ │ │ -00298790: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002987a0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002987b0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002987c0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002987d0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002987e0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002987f0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00298800: 6368 2822 7869 6e65 7464 2e73 6f63 6b65  ch("xinetd.socke
│ │ │ -00298810: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -00298820: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -00298830: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ -00298840: 2e37 0a20 202d 204e 4953 542d 3830 302d  .7.  - NIST-800-
│ │ │ -00298850: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00298860: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00298870: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00298880: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -00298890: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002988a0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002988b0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002988c0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002988d0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002988e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002988f0: 202d 2073 6572 7669 6365 5f78 696e 6574   - service_xinet
│ │ │ -00298900: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -00298910: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00298920: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00298930: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00298940: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00298950: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


< │ │ │ +00297af0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00297b00: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00297b20: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00297b30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00297b50: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00297b70: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00297ba0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00297bb0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00297bc0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00297bd0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00297be0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00297bf0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +00297c00: 3731 2d33 2e34 2e37 0a20 202d 204e 4953  71-3.4.7.  - NIS
│ │ │ +00297c10: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00297c20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00297c30: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00297c40: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00297c50: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00297c60: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00297c70: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00297c80: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00297c90: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00297ca0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00297cb0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00297cc0: 5f78 696e 6574 645f 6469 7361 626c 6564  _xinetd_disabled
│ │ │ +00297cd0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +00297ce0: 6520 7869 6e65 7464 2053 6572 7669 6365  e xinetd Service
│ │ │ +00297cf0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00297d00: 6365 2078 696e 6574 640a 2020 626c 6f63  ce xinetd.  bloc
│ │ │ +00297d10: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +00297d20: 7361 626c 6520 7869 6e65 7464 2053 6572  sable xinetd Ser
│ │ │ +00297d30: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +00297d40: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +00297d50: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +00297d60: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +00297d70: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00297d80: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00297d90: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00297da0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +00297db0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +00297dc0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +00297dd0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00297de0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00297df0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00297e00: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +00297e10: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +00297e20: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +00297e30: 6e61 6d65 3a20 4469 7361 626c 6520 7869  name: Disable xi
│ │ │ +00297e40: 6e65 7464 2053 6572 7669 6365 202d 2045  netd Service - E
│ │ │ +00297e50: 6e73 7572 6520 7869 6e65 7464 2e73 6572  nsure xinetd.ser
│ │ │ +00297e60: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +00297e70: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00297e80: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00297e90: 2020 6e61 6d65 3a20 7869 6e65 7464 2e73    name: xinetd.s
│ │ │ +00297ea0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +00297eb0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00297ec0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00297ed0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00297ee0: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +00297ef0: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +00297f00: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00297f10: 7263 6828 2278 696e 6574 642e 7365 7276  rch("xinetd.serv
│ │ │ +00297f20: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +00297f30: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +00297f40: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +00297f50: 7374 7320 2d20 7869 6e65 7464 2e73 6f63  sts - xinetd.soc
│ │ │ +00297f60: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +00297f70: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00297f80: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00297f90: 7374 2d75 6e69 742d 6669 6c65 7320 7869  st-unit-files xi
│ │ │ +00297fa0: 6e65 7464 2e73 6f63 6b65 740a 2020 2020  netd.socket.    
│ │ │ +00297fb0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +00297fc0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +00297fd0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00297fe0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00297ff0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00298000: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +00298010: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +00298020: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +00298030: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +00298040: 6c65 2078 696e 6574 6420 5365 7276 6963  le xinetd Servic
│ │ │ +00298050: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00298060: 6574 2078 696e 6574 640a 2020 2020 616e  et xinetd.    an
│ │ │ +00298070: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00298080: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00298090: 653a 2078 696e 6574 642e 736f 636b 6574  e: xinetd.socket
│ │ │ +002980a0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002980b0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +002980c0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +002980d0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +002980e0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +002980f0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +00298100: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +00298110: 6828 2278 696e 6574 642e 736f 636b 6574  h("xinetd.socket
│ │ │ +00298120: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00298130: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ +00298140: 4953 542d 3830 302d 3137 312d 332e 342e  IST-800-171-3.4.
│ │ │ +00298150: 370a 2020 2d20 4e49 5354 2d38 3030 2d35  7.  - NIST-800-5
│ │ │ +00298160: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00298170: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00298180: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00298190: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +002981a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002981b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002981c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002981d0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +002981e0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002981f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00298200: 2d20 7365 7276 6963 655f 7869 6e65 7464  - service_xinetd
│ │ │ +00298210: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +00298220: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +00298230: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +00298240: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00298250: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00298260: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediatio │ │ │ +00298320: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ +00298330: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00298340: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002983e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ +002983c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002983d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002983f0: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ +00298410: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00298420: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ +00298440: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00298450: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ +00298470: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ +00298480: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ +00298490: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ +002984a0: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ +002984b0: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ +002984c0: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ +002984d0: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ +002984e0: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ +002984f0: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ +00298500: 2020 2020 2d20 6e61 6d65 3a20 7869 6e65      - name: xine
│ │ │ +00298510: 7464 2e73 6572 7669 6365 0a20 2020 2020  td.service.     
│ │ │ +00298520: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +00298530: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ +00298540: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ +00298550: 653a 2078 696e 6574 642e 736f 636b 6574  e: xinetd.socket
│ │ │ +00298560: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +00298570: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +00298580: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64  mask: true.
Reme │ │ │ +00298640: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00298650: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +002986e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00298710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00298730: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00298740: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00298760: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00298780: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00298790: 6465 2064 6973 6162 6c65 5f78 696e 6574  de disable_xinet
│ │ │ +002987a0: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +002987b0: 5f78 696e 6574 6420 7b0a 2020 7365 7276  _xinetd {.  serv
│ │ │ +002987c0: 6963 6520 7b27 7869 6e65 7464 273a 0a20  ice {'xinetd':. 
│ │ │ +002987d0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +002987e0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +002987f0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +00298800: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00298810: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002988c0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +002988d0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +002988e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +00298930: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00298940: 5d0a 6d61 736b 6564 203d 205b 2278 696e  ].masked = ["xin
│ │ │ +00298950: 6574 6422 5d0a 3c2f 636f 6465 3e3c 2f70  etd"].

Remediation │ │ │ -0029a560: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0029a570: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -0029a600: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0029a620: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0029a630: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0029a640: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0029a650: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0029a670: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0029a6a0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -0029a6b0: 6d6f 7665 5f79 7073 6572 760a 0a63 6c61  move_ypserv..cla
│ │ │ -0029a6c0: 7373 2072 656d 6f76 655f 7970 7365 7276  ss remove_ypserv
│ │ │ -0029a6d0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -0029a6e0: 7970 7365 7276 273a 0a20 2020 2065 6e73  ypserv':.    ens
│ │ │ -0029a6f0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0029a700: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -0029a7c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0029a7d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -0029a860: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0029a890: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0029a8b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0029a8c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0029a8e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0029a8f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0029a910: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2079  me: 'Uninstall y
│ │ │ -0029a920: 7073 6572 7620 5061 636b 6167 653a 2045  pserv Package: E
│ │ │ -0029a930: 6e73 7572 6520 7970 7365 7276 2069 7320  nsure ypserv is 
│ │ │ -0029a940: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -0029a950: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0029a960: 6765 3a0a 2020 2020 6e61 6d65 3a20 7970  ge:.    name: yp
│ │ │ -0029a970: 7365 7276 0a20 2020 2073 7461 7465 3a20  serv.    state: 
│ │ │ -0029a980: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0029a990: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0029a9a0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0029a9b0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0029a9c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0029a9d0: 4d2d 3728 6229 0a20 202d 204e 4953 542d  M-7(b).  - NIST-
│ │ │ -0029a9e0: 3830 302d 3533 2d49 412d 3528 3129 2863  800-53-IA-5(1)(c
│ │ │ -0029a9f0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -0029aa00: 712d 322e 322e 320a 2020 2d20 5043 492d  q-2.2.2.  - PCI-
│ │ │ -0029aa10: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -0029aa20: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -0029aa30: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0029aa40: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -0029aa50: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -0029aa60: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0029aa70: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -0029aa80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0029aa90: 2020 2d20 7061 636b 6167 655f 7970 7365    - package_ypse
│ │ │ -0029aaa0: 7276 5f72 656d 6f76 6564 0a3c 2f63 6f64  rv_removed.
< │ │ │ +0029a5f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0029a600: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0029a620: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0029a630: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0029a650: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0029a670: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0029a6a0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +0029a6b0: 6e69 6e73 7461 6c6c 2079 7073 6572 7620  ninstall ypserv 
│ │ │ +0029a6c0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +0029a6d0: 7970 7365 7276 2069 7320 7265 6d6f 7665  ypserv is remove
│ │ │ +0029a6e0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0029a6f0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0029a700: 2020 6e61 6d65 3a20 7970 7365 7276 0a20    name: ypserv. 
│ │ │ +0029a710: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0029a720: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0029a730: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0029a740: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0029a750: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0029a760: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0029a770: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0029a780: 2d49 412d 3528 3129 2863 290a 2020 2d20  -IA-5(1)(c).  - 
│ │ │ +0029a790: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ +0029a7a0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +0029a7b0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0029a7c0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +0029a7d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0029a7e0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +0029a7f0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0029a800: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0029a810: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +0029a820: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0029a830: 636b 6167 655f 7970 7365 7276 5f72 656d  ckage_ypserv_rem
│ │ │ +0029a840: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +0029a900: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0029a910: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0029a990: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0029a9a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0029a9c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0029a9d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0029a9f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0029aa10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0029aa40: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0029aa50: 656d 6f76 655f 7970 7365 7276 0a0a 636c  emove_ypserv..cl
│ │ │ +0029aa60: 6173 7320 7265 6d6f 7665 5f79 7073 6572  ass remove_ypser
│ │ │ +0029aa70: 7620 7b0a 2020 7061 636b 6167 6520 7b20  v {.  package { 
│ │ │ +0029aa80: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ +0029aa90: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0029aaa0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation OSB │ │ │ -0029b910: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0029b920: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -0029b970: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0029b980: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -0029b990: 3d20 5b22 7970 7365 7276 225d 0a3c 2f63  = ["ypserv"].
│ │ │ -0029b9b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -0029ba50: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -0029ba60: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -0029ba70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -0029baf0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0029bb10: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -0029bb40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -0029bb20: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0029bb30: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -0029bb50: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -0029bb70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0029bb80: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -0029bbb0: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -0029bbc0: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -0029bbd0: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -0029bbe0: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -0029bbf0: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -0029bc00: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -0029bc10: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -0029bc20: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -0029bc30: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -0029bc40: 6d65 3a20 7970 7365 7276 2e73 6572 7669  me: ypserv.servi
│ │ │ -0029bc50: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ -0029bc60: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0029bc70: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ -0029bc80: 2020 202d 206e 616d 653a 2079 7073 6572     - name: ypser
│ │ │ -0029bc90: 762e 736f 636b 6574 0a20 2020 2020 2020  v.socket.       
│ │ │ -0029bca0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0029bcb0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -0029bcc0: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ -0029bcd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -0029bd80: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0029bd90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0029be20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0029be40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0029be60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0029be90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0029bea0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -0029beb0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -0029bed0: 6c65 5f79 7073 6572 760a 0a63 6c61 7373  le_ypserv..class
│ │ │ -0029bee0: 2064 6973 6162 6c65 5f79 7073 6572 7620   disable_ypserv 
│ │ │ -0029bef0: 7b0a 2020 7365 7276 6963 6520 7b27 7970  {.  service {'yp
│ │ │ -0029bf00: 7365 7276 273a 0a20 2020 2065 6e61 626c  serv':.    enabl
│ │ │ -0029bf10: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -0029bf20: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0029bf30: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -0029bf40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0029c000: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0029c010: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0029c090: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0029c0b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0029c100: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0029c130: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0029c0a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0029c0c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0029c110: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0029c120: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -0029c150: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0029c160: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0029c170: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0029c180: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0029c190: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0029c1a0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0029c1b0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0029c1c0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0029c1d0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0029c1e0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0029c1f0: 6564 0a20 202d 2073 6572 7669 6365 5f79  ed.  - service_y
│ │ │ -0029c200: 7073 6572 765f 6469 7361 626c 6564 0a0a  pserv_disabled..
│ │ │ -0029c210: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -0029c220: 7970 7365 7276 2053 6572 7669 6365 202d  ypserv Service -
│ │ │ -0029c230: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ -0029c240: 2079 7073 6572 760a 2020 626c 6f63 6b3a   ypserv.  block:
│ │ │ -0029c250: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0029c260: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ -0029c270: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -0029c280: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -0029c290: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -0029c2a0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -0029c2b0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0029c2c0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0029c2d0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -0029c2e0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -0029c2f0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -0029c300: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -0029c310: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -0029c320: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -0029c330: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0029c340: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0029c350: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0029c360: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0029c370: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ -0029c380: 7276 2053 6572 7669 6365 202d 2045 6e73  rv Service - Ens
│ │ │ -0029c390: 7572 6520 7970 7365 7276 2e73 6572 7669  ure ypserv.servi
│ │ │ -0029c3a0: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -0029c3b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0029c3c0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -0029c3d0: 6e61 6d65 3a20 7970 7365 7276 2e73 6572  name: ypserv.ser
│ │ │ -0029c3e0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -0029c3f0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -0029c400: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0029c410: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -0029c420: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -0029c430: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -0029c440: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -0029c450: 6828 2279 7073 6572 762e 7365 7276 6963  h("ypserv.servic
│ │ │ -0029c460: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -0029c470: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -0029c480: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -0029c490: 7320 2d20 7970 7365 7276 2e73 6f63 6b65  s - ypserv.socke
│ │ │ -0029c4a0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -0029c4b0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -0029c4c0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -0029c4d0: 2d75 6e69 742d 6669 6c65 7320 7970 7365  -unit-files ypse
│ │ │ -0029c4e0: 7276 2e73 6f63 6b65 740a 2020 2020 7265  rv.socket.    re
│ │ │ -0029c4f0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -0029c500: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -0029c510: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0029c520: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0029c530: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0029c540: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0029c550: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0029c560: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0029c570: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0029c580: 2079 7073 6572 7620 5365 7276 6963 6520   ypserv Service 
│ │ │ -0029c590: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0029c5a0: 2079 7073 6572 760a 2020 2020 616e 7369   ypserv.    ansi
│ │ │ -0029c5b0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0029c5c0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0029c5d0: 2079 7073 6572 762e 736f 636b 6574 0a20   ypserv.socket. 
│ │ │ -0029c5e0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0029c5f0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -0029c600: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -0029c610: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0029c620: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0029c630: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0029c640: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0029c650: 2279 7073 6572 762e 736f 636b 6574 222c  "ypserv.socket",
│ │ │ -0029c660: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0029c670: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -0029c680: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0029c690: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0029c6a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0029c6b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0029c6c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0029c6d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0029c6e0: 2073 6572 7669 6365 5f79 7073 6572 765f   service_ypserv_
│ │ │ -0029c6f0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0029c700: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0029c710: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -0029c720: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0029c730: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0029c740: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation Ans │ │ │ +0029b910: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0029b920: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +0029b9a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0029b9c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0029ba10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0029ba40: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0029ba60: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0029ba70: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0029ba80: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0029ba90: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0029baa0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0029bab0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0029bac0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0029bad0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0029bae0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0029baf0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0029bb00: 640a 2020 2d20 7365 7276 6963 655f 7970  d.  - service_yp
│ │ │ +0029bb10: 7365 7276 5f64 6973 6162 6c65 640a 0a2d  serv_disabled..-
│ │ │ +0029bb20: 206e 616d 653a 2044 6973 6162 6c65 2079   name: Disable y
│ │ │ +0029bb30: 7073 6572 7620 5365 7276 6963 6520 2d20  pserv Service - 
│ │ │ +0029bb40: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +0029bb50: 7970 7365 7276 0a20 2062 6c6f 636b 3a0a  ypserv.  block:.
│ │ │ +0029bb60: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0029bb70: 6c65 2079 7073 6572 7620 5365 7276 6963  le ypserv Servic
│ │ │ +0029bb80: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +0029bb90: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +0029bba0: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +0029bbb0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +0029bbc0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0029bbd0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0029bbe0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +0029bbf0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +0029bc00: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +0029bc10: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0029bc20: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0029bc30: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0029bc40: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0029bc50: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0029bc60: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0029bc70: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0029bc80: 653a 2044 6973 6162 6c65 2079 7073 6572  e: Disable ypser
│ │ │ +0029bc90: 7620 5365 7276 6963 6520 2d20 456e 7375  v Service - Ensu
│ │ │ +0029bca0: 7265 2079 7073 6572 762e 7365 7276 6963  re ypserv.servic
│ │ │ +0029bcb0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +0029bcc0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0029bcd0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0029bce0: 616d 653a 2079 7073 6572 762e 7365 7276  ame: ypserv.serv
│ │ │ +0029bcf0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +0029bd00: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +0029bd10: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0029bd20: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0029bd30: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +0029bd40: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +0029bd50: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +0029bd60: 2822 7970 7365 7276 2e73 6572 7669 6365  ("ypserv.service
│ │ │ +0029bd70: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +0029bd80: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +0029bd90: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +0029bda0: 202d 2079 7073 6572 762e 736f 636b 6574   - ypserv.socket
│ │ │ +0029bdb0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0029bdc0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0029bdd0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0029bde0: 756e 6974 2d66 696c 6573 2079 7073 6572  unit-files ypser
│ │ │ +0029bdf0: 762e 736f 636b 6574 0a20 2020 2072 6567  v.socket.    reg
│ │ │ +0029be00: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +0029be10: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +0029be20: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0029be30: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0029be40: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0029be50: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0029be60: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0029be70: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0029be80: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0029be90: 7970 7365 7276 2053 6572 7669 6365 202d  ypserv Service -
│ │ │ +0029bea0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +0029beb0: 7970 7365 7276 0a20 2020 2061 6e73 6962  ypserv.    ansib
│ │ │ +0029bec0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0029bed0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0029bee0: 7970 7365 7276 2e73 6f63 6b65 740a 2020  ypserv.socket.  
│ │ │ +0029bef0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0029bf00: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +0029bf10: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +0029bf20: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +0029bf30: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +0029bf40: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0029bf50: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0029bf60: 7970 7365 7276 2e73 6f63 6b65 7422 2c20  ypserv.socket", 
│ │ │ +0029bf70: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0029bf80: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +0029bf90: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0029bfa0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0029bfb0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0029bfc0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0029bfd0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0029bfe0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0029bff0: 7365 7276 6963 655f 7970 7365 7276 5f64  service_ypserv_d
│ │ │ +0029c000: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +0029c010: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +0029c020: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +0029c030: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0029c040: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0029c050: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +0029c060: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +0029c110: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ +0029c120: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +0029c160: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0029c170: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0029c180: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0029c190: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0029c1a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption: │ │ │ +0029c220: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
low
Disr │ │ │ +0029b9d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0029b9e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0029ba20: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0029ba30: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ +0029c1b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0029c1c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
medium
Re │ │ │ +0029c200: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ +0029c210: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue
Strategy:disable
< │ │ │ +0029c250: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ +0029c260: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ +0029c270: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ +0029c280: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ +0029c290: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ +0029c2a0: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ +0029c2b0: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ +0029c2c0: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ +0029c2d0: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ +0029c2e0: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ +0029c2f0: 2020 2d20 6e61 6d65 3a20 7970 7365 7276 - name: ypserv │ │ │ +0029c300: 2e73 6572 7669 6365 0a20 2020 2020 2020 .service. │ │ │ +0029c310: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +0029c320: 2020 2020 2020 2020 6d61 736b 3a20 7472 mask: tr │ │ │ +0029c330: 7565 0a20 2020 2020 202d 206e 616d 653a ue. - name: │ │ │ +0029c340: 2079 7073 6572 762e 736f 636b 6574 0a20 ypserv.socket. │ │ │ +0029c350: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ +0029c360: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ +0029c370: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ +0029c380: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +0029c430: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0029c440: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0029c450: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0029c4f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0029c510: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0029c540: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0029c4d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0029c4e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0029c500: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0029c520: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0029c530: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0029c580: 2064 6973 6162 6c65 5f79 7073 6572 760a disable_ypserv. │ │ │ +0029c590: 0a63 6c61 7373 2064 6973 6162 6c65 5f79 .class disable_y │ │ │ +0029c5a0: 7073 6572 7620 7b0a 2020 7365 7276 6963 pserv {. servic │ │ │ +0029c5b0: 6520 7b27 7970 7365 7276 273a 0a20 2020 e {'ypserv':. │ │ │ +0029c5c0: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ +0029c5d0: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ +0029c5e0: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ +0029c5f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediat │ │ │ +0029c6b0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0029c6c0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0029c6d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ +0029c710: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +0029c720: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +0029c730: 6d61 736b 6564 203d 205b 2279 7073 6572  masked = ["ypser
│ │ │ +0029c740: 7622 5d0a 3c2f 636f 6465 3e3c 2f70 7265  v"].
Remediation │ │ │ -0029dcd0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0029dce0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0029dd70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0029dd90: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0029ddb0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0029dde0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0029ddf0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0029de20: 6f76 655f 7273 682d 636c 6965 6e74 0a0a  ove_rsh-client..
│ │ │ -0029de30: 636c 6173 7320 7265 6d6f 7665 5f72 7368  class remove_rsh
│ │ │ -0029de40: 2d63 6c69 656e 7420 7b0a 2020 7061 636b  -client {.  pack
│ │ │ -0029de50: 6167 6520 7b20 2772 7368 2d63 6c69 656e  age { 'rsh-clien
│ │ │ -0029de60: 7427 3a0a 2020 2020 656e 7375 7265 203d  t':.    ensure =
│ │ │ -0029de70: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0029de80: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -0029df40: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0029df50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0029dfd0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0029dfe0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0029dff0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0029e030: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0029e040: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0029e060: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0029e070: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -0029e090: 556e 696e 7374 616c 6c20 7273 6820 5061  Uninstall rsh Pa
│ │ │ -0029e0a0: 636b 6167 653a 2045 6e73 7572 6520 7273  ckage: Ensure rs
│ │ │ -0029e0b0: 682d 636c 6965 6e74 2069 7320 7265 6d6f  h-client is remo
│ │ │ -0029e0c0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -0029e0d0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -0029e0e0: 2020 2020 6e61 6d65 3a20 7273 682d 636c      name: rsh-cl
│ │ │ -0029e0f0: 6965 6e74 0a20 2020 2073 7461 7465 3a20  ient.    state: 
│ │ │ -0029e100: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0029e110: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -0029e120: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ -0029e130: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -0029e140: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -0029e150: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0029e160: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0029e170: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0029e180: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -0029e190: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0029e1a0: 2070 6163 6b61 6765 5f72 7368 5f72 656d   package_rsh_rem
│ │ │ -0029e1b0: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -0029e1c0: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
Complexity │ │ │ +0029dd70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0029dd90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0029dda0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0029ddb0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0029ddc0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0029dde0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0029de10: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0029de20: 696e 7374 616c 6c20 7273 6820 5061 636b  install rsh Pack
│ │ │ +0029de30: 6167 653a 2045 6e73 7572 6520 7273 682d  age: Ensure rsh-
│ │ │ +0029de40: 636c 6965 6e74 2069 7320 7265 6d6f 7665  client is remove
│ │ │ +0029de50: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0029de60: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0029de70: 2020 6e61 6d65 3a20 7273 682d 636c 6965    name: rsh-clie
│ │ │ +0029de80: 6e74 0a20 2020 2073 7461 7465 3a20 6162  nt.    state: ab
│ │ │ +0029de90: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +0029dea0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0029deb0: 312e 3133 0a20 202d 2050 4349 2d44 5353  1.13.  - PCI-DSS
│ │ │ +0029dec0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +0029ded0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +0029dee0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0029def0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0029df00: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0029df10: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0029df20: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0029df30: 6163 6b61 6765 5f72 7368 5f72 656d 6f76  ackage_rsh_remov
│ │ │ +0029df40: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +0029df50: 6576 6572 6974 790a 3c2f 636f 6465 3e3c  everity.<
│ │ │ +0029df60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +0029e010: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0029e020: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0029e030: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0029e040: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0029e050: 7365 2220 6964 3d22 6964 3130 3639 223e se" id="id1069"> │ │ │ +0029e060: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0029e0d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0029e0f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0029e120: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0029e0b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0029e0c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0029e100: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0029e110: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +0029e160: 6520 7265 6d6f 7665 5f72 7368 2d63 6c69 e remove_rsh-cli │ │ │ +0029e170: 656e 740a 0a63 6c61 7373 2072 656d 6f76 ent..class remov │ │ │ +0029e180: 655f 7273 682d 636c 6965 6e74 207b 0a20 e_rsh-client {. │ │ │ +0029e190: 2070 6163 6b61 6765 207b 2027 7273 682d package { 'rsh- │ │ │ +0029e1a0: 636c 6965 6e74 273a 0a20 2020 2065 6e73 client':. ens │ │ │ +0029e1b0: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ +0029e1c0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedia │ │ │ -002a0860: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002a0870: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002a0880: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002a0890: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002a08a0: 7365 2220 6964 3d22 6964 3130 3734 223e se" id="id1074"> │ │ │ -002a08b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002a0920: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002a0940: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002a0970: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002a0900: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002a0910: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002a0950: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002a0960: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -002a09b0: 6520 7265 6d6f 7665 5f74 616c 6b0a 0a63 e remove_talk..c │ │ │ -002a09c0: 6c61 7373 2072 656d 6f76 655f 7461 6c6b lass remove_talk │ │ │ -002a09d0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -002a09e0: 7461 6c6b 273a 0a20 2020 2065 6e73 7572 talk':. ensur │ │ │ -002a09f0: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ -002a0a00: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -002a0a10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ -002a0ac0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002a0ad0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002a0ae0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002a0b80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002a0ba0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002a0bd0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002a0b60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002a0b70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002a0b90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002a0bb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002a0bc0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002a0c00: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002a0c10: 3a20 2755 6e69 6e73 7461 6c6c 2074 616c : 'Uninstall tal │ │ │ -002a0c20: 6b20 5061 636b 6167 653a 2045 6e73 7572 k Package: Ensur │ │ │ -002a0c30: 6520 7461 6c6b 2069 7320 7265 6d6f 7665 e talk is remove │ │ │ -002a0c40: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -002a0c50: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -002a0c60: 2020 6e61 6d65 3a20 7461 6c6b 0a20 2020 name: talk. │ │ │ -002a0c70: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ -002a0c80: 2074 6167 733a 0a20 202d 2050 4349 2d44 tags:. - PCI-D │ │ │ -002a0c90: 5353 7634 2d32 2e32 0a20 202d 2050 4349 SSv4-2.2. - PCI │ │ │ -002a0ca0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d -DSSv4-2.2.4. - │ │ │ -002a0cb0: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -002a0cc0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -002a0cd0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -002a0ce0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -002a0cf0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -002a0d00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -002a0d10: 0a20 202d 2070 6163 6b61 6765 5f74 616c . - package_tal │ │ │ -002a0d20: 6b5f 7265 6d6f 7665 640a 3c2f 636f 6465 k_removed.
│ │ │ +002a0880: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002a0920: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002a0940: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002a0970: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002a0900: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002a0910: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002a0930: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002a0950: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002a0960: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002a09a0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002a09b0: 3a20 2755 6e69 6e73 7461 6c6c 2074 616c : 'Uninstall tal │ │ │ +002a09c0: 6b20 5061 636b 6167 653a 2045 6e73 7572 k Package: Ensur │ │ │ +002a09d0: 6520 7461 6c6b 2069 7320 7265 6d6f 7665 e talk is remove │ │ │ +002a09e0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +002a09f0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +002a0a00: 2020 6e61 6d65 3a20 7461 6c6b 0a20 2020 name: talk. │ │ │ +002a0a10: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +002a0a20: 2074 6167 733a 0a20 202d 2050 4349 2d44 tags:. - PCI-D │ │ │ +002a0a30: 5353 7634 2d32 2e32 0a20 202d 2050 4349 SSv4-2.2. - PCI │ │ │ +002a0a40: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d -DSSv4-2.2.4. - │ │ │ +002a0a50: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +002a0a60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +002a0a70: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +002a0a80: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +002a0a90: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +002a0aa0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +002a0ab0: 0a20 202d 2070 6163 6b61 6765 5f74 616c . - package_tal │ │ │ +002a0ac0: 6b5f 7265 6d6f 7665 640a 3c2f 636f 6465 k_removed.
Remed │ │ │ +002a0b80: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002a0b90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002a0c20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002a0c30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002a0c50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002a0c70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002a0c80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002a0cc0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +002a0cd0: 7564 6520 7265 6d6f 7665 5f74 616c 6b0a  ude remove_talk.
│ │ │ +002a0ce0: 0a63 6c61 7373 2072 656d 6f76 655f 7461  .class remove_ta
│ │ │ +002a0cf0: 6c6b 207b 0a20 2070 6163 6b61 6765 207b  lk {.  package {
│ │ │ +002a0d00: 2027 7461 6c6b 273a 0a20 2020 2065 6e73   'talk':.    ens
│ │ │ +002a0d10: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +002a0d20: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediatio │ │ │ -002a22c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002a22d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002a2350: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002a2360: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002a2380: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002a2390: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002a23b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002a23d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002a2400: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -002a2410: 656d 6f76 655f 7465 6c6e 6574 0a0a 636c  emove_telnet..cl
│ │ │ -002a2420: 6173 7320 7265 6d6f 7665 5f74 656c 6e65  ass remove_telne
│ │ │ -002a2430: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ -002a2440: 2774 656c 6e65 7427 3a0a 2020 2020 656e  'telnet':.    en
│ │ │ -002a2450: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002a2460: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002a2520: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002a2530: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002a2540: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002a25e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002a2630: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002a2670: 616d 653a 2027 5265 6d6f 7665 2074 656c  ame: 'Remove tel
│ │ │ -002a2680: 6e65 7420 436c 6965 6e74 733a 2045 6e73  net Clients: Ens
│ │ │ -002a2690: 7572 6520 7465 6c6e 6574 2069 7320 7265  ure telnet is re
│ │ │ -002a26a0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -002a26b0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -002a26c0: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ -002a26d0: 6574 0a20 2020 2073 7461 7465 3a20 6162  et.    state: ab
│ │ │ -002a26e0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -002a26f0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -002a2700: 312e 3133 0a20 202d 2050 4349 2d44 5353  1.13.  - PCI-DSS
│ │ │ -002a2710: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -002a2720: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ -002a2730: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002a2740: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002a2750: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002a2760: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -002a2770: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002a2780: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002a2790: 7061 636b 6167 655f 7465 6c6e 6574 5f72  package_telnet_r
│ │ │ -002a27a0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
│ │ │ +002a2350: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +002a23e0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002a23f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -002a25c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002a25f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002a2610: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002a2620: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002a2640: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002a2650: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +002a2360: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002a2370: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +002a23b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002a23c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ +002a2410: 5265 6d6f 7665 2074 656c 6e65 7420 436c  Remove telnet Cl
│ │ │ +002a2420: 6965 6e74 733a 2045 6e73 7572 6520 7465  ients: Ensure te
│ │ │ +002a2430: 6c6e 6574 2069 7320 7265 6d6f 7665 6427  lnet is removed'
│ │ │ +002a2440: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +002a2450: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +002a2460: 6e61 6d65 3a20 7465 6c6e 6574 0a20 2020  name: telnet.   
│ │ │ +002a2470: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002a2480: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +002a2490: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +002a24a0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002a24b0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002a24c0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +002a24d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002a24e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002a24f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002a2500: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +002a2510: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002a2520: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +002a2530: 655f 7465 6c6e 6574 5f72 656d 6f76 6564  e_telnet_removed
│ │ │ +002a2540: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002a2600: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002a2610: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +002a2690: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002a26b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002a2700: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002a2730: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +002a2750: 655f 7465 6c6e 6574 0a0a 636c 6173 7320  e_telnet..class 
│ │ │ +002a2760: 7265 6d6f 7665 5f74 656c 6e65 7420 7b0a  remove_telnet {.
│ │ │ +002a2770: 2020 7061 636b 6167 6520 7b20 2774 656c    package { 'tel
│ │ │ +002a2780: 6e65 7427 3a0a 2020 2020 656e 7375 7265  net':.    ensure
│ │ │ +002a2790: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +002a27a0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
│ │ │ -002a42d0: 5265 6d65 6469 6174 696f 6e20 5075 7070  Remediation Pupp
│ │ │ -002a42e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f  et snippet ...
low
Disr │ │ │ +002a26c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002a26d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002a2710: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002a2720: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002a43c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002a43d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002a4420: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002a4430: 7466 7470 642d 6870 610a 0a63 6c61 7373  tftpd-hpa..class
│ │ │ -002a4440: 2072 656d 6f76 655f 7466 7470 642d 6870   remove_tftpd-hp
│ │ │ -002a4450: 6120 7b0a 2020 7061 636b 6167 6520 7b20  a {.  package { 
│ │ │ -002a4460: 2774 6674 7064 2d68 7061 273a 0a20 2020  'tftpd-hpa':.   
│ │ │ -002a4470: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -002a4480: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -002a4540: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002a4550: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:low
Disrup │ │ │ -002a43a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002a43b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002a43f0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002a4400: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002a4630: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002a4640: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002a4690: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -002a46a0: 6c6c 2074 6674 7064 2d68 7061 2050 6163  ll tftpd-hpa Pac
│ │ │ -002a46b0: 6b61 6765 3a20 456e 7375 7265 2074 6674  kage: Ensure tft
│ │ │ -002a46c0: 7064 2d68 7061 2069 7320 7265 6d6f 7665  pd-hpa is remove
│ │ │ -002a46d0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -002a46e0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -002a46f0: 2020 6e61 6d65 3a20 7466 7470 642d 6870    name: tftpd-hp
│ │ │ -002a4700: 610a 2020 2020 7374 6174 653a 2061 6273  a.    state: abs
│ │ │ -002a4710: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002a4720: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002a4730: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002a4740: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -002a4750: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002a4760: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ -002a4770: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002a4780: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -002a4790: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002a47a0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -002a47b0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002a47c0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002a47d0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002a47e0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002a47f0: 7061 636b 6167 655f 7466 7470 2d73 6572  package_tftp-ser
│ │ │ -002a4800: 7665 725f 7265 6d6f 7665 640a 3c2f 636f  ver_removed.
Complexity:low
Disrup │ │ │ -002a4610: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002a4620: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002a4660: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002a4670: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +002a43c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002a43d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +002a4430: 616c 6c20 7466 7470 642d 6870 6120 5061  all tftpd-hpa Pa
│ │ │ +002a4440: 636b 6167 653a 2045 6e73 7572 6520 7466  ckage: Ensure tf
│ │ │ +002a4450: 7470 642d 6870 6120 6973 2072 656d 6f76  tpd-hpa is remov
│ │ │ +002a4460: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +002a4470: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002a4480: 2020 206e 616d 653a 2074 6674 7064 2d68     name: tftpd-h
│ │ │ +002a4490: 7061 0a20 2020 2073 7461 7465 3a20 6162  pa.    state: ab
│ │ │ +002a44a0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +002a44b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002a44c0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +002a44d0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +002a44e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002a44f0: 3728 6229 0a20 202d 2050 4349 2d44 5353  7(b).  - PCI-DSS
│ │ │ +002a4500: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +002a4510: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +002a4520: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002a4530: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +002a4540: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002a4550: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002a4560: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002a4570: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002a4580: 2070 6163 6b61 6765 5f74 6674 702d 7365   package_tftp-se
│ │ │ +002a4590: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +002a45b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002a4650: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002a4660: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002a4670: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +002a43a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002a43b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002a43f0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002a4400: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002a4700: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002a4710: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002a4760: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002a47a0: 6e63 6c75 6465 2072 656d 6f76 655f 7466  nclude remove_tf
│ │ │ +002a47b0: 7470 642d 6870 610a 0a63 6c61 7373 2072  tpd-hpa..class r
│ │ │ +002a47c0: 656d 6f76 655f 7466 7470 642d 6870 6120  emove_tftpd-hpa 
│ │ │ +002a47d0: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ +002a47e0: 6674 7064 2d68 7061 273a 0a20 2020 2065  ftpd-hpa':.    e
│ │ │ +002a47f0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +002a4800: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 002a4820: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002a4830: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002a4840: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002a4850: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002a4860: 6431 3038 3422 2074 6162 696e 6465 783d d1084" tabindex= │ │ │ 002a4870: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -173504,254 +173504,254 @@ │ │ │ 002a5bf0: 6765 743d 2223 6964 3130 3836 2220 7461 get="#id1086" ta │ │ │ 002a5c00: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 002a5c10: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 002a5c20: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 002a5c30: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 002a5c40: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 002a5c50: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -002a5c60: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -002a5c70: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -002a5cd0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -002a5ce0: 6564 203d 205b 2274 6674 7064 2d68 7061  ed = ["tftpd-hpa
│ │ │ -002a5cf0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -002a5d00: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002a5db0: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ -002a5dc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002a5e00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002a5e10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002a5e20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002a5e30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002a5e40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption: │ │ │ -002a5ec0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
C │ │ │ +002a46f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002a4720: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002a4730: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002a4770: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002a4780: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -002a5e50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002a5e60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
medium
Re │ │ │ -002a5ea0: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ -002a5eb0: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue
Strategy:disable
< │ │ │ -002a5ef0: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ -002a5f00: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ -002a5f10: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ -002a5f20: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ -002a5f30: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ -002a5f40: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ -002a5f50: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ -002a5f60: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ -002a5f70: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ -002a5f80: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ -002a5f90: 2020 2d20 6e61 6d65 3a20 7466 7470 642d - name: tftpd- │ │ │ -002a5fa0: 6870 612e 7365 7276 6963 650a 2020 2020 hpa.service. │ │ │ -002a5fb0: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ -002a5fc0: 7365 0a20 2020 2020 2020 206d 6173 6b3a se. mask: │ │ │ -002a5fd0: 2074 7275 650a 2020 2020 2020 2d20 6e61 true. - na │ │ │ -002a5fe0: 6d65 3a20 7466 7470 642d 6870 612e 736f me: tftpd-hpa.so │ │ │ -002a5ff0: 636b 6574 0a20 2020 2020 2020 2065 6e61 cket. ena │ │ │ -002a6000: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ -002a6010: 2020 2020 6d61 736b 3a20 7472 7565 0a3c mask: true.< │ │ │ -002a6020: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code> │ │ │ -002a60d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002a60e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -002a61c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002a61d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -002a6220: 6e63 6c75 6465 2064 6973 6162 6c65 5f74  nclude disable_t
│ │ │ -002a6230: 6674 7064 2d68 7061 0a0a 636c 6173 7320  ftpd-hpa..class 
│ │ │ -002a6240: 6469 7361 626c 655f 7466 7470 642d 6870  disable_tftpd-hp
│ │ │ -002a6250: 6120 7b0a 2020 7365 7276 6963 6520 7b27  a {.  service {'
│ │ │ -002a6260: 7466 7470 642d 6870 6127 3a0a 2020 2020  tftpd-hpa':.    
│ │ │ -002a6270: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -002a6280: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -002a6290: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -002a62a0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -002a6360: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002a6370: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002a63b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002a63c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002a63d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002a63e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002a63f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -002a6480: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002a6490: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ -002a61a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002a61b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002a61f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -002a6200: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -002a6400: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002a6410: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -002a6450: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002a6460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -002a64b0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -002a64c0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -002a64d0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -002a64e0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002a64f0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -002a6500: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -002a6510: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -002a6520: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -002a6530: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -002a6540: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -002a6550: 0a20 202d 2068 6967 685f 7365 7665 7269 . - high_severi │ │ │ -002a6560: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c ty. - low_compl │ │ │ -002a6570: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002a6580: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ -002a6590: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -002a65a0: 2d20 7365 7276 6963 655f 7466 7470 5f64 - service_tftp_d │ │ │ -002a65b0: 6973 6162 6c65 640a 0a2d 206e 616d 653a isabled..- name: │ │ │ -002a65c0: 2044 6973 6162 6c65 2074 6674 7064 2d68 Disable tftpd-h │ │ │ -002a65d0: 7061 2053 6572 7669 6365 202d 2044 6973 pa Service - Dis │ │ │ -002a65e0: 6162 6c65 2073 6572 7669 6365 2074 6674 able service tft │ │ │ -002a65f0: 7064 2d68 7061 0a20 2062 6c6f 636b 3a0a pd-hpa. block:. │ │ │ -002a6600: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -002a6610: 6c65 2074 6674 7064 2d68 7061 2053 6572 le tftpd-hpa Ser │ │ │ -002a6620: 7669 6365 202d 2043 6f6c 6c65 6374 2073 vice - Collect s │ │ │ -002a6630: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ -002a6640: 5072 6573 656e 7420 696e 2074 6865 2053 Present in the S │ │ │ -002a6650: 7973 7465 6d0a 2020 2020 616e 7369 626c ystem. ansibl │ │ │ -002a6660: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ -002a6670: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ -002a6680: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ -002a6690: 2d2d 7479 7065 2073 6572 7669 6365 0a20 --type service. │ │ │ -002a66a0: 2020 2072 6567 6973 7465 723a 2073 6572 register: ser │ │ │ -002a66b0: 7669 6365 5f65 7869 7374 730a 2020 2020 vice_exists. │ │ │ -002a66c0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -002a66d0: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ -002a66e0: 6865 6e3a 2073 6572 7669 6365 5f65 7869 hen: service_exi │ │ │ -002a66f0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -002a6700: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -002a6710: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -002a6720: 6e61 6d65 3a20 4469 7361 626c 6520 7466 name: Disable tf │ │ │ -002a6730: 7470 642d 6870 6120 5365 7276 6963 6520 tpd-hpa Service │ │ │ -002a6740: 2d20 456e 7375 7265 2074 6674 7064 2d68 - Ensure tftpd-h │ │ │ -002a6750: 7061 2e73 6572 7669 6365 2069 7320 4d61 pa.service is Ma │ │ │ -002a6760: 736b 6564 0a20 2020 2061 6e73 6962 6c65 sked. ansible │ │ │ -002a6770: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -002a6780: 3a0a 2020 2020 2020 6e61 6d65 3a20 7466 :. name: tf │ │ │ -002a6790: 7470 642d 6870 612e 7365 7276 6963 650a tpd-hpa.service. │ │ │ -002a67a0: 2020 2020 2020 7374 6174 653a 2073 746f state: sto │ │ │ -002a67b0: 7070 6564 0a20 2020 2020 2065 6e61 626c pped. enabl │ │ │ -002a67c0: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ -002a67d0: 6d61 736b 6564 3a20 7472 7565 0a20 2020 masked: true. │ │ │ -002a67e0: 2077 6865 6e3a 2073 6572 7669 6365 5f65 when: service_e │ │ │ -002a67f0: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -002a6800: 6573 2069 7320 7365 6172 6368 2822 7466 es is search("tf │ │ │ -002a6810: 7470 642d 6870 612e 7365 7276 6963 6522 tpd-hpa.service" │ │ │ -002a6820: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -002a6830: 290a 0a20 202d 206e 616d 653a 2055 6e69 ).. - name: Uni │ │ │ -002a6840: 7420 536f 636b 6574 2045 7869 7374 7320 t Socket Exists │ │ │ -002a6850: 2d20 7466 7470 642d 6870 612e 736f 636b - tftpd-hpa.sock │ │ │ -002a6860: 6574 0a20 2020 2061 6e73 6962 6c65 2e62 et. ansible.b │ │ │ -002a6870: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ -002a6880: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ -002a6890: 742d 756e 6974 2d66 696c 6573 2074 6674 t-unit-files tft │ │ │ -002a68a0: 7064 2d68 7061 2e73 6f63 6b65 740a 2020 pd-hpa.socket. │ │ │ -002a68b0: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ -002a68c0: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ -002a68d0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -002a68e0: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -002a68f0: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ -002a6900: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ -002a6910: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -002a6920: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -002a6930: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -002a6940: 6162 6c65 2074 6674 7064 2d68 7061 2053 able tftpd-hpa S │ │ │ -002a6950: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ -002a6960: 2053 6f63 6b65 7420 7466 7470 642d 6870 Socket tftpd-hp │ │ │ -002a6970: 610a 2020 2020 616e 7369 626c 652e 6275 a. ansible.bu │ │ │ -002a6980: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ -002a6990: 2020 2020 206e 616d 653a 2074 6674 7064 name: tftpd │ │ │ -002a69a0: 2d68 7061 2e73 6f63 6b65 740a 2020 2020 -hpa.socket. │ │ │ -002a69b0: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -002a69c0: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -002a69d0: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -002a69e0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -002a69f0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -002a6a00: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -002a6a10: 6573 2069 7320 7365 6172 6368 2822 7466 es is search("tf │ │ │ -002a6a20: 7470 642d 6870 612e 736f 636b 6574 222c tpd-hpa.socket", │ │ │ -002a6a30: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ -002a6a40: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -002a6a50: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -002a6a60: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -002a6a70: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ -002a6a80: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ -002a6a90: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -002a6aa0: 6174 6567 790a 2020 2d20 6869 6768 5f73 ategy. - high_s │ │ │ -002a6ab0: 6576 6572 6974 790a 2020 2d20 6c6f 775f everity. - low_ │ │ │ -002a6ac0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002a6ad0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002a6ae0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -002a6af0: 6564 0a20 202d 2073 6572 7669 6365 5f74 ed. - service_t │ │ │ -002a6b00: 6674 705f 6469 7361 626c 6564 0a20 202d ftp_disabled. - │ │ │ -002a6b10: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -002a6b20: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ -002a6b30: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -002a6b40: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -002a6b50: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +002a5c60: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +002a5c70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +002a5d00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002a5d20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002a5d30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002a5d40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002a5d50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002a5d70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002a5da0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002a5db0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002a5dc0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002a5dd0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002a5de0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002a5df0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002a5e00: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002a5e10: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002a5e20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002a5e30: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +002a5e40: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002a5e50: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +002a5e60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002a5e70: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002a5e80: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +002a5e90: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002a5ea0: 6572 7669 6365 5f74 6674 705f 6469 7361  ervice_tftp_disa
│ │ │ +002a5eb0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ +002a5ec0: 7361 626c 6520 7466 7470 642d 6870 6120  sable tftpd-hpa 
│ │ │ +002a5ed0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +002a5ee0: 6520 7365 7276 6963 6520 7466 7470 642d  e service tftpd-
│ │ │ +002a5ef0: 6870 610a 2020 626c 6f63 6b3a 0a0a 2020  hpa.  block:..  
│ │ │ +002a5f00: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002a5f10: 7466 7470 642d 6870 6120 5365 7276 6963  tftpd-hpa Servic
│ │ │ +002a5f20: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +002a5f30: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +002a5f40: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +002a5f50: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +002a5f60: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002a5f70: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002a5f80: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +002a5f90: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +002a5fa0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +002a5fb0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +002a5fc0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002a5fd0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +002a5fe0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002a5ff0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002a6000: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002a6010: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +002a6020: 653a 2044 6973 6162 6c65 2074 6674 7064  e: Disable tftpd
│ │ │ +002a6030: 2d68 7061 2053 6572 7669 6365 202d 2045  -hpa Service - E
│ │ │ +002a6040: 6e73 7572 6520 7466 7470 642d 6870 612e  nsure tftpd-hpa.
│ │ │ +002a6050: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +002a6060: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +002a6070: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +002a6080: 2020 2020 206e 616d 653a 2074 6674 7064       name: tftpd
│ │ │ +002a6090: 2d68 7061 2e73 6572 7669 6365 0a20 2020  -hpa.service.   
│ │ │ +002a60a0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002a60b0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +002a60c0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +002a60d0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002a60e0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002a60f0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002a6100: 6973 2073 6561 7263 6828 2274 6674 7064  is search("tftpd
│ │ │ +002a6110: 2d68 7061 2e73 6572 7669 6365 222c 206d  -hpa.service", m
│ │ │ +002a6120: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +002a6130: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +002a6140: 6f63 6b65 7420 4578 6973 7473 202d 2074  ocket Exists - t
│ │ │ +002a6150: 6674 7064 2d68 7061 2e73 6f63 6b65 740a  ftpd-hpa.socket.
│ │ │ +002a6160: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002a6170: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002a6180: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002a6190: 6e69 742d 6669 6c65 7320 7466 7470 642d  nit-files tftpd-
│ │ │ +002a61a0: 6870 612e 736f 636b 6574 0a20 2020 2072  hpa.socket.    r
│ │ │ +002a61b0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +002a61c0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +002a61d0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +002a61e0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002a61f0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002a6200: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002a6210: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002a6220: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002a6230: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002a6240: 6520 7466 7470 642d 6870 6120 5365 7276  e tftpd-hpa Serv
│ │ │ +002a6250: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +002a6260: 636b 6574 2074 6674 7064 2d68 7061 0a20  cket tftpd-hpa. 
│ │ │ +002a6270: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002a6280: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002a6290: 2020 6e61 6d65 3a20 7466 7470 642d 6870    name: tftpd-hp
│ │ │ +002a62a0: 612e 736f 636b 6574 0a20 2020 2020 2065  a.socket.      e
│ │ │ +002a62b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002a62c0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +002a62d0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +002a62e0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +002a62f0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002a6300: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002a6310: 6973 2073 6561 7263 6828 2274 6674 7064  is search("tftpd
│ │ │ +002a6320: 2d68 7061 2e73 6f63 6b65 7422 2c20 6d75  -hpa.socket", mu
│ │ │ +002a6330: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +002a6340: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +002a6350: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +002a6360: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002a6370: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +002a6380: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +002a6390: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002a63a0: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +002a63b0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +002a63c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002a63d0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +002a63e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002a63f0: 2020 2d20 7365 7276 6963 655f 7466 7470    - service_tftp
│ │ │ +002a6400: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +002a6410: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +002a6420: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +002a6430: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +002a6440: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +002a6450: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediatio │ │ │ +002a6510: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ +002a6520: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002a6530: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002a65d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ +002a65b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002a65c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002a65e0: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ +002a6600: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002a6610: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ +002a6630: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002a6640: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ +002a6660: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ +002a6670: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ +002a6680: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ +002a6690: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ +002a66a0: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ +002a66b0: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ +002a66c0: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ +002a66d0: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ +002a66e0: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ +002a66f0: 2020 2020 2d20 6e61 6d65 3a20 7466 7470      - name: tftp
│ │ │ +002a6700: 642d 6870 612e 7365 7276 6963 650a 2020  d-hpa.service.  
│ │ │ +002a6710: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002a6720: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ +002a6730: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ +002a6740: 6e61 6d65 3a20 7466 7470 642d 6870 612e  name: tftpd-hpa.
│ │ │ +002a6750: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +002a6760: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002a6770: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +002a6780: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002a6840: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002a6850: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +002a68d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002a68f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002a6940: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +002a6990: 5f74 6674 7064 2d68 7061 0a0a 636c 6173  _tftpd-hpa..clas
│ │ │ +002a69a0: 7320 6469 7361 626c 655f 7466 7470 642d  s disable_tftpd-
│ │ │ +002a69b0: 6870 6120 7b0a 2020 7365 7276 6963 6520  hpa {.  service 
│ │ │ +002a69c0: 7b27 7466 7470 642d 6870 6127 3a0a 2020  {'tftpd-hpa':.  
│ │ │ +002a69d0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +002a69e0: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +002a69f0: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +002a6a00: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +002a6a10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +002a6ac0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75  tion OSBuild Blu
│ │ │ +002a6ad0: 6570 7269 6e74 2073 6e69 7070 6574 20e2  eprint snippet .
│ │ │ +002a6ae0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +002a6b20: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +002a6b30: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +002a6b40: 0a6d 6173 6b65 6420 3d20 5b22 7466 7470  .masked = ["tftp
│ │ │ +002a6b50: 642d 6870 6122 5d0a 3c2f 636f 6465 3e3c  d-hpa"].<
│ │ │  002a6b60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedi │ │ │ -002a7970: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002a7980: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002a7990: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disr │ │ │ +002a6900: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002a6910: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002a6950: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +002a6960: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002a7a30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002a7a50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002a7a80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002a7a10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002a7a20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002a7a40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002a7a60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002a7a70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002a7ab0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -002a7ac0: 6465 2072 656d 6f76 655f 7273 796e 630a de remove_rsync. │ │ │ -002a7ad0: 0a63 6c61 7373 2072 656d 6f76 655f 7273 .class remove_rs │ │ │ -002a7ae0: 796e 6320 7b0a 2020 7061 636b 6167 6520 ync {. package │ │ │ -002a7af0: 7b20 2772 7379 6e63 273a 0a20 2020 2065 { 'rsync':. e │ │ │ -002a7b00: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ -002a7b10: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ -002a7b30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002a7b40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002a7b50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002a7b60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002a7b70: 6431 3039 3322 2074 6162 696e 6465 783d d1093" tabindex= │ │ │ -002a7b80: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002a7b90: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002a7ba0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002a7bb0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002a7bc0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002a7bd0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002a7be0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002a7bf0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002a7c80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002a7c90: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002a7ce0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002a7d20: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -002a7d30: 2072 7379 6e63 2050 6163 6b61 6765 3a20   rsync Package: 
│ │ │ -002a7d40: 456e 7375 7265 2072 7379 6e63 2069 7320  Ensure rsync is 
│ │ │ -002a7d50: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -002a7d60: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -002a7d70: 6765 3a0a 2020 2020 6e61 6d65 3a20 7273  ge:.    name: rs
│ │ │ -002a7d80: 796e 630a 2020 2020 7374 6174 653a 2061  ync.    state: a
│ │ │ -002a7d90: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -002a7da0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002a7db0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002a7dc0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002a7dd0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002a7de0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002a7df0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002a7e00: 640a 2020 2d20 7061 636b 6167 655f 7273  d.  - package_rs
│ │ │ -002a7e10: 796e 635f 7265 6d6f 7665 640a 3c2f 636f  ync_removed.
C │ │ │ -002a7c70: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002a7ca0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002a7cb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002a7cf0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002a7d00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +002a7a10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002a7a20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002a7a40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002a7a60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002a7a70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002a7ab0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002a7ac0: 653a 2027 556e 696e 7374 616c 6c20 7273  e: 'Uninstall rs
│ │ │ +002a7ad0: 796e 6320 5061 636b 6167 653a 2045 6e73  ync Package: Ens
│ │ │ +002a7ae0: 7572 6520 7273 796e 6320 6973 2072 656d  ure rsync is rem
│ │ │ +002a7af0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002a7b00: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +002a7b10: 0a20 2020 206e 616d 653a 2072 7379 6e63  .    name: rsync
│ │ │ +002a7b20: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +002a7b30: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +002a7b40: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002a7b50: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002a7b60: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002a7b70: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002a7b80: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002a7b90: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002a7ba0: 202d 2070 6163 6b61 6765 5f72 7379 6e63   - package_rsync
│ │ │ +002a7bb0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002a7bc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002a7c70: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002a7c80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002a7c90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002a7d30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002a7d50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002a7d80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002a7d10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002a7d20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002a7d40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002a7d60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002a7d70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002a7db0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +002a7dc0: 6465 2072 656d 6f76 655f 7273 796e 630a de remove_rsync. │ │ │ +002a7dd0: 0a63 6c61 7373 2072 656d 6f76 655f 7273 .class remove_rs │ │ │ +002a7de0: 796e 6320 7b0a 2020 7061 636b 6167 6520 ync {. package │ │ │ +002a7df0: 7b20 2772 7379 6e63 273a 0a20 2020 2065 { 'rsync':. e │ │ │ +002a7e00: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +002a7e10: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ 002a7e30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002a7e40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002a7e50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002a7e60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002a7e70: 6431 3039 3422 2074 6162 696e 6465 783d d1094" tabindex= │ │ │ 002a7e80: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -174271,250 +174271,250 @@ │ │ │ 002a8be0: 6174 612d 7461 7267 6574 3d22 2369 6431 ata-target="#id1 │ │ │ 002a8bf0: 3039 3622 2074 6162 696e 6465 783d 2230 096" tabindex="0 │ │ │ 002a8c00: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 002a8c10: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 002a8c20: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 002a8c30: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 002a8c40: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -002a8c50: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002a8c60: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002a8c70: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -002a8cc0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -002a8cd0: 735d 0a6d 6173 6b65 6420 3d20 5b22 7273 s].masked = ["rs │ │ │ -002a8ce0: 796e 6364 225d 0a3c 2f63 6f64 653e 3c2f yncd"].
Remediat │ │ │ -002a8da0: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ -002a8db0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Reboot:true │ │ │ -002a8eb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -002a8ef0: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -002a8f00: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -002a8f10: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -002a8f20: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -002a8f30: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -002a8f40: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -002a8f50: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -002a8f60: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -002a8f70: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -002a8f80: 2020 2020 2020 2d20 6e61 6d65 3a20 7273        - name: rs
│ │ │ -002a8f90: 796e 6364 2e73 6572 7669 6365 0a20 2020  yncd.service.   
│ │ │ -002a8fa0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002a8fb0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -002a8fc0: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -002a8fd0: 616d 653a 2072 7379 6e63 642e 736f 636b  ame: rsyncd.sock
│ │ │ -002a8fe0: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -002a8ff0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002a9000: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -002a9020: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002a90c0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002a90d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002a90e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -002a8e40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002a8e70: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -002a8e80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -002a8ec0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002a8ed0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002a9170: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002a9180: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002a91d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -002a9210: 6c75 6465 2064 6973 6162 6c65 5f72 7379  lude disable_rsy
│ │ │ -002a9220: 6e63 640a 0a63 6c61 7373 2064 6973 6162  ncd..class disab
│ │ │ -002a9230: 6c65 5f72 7379 6e63 6420 7b0a 2020 7365  le_rsyncd {.  se
│ │ │ -002a9240: 7276 6963 6520 7b27 7273 796e 6364 273a  rvice {'rsyncd':
│ │ │ -002a9250: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -002a9260: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -002a9270: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -002a9280: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002a9340: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002a9350: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002a9360: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -002a9160: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002a9190: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002a91a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002a91e0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -002a91f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -002a9400: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002a9450: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002a9490: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -002a94a0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -002a94b0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -002a94c0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -002a94d0: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -002a94e0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -002a94f0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -002a9500: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002a9510: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002a9520: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002a9530: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002a9540: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002a9550: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002a9560: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ -002a9570: 7379 6e63 645f 6469 7361 626c 6564 0a0a  syncd_disabled..
│ │ │ -002a9580: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ -002a9590: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ -002a95a0: 2064 6973 6162 6c65 6420 2d20 4469 7361   disabled - Disa
│ │ │ -002a95b0: 626c 6520 7365 7276 6963 6520 7273 796e  ble service rsyn
│ │ │ -002a95c0: 6364 0a20 2062 6c6f 636b 3a0a 0a20 202d  cd.  block:..  -
│ │ │ -002a95d0: 206e 616d 653a 2045 6e73 7572 6520 7273   name: Ensure rs
│ │ │ -002a95e0: 796e 6364 2073 6572 7669 6365 2069 7320  yncd service is 
│ │ │ -002a95f0: 6469 7361 626c 6564 202d 2043 6f6c 6c65  disabled - Colle
│ │ │ -002a9600: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -002a9610: 6365 7320 5072 6573 656e 7420 696e 0a20  ces Present in. 
│ │ │ -002a9620: 2020 2020 2074 6865 2053 7973 7465 6d0a       the System.
│ │ │ -002a9630: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002a9640: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002a9650: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002a9660: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -002a9670: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -002a9680: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -002a9690: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002a96a0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -002a96b0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -002a96c0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -002a96d0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002a96e0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002a96f0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002a9700: 456e 7375 7265 2072 7379 6e63 6420 7365  Ensure rsyncd se
│ │ │ -002a9710: 7276 6963 6520 6973 2064 6973 6162 6c65  rvice is disable
│ │ │ -002a9720: 6420 2d20 456e 7375 7265 2072 7379 6e63  d - Ensure rsync
│ │ │ -002a9730: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -002a9740: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -002a9750: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002a9760: 0a20 2020 2020 206e 616d 653a 2072 7379  .      name: rsy
│ │ │ -002a9770: 6e63 642e 7365 7276 6963 650a 2020 2020  ncd.service.    
│ │ │ -002a9780: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002a9790: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -002a97a0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -002a97b0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -002a97c0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002a97d0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -002a97e0: 7320 7365 6172 6368 2822 7273 796e 6364  s search("rsyncd
│ │ │ -002a97f0: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -002a9800: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -002a9810: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -002a9820: 7420 4578 6973 7473 202d 2072 7379 6e63  t Exists - rsync
│ │ │ -002a9830: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -002a9840: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002a9850: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002a9860: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002a9870: 6573 2072 7379 6e63 642e 736f 636b 6574  es rsyncd.socket
│ │ │ -002a9880: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002a9890: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -002a98a0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002a98b0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002a98c0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -002a98d0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -002a98e0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002a98f0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002a9900: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002a9910: 456e 7375 7265 2072 7379 6e63 6420 7365  Ensure rsyncd se
│ │ │ -002a9920: 7276 6963 6520 6973 2064 6973 6162 6c65  rvice is disable
│ │ │ -002a9930: 6420 2d20 4469 7361 626c 6520 536f 636b  d - Disable Sock
│ │ │ -002a9940: 6574 2072 7379 6e63 640a 2020 2020 616e  et rsyncd.    an
│ │ │ -002a9950: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002a9960: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002a9970: 653a 2072 7379 6e63 642e 736f 636b 6574  e: rsyncd.socket
│ │ │ -002a9980: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -002a9990: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -002a99a0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -002a99b0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -002a99c0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -002a99d0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -002a99e0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -002a99f0: 6828 2272 7379 6e63 642e 736f 636b 6574  h("rsyncd.socket
│ │ │ -002a9a00: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -002a9a10: 6529 0a20 2074 6167 733a 0a20 202d 2050  e).  tags:.  - P
│ │ │ -002a9a20: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -002a9a30: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -002a9a40: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002a9a50: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002a9a60: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002a9a70: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002a9a80: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -002a9a90: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002a9aa0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -002a9ab0: 5f72 7379 6e63 645f 6469 7361 626c 6564  _rsyncd_disabled
│ │ │ -002a9ac0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -002a9ad0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -002a9ae0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002a9af0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002a9b00: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
Co │ │ │ -002a93e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002a9410: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002a9430: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002a9440: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002a9460: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002a9470: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +002a8cf0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002a8d20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002a8d40: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002a8d50: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002a8d70: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002a8d80: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002a8da0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002a8db0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002a8dc0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002a8dd0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002a8de0: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +002a8df0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002a8e00: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +002a8e10: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002a8e20: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002a8e30: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002a8e40: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +002a8e50: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +002a8e60: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002a8e70: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ +002a8e80: 796e 6364 5f64 6973 6162 6c65 640a 0a2d  yncd_disabled..-
│ │ │ +002a8e90: 206e 616d 653a 2045 6e73 7572 6520 7273   name: Ensure rs
│ │ │ +002a8ea0: 796e 6364 2073 6572 7669 6365 2069 7320  yncd service is 
│ │ │ +002a8eb0: 6469 7361 626c 6564 202d 2044 6973 6162  disabled - Disab
│ │ │ +002a8ec0: 6c65 2073 6572 7669 6365 2072 7379 6e63  le service rsync
│ │ │ +002a8ed0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ +002a8ee0: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ +002a8ef0: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ +002a8f00: 6973 6162 6c65 6420 2d20 436f 6c6c 6563  isabled - Collec
│ │ │ +002a8f10: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ +002a8f20: 6573 2050 7265 7365 6e74 2069 6e0a 2020  es Present in.  
│ │ │ +002a8f30: 2020 2020 7468 6520 5379 7374 656d 0a20      the System. 
│ │ │ +002a8f40: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002a8f50: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002a8f60: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002a8f70: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +002a8f80: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +002a8f90: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +002a8fa0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002a8fb0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002a8fc0: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +002a8fd0: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +002a8fe0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002a8ff0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002a9000: 6c73 650a 0a20 202d 206e 616d 653a 2045  lse..  - name: E
│ │ │ +002a9010: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ +002a9020: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ +002a9030: 202d 2045 6e73 7572 6520 7273 796e 6364   - Ensure rsyncd
│ │ │ +002a9040: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +002a9050: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +002a9060: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +002a9070: 2020 2020 2020 6e61 6d65 3a20 7273 796e        name: rsyn
│ │ │ +002a9080: 6364 2e73 6572 7669 6365 0a20 2020 2020  cd.service.     
│ │ │ +002a9090: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002a90a0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002a90b0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002a90c0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002a90d0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002a90e0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002a90f0: 2073 6561 7263 6828 2272 7379 6e63 642e   search("rsyncd.
│ │ │ +002a9100: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +002a9110: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +002a9120: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +002a9130: 2045 7869 7374 7320 2d20 7273 796e 6364   Exists - rsyncd
│ │ │ +002a9140: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ +002a9150: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002a9160: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +002a9170: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +002a9180: 7320 7273 796e 6364 2e73 6f63 6b65 740a  s rsyncd.socket.
│ │ │ +002a9190: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +002a91a0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002a91b0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +002a91c0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +002a91d0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +002a91e0: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +002a91f0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002a9200: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002a9210: 6c73 650a 0a20 202d 206e 616d 653a 2045  lse..  - name: E
│ │ │ +002a9220: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ +002a9230: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ +002a9240: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +002a9250: 7420 7273 796e 6364 0a20 2020 2061 6e73  t rsyncd.    ans
│ │ │ +002a9260: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002a9270: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002a9280: 3a20 7273 796e 6364 2e73 6f63 6b65 740a  : rsyncd.socket.
│ │ │ +002a9290: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002a92a0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +002a92b0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002a92c0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002a92d0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +002a92e0: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +002a92f0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002a9300: 2822 7273 796e 6364 2e73 6f63 6b65 7422  ("rsyncd.socket"
│ │ │ +002a9310: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +002a9320: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ +002a9330: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002a9340: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +002a9350: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002a9360: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002a9370: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002a9380: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002a9390: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002a93a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002a93b0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +002a93c0: 7273 796e 6364 5f64 6973 6162 6c65 640a  rsyncd_disabled.
│ │ │ +002a93d0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002a93e0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +002a93f0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002a9400: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002a9410: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +002a94d0: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +002a94e0: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
< │ │ │ +002a95e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002a9610: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +002a9630: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +002a9640: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +002a9650: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +002a9660: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +002a9670: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +002a9680: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +002a9690: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +002a96a0: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +002a96b0: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +002a96c0: 3a20 7273 796e 6364 2e73 6572 7669 6365  : rsyncd.service
│ │ │ +002a96d0: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +002a96e0: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +002a96f0: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +002a9700: 202d 206e 616d 653a 2072 7379 6e63 642e   - name: rsyncd.
│ │ │ +002a9710: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +002a9720: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002a9730: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +002a9740: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002a9800: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002a9810: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +002a95a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +002a95b0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +002a95f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002a9600: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +002a9890: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002a98b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002a9900: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +002a9950: 5f72 7379 6e63 640a 0a63 6c61 7373 2064  _rsyncd..class d
│ │ │ +002a9960: 6973 6162 6c65 5f72 7379 6e63 6420 7b0a  isable_rsyncd {.
│ │ │ +002a9970: 2020 7365 7276 6963 6520 7b27 7273 796e    service {'rsyn
│ │ │ +002a9980: 6364 273a 0a20 2020 2065 6e61 626c 6520  cd':.    enable 
│ │ │ +002a9990: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +002a99a0: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +002a99b0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +002a99c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002a9a70: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +002a9a80: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +002a9a90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +002a9ae0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +002a9af0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +002a9b00: 205b 2272 7379 6e63 6422 5d0a 3c2f 636f   ["rsyncd"].
< │ │ │ 002a9b20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002a9b30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002a9b40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002a9b50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002a9b60: 6431 3130 3022 2074 6162 696e 6465 783d d1100" tabindex= │ │ │ 002a9b70: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -174896,94 +174896,94 @@ │ │ │ 002ab2f0: 6c61 7073 6522 2064 6174 612d 7461 7267 lapse" data-targ │ │ │ 002ab300: 6574 3d22 2369 6431 3130 3222 2074 6162 et="#id1102" tab │ │ │ 002ab310: 696e 6465 783d 2230 2220 726f 6c65 3d22 index="0" role=" │ │ │ 002ab320: 6275 7474 6f6e 2220 6172 6961 2d65 7870 button" aria-exp │ │ │ 002ab330: 616e 6465 643d 2266 616c 7365 2220 7469 anded="false" ti │ │ │ 002ab340: 746c 653d 2241 6374 6976 6174 6520 746f tle="Activate to │ │ │ 002ab350: 2072 6576 6561 6c22 2068 7265 663d 2223 reveal" href="# │ │ │ -002ab360: 2122 3e52 656d 6564 6961 7469 6f6e 2050 !">Remediation P │ │ │ -002ab370: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -002ab380: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ +002a98c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002a98d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002a9910: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +002a9920: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002ab400: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002ab420: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002ab470: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002ab4a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002ab410: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002ab430: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002ab480: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002ab490: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -002ab4c0: 7665 5f63 7570 730a 0a63 6c61 7373 2072  ve_cups..class r
│ │ │ -002ab4d0: 656d 6f76 655f 6375 7073 207b 0a20 2070  emove_cups {.  p
│ │ │ -002ab4e0: 6163 6b61 6765 207b 2027 6375 7073 273a  ackage { 'cups':
│ │ │ -002ab4f0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002ab500: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -002ab510: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002ab520: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002ab5d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002ab5e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002ab670: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002ab690: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002ab6b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002ab6e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002ab6f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -002ab720: 6e73 7461 6c6c 2043 5550 5320 5061 636b  nstall CUPS Pack
│ │ │ -002ab730: 6167 653a 2045 6e73 7572 6520 6375 7073  age: Ensure cups
│ │ │ -002ab740: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -002ab750: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -002ab760: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -002ab770: 3a20 6375 7073 0a20 2020 2073 7461 7465  : cups.    state
│ │ │ -002ab780: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -002ab790: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002ab7a0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002ab7b0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002ab7c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002ab7d0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -002ab7e0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002ab7f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002ab800: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002ab810: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002ab820: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002ab830: 6b61 6765 5f63 7570 735f 7265 6d6f 7665  kage_cups_remove
│ │ │ -002ab840: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -002ab850: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.Remediation A
│ │ │ +002ab370: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002ab380: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +002ab410: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002ab430: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002ab450: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002ab480: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002ab490: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +002ab4c0: 6e73 7461 6c6c 2043 5550 5320 5061 636b  nstall CUPS Pack
│ │ │ +002ab4d0: 6167 653a 2045 6e73 7572 6520 6375 7073  age: Ensure cups
│ │ │ +002ab4e0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +002ab4f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +002ab500: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +002ab510: 3a20 6375 7073 0a20 2020 2073 7461 7465  : cups.    state
│ │ │ +002ab520: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +002ab530: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002ab540: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002ab550: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002ab560: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002ab570: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +002ab580: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002ab590: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002ab5a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002ab5b0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +002ab5c0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002ab5d0: 6b61 6765 5f63 7570 735f 7265 6d6f 7665  kage_cups_remove
│ │ │ +002ab5e0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +002ab5f0: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.
Remediat │ │ │ +002ab6b0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002ab6c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002ab700: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002ab710: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002ab720: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002ab730: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002ab740: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002ab750: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002ab760: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002ab7a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002ab7b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002ab7d0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002ab7e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +002ab800: 2072 656d 6f76 655f 6375 7073 0a0a 636c remove_cups..cl │ │ │ +002ab810: 6173 7320 7265 6d6f 7665 5f63 7570 7320 ass remove_cups │ │ │ +002ab820: 7b0a 2020 7061 636b 6167 6520 7b20 2763 {. package { 'c │ │ │ +002ab830: 7570 7327 3a0a 2020 2020 656e 7375 7265 ups':. ensure │ │ │ +002ab840: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ +002ab850: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediat │ │ │ -002acb30: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -002acb40: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -002acb50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ -002acb90: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -002acba0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -002acbb0: 6d61 736b 6564 203d 205b 2263 7570 7322  masked = ["cups"
│ │ │ -002acbc0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -002acbd0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation K │ │ │ -002acc80: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ -002acc90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002acd10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002acd20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002acd30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ -002acd60: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ -002acd70: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -002acd80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ -002acd90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ -002acdd0: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -002acde0: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -002acdf0: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -002ace00: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -002ace10: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -002ace20: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -002ace30: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -002ace40: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -002ace50: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -002ace60: 202d 206e 616d 653a 2063 7570 732e 7365 - name: cups.se │ │ │ -002ace70: 7276 6963 650a 2020 2020 2020 2020 656e rvice. en │ │ │ -002ace80: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -002ace90: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ -002acea0: 2020 2020 2020 2d20 6e61 6d65 3a20 6375 - name: cu │ │ │ -002aceb0: 7073 2e73 6f63 6b65 740a 2020 2020 2020 ps.socket. │ │ │ -002acec0: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -002aced0: 0a20 2020 2020 2020 206d 6173 6b3a 2074 . mask: t │ │ │ -002acee0: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265 rue.

Remediation │ │ │ -002acfa0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002acfb0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002ad040: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002ad060: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002ad070: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002ad080: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002ad090: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002ad0b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -002ad0f0: 626c 655f 6375 7073 0a0a 636c 6173 7320  ble_cups..class 
│ │ │ -002ad100: 6469 7361 626c 655f 6375 7073 207b 0a20  disable_cups {. 
│ │ │ -002ad110: 2073 6572 7669 6365 207b 2763 7570 7327   service {'cups'
│ │ │ -002ad120: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -002ad130: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -002ad140: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -002ad150: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -002ad170: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002ad180: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002ad190: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002ad1a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002ad1b0: 6431 3130 3922 2074 6162 696e 6465 783d d1109" tabindex= │ │ │ -002ad1c0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002ad1d0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002ad1e0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002ad1f0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002ad200: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002ad210: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002ad220: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002ad230: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002ad2c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002ad2d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002ad320: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002ad360: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -002ad370: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -002ad380: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002ad390: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002ad3a0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -002ad3b0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002ad3c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002ad3d0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002ad3e0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002ad3f0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002ad400: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002ad410: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002ad420: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002ad430: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002ad440: 640a 2020 2d20 7365 7276 6963 655f 6375  d.  - service_cu
│ │ │ -002ad450: 7073 5f64 6973 6162 6c65 640a 2020 2d20  ps_disabled.  - 
│ │ │ -002ad460: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -002ad470: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -002ad480: 6520 7468 6520 4355 5053 2053 6572 7669  e the CUPS Servi
│ │ │ -002ad490: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ -002ad4a0: 7669 6365 2063 7570 730a 2020 626c 6f63  vice cups.  bloc
│ │ │ -002ad4b0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -002ad4c0: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ -002ad4d0: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ -002ad4e0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -002ad4f0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -002ad500: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -002ad510: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002ad520: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002ad530: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002ad540: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -002ad550: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002ad560: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -002ad570: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002ad580: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002ad590: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -002ad5a0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002ad5b0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002ad5c0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002ad5d0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002ad5e0: 7468 6520 4355 5053 2053 6572 7669 6365  the CUPS Service
│ │ │ -002ad5f0: 202d 2045 6e73 7572 6520 6375 7073 2e73   - Ensure cups.s
│ │ │ -002ad600: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -002ad610: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002ad620: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002ad630: 2020 2020 6e61 6d65 3a20 6375 7073 2e73      name: cups.s
│ │ │ -002ad640: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -002ad650: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002ad660: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002ad670: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002ad680: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -002ad690: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -002ad6a0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -002ad6b0: 7263 6828 2263 7570 732e 7365 7276 6963  rch("cups.servic
│ │ │ -002ad6c0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -002ad6d0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -002ad6e0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -002ad6f0: 7320 2d20 6375 7073 2e73 6f63 6b65 740a  s - cups.socket.
│ │ │ -002ad700: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002ad710: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002ad720: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002ad730: 6e69 742d 6669 6c65 7320 6375 7073 2e73  nit-files cups.s
│ │ │ -002ad740: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -002ad750: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -002ad760: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002ad770: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002ad780: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002ad790: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002ad7a0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002ad7b0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002ad7c0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002ad7d0: 616d 653a 2044 6973 6162 6c65 2074 6865  ame: Disable the
│ │ │ -002ad7e0: 2043 5550 5320 5365 7276 6963 6520 2d20   CUPS Service - 
│ │ │ -002ad7f0: 4469 7361 626c 6520 536f 636b 6574 2063  Disable Socket c
│ │ │ -002ad800: 7570 730a 2020 2020 616e 7369 626c 652e  ups.    ansible.
│ │ │ -002ad810: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002ad820: 0a20 2020 2020 206e 616d 653a 2063 7570  .      name: cup
│ │ │ -002ad830: 732e 736f 636b 6574 0a20 2020 2020 2065  s.socket.      e
│ │ │ -002ad840: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002ad850: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002ad860: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002ad870: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002ad880: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002ad890: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002ad8a0: 6973 2073 6561 7263 6828 2263 7570 732e  is search("cups.
│ │ │ -002ad8b0: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -002ad8c0: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -002ad8d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002ad8e0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002ad8f0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002ad900: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002ad910: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -002ad920: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002ad930: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002ad940: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002ad950: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002ad960: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002ad970: 7669 6365 5f63 7570 735f 6469 7361 626c  vice_cups_disabl
│ │ │ -002ad980: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -002ad990: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ -002ad9a0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -002ad9b0: 790a 2020 7768 656e 3a20 2722 6c69 6e75  y.  when: '"linu
│ │ │ -002ad9c0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -002ad9d0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -002ad9e0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002acb30: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +002acb40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002acb50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002acb60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002acb70: 7365 2220 6964 3d22 6964 3131 3036 223e se" id="id1106"> │ │ │ +002acb80: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -002ad2b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002ad2e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002ad2f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002ad330: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002ad340: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002acbf0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002acc10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002acc40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002acbd0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002acbe0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002acc20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002acc30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002acc80: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +002acc90: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +002acca0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +002accb0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +002accc0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +002accd0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +002acce0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +002accf0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +002acd00: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +002acd10: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +002acd20: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +002acd30: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +002acd40: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ +002acd50: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +002acd60: 2073 6572 7669 6365 5f63 7570 735f 6469 service_cups_di │ │ │ +002acd70: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f sabled. - unkno │ │ │ +002acd80: 776e 5f73 6576 6572 6974 790a 0a2d 206e wn_severity..- n │ │ │ +002acd90: 616d 653a 2044 6973 6162 6c65 2074 6865 ame: Disable the │ │ │ +002acda0: 2043 5550 5320 5365 7276 6963 6520 2d20 CUPS Service - │ │ │ +002acdb0: 4469 7361 626c 6520 7365 7276 6963 6520 Disable service │ │ │ +002acdc0: 6375 7073 0a20 2062 6c6f 636b 3a0a 0a20 cups. block:.. │ │ │ +002acdd0: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ +002acde0: 2074 6865 2043 5550 5320 5365 7276 6963 the CUPS Servic │ │ │ +002acdf0: 6520 2d20 436f 6c6c 6563 7420 7379 7374 e - Collect syst │ │ │ +002ace00: 656d 6420 5365 7276 6963 6573 2050 7265 emd Services Pre │ │ │ +002ace10: 7365 6e74 2069 6e20 7468 6520 5379 7374 sent in the Syst │ │ │ +002ace20: 656d 0a20 2020 2061 6e73 6962 6c65 2e62 em. ansible.b │ │ │ +002ace30: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +002ace40: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +002ace50: 742d 756e 6974 2d66 696c 6573 202d 2d74 t-unit-files --t │ │ │ +002ace60: 7970 6520 7365 7276 6963 650a 2020 2020 ype service. │ │ │ +002ace70: 7265 6769 7374 6572 3a20 7365 7276 6963 register: servic │ │ │ +002ace80: 655f 6578 6973 7473 0a20 2020 2063 6861 e_exists. cha │ │ │ +002ace90: 6e67 6564 5f77 6865 6e3a 2066 616c 7365 nged_when: false │ │ │ +002acea0: 0a20 2020 2066 6169 6c65 645f 7768 656e . failed_when │ │ │ +002aceb0: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ +002acec0: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ +002aced0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ +002acee0: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ +002acef0: 653a 2044 6973 6162 6c65 2074 6865 2043 e: Disable the C │ │ │ +002acf00: 5550 5320 5365 7276 6963 6520 2d20 456e UPS Service - En │ │ │ +002acf10: 7375 7265 2063 7570 732e 7365 7276 6963 sure cups.servic │ │ │ +002acf20: 6520 6973 204d 6173 6b65 640a 2020 2020 e is Masked. │ │ │ +002acf30: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +002acf40: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +002acf50: 616d 653a 2063 7570 732e 7365 7276 6963 ame: cups.servic │ │ │ +002acf60: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +002acf70: 746f 7070 6564 0a20 2020 2020 2065 6e61 topped. ena │ │ │ +002acf80: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ +002acf90: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ +002acfa0: 2020 2077 6865 6e3a 2073 6572 7669 6365 when: service │ │ │ +002acfb0: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ +002acfc0: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ +002acfd0: 6375 7073 2e73 6572 7669 6365 222c 206d cups.service", m │ │ │ +002acfe0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a ultiline=True).. │ │ │ +002acff0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053 - name: Unit S │ │ │ +002ad000: 6f63 6b65 7420 4578 6973 7473 202d 2063 ocket Exists - c │ │ │ +002ad010: 7570 732e 736f 636b 6574 0a20 2020 2061 ups.socket. a │ │ │ +002ad020: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ +002ad030: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ +002ad040: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ +002ad050: 696c 6573 2063 7570 732e 736f 636b 6574 iles cups.socket │ │ │ +002ad060: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ +002ad070: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +002ad080: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +002ad090: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +002ad0a0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ +002ad0b0: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ +002ad0c0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +002ad0d0: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +002ad0e0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +002ad0f0: 4469 7361 626c 6520 7468 6520 4355 5053 Disable the CUPS │ │ │ +002ad100: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ +002ad110: 6c65 2053 6f63 6b65 7420 6375 7073 0a20 le Socket cups. │ │ │ +002ad120: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +002ad130: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +002ad140: 2020 6e61 6d65 3a20 6375 7073 2e73 6f63 name: cups.soc │ │ │ +002ad150: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ +002ad160: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ +002ad170: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +002ad180: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +002ad190: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ +002ad1a0: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ +002ad1b0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +002ad1c0: 6172 6368 2822 6375 7073 2e73 6f63 6b65 arch("cups.socke │ │ │ +002ad1d0: 7422 2c20 6d75 6c74 696c 696e 653d 5472 t", multiline=Tr │ │ │ +002ad1e0: 7565 290a 2020 7461 6773 3a0a 2020 2d20 ue). tags:. - │ │ │ +002ad1f0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +002ad200: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +002ad210: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ +002ad220: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +002ad230: 2862 290a 2020 2d20 6469 7361 626c 655f (b). - disable_ │ │ │ +002ad240: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +002ad250: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +002ad260: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +002ad270: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +002ad280: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +002ad290: 6375 7073 5f64 6973 6162 6c65 640a 2020 cups_disabled. │ │ │ +002ad2a0: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ +002ad2b0: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e e_block. - unkn │ │ │ +002ad2c0: 6f77 6e5f 7365 7665 7269 7479 0a20 2077 own_severity. w │ │ │ +002ad2d0: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ +002ad2e0: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +002ad2f0: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.

R │ │ │ +002ad3b0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +002ad3c0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +002ad3d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002ad450: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002ad470: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +002ad460: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002ad480: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +002ad4b0: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +002ad4d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002ad500: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +002ad510: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +002ad520: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +002ad530: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +002ad540: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +002ad550: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +002ad560: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +002ad570: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +002ad580: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +002ad590: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +002ad5a0: 616d 653a 2063 7570 732e 7365 7276 6963  ame: cups.servic
│ │ │ +002ad5b0: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ +002ad5c0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +002ad5d0: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ +002ad5e0: 2020 2d20 6e61 6d65 3a20 6375 7073 2e73    - name: cups.s
│ │ │ +002ad5f0: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ +002ad600: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002ad610: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +002ad620: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002ad6e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002ad6f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002ad7c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002ad7d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002ad820: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002ad830: 6375 7073 0a0a 636c 6173 7320 6469 7361  cups..class disa
│ │ │ +002ad840: 626c 655f 6375 7073 207b 0a20 2073 6572  ble_cups {.  ser
│ │ │ +002ad850: 7669 6365 207b 2763 7570 7327 3a0a 2020  vice {'cups':.  
│ │ │ +002ad860: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +002ad870: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +002ad880: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +002ad890: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +002ad8a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +002ad950: 7469 6f6e 204f 5342 7569 6c64 2042 6c75  tion OSBuild Blu
│ │ │ +002ad960: 6570 7269 6e74 2073 6e69 7070 6574 20e2  eprint snippet .
│ │ │ +002ad970: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +002ad9b0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +002ad9c0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +002ad9d0: 0a6d 6173 6b65 6420 3d20 5b22 6375 7073  .masked = ["cups
│ │ │ +002ad9e0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 002ad9f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remedia │ │ │ -002af050: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002af060: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002af070: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002af080: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002af090: 7365 2220 6964 3d22 6964 3131 3132 223e se" id="id1112"> │ │ │ -002af0a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +002ad7a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002ad7b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002ad7f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002ad800: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002af110: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002af130: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002af160: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002af0f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002af100: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002af140: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002af150: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -002af1a0: 6520 7265 6d6f 7665 5f73 7175 6964 0a0a e remove_squid.. │ │ │ -002af1b0: 636c 6173 7320 7265 6d6f 7665 5f73 7175 class remove_squ │ │ │ -002af1c0: 6964 207b 0a20 2070 6163 6b61 6765 207b id {. package { │ │ │ -002af1d0: 2027 7371 7569 6427 3a0a 2020 2020 656e 'squid':. en │ │ │ -002af1e0: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ -002af1f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.

Reme │ │ │ -002af2b0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002af2c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002af2d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002af370: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002af3c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002af400: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002af410: 7371 7569 6420 5061 636b 6167 653a 2045  squid Package: E
│ │ │ -002af420: 6e73 7572 6520 7371 7569 6420 6973 2072  nsure squid is r
│ │ │ -002af430: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -002af440: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -002af450: 653a 0a20 2020 206e 616d 653a 2073 7175  e:.    name: squ
│ │ │ -002af460: 6964 0a20 2020 2073 7461 7465 3a20 6162  id.    state: ab
│ │ │ -002af470: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -002af480: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002af490: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002af4a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002af4b0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -002af4c0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002af4d0: 2070 6163 6b61 6765 5f73 7175 6964 5f72   package_squid_r
│ │ │ -002af4e0: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ -002af4f0: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
│ │ │ +002af070: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Co │ │ │ -002af350: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002af380: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002af3a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002af3b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002af3d0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002af3e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +002af110: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002af130: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002af160: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002af0f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002af100: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002af120: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002af140: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002af150: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002af190: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002af1a0: 3a20 2755 6e69 6e73 7461 6c6c 2073 7175 : 'Uninstall squ │ │ │ +002af1b0: 6964 2050 6163 6b61 6765 3a20 456e 7375 id Package: Ensu │ │ │ +002af1c0: 7265 2073 7175 6964 2069 7320 7265 6d6f re squid is remo │ │ │ +002af1d0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ +002af1e0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +002af1f0: 2020 2020 6e61 6d65 3a20 7371 7569 640a name: squid. │ │ │ +002af200: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ +002af210: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ +002af220: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +002af230: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +002af240: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +002af250: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ +002af260: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +002af270: 636b 6167 655f 7371 7569 645f 7265 6d6f ckage_squid_remo │ │ │ +002af280: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f ved. - unknown_ │ │ │ +002af290: 7365 7665 7269 7479 0a3c 2f63 6f64 653e severity. │ │ │ +002af2a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +002af350: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002af360: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002af370: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002af410: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002af430: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002af460: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002af3f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002af400: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002af420: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002af440: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002af450: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002af490: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +002af4a0: 6465 2072 656d 6f76 655f 7371 7569 640a de remove_squid. │ │ │ +002af4b0: 0a63 6c61 7373 2072 656d 6f76 655f 7371 .class remove_sq │ │ │ +002af4c0: 7569 6420 7b0a 2020 7061 636b 6167 6520 uid {. package │ │ │ +002af4d0: 7b20 2773 7175 6964 273a 0a20 2020 2065 { 'squid':. e │ │ │ +002af4e0: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +002af4f0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ 002af510: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002af520: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002af530: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002af540: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002af550: 6431 3131 3422 2074 6162 696e 6465 783d d1114" tabindex= │ │ │ 002af560: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -176170,242 +176170,242 @@ │ │ │ 002b0290: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 002b02a0: 743d 2223 6964 3131 3136 2220 7461 6269 t="#id1116" tabi │ │ │ 002b02b0: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 002b02c0: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 002b02d0: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 002b02e0: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 002b02f0: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -002b0300: 223e 5265 6d65 6469 6174 696f 6e20 4f53 ">Remediation OS │ │ │ -002b0310: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -002b0320: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b0330: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ -002b0370: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -002b0380: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -002b0390: 203d 205b 2273 7175 6964 225d 0a3c 2f63   = ["squid"].
│ │ │ -002b03b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002b0450: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -002b0460: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -002b0470: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002b04f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b0510: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -002b0540: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -002b0520: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b0530: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -002b0550: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -002b0570: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002b0580: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -002b05b0: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -002b05c0: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -002b05d0: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -002b05e0: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -002b05f0: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -002b0600: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -002b0610: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -002b0620: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -002b0630: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -002b0640: 6d65 3a20 7371 7569 642e 7365 7276 6963  me: squid.servic
│ │ │ -002b0650: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -002b0660: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -002b0670: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -002b0680: 2020 2d20 6e61 6d65 3a20 7371 7569 642e    - name: squid.
│ │ │ -002b0690: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ -002b06a0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002b06b0: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -002b06c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ -002b0780: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002b0790: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002b0810: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b0830: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002b0880: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -002b08d0: 5f73 7175 6964 0a0a 636c 6173 7320 6469  _squid..class di
│ │ │ -002b08e0: 7361 626c 655f 7371 7569 6420 7b0a 2020  sable_squid {.  
│ │ │ -002b08f0: 7365 7276 6963 6520 7b27 7371 7569 6427  service {'squid'
│ │ │ -002b0900: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -002b0910: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -002b0920: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -002b0930: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -002b0950: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002b0960: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002b0970: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002b0980: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002b0990: 6431 3131 3922 2074 6162 696e 6465 783d d1119" tabindex= │ │ │ -002b09a0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002b09b0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002b09c0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002b09d0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002b09e0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002b09f0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002b0a00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002b0a10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ -002b0840: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b0850: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002b0890: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -002b08a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002b0aa0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b0ab0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002b0b00: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002b0b40: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -002b0b50: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -002b0b60: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002b0b70: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002b0b80: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ -002b0b90: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002b0ba0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002b0bb0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002b0bc0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -002b0bd0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -002b0be0: 7276 6963 655f 7371 7569 645f 6469 7361  rvice_squid_disa
│ │ │ -002b0bf0: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ -002b0c00: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ -002b0c10: 653a 2044 6973 6162 6c65 2053 7175 6964  e: Disable Squid
│ │ │ -002b0c20: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -002b0c30: 6365 2073 7175 6964 0a20 2062 6c6f 636b  ce squid.  block
│ │ │ -002b0c40: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -002b0c50: 6162 6c65 2053 7175 6964 202d 2043 6f6c  able Squid - Col
│ │ │ -002b0c60: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -002b0c70: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -002b0c80: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -002b0c90: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002b0ca0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002b0cb0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002b0cc0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -002b0cd0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -002b0ce0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -002b0cf0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002b0d00: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002b0d10: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -002b0d20: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -002b0d30: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002b0d40: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002b0d50: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002b0d60: 626c 6520 5371 7569 6420 2d20 456e 7375  ble Squid - Ensu
│ │ │ -002b0d70: 7265 2073 7175 6964 2e73 6572 7669 6365  re squid.service
│ │ │ -002b0d80: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -002b0d90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002b0da0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002b0db0: 6d65 3a20 7371 7569 642e 7365 7276 6963  me: squid.servic
│ │ │ -002b0dc0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -002b0dd0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -002b0de0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002b0df0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002b0e00: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -002b0e10: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002b0e20: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002b0e30: 7371 7569 642e 7365 7276 6963 6522 2c20  squid.service", 
│ │ │ -002b0e40: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002b0e50: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002b0e60: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002b0e70: 7371 7569 642e 736f 636b 6574 0a20 2020  squid.socket.   
│ │ │ -002b0e80: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002b0e90: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002b0ea0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002b0eb0: 2d66 696c 6573 2073 7175 6964 2e73 6f63  -files squid.soc
│ │ │ -002b0ec0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -002b0ed0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002b0ee0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -002b0ef0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -002b0f00: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -002b0f10: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002b0f20: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -002b0f30: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -002b0f40: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -002b0f50: 653a 2044 6973 6162 6c65 2053 7175 6964  e: Disable Squid
│ │ │ -002b0f60: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -002b0f70: 7420 7371 7569 640a 2020 2020 616e 7369  t squid.    ansi
│ │ │ -002b0f80: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002b0f90: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002b0fa0: 2073 7175 6964 2e73 6f63 6b65 740a 2020   squid.socket.  
│ │ │ -002b0fb0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002b0fc0: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -002b0fd0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -002b0fe0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002b0ff0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002b1000: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002b1010: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002b1020: 7371 7569 642e 736f 636b 6574 222c 206d  squid.socket", m
│ │ │ -002b1030: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -002b1040: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002b1050: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002b1060: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002b1070: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002b1080: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -002b1090: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -002b10a0: 6365 5f73 7175 6964 5f64 6973 6162 6c65  ce_squid_disable
│ │ │ -002b10b0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -002b10c0: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ -002b10d0: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -002b10e0: 0a20 2077 6865 6e3a 2028 2022 7371 7569  .  when: ( "squi
│ │ │ -002b10f0: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ -002b1100: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ -002b1110: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ -002b1120: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002b1130: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).Remediation An
│ │ │ +002b0310: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +002b0320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
C │ │ │ -002b0a90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002b0ac0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002b0ad0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002b0b10: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002b0b20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +002b03a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b03c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b0410: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b0440: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002b03b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b03d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b0420: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b0430: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002b0460: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002b0470: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +002b0480: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +002b0490: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +002b04a0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002b04b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002b04c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002b04d0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +002b04e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002b04f0: 202d 2073 6572 7669 6365 5f73 7175 6964   - service_squid
│ │ │ +002b0500: 5f64 6973 6162 6c65 640a 2020 2d20 756e  _disabled.  - un
│ │ │ +002b0510: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a0a  known_severity..
│ │ │ +002b0520: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002b0530: 5371 7569 6420 2d20 4469 7361 626c 6520  Squid - Disable 
│ │ │ +002b0540: 7365 7276 6963 6520 7371 7569 640a 2020  service squid.  
│ │ │ +002b0550: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002b0560: 3a20 4469 7361 626c 6520 5371 7569 6420  : Disable Squid 
│ │ │ +002b0570: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +002b0580: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +002b0590: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +002b05a0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002b05b0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +002b05c0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +002b05d0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +002b05e0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +002b05f0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +002b0600: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002b0610: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002b0620: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002b0630: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +002b0640: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002b0650: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002b0660: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002b0670: 2044 6973 6162 6c65 2053 7175 6964 202d   Disable Squid -
│ │ │ +002b0680: 2045 6e73 7572 6520 7371 7569 642e 7365   Ensure squid.se
│ │ │ +002b0690: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +002b06a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002b06b0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002b06c0: 2020 206e 616d 653a 2073 7175 6964 2e73     name: squid.s
│ │ │ +002b06d0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002b06e0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002b06f0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002b0700: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002b0710: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +002b0720: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +002b0730: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002b0740: 7263 6828 2273 7175 6964 2e73 6572 7669  rch("squid.servi
│ │ │ +002b0750: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +002b0760: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +002b0770: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +002b0780: 7473 202d 2073 7175 6964 2e73 6f63 6b65  ts - squid.socke
│ │ │ +002b0790: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +002b07a0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +002b07b0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +002b07c0: 2d75 6e69 742d 6669 6c65 7320 7371 7569  -unit-files squi
│ │ │ +002b07d0: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ +002b07e0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002b07f0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002b0800: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002b0810: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002b0820: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002b0830: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002b0840: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002b0850: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002b0860: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002b0870: 5371 7569 6420 2d20 4469 7361 626c 6520  Squid - Disable 
│ │ │ +002b0880: 536f 636b 6574 2073 7175 6964 0a20 2020  Socket squid.   
│ │ │ +002b0890: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002b08a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +002b08b0: 6e61 6d65 3a20 7371 7569 642e 736f 636b  name: squid.sock
│ │ │ +002b08c0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +002b08d0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +002b08e0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +002b08f0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002b0900: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +002b0910: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +002b0920: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002b0930: 7263 6828 2273 7175 6964 2e73 6f63 6b65  rch("squid.socke
│ │ │ +002b0940: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +002b0950: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +002b0960: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002b0970: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002b0980: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002b0990: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +002b09a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002b09b0: 7365 7276 6963 655f 7371 7569 645f 6469  service_squid_di
│ │ │ +002b09c0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002b09d0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002b09e0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002b09f0: 6572 6974 790a 2020 7768 656e 3a20 2820  erity.  when: ( 
│ │ │ +002b0a00: 2273 7175 6964 2220 696e 2061 6e73 6962  "squid" in ansib
│ │ │ +002b0a10: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002b0a20: 7320 616e 6420 226c 696e 7578 2d62 6173  s and "linux-bas
│ │ │ +002b0a30: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002b0a40: 6374 732e 7061 636b 6167 6573 0a20 2020  cts.packages.   
│ │ │ +002b0a50: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +002b0a60: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +002b0b10: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ +002b0b20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002b0b60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002b0b70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002b0b80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002b0b90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002b0ba0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002b0bb0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002b0bc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:mediumRe │ │ │ +002b0c00: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ +002b0c10: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue │ │ │ +002b0c20: 3c74 683e 5374 7261 7465 6779 3a3c 2f74 Strategy:disable< │ │ │ +002b0c50: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ +002b0c60: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ +002b0c70: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ +002b0c80: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ +002b0c90: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ +002b0ca0: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ +002b0cb0: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ +002b0cc0: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ +002b0cd0: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ +002b0ce0: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ +002b0cf0: 2020 2d20 6e61 6d65 3a20 7371 7569 642e - name: squid. │ │ │ +002b0d00: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +002b0d10: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +002b0d20: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +002b0d30: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +002b0d40: 7371 7569 642e 736f 636b 6574 0a20 2020 squid.socket. │ │ │ +002b0d50: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +002b0d60: 6c73 650a 2020 2020 2020 2020 6d61 736b lse. mask │ │ │ +002b0d70: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f : true.
Remediat │ │ │ +002b0e30: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002b0e40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002b0e80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002b0e90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002b0ea0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002b0eb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002b0ec0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002b0ed0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002b0ee0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002b0f20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002b0f30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002b0f50: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +002b0f60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ +002b0f80: 6973 6162 6c65 5f73 7175 6964 0a0a 636c  isable_squid..cl
│ │ │ +002b0f90: 6173 7320 6469 7361 626c 655f 7371 7569  ass disable_squi
│ │ │ +002b0fa0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ +002b0fb0: 7371 7569 6427 3a0a 2020 2020 656e 6162  squid':.    enab
│ │ │ +002b0fc0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002b0fd0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002b0fe0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002b0ff0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002b1000: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +002b10b0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +002b10c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002b10d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002b1110: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +002b1120: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +002b1130: 6420 3d20 5b22 7371 7569 6422 5d0a 3c2f  d = ["squid"].
Remediation │ │ │ -002b28e0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002b28f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002b2980: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002b29a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002b29c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002b29f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002b2a00: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -002b2a30: 6f76 655f 7361 6d62 610a 0a63 6c61 7373  ove_samba..class
│ │ │ -002b2a40: 2072 656d 6f76 655f 7361 6d62 6120 7b0a   remove_samba {.
│ │ │ -002b2a50: 2020 7061 636b 6167 6520 7b20 2773 616d    package { 'sam
│ │ │ -002b2a60: 6261 273a 0a20 2020 2065 6e73 7572 6520  ba':.    ensure 
│ │ │ -002b2a70: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -002b2a80: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -002b2b40: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002b2b50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002b2b90: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002b2ba0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002b2bb0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002b2bc0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002b2bd0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002b2be0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002b2bf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002b2c30: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002b2c40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002b2c60: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -002b2c70: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -002b2c90: 2755 6e69 6e73 7461 6c6c 2053 616d 6261 'Uninstall Samba │ │ │ -002b2ca0: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ -002b2cb0: 2073 616d 6261 2069 7320 7265 6d6f 7665 samba is remove │ │ │ -002b2cc0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -002b2cd0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -002b2ce0: 2020 6e61 6d65 3a20 7361 6d62 610a 2020 name: samba. │ │ │ -002b2cf0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -002b2d00: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -002b2d10: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -002b2d20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -002b2d30: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -002b2d40: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74 on. - no_reboot │ │ │ -002b2d50: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -002b2d60: 6167 655f 7361 6d62 615f 7265 6d6f 7665 age_samba_remove │ │ │ -002b2d70: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365 d. - unknown_se │ │ │ -002b2d80: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f verity.
Complexity │ │ │ +002b2980: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002b29a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002b29b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b29c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002b29d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002b29f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002b2a20: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +002b2a30: 696e 7374 616c 6c20 5361 6d62 6120 5061  install Samba Pa
│ │ │ +002b2a40: 636b 6167 653a 2045 6e73 7572 6520 7361  ckage: Ensure sa
│ │ │ +002b2a50: 6d62 6120 6973 2072 656d 6f76 6564 270a  mba is removed'.
│ │ │ +002b2a60: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002b2a70: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002b2a80: 616d 653a 2073 616d 6261 0a20 2020 2073  ame: samba.    s
│ │ │ +002b2a90: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +002b2aa0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +002b2ab0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002b2ac0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002b2ad0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002b2ae0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002b2af0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +002b2b00: 5f73 616d 6261 5f72 656d 6f76 6564 0a20  _samba_removed. 
│ │ │ +002b2b10: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +002b2b20: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
Remediation │ │ │ +002b2be0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002b2bf0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +002b2c80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002b2ca0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002b2cb0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b2cc0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002b2cd0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002b2cf0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002b2d20: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +002b2d30: 6d6f 7665 5f73 616d 6261 0a0a 636c 6173  move_samba..clas
│ │ │ +002b2d40: 7320 7265 6d6f 7665 5f73 616d 6261 207b  s remove_samba {
│ │ │ +002b2d50: 0a20 2070 6163 6b61 6765 207b 2027 7361  .  package { 'sa
│ │ │ +002b2d60: 6d62 6127 3a0a 2020 2020 656e 7375 7265  mba':.    ensure
│ │ │ +002b2d70: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +002b2d80: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediation OS │ │ │ -002b3b20: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -002b3b30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b3b40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ -002b3b80: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -002b3b90: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -002b3ba0: 203d 205b 2273 6d62 6422 5d0a 3c2f 636f   = ["smbd"].
< │ │ │ -002b3bc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002b3bd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002b3be0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002b3bf0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002b3c00: 6431 3132 3722 2074 6162 696e 6465 783d d1127" tabindex= │ │ │ -002b3c10: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002b3c20: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002b3c30: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002b3c40: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002b3c50: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002b3c60: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ -002b3c70: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ -002b3c80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ -002b3d50: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002b3d70: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002b3da0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -002b3d30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ -002b3d40: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ -002b3d80: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002b3d90: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ -002b3dc0: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ -002b3dd0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ -002b3de0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ -002b3df0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ -002b3e00: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ -002b3e10: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ -002b3e20: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ -002b3e30: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ -002b3e40: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ -002b3e50: 653a 2073 6d62 642e 7365 7276 6963 650a  e: smbd.service.
│ │ │ -002b3e60: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002b3e70: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002b3e80: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ -002b3e90: 2d20 6e61 6d65 3a20 736d 6264 2e73 6f63  - name: smbd.soc
│ │ │ -002b3ea0: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ -002b3eb0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002b3ec0: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ -002b3f80: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002b3f90: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002b4030: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -002b40d0: 636c 7564 6520 6469 7361 626c 655f 736d  clude disable_sm
│ │ │ -002b40e0: 6264 0a0a 636c 6173 7320 6469 7361 626c  bd..class disabl
│ │ │ -002b40f0: 655f 736d 6264 207b 0a20 2073 6572 7669  e_smbd {.  servi
│ │ │ -002b4100: 6365 207b 2773 6d62 6427 3a0a 2020 2020  ce {'smbd':.    
│ │ │ -002b4110: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -002b4120: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -002b4130: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -002b4140: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -002b4200: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002b4210: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002b4250: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002b4260: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002b4270: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002b4280: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002b4290: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -002b4320: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002b4330: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -002b4020: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002b4050: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002b4060: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002b40a0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -002b40b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -002b42a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002b42b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -002b42f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002b4300: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -002b4350: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -002b4360: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -002b4370: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -002b4380: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002b4390: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -002b43a0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -002b43b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -002b43c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -002b43d0: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ -002b43e0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -002b43f0: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -002b4400: 5f73 6d62 5f64 6973 6162 6c65 640a 0a2d _smb_disabled..- │ │ │ -002b4410: 206e 616d 653a 2044 6973 6162 6c65 2053 name: Disable S │ │ │ -002b4420: 616d 6261 202d 2044 6973 6162 6c65 2073 amba - Disable s │ │ │ -002b4430: 6572 7669 6365 2073 6d62 640a 2020 626c ervice smbd. bl │ │ │ -002b4440: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ -002b4450: 4469 7361 626c 6520 5361 6d62 6120 2d20 Disable Samba - │ │ │ -002b4460: 436f 6c6c 6563 7420 7379 7374 656d 6420 Collect systemd │ │ │ -002b4470: 5365 7276 6963 6573 2050 7265 7365 6e74 Services Present │ │ │ -002b4480: 2069 6e20 7468 6520 5379 7374 656d 0a20 in the System. │ │ │ -002b4490: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -002b44a0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -002b44b0: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -002b44c0: 6974 2d66 696c 6573 202d 2d74 7970 6520 it-files --type │ │ │ -002b44d0: 7365 7276 6963 650a 2020 2020 7265 6769 service. regi │ │ │ -002b44e0: 7374 6572 3a20 7365 7276 6963 655f 6578 ster: service_ex │ │ │ -002b44f0: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -002b4500: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -002b4510: 2066 6169 6c65 645f 7768 656e 3a20 7365 failed_when: se │ │ │ -002b4520: 7276 6963 655f 6578 6973 7473 2e72 6320 rvice_exists.rc │ │ │ -002b4530: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -002b4540: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -002b4550: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -002b4560: 6973 6162 6c65 2053 616d 6261 202d 2045 isable Samba - E │ │ │ -002b4570: 6e73 7572 6520 736d 6264 2e73 6572 7669 nsure smbd.servi │ │ │ -002b4580: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ -002b4590: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -002b45a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -002b45b0: 6e61 6d65 3a20 736d 6264 2e73 6572 7669 name: smbd.servi │ │ │ -002b45c0: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -002b45d0: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -002b45e0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -002b45f0: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -002b4600: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -002b4610: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -002b4620: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -002b4630: 2273 6d62 642e 7365 7276 6963 6522 2c20 "smbd.service", │ │ │ -002b4640: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ -002b4650: 0a20 202d 206e 616d 653a 2055 6e69 7420 . - name: Unit │ │ │ -002b4660: 536f 636b 6574 2045 7869 7374 7320 2d20 Socket Exists - │ │ │ -002b4670: 736d 6264 2e73 6f63 6b65 740a 2020 2020 smbd.socket. │ │ │ -002b4680: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -002b4690: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ -002b46a0: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ -002b46b0: 6669 6c65 7320 736d 6264 2e73 6f63 6b65 files smbd.socke │ │ │ -002b46c0: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ -002b46d0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -002b46e0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -002b46f0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -002b4700: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ -002b4710: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ -002b4720: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ -002b4730: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ -002b4740: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ -002b4750: 2044 6973 6162 6c65 2053 616d 6261 202d Disable Samba - │ │ │ -002b4760: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ -002b4770: 736d 6264 0a20 2020 2061 6e73 6962 6c65 smbd. ansible │ │ │ -002b4780: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -002b4790: 3a0a 2020 2020 2020 6e61 6d65 3a20 736d :. name: sm │ │ │ -002b47a0: 6264 2e73 6f63 6b65 740a 2020 2020 2020 bd.socket. │ │ │ -002b47b0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -002b47c0: 2020 2020 2073 7461 7465 3a20 7374 6f70 state: stop │ │ │ -002b47d0: 7065 640a 2020 2020 2020 6d61 736b 6564 ped. masked │ │ │ -002b47e0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -002b47f0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -002b4800: 7374 732e 7374 646f 7574 5f6c 696e 6573 sts.stdout_lines │ │ │ -002b4810: 2069 7320 7365 6172 6368 2822 736d 6264 is search("smbd │ │ │ -002b4820: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c .socket", multil │ │ │ -002b4830: 696e 653d 5472 7565 290a 2020 7461 6773 ine=True). tags │ │ │ -002b4840: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -002b4850: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -002b4860: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -002b4870: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -002b4880: 206c 6f77 5f73 6576 6572 6974 790a 2020 low_severity. │ │ │ -002b4890: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -002b48a0: 6564 0a20 202d 2073 6572 7669 6365 5f73 ed. - service_s │ │ │ -002b48b0: 6d62 5f64 6973 6162 6c65 640a 2020 2d20 mb_disabled. - │ │ │ -002b48c0: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -002b48d0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722 block. when: '" │ │ │ -002b48e0: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ -002b48f0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -002b4900: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f kages'.Remediation An │ │ │ +002b3b20: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +002b3b30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002b3bb0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b3bd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b3c20: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b3c50: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002b3bc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b3be0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b3c30: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b3c40: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002b3c70: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002b3c80: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +002b3c90: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +002b3ca0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +002b3cb0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002b3cc0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002b3cd0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002b3ce0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +002b3cf0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +002b3d00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002b3d10: 2020 2d20 7365 7276 6963 655f 736d 625f    - service_smb_
│ │ │ +002b3d20: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ +002b3d30: 3a20 4469 7361 626c 6520 5361 6d62 6120  : Disable Samba 
│ │ │ +002b3d40: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +002b3d50: 6520 736d 6264 0a20 2062 6c6f 636b 3a0a  e smbd.  block:.
│ │ │ +002b3d60: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002b3d70: 6c65 2053 616d 6261 202d 2043 6f6c 6c65  le Samba - Colle
│ │ │ +002b3d80: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +002b3d90: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +002b3da0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +002b3db0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002b3dc0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002b3dd0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002b3de0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +002b3df0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +002b3e00: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +002b3e10: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002b3e20: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002b3e30: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +002b3e40: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002b3e50: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002b3e60: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002b3e70: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002b3e80: 6520 5361 6d62 6120 2d20 456e 7375 7265  e Samba - Ensure
│ │ │ +002b3e90: 2073 6d62 642e 7365 7276 6963 6520 6973   smbd.service is
│ │ │ +002b3ea0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +002b3eb0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002b3ec0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002b3ed0: 2073 6d62 642e 7365 7276 6963 650a 2020   smbd.service.  
│ │ │ +002b3ee0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +002b3ef0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +002b3f00: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +002b3f10: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +002b3f20: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +002b3f30: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +002b3f40: 2069 7320 7365 6172 6368 2822 736d 6264   is search("smbd
│ │ │ +002b3f50: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +002b3f60: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +002b3f70: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +002b3f80: 7420 4578 6973 7473 202d 2073 6d62 642e  t Exists - smbd.
│ │ │ +002b3f90: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +002b3fa0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +002b3fb0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +002b3fc0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +002b3fd0: 2073 6d62 642e 736f 636b 6574 0a20 2020   smbd.socket.   
│ │ │ +002b3fe0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +002b3ff0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +002b4000: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002b4010: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002b4020: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +002b4030: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +002b4040: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +002b4050: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +002b4060: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002b4070: 626c 6520 5361 6d62 6120 2d20 4469 7361  ble Samba - Disa
│ │ │ +002b4080: 626c 6520 536f 636b 6574 2073 6d62 640a  ble Socket smbd.
│ │ │ +002b4090: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002b40a0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002b40b0: 2020 206e 616d 653a 2073 6d62 642e 736f     name: smbd.so
│ │ │ +002b40c0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +002b40d0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002b40e0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002b40f0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +002b4100: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +002b4110: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +002b4120: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +002b4130: 6561 7263 6828 2273 6d62 642e 736f 636b  earch("smbd.sock
│ │ │ +002b4140: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +002b4150: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +002b4160: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002b4170: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002b4180: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002b4190: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +002b41a0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002b41b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002b41c0: 2d20 7365 7276 6963 655f 736d 625f 6469  - service_smb_di
│ │ │ +002b41d0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002b41e0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002b41f0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +002b4200: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +002b4210: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +002b4220: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002b4230: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation K │ │ │ +002b42e0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +002b42f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002b4370: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002b4380: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002b4390: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ +002b43c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ +002b43d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +002b43e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ +002b43f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ +002b4430: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +002b4440: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +002b4450: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +002b4460: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +002b4470: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +002b4480: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +002b4490: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +002b44a0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +002b44b0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +002b44c0: 202d 206e 616d 653a 2073 6d62 642e 7365 - name: smbd.se │ │ │ +002b44d0: 7276 6963 650a 2020 2020 2020 2020 656e rvice. en │ │ │ +002b44e0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +002b44f0: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ +002b4500: 2020 2020 2020 2d20 6e61 6d65 3a20 736d - name: sm │ │ │ +002b4510: 6264 2e73 6f63 6b65 740a 2020 2020 2020 bd.socket. │ │ │ +002b4520: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ +002b4530: 0a20 2020 2020 2020 206d 6173 6b3a 2074 . mask: t │ │ │ +002b4540: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265 rue.

Remediation │ │ │ +002b4600: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002b4610: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +002b46a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002b46c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002b46d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b46e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002b46f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002b4710: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +002b4750: 626c 655f 736d 6264 0a0a 636c 6173 7320  ble_smbd..class 
│ │ │ +002b4760: 6469 7361 626c 655f 736d 6264 207b 0a20  disable_smbd {. 
│ │ │ +002b4770: 2073 6572 7669 6365 207b 2773 6d62 6427   service {'smbd'
│ │ │ +002b4780: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +002b4790: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +002b47a0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +002b47b0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +002b47d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002b47e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002b47f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002b4800: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002b4810: 6431 3132 3922 2074 6162 696e 6465 783d d1129" tabindex= │ │ │ +002b4820: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002b4830: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002b4840: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002b4850: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002b4860: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002b4870: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +002b4880: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +002b4890: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002b48d0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +002b48e0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +002b48f0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +002b4900: 736d 6264 225d 0a3c 2f63 6f64 653e 3c2f smbd"].
Remediation │ │ │ -002b6000: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002b6010: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002b60a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002b60c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002b60e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002b6110: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002b6120: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -002b6150: 6f76 655f 736e 6d70 0a0a 636c 6173 7320  ove_snmp..class 
│ │ │ -002b6160: 7265 6d6f 7665 5f73 6e6d 7020 7b0a 2020  remove_snmp {.  
│ │ │ -002b6170: 7061 636b 6167 6520 7b20 2773 6e6d 7027  package { 'snmp'
│ │ │ -002b6180: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -002b6190: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -002b61a0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002b61b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002b6260: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002b6270: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002b6300: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002b6320: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002b6330: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b6340: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002b6350: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002b6370: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002b63a0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -002b63b0: 696e 7374 616c 6c20 6e65 742d 736e 6d70  install net-snmp
│ │ │ -002b63c0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -002b63d0: 2073 6e6d 7020 6973 2072 656d 6f76 6564   snmp is removed
│ │ │ -002b63e0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -002b63f0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -002b6400: 206e 616d 653a 2073 6e6d 700a 2020 2020   name: snmp.    
│ │ │ -002b6410: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002b6420: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -002b6430: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -002b6440: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -002b6450: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002b6460: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002b6470: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002b6480: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002b6490: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002b64a0: 7061 636b 6167 655f 6e65 742d 736e 6d70  package_net-snmp
│ │ │ -002b64b0: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ -002b64c0: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
Complexity │ │ │ +002b60a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002b60c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002b60d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b60e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002b60f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002b6110: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002b6140: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +002b6150: 696e 7374 616c 6c20 6e65 742d 736e 6d70  install net-snmp
│ │ │ +002b6160: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +002b6170: 2073 6e6d 7020 6973 2072 656d 6f76 6564   snmp is removed
│ │ │ +002b6180: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +002b6190: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +002b61a0: 206e 616d 653a 2073 6e6d 700a 2020 2020   name: snmp.    
│ │ │ +002b61b0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +002b61c0: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ +002b61d0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +002b61e0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ +002b61f0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002b6200: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002b6210: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002b6220: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +002b6230: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002b6240: 7061 636b 6167 655f 6e65 742d 736e 6d70  package_net-snmp
│ │ │ +002b6250: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ +002b6260: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
R │ │ │ +002b6320: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002b6330: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +002b63d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002b6470: 696e 636c 7564 6520 7265 6d6f 7665 5f73  include remove_s
│ │ │ +002b6480: 6e6d 700a 0a63 6c61 7373 2072 656d 6f76  nmp..class remov
│ │ │ +002b6490: 655f 736e 6d70 207b 0a20 2070 6163 6b61  e_snmp {.  packa
│ │ │ +002b64a0: 6765 207b 2027 736e 6d70 273a 0a20 2020  ge { 'snmp':.   
│ │ │ +002b64b0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +002b64c0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediation OS │ │ │ -002b72e0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -002b72f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b7300: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ -002b7340: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -002b7350: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -002b7360: 203d 205b 2273 6e6d 7064 225d 0a3c 2f63   = ["snmpd"].
│ │ │ -002b7380: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002b7420: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -002b7430: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -002b7440: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +002b63c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b63f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b6400: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b6440: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b6450: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -002b74c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b74e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -002b7510: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -002b74f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b7500: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -002b7520: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -002b7540: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002b7550: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -002b7580: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -002b7590: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -002b75a0: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -002b75b0: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -002b75c0: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -002b75d0: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -002b75e0: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -002b75f0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -002b7600: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -002b7610: 6d65 3a20 736e 6d70 642e 7365 7276 6963  me: snmpd.servic
│ │ │ -002b7620: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -002b7630: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -002b7640: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -002b7650: 2020 2d20 6e61 6d65 3a20 736e 6d70 642e    - name: snmpd.
│ │ │ -002b7660: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ -002b7670: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002b7680: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -002b7690: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ -002b7750: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002b7760: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002b77e0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b7800: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002b7850: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -002b78a0: 5f73 6e6d 7064 0a0a 636c 6173 7320 6469  _snmpd..class di
│ │ │ -002b78b0: 7361 626c 655f 736e 6d70 6420 7b0a 2020  sable_snmpd {.  
│ │ │ -002b78c0: 7365 7276 6963 6520 7b27 736e 6d70 6427  service {'snmpd'
│ │ │ -002b78d0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -002b78e0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -002b78f0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -002b7900: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -002b7920: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002b7930: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002b7940: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002b7950: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002b7960: 6431 3133 3922 2074 6162 696e 6465 783d d1139" tabindex= │ │ │ -002b7970: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002b7980: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002b7990: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002b79a0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002b79b0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002b79c0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002b79d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002b79e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ -002b7810: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b7820: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002b7860: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -002b7870: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002b7a70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b7a80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002b7ad0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002b7b10: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -002b7b20: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -002b7b30: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002b7b40: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002b7b50: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ -002b7b60: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002b7b70: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002b7b80: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002b7b90: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -002b7ba0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002b7bb0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -002b7bc0: 6572 7669 6365 5f73 6e6d 7064 5f64 6973  ervice_snmpd_dis
│ │ │ -002b7bd0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -002b7be0: 6973 6162 6c65 2073 6e6d 7064 2053 6572  isable snmpd Ser
│ │ │ -002b7bf0: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ -002b7c00: 6572 7669 6365 2073 6e6d 7064 0a20 2062  ervice snmpd.  b
│ │ │ -002b7c10: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -002b7c20: 2044 6973 6162 6c65 2073 6e6d 7064 2053   Disable snmpd S
│ │ │ -002b7c30: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ -002b7c40: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -002b7c50: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -002b7c60: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -002b7c70: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002b7c80: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002b7c90: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002b7ca0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -002b7cb0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002b7cc0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -002b7cd0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002b7ce0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002b7cf0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -002b7d00: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002b7d10: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002b7d20: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002b7d30: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002b7d40: 736e 6d70 6420 5365 7276 6963 6520 2d20  snmpd Service - 
│ │ │ -002b7d50: 456e 7375 7265 2073 6e6d 7064 2e73 6572  Ensure snmpd.ser
│ │ │ -002b7d60: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -002b7d70: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002b7d80: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -002b7d90: 2020 6e61 6d65 3a20 736e 6d70 642e 7365    name: snmpd.se
│ │ │ -002b7da0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -002b7db0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -002b7dc0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002b7dd0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002b7de0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -002b7df0: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -002b7e00: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002b7e10: 6368 2822 736e 6d70 642e 7365 7276 6963  ch("snmpd.servic
│ │ │ -002b7e20: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -002b7e30: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -002b7e40: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -002b7e50: 7320 2d20 736e 6d70 642e 736f 636b 6574  s - snmpd.socket
│ │ │ -002b7e60: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002b7e70: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002b7e80: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002b7e90: 756e 6974 2d66 696c 6573 2073 6e6d 7064  unit-files snmpd
│ │ │ -002b7ea0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -002b7eb0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -002b7ec0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002b7ed0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -002b7ee0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -002b7ef0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002b7f00: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -002b7f10: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -002b7f20: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -002b7f30: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ -002b7f40: 6e6d 7064 2053 6572 7669 6365 202d 2044  nmpd Service - D
│ │ │ -002b7f50: 6973 6162 6c65 2053 6f63 6b65 7420 736e  isable Socket sn
│ │ │ -002b7f60: 6d70 640a 2020 2020 616e 7369 626c 652e  mpd.    ansible.
│ │ │ -002b7f70: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002b7f80: 0a20 2020 2020 206e 616d 653a 2073 6e6d  .      name: snm
│ │ │ -002b7f90: 7064 2e73 6f63 6b65 740a 2020 2020 2020  pd.socket.      
│ │ │ -002b7fa0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -002b7fb0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -002b7fc0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -002b7fd0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -002b7fe0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002b7ff0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -002b8000: 2069 7320 7365 6172 6368 2822 736e 6d70   is search("snmp
│ │ │ -002b8010: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ -002b8020: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -002b8030: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002b8040: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002b8050: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002b8060: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002b8070: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -002b8080: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002b8090: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -002b80a0: 736e 6d70 645f 6469 7361 626c 6564 0a20  snmpd_disabled. 
│ │ │ -002b80b0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -002b80c0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -002b80d0: 2028 2022 736e 6d70 2220 696e 2061 6e73   ( "snmp" in ans
│ │ │ -002b80e0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -002b80f0: 6765 7320 616e 6420 226c 696e 7578 2d62  ges and "linux-b
│ │ │ -002b8100: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -002b8110: 6661 6374 732e 7061 636b 6167 6573 0a20  facts.packages. 
│ │ │ -002b8120: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072     ).Remediation An
│ │ │ +002b72e0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +002b72f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
C │ │ │ -002b7a60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002b7a90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002b7aa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002b7ae0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002b7af0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +002b7370: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b7390: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b73e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b7410: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002b7380: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b73a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b73f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b7400: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002b7430: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002b7440: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +002b7450: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +002b7460: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +002b7470: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002b7480: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002b7490: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002b74a0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +002b74b0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +002b74c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002b74d0: 2020 2d20 7365 7276 6963 655f 736e 6d70    - service_snmp
│ │ │ +002b74e0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ +002b74f0: 6d65 3a20 4469 7361 626c 6520 736e 6d70  me: Disable snmp
│ │ │ +002b7500: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ +002b7510: 626c 6520 7365 7276 6963 6520 736e 6d70  ble service snmp
│ │ │ +002b7520: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ +002b7530: 6e61 6d65 3a20 4469 7361 626c 6520 736e  name: Disable sn
│ │ │ +002b7540: 6d70 6420 5365 7276 6963 6520 2d20 436f  mpd Service - Co
│ │ │ +002b7550: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +002b7560: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +002b7570: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +002b7580: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002b7590: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002b75a0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002b75b0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +002b75c0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +002b75d0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +002b75e0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002b75f0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002b7600: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +002b7610: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +002b7620: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +002b7630: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002b7640: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002b7650: 6162 6c65 2073 6e6d 7064 2053 6572 7669  able snmpd Servi
│ │ │ +002b7660: 6365 202d 2045 6e73 7572 6520 736e 6d70  ce - Ensure snmp
│ │ │ +002b7670: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ +002b7680: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +002b7690: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002b76a0: 0a20 2020 2020 206e 616d 653a 2073 6e6d  .      name: snm
│ │ │ +002b76b0: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ +002b76c0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002b76d0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002b76e0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002b76f0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002b7700: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002b7710: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002b7720: 2073 6561 7263 6828 2273 6e6d 7064 2e73   search("snmpd.s
│ │ │ +002b7730: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +002b7740: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +002b7750: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +002b7760: 4578 6973 7473 202d 2073 6e6d 7064 2e73  Exists - snmpd.s
│ │ │ +002b7770: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +002b7780: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002b7790: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +002b77a0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +002b77b0: 736e 6d70 642e 736f 636b 6574 0a20 2020  snmpd.socket.   
│ │ │ +002b77c0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +002b77d0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +002b77e0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002b77f0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002b7800: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +002b7810: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +002b7820: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +002b7830: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +002b7840: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002b7850: 626c 6520 736e 6d70 6420 5365 7276 6963  ble snmpd Servic
│ │ │ +002b7860: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +002b7870: 6574 2073 6e6d 7064 0a20 2020 2061 6e73  et snmpd.    ans
│ │ │ +002b7880: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002b7890: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002b78a0: 3a20 736e 6d70 642e 736f 636b 6574 0a20  : snmpd.socket. 
│ │ │ +002b78b0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002b78c0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +002b78d0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +002b78e0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +002b78f0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +002b7900: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002b7910: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +002b7920: 2273 6e6d 7064 2e73 6f63 6b65 7422 2c20  "snmpd.socket", 
│ │ │ +002b7930: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +002b7940: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002b7950: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002b7960: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002b7970: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002b7980: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002b7990: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002b79a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002b79b0: 7669 6365 5f73 6e6d 7064 5f64 6973 6162  vice_snmpd_disab
│ │ │ +002b79c0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002b79d0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002b79e0: 7768 656e 3a20 2820 2273 6e6d 7022 2069  when: ( "snmp" i
│ │ │ +002b79f0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +002b7a00: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ +002b7a10: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +002b7a20: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +002b7a30: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
Remed │ │ │ +002b7af0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ +002b7b00: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ +002b7ba0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ +002b7c50: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ +002b7c60: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ +002b7c70: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ +002b7c80: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ +002b7c90: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ +002b7ca0: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ +002b7cb0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ +002b7cc0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ +002b7cd0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ +002b7ce0: 2073 6e6d 7064 2e73 6572 7669 6365 0a20   snmpd.service. 
│ │ │ +002b7cf0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +002b7d00: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +002b7d10: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +002b7d20: 206e 616d 653a 2073 6e6d 7064 2e73 6f63   name: snmpd.soc
│ │ │ +002b7d30: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +002b7d40: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002b7d50: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ +002b7e10: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002b7e20: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +002b7b90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b7bc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ +002b7bd0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ +002b7c10: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002b7c20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002b7ec0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +002b7f60: 636c 7564 6520 6469 7361 626c 655f 736e  clude disable_sn
│ │ │ +002b7f70: 6d70 640a 0a63 6c61 7373 2064 6973 6162  mpd..class disab
│ │ │ +002b7f80: 6c65 5f73 6e6d 7064 207b 0a20 2073 6572  le_snmpd {.  ser
│ │ │ +002b7f90: 7669 6365 207b 2773 6e6d 7064 273a 0a20  vice {'snmpd':. 
│ │ │ +002b7fa0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +002b7fb0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +002b7fc0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +002b7fd0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +002b7fe0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002b8090: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +002b80a0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +002b80b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +002b8100: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +002b8110: 5d0a 6d61 736b 6564 203d 205b 2273 6e6d  ].masked = ["snm
│ │ │ +002b8120: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
Remedia │ │ │ -002f9610: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002f9620: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002f9630: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002f9640: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002f9650: 7365 2220 6964 3d22 6964 3132 3131 223e se" id="id1211"> │ │ │ -002f9660: 3c70 7265 3e3c 636f 6465 3e0a 0a0a 696e
...in
│ │ │ -002f9670: 636c 7564 6520 7373 685f 7072 6976 6174  clude ssh_privat
│ │ │ -002f9680: 655f 6b65 795f 7065 726d 730a 0a63 6c61  e_key_perms..cla
│ │ │ -002f9690: 7373 2073 7368 5f70 7269 7661 7465 5f6b  ss ssh_private_k
│ │ │ -002f96a0: 6579 5f70 6572 6d73 207b 0a20 2065 7865  ey_perms {.  exe
│ │ │ -002f96b0: 6320 7b20 2773 7368 645f 7072 6976 5f6b  c { 'sshd_priv_k
│ │ │ -002f96c0: 6579 273a 0a20 2020 2063 6f6d 6d61 6e64  ey':.    command
│ │ │ -002f96d0: 203d 2667 743b 2022 6368 6d6f 6420 3036   => "chmod 06
│ │ │ -002f96e0: 3030 202f 6574 632f 7373 682f 2a5f 6b65  00 /etc/ssh/*_ke
│ │ │ -002f96f0: 7922 2c0a 2020 2020 7061 7468 2020 2020  y",.    path    
│ │ │ -002f9700: 3d26 6774 3b20 272f 6269 6e3a 2f75 7372  => '/bin:/usr
│ │ │ -002f9710: 2f62 696e 270a 2020 7d0a 7d0a 3c2f 636f  /bin'.  }.}.
< │ │ │ -002f9730: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002f9740: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002f9750: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002f9760: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002f9770: 6431 3231 3222 2074 6162 696e 6465 783d d1212" tabindex= │ │ │ -002f9780: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002f9790: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002f97a0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002f97b0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002f97c0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002f97d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002f97e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002f97f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +002b7eb0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b7ee0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b7ef0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b7f30: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +002b7f40: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002f9880: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002f9890: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002f98e0: 3c74 723e 3c74 683e 5374 7261 7465 6779

│ │ │ -002f9920: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002f9930: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002f9940: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002f9950: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -002f9960: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002f9970: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002f9980: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ -002f9990: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ -002f99a0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002f99b0: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ -002f99c0: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ -002f99d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002f99e0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -002f99f0: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ -002f9a00: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002f9a10: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002f9a20: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ -002f9a30: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ -002f9a40: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ -002f9a50: 6864 5f70 7269 7661 7465 5f6b 6579 0a20  hd_private_key. 
│ │ │ -002f9a60: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002f9a70: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002f9a80: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002f9a90: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002f9aa0: 7265 626f 6f74 5f6e 6565 6465 640a 0a2d  reboot_needed..-
│ │ │ -002f9ab0: 206e 616d 653a 2046 696e 6420 726f 6f74   name: Find root
│ │ │ -002f9ac0: 3a72 6f6f 742d 6f77 6e65 6420 6b65 7973  :root-owned keys
│ │ │ -002f9ad0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -002f9ae0: 696e 2e63 6f6d 6d61 6e64 3a20 6669 6e64  in.command: find
│ │ │ -002f9af0: 202d 4820 2f65 7463 2f73 7368 2f20 2d6d   -H /etc/ssh/ -m
│ │ │ -002f9b00: 6178 6465 7074 6820 3120 2d75 7365 7220  axdepth 1 -user 
│ │ │ -002f9b10: 726f 6f74 202d 7265 6765 7820 222e 2a5f  root -regex ".*_
│ │ │ -002f9b20: 6b65 7924 220a 2020 2020 2d74 7970 6520  key$".    -type 
│ │ │ -002f9b30: 6620 2d67 726f 7570 2072 6f6f 7420 2d70  f -group root -p
│ │ │ -002f9b40: 6572 6d20 2f75 2b78 732c 672b 7877 7273  erm /u+xs,g+xwrs
│ │ │ -002f9b50: 2c6f 2b78 7772 740a 2020 7265 6769 7374  ,o+xwrt.  regist
│ │ │ -002f9b60: 6572 3a20 726f 6f74 5f6f 776e 6564 5f6b  er: root_owned_k
│ │ │ -002f9b70: 6579 730a 2020 6368 616e 6765 645f 7768  eys.  changed_wh
│ │ │ -002f9b80: 656e 3a20 6661 6c73 650a 2020 6661 696c  en: false.  fail
│ │ │ -002f9b90: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002f9ba0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002f9bb0: 7365 0a20 2077 6865 6e3a 2027 226c 696e  se.  when: '"lin
│ │ │ -002f9bc0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002f9bd0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002f9be0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -002f9bf0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002f9c00: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ -002f9c10: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ -002f9c20: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002f9c30: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ -002f9c40: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ -002f9c50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002f9c60: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -002f9c70: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ -002f9c80: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002f9c90: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002f9ca0: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ -002f9cb0: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ -002f9cc0: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ -002f9cd0: 6864 5f70 7269 7661 7465 5f6b 6579 0a20  hd_private_key. 
│ │ │ -002f9ce0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002f9cf0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002f9d00: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002f9d10: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002f9d20: 7265 626f 6f74 5f6e 6565 6465 640a 0a2d  reboot_needed..-
│ │ │ -002f9d30: 206e 616d 653a 2053 6574 2070 6572 6d69   name: Set permi
│ │ │ -002f9d40: 7373 696f 6e73 2066 6f72 2072 6f6f 743a  ssions for root:
│ │ │ -002f9d50: 726f 6f74 2d6f 776e 6564 206b 6579 730a  root-owned keys.
│ │ │ -002f9d60: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002f9d70: 6e2e 6669 6c65 3a0a 2020 2020 7061 7468  n.file:.    path
│ │ │ -002f9d80: 3a20 277b 7b20 6974 656d 207d 7d27 0a20  : '{{ item }}'. 
│ │ │ -002f9d90: 2020 206d 6f64 653a 2075 2d78 732c 672d     mode: u-xs,g-
│ │ │ -002f9da0: 7877 7273 2c6f 2d78 7772 740a 2020 2020  xwrs,o-xwrt.    
│ │ │ -002f9db0: 7374 6174 653a 2066 696c 650a 2020 7769  state: file.  wi
│ │ │ -002f9dc0: 7468 5f69 7465 6d73 3a0a 2020 2d20 277b  th_items:.  - '{
│ │ │ -002f9dd0: 7b20 726f 6f74 5f6f 776e 6564 5f6b 6579  { root_owned_key
│ │ │ -002f9de0: 732e 7374 646f 7574 5f6c 696e 6573 207d  s.stdout_lines }
│ │ │ -002f9df0: 7d27 0a20 2077 6865 6e3a 2027 226c 696e  }'.  when: '"lin
│ │ │ -002f9e00: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002f9e10: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002f9e20: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -002f9e30: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002f9e40: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ -002f9e50: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ -002f9e60: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002f9e70: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ -002f9e80: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ -002f9e90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002f9ea0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -002f9eb0: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ -002f9ec0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -002f9ed0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -002f9ee0: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ -002f9ef0: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ -002f9f00: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ -002f9f10: 6864 5f70 7269 7661 7465 5f6b 6579 0a20  hd_private_key. 
│ │ │ -002f9f20: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002f9f30: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002f9f40: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002f9f50: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002f9f60: 7265 626f 6f74 5f6e 6565 6465 640a 3c2f  reboot_needed.
│ │ │ +002f9630: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
C │ │ │ -002f9870: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002f98a0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002f98b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002f98f0: 3a3c 2f74 683e 3c74 643e 636f 6e66 6967 :config │ │ │ -002f9900: 7572 653c 2f74 643e 3c2f 7472 3e3c 2f74 ure
│ │ │ +002f96d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002f96f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002f9720: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002f96b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002f96c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002f96e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002f9700: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002f9710: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:configure< │ │ │ +002f9740: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002f9760: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002f9770: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002f9780: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002f9790: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002f97a0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002f97b0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002f97c0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002f97d0: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002f97e0: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002f97f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002f9800: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002f9810: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002f9820: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002f9830: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002f9840: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002f9850: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002f9860: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002f9870: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002f9880: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002f9890: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ +002f98a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002f98b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002f98c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002f98d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002f98e0: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ +002f98f0: 653a 2046 696e 6420 726f 6f74 3a72 6f6f  e: Find root:roo
│ │ │ +002f9900: 742d 6f77 6e65 6420 6b65 7973 0a20 2061  t-owned keys.  a
│ │ │ +002f9910: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002f9920: 6f6d 6d61 6e64 3a20 6669 6e64 202d 4820  ommand: find -H 
│ │ │ +002f9930: 2f65 7463 2f73 7368 2f20 2d6d 6178 6465  /etc/ssh/ -maxde
│ │ │ +002f9940: 7074 6820 3120 2d75 7365 7220 726f 6f74  pth 1 -user root
│ │ │ +002f9950: 202d 7265 6765 7820 222e 2a5f 6b65 7924   -regex ".*_key$
│ │ │ +002f9960: 220a 2020 2020 2d74 7970 6520 6620 2d67  ".    -type f -g
│ │ │ +002f9970: 726f 7570 2072 6f6f 7420 2d70 6572 6d20  roup root -perm 
│ │ │ +002f9980: 2f75 2b78 732c 672b 7877 7273 2c6f 2b78  /u+xs,g+xwrs,o+x
│ │ │ +002f9990: 7772 740a 2020 7265 6769 7374 6572 3a20  wrt.  register: 
│ │ │ +002f99a0: 726f 6f74 5f6f 776e 6564 5f6b 6579 730a  root_owned_keys.
│ │ │ +002f99b0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002f99c0: 6661 6c73 650a 2020 6661 696c 6564 5f77  false.  failed_w
│ │ │ +002f99d0: 6865 6e3a 2066 616c 7365 0a20 2063 6865  hen: false.  che
│ │ │ +002f99e0: 636b 5f6d 6f64 653a 2066 616c 7365 0a20  ck_mode: false. 
│ │ │ +002f99f0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002f9a00: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002f9a10: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002f9a20: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002f9a30: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002f9a40: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002f9a50: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002f9a60: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002f9a70: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002f9a80: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002f9a90: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002f9aa0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002f9ab0: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002f9ac0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002f9ad0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002f9ae0: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002f9af0: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002f9b00: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002f9b10: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ +002f9b20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002f9b30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002f9b40: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002f9b50: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002f9b60: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ +002f9b70: 653a 2053 6574 2070 6572 6d69 7373 696f  e: Set permissio
│ │ │ +002f9b80: 6e73 2066 6f72 2072 6f6f 743a 726f 6f74  ns for root:root
│ │ │ +002f9b90: 2d6f 776e 6564 206b 6579 730a 2020 616e  -owned keys.  an
│ │ │ +002f9ba0: 7369 626c 652e 6275 696c 7469 6e2e 6669  sible.builtin.fi
│ │ │ +002f9bb0: 6c65 3a0a 2020 2020 7061 7468 3a20 277b  le:.    path: '{
│ │ │ +002f9bc0: 7b20 6974 656d 207d 7d27 0a20 2020 206d  { item }}'.    m
│ │ │ +002f9bd0: 6f64 653a 2075 2d78 732c 672d 7877 7273  ode: u-xs,g-xwrs
│ │ │ +002f9be0: 2c6f 2d78 7772 740a 2020 2020 7374 6174  ,o-xwrt.    stat
│ │ │ +002f9bf0: 653a 2066 696c 650a 2020 7769 7468 5f69  e: file.  with_i
│ │ │ +002f9c00: 7465 6d73 3a0a 2020 2d20 277b 7b20 726f  tems:.  - '{{ ro
│ │ │ +002f9c10: 6f74 5f6f 776e 6564 5f6b 6579 732e 7374  ot_owned_keys.st
│ │ │ +002f9c20: 646f 7574 5f6c 696e 6573 207d 7d27 0a20  dout_lines }}'. 
│ │ │ +002f9c30: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002f9c40: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002f9c50: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002f9c60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002f9c70: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +002f9c80: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002f9c90: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ +002f9ca0: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ +002f9cb0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002f9cc0: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ +002f9cd0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002f9ce0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +002f9cf0: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ +002f9d00: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002f9d10: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ +002f9d20: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ +002f9d30: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ +002f9d40: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ +002f9d50: 7269 7661 7465 5f6b 6579 0a20 202d 206c  rivate_key.  - l
│ │ │ +002f9d60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002f9d70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002f9d80: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002f9d90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002f9da0: 6f74 5f6e 6565 6465 640a 3c2f 636f 6465  ot_needed.
Remed │ │ │ +002f9e60: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002f9e70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
...
│ │ │ +002f9ec0: 696e 636c 7564 6520 7373 685f 7072 6976  include ssh_priv
│ │ │ +002f9ed0: 6174 655f 6b65 795f 7065 726d 730a 0a63  ate_key_perms..c
│ │ │ +002f9ee0: 6c61 7373 2073 7368 5f70 7269 7661 7465  lass ssh_private
│ │ │ +002f9ef0: 5f6b 6579 5f70 6572 6d73 207b 0a20 2065  _key_perms {.  e
│ │ │ +002f9f00: 7865 6320 7b20 2773 7368 645f 7072 6976  xec { 'sshd_priv
│ │ │ +002f9f10: 5f6b 6579 273a 0a20 2020 2063 6f6d 6d61  _key':.    comma
│ │ │ +002f9f20: 6e64 203d 2667 743b 2022 6368 6d6f 6420  nd => "chmod 
│ │ │ +002f9f30: 3036 3030 202f 6574 632f 7373 682f 2a5f  0600 /etc/ssh/*_
│ │ │ +002f9f40: 6b65 7922 2c0a 2020 2020 7061 7468 2020  key",.    path  
│ │ │ +002f9f50: 2020 3d26 6774 3b20 272f 6269 6e3a 2f75    => '/bin:/u
│ │ │ +002f9f60: 7372 2f62 696e 270a 2020 7d0a 7d0a 3c2f  sr/bin'.  }.}.
Remediati │ │ │ -002fb3d0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002fb3e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

include │ │ │ -002fb430: 2073 7368 5f70 7562 6c69 635f 6b65 795f ssh_public_key_ │ │ │ -002fb440: 7065 726d 730a 0a63 6c61 7373 2073 7368 perms..class ssh │ │ │ -002fb450: 5f70 7562 6c69 635f 6b65 795f 7065 726d _public_key_perm │ │ │ -002fb460: 7320 7b0a 2020 6578 6563 207b 2027 7373 s {. exec { 'ss │ │ │ -002fb470: 6864 5f70 7562 5f6b 6579 273a 0a20 2020 hd_pub_key':. │ │ │ -002fb480: 2063 6f6d 6d61 6e64 203d 2667 743b 2022 command => " │ │ │ -002fb490: 6368 6d6f 6420 3036 3434 202f 6574 632f chmod 0644 /etc/ │ │ │ -002fb4a0: 7373 682f 2a2e 7075 6222 2c0a 2020 2020 ssh/*.pub",. │ │ │ -002fb4b0: 7061 7468 2020 2020 3d26 6774 3b20 272f path => '/ │ │ │ -002fb4c0: 6269 6e3a 2f75 7372 2f62 696e 270a 2020 bin:/usr/bin'. │ │ │ -002fb4d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -002fb590: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002fb5a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002fb620: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002fb630: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002fb650: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002fb660: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002fb680: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002fb6a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:configure │ │ │ -002fb6c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -002fb6e0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -002fb6f0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -002fb700: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -002fb710: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002fb720: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -002fb730: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -002fb740: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -002fb750: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -002fb760: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -002fb770: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -002fb780: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -002fb790: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002fb7a0: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -002fb7b0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -002fb7c0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -002fb7d0: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -002fb7e0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -002fb7f0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -002fb800: 7369 6f6e 735f 7373 6864 5f70 7562 5f6b sions_sshd_pub_k │ │ │ -002fb810: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c ey. - low_compl │ │ │ -002fb820: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002fb830: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -002fb840: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -002fb850: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -002fb860: 640a 0a2d 206e 616d 653a 2046 696e 6420 d..- name: Find │ │ │ -002fb870: 2f65 7463 2f73 7368 2f20 6669 6c65 2873 /etc/ssh/ file(s │ │ │ -002fb880: 290a 2020 616e 7369 626c 652e 6275 696c ). ansible.buil │ │ │ -002fb890: 7469 6e2e 636f 6d6d 616e 643a 2066 696e tin.command: fin │ │ │ -002fb8a0: 6420 2d50 202f 6574 632f 7373 682f 202d d -P /etc/ssh/ - │ │ │ -002fb8b0: 6d61 7864 6570 7468 2031 202d 7065 726d maxdepth 1 -perm │ │ │ -002fb8c0: 202f 752b 7873 2c67 2b78 7773 2c6f 2b78 /u+xs,g+xws,o+x │ │ │ -002fb8d0: 7774 2020 2d74 7970 650a 2020 2020 6620 wt -type. f │ │ │ -002fb8e0: 2d72 6567 6578 7479 7065 2070 6f73 6978 -regextype posix │ │ │ -002fb8f0: 2d65 7874 656e 6465 6420 2d72 6567 6578 -extended -regex │ │ │ -002fb900: 2022 5e2e 2a5c 2e70 7562 2422 0a20 2072 "^.*\.pub$". r │ │ │ -002fb910: 6567 6973 7465 723a 2066 696c 6573 5f66 egister: files_f │ │ │ -002fb920: 6f75 6e64 0a20 2063 6861 6e67 6564 5f77 ound. changed_w │ │ │ -002fb930: 6865 6e3a 2066 616c 7365 0a20 2066 6169 hen: false. fai │ │ │ -002fb940: 6c65 645f 7768 656e 3a20 6661 6c73 650a led_when: false. │ │ │ -002fb950: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -002fb960: 6c73 650a 2020 7768 656e 3a20 2722 6c69 lse. when: '"li │ │ │ -002fb970: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -002fb980: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -002fb990: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -002fb9a0: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002fb9b0: 312e 3133 0a20 202d 204e 4953 542d 3830 1.13. - NIST-80 │ │ │ -002fb9c0: 302d 3137 312d 332e 3133 2e31 300a 2020 0-171-3.13.10. │ │ │ -002fb9d0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -002fb9e0: 2d31 3728 6129 0a20 202d 204e 4953 542d -17(a). - NIST- │ │ │ -002fb9f0: 3830 302d 3533 2d41 432d 3628 3129 0a20 800-53-AC-6(1). │ │ │ -002fba00: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -002fba10: 4d2d 3628 6129 0a20 202d 2050 4349 2d44 M-6(a). - PCI-D │ │ │ -002fba20: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d SS-Req-2.2.4. - │ │ │ -002fba30: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -002fba40: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -002fba50: 2e36 0a20 202d 2063 6f6e 6669 6775 7265 .6. - configure │ │ │ -002fba60: 5f73 7472 6174 6567 790a 2020 2d20 6669 _strategy. - fi │ │ │ -002fba70: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73 le_permissions_s │ │ │ -002fba80: 7368 645f 7075 625f 6b65 790a 2020 2d20 shd_pub_key. - │ │ │ -002fba90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -002fbaa0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -002fbab0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -002fbac0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -002fbad0: 6f6f 745f 6e65 6564 6564 0a0a 2d20 6e61 oot_needed..- na │ │ │ -002fbae0: 6d65 3a20 5365 7420 7065 726d 6973 7369 me: Set permissi │ │ │ -002fbaf0: 6f6e 7320 666f 7220 2f65 7463 2f73 7368 ons for /etc/ssh │ │ │ -002fbb00: 2f20 6669 6c65 2873 290a 2020 616e 7369 / file(s). ansi │ │ │ -002fbb10: 626c 652e 6275 696c 7469 6e2e 6669 6c65 ble.builtin.file │ │ │ -002fbb20: 3a0a 2020 2020 7061 7468 3a20 277b 7b20 :. path: '{{ │ │ │ -002fbb30: 6974 656d 207d 7d27 0a20 2020 206d 6f64 item }}'. mod │ │ │ -002fbb40: 653a 2075 2d78 732c 672d 7877 732c 6f2d e: u-xs,g-xws,o- │ │ │ -002fbb50: 7877 740a 2020 2020 7374 6174 653a 2066 xwt. state: f │ │ │ -002fbb60: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ -002fbb70: 3a0a 2020 2d20 277b 7b20 6669 6c65 735f :. - '{{ files_ │ │ │ -002fbb80: 666f 756e 642e 7374 646f 7574 5f6c 696e found.stdout_lin │ │ │ -002fbb90: 6573 207d 7d27 0a20 2077 6865 6e3a 2027 es }}'. when: ' │ │ │ -002fbba0: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -002fbbb0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -002fbbc0: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -002fbbd0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731 - NIST-800-171 │ │ │ -002fbbe0: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354 -3.1.13. - NIST │ │ │ -002fbbf0: 2d38 3030 2d31 3731 2d33 2e31 332e 3130 -800-171-3.13.10 │ │ │ -002fbc00: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -002fbc10: 2d41 432d 3137 2861 290a 2020 2d20 4e49 -AC-17(a). - NI │ │ │ -002fbc20: 5354 2d38 3030 2d35 332d 4143 2d36 2831 ST-800-53-AC-6(1 │ │ │ -002fbc30: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -002fbc40: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ -002fbc50: 492d 4453 532d 5265 712d 322e 322e 340a I-DSS-Req-2.2.4. │ │ │ -002fbc60: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -002fbc70: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -002fbc80: 322e 322e 360a 2020 2d20 636f 6e66 6967 2.2.6. - config │ │ │ -002fbc90: 7572 655f 7374 7261 7465 6779 0a20 202d ure_strategy. - │ │ │ -002fbca0: 2066 696c 655f 7065 726d 6973 7369 6f6e file_permission │ │ │ -002fbcb0: 735f 7373 6864 5f70 7562 5f6b 6579 0a20 s_sshd_pub_key. │ │ │ -002fbcc0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -002fbcd0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -002fbce0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -002fbcf0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -002fbd00: 7265 626f 6f74 5f6e 6565 6465 640a 3c2f reboot_needed.
< │ │ │ +002fb420: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002fb430: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002fb440: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002fb450: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002fb460: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002fb470: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002fb480: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002fb4c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002fb4d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002fb4f0: 3c74 643e 636f 6e66 6967 7572 653c 2f74 configure< │ │ │ +002fb510: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002fb520: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +002fb530: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +002fb540: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +002fb550: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +002fb560: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +002fb570: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ +002fb580: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +002fb590: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ +002fb5a0: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ +002fb5b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +002fb5c0: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ +002fb5d0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +002fb5e0: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +002fb5f0: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ +002fb600: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +002fb610: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ +002fb620: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ +002fb630: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ +002fb640: 6973 7369 6f6e 735f 7373 6864 5f70 7562 issions_sshd_pub │ │ │ +002fb650: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d _key. - low_com │ │ │ +002fb660: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +002fb670: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +002fb680: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +002fb690: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +002fb6a0: 6465 640a 0a2d 206e 616d 653a 2046 696e ded..- name: Fin │ │ │ +002fb6b0: 6420 2f65 7463 2f73 7368 2f20 6669 6c65 d /etc/ssh/ file │ │ │ +002fb6c0: 2873 290a 2020 616e 7369 626c 652e 6275 (s). ansible.bu │ │ │ +002fb6d0: 696c 7469 6e2e 636f 6d6d 616e 643a 2066 iltin.command: f │ │ │ +002fb6e0: 696e 6420 2d50 202f 6574 632f 7373 682f ind -P /etc/ssh/ │ │ │ +002fb6f0: 202d 6d61 7864 6570 7468 2031 202d 7065 -maxdepth 1 -pe │ │ │ +002fb700: 726d 202f 752b 7873 2c67 2b78 7773 2c6f rm /u+xs,g+xws,o │ │ │ +002fb710: 2b78 7774 2020 2d74 7970 650a 2020 2020 +xwt -type. │ │ │ +002fb720: 6620 2d72 6567 6578 7479 7065 2070 6f73 f -regextype pos │ │ │ +002fb730: 6978 2d65 7874 656e 6465 6420 2d72 6567 ix-extended -reg │ │ │ +002fb740: 6578 2022 5e2e 2a5c 2e70 7562 2422 0a20 ex "^.*\.pub$". │ │ │ +002fb750: 2072 6567 6973 7465 723a 2066 696c 6573 register: files │ │ │ +002fb760: 5f66 6f75 6e64 0a20 2063 6861 6e67 6564 _found. changed │ │ │ +002fb770: 5f77 6865 6e3a 2066 616c 7365 0a20 2066 _when: false. f │ │ │ +002fb780: 6169 6c65 645f 7768 656e 3a20 6661 6c73 ailed_when: fals │ │ │ +002fb790: 650a 2020 6368 6563 6b5f 6d6f 6465 3a20 e. check_mode: │ │ │ +002fb7a0: 6661 6c73 650a 2020 7768 656e 3a20 2722 false. when: '" │ │ │ +002fb7b0: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ +002fb7c0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +002fb7d0: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ +002fb7e0: 202d 204e 4953 542d 3830 302d 3137 312d - NIST-800-171- │ │ │ +002fb7f0: 332e 312e 3133 0a20 202d 204e 4953 542d 3.1.13. - NIST- │ │ │ +002fb800: 3830 302d 3137 312d 332e 3133 2e31 300a 800-171-3.13.10. │ │ │ +002fb810: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +002fb820: 4143 2d31 3728 6129 0a20 202d 204e 4953 AC-17(a). - NIS │ │ │ +002fb830: 542d 3830 302d 3533 2d41 432d 3628 3129 T-800-53-AC-6(1) │ │ │ +002fb840: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +002fb850: 2d43 4d2d 3628 6129 0a20 202d 2050 4349 -CM-6(a). - PCI │ │ │ +002fb860: 2d44 5353 2d52 6571 2d32 2e32 2e34 0a20 -DSS-Req-2.2.4. │ │ │ +002fb870: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +002fb880: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +002fb890: 2e32 2e36 0a20 202d 2063 6f6e 6669 6775 .2.6. - configu │ │ │ +002fb8a0: 7265 5f73 7472 6174 6567 790a 2020 2d20 re_strategy. - │ │ │ +002fb8b0: 6669 6c65 5f70 6572 6d69 7373 696f 6e73 file_permissions │ │ │ +002fb8c0: 5f73 7368 645f 7075 625f 6b65 790a 2020 _sshd_pub_key. │ │ │ +002fb8d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +002fb8e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +002fb8f0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +002fb900: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +002fb910: 6562 6f6f 745f 6e65 6564 6564 0a0a 2d20 eboot_needed..- │ │ │ +002fb920: 6e61 6d65 3a20 5365 7420 7065 726d 6973 name: Set permis │ │ │ +002fb930: 7369 6f6e 7320 666f 7220 2f65 7463 2f73 sions for /etc/s │ │ │ +002fb940: 7368 2f20 6669 6c65 2873 290a 2020 616e sh/ file(s). an │ │ │ +002fb950: 7369 626c 652e 6275 696c 7469 6e2e 6669 sible.builtin.fi │ │ │ +002fb960: 6c65 3a0a 2020 2020 7061 7468 3a20 277b le:. path: '{ │ │ │ +002fb970: 7b20 6974 656d 207d 7d27 0a20 2020 206d { item }}'. m │ │ │ +002fb980: 6f64 653a 2075 2d78 732c 672d 7877 732c ode: u-xs,g-xws, │ │ │ +002fb990: 6f2d 7877 740a 2020 2020 7374 6174 653a o-xwt. state: │ │ │ +002fb9a0: 2066 696c 650a 2020 7769 7468 5f69 7465 file. with_ite │ │ │ +002fb9b0: 6d73 3a0a 2020 2d20 277b 7b20 6669 6c65 ms:. - '{{ file │ │ │ +002fb9c0: 735f 666f 756e 642e 7374 646f 7574 5f6c s_found.stdout_l │ │ │ +002fb9d0: 696e 6573 207d 7d27 0a20 2077 6865 6e3a ines }}'. when: │ │ │ +002fb9e0: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +002fb9f0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +002fba00: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +002fba10: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31 :. - NIST-800-1 │ │ │ +002fba20: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49 71-3.1.13. - NI │ │ │ +002fba30: 5354 2d38 3030 2d31 3731 2d33 2e31 332e ST-800-171-3.13. │ │ │ +002fba40: 3130 0a20 202d 204e 4953 542d 3830 302d 10. - NIST-800- │ │ │ +002fba50: 3533 2d41 432d 3137 2861 290a 2020 2d20 53-AC-17(a). - │ │ │ +002fba60: 4e49 5354 2d38 3030 2d35 332d 4143 2d36 NIST-800-53-AC-6 │ │ │ +002fba70: 2831 290a 2020 2d20 4e49 5354 2d38 3030 (1). - NIST-800 │ │ │ +002fba80: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +002fba90: 5043 492d 4453 532d 5265 712d 322e 322e PCI-DSS-Req-2.2. │ │ │ +002fbaa0: 340a 2020 2d20 5043 492d 4453 5376 342d 4. - PCI-DSSv4- │ │ │ +002fbab0: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ +002fbac0: 342d 322e 322e 360a 2020 2d20 636f 6e66 4-2.2.6. - conf │ │ │ +002fbad0: 6967 7572 655f 7374 7261 7465 6779 0a20 igure_strategy. │ │ │ +002fbae0: 202d 2066 696c 655f 7065 726d 6973 7369 - file_permissi │ │ │ +002fbaf0: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579 ons_sshd_pub_key │ │ │ +002fbb00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +002fbb10: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +002fbb20: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +002fbb30: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +002fbb40: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +002fbb50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 Remediation Pup │ │ │ +002fbc10: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002fbc20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
include ssh_p
│ │ │ +002fbc70: 7562 6c69 635f 6b65 795f 7065 726d 730a  ublic_key_perms.
│ │ │ +002fbc80: 0a63 6c61 7373 2073 7368 5f70 7562 6c69  .class ssh_publi
│ │ │ +002fbc90: 635f 6b65 795f 7065 726d 7320 7b0a 2020  c_key_perms {.  
│ │ │ +002fbca0: 6578 6563 207b 2027 7373 6864 5f70 7562  exec { 'sshd_pub
│ │ │ +002fbcb0: 5f6b 6579 273a 0a20 2020 2063 6f6d 6d61  _key':.    comma
│ │ │ +002fbcc0: 6e64 203d 2667 743b 2022 6368 6d6f 6420  nd => "chmod 
│ │ │ +002fbcd0: 3036 3434 202f 6574 632f 7373 682f 2a2e  0644 /etc/ssh/*.
│ │ │ +002fbce0: 7075 6222 2c0a 2020 2020 7061 7468 2020  pub",.    path  
│ │ │ +002fbcf0: 2020 3d26 6774 3b20 272f 6269 6e3a 2f75    => '/bin:/u
│ │ │ +002fbd00: 7372 2f62 696e 270a 2020 7d0a 7d0a 3c2f  sr/bin'.  }.}.
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -181,14 +164,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -633,27 +633,14 @@ │ │ │ │ $ apt-get remove prelink │ │ │ │ The use of the prelink package can interfere with the operation of AIDE since it │ │ │ │ Rationale: binaries. Prelinking can also increase damage caused by vulnerability in a common library │ │ │ │ like libc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_prelink_removed │ │ │ │ References: _c_i_s 1.5.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_prelink │ │ │ │ - │ │ │ │ -class remove_prelink { │ │ │ │ - package { 'prelink': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Check If Prelinked Is Installed │ │ │ │ ansible.builtin.stat: │ │ │ │ @@ -687,14 +674,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_disruption │ │ │ │ - medium_complexity │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_prelink_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_prelink │ │ │ │ + │ │ │ │ +class remove_prelink { │ │ │ │ + package { 'prelink': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ if [[ -f /usr/sbin/prelink ]]; │ │ │ │ @@ -1848,31 +1848,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1899,14 +1882,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -7485,31 +7485,14 @@ │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -7530,14 +7513,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -7559,31 +7559,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215010 │ │ │ │ _s_t_i_g_r_e_f SV-260478r991587_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260478 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -7606,14 +7589,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-215010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -7628,31 +7628,14 @@ │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -7661,14 +7644,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -10507,31 +10507,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access │ │ │ │ Control system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -10541,14 +10524,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -10568,31 +10568,14 @@ │ │ │ │ _o_s_-_s_r_g 000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG-OS-000324-GPOS- │ │ │ │ 00125, SRG-OS-000370-GPOS-00155 │ │ │ │ References: _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ _s_t_i_g_i_d UBTU-22-431010 │ │ │ │ _s_t_i_g_r_e_f SV-260556r958702_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260556 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -10603,14 +10586,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-431010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -11161,31 +11161,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an │ │ │ │ Rationale: attacker gains root access on the local system, they could tamper with or remove log data │ │ │ │ that is stored on the local system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11206,14 +11189,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -11241,31 +11241,14 @@ │ │ │ │ system is compromised. Additionally, centralized logs facilitate correlation of events │ │ │ │ across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11301,14 +11284,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -11334,31 +11334,14 @@ │ │ │ │ Rationale: determine cause of failure and any information necessary to return to operations with │ │ │ │ least disruption to system processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.2.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11393,14 +11376,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12683,27 +12683,14 @@ │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12724,14 +12711,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -19332,31 +19332,14 @@ │ │ │ │ nftables service The nftables service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable nftables.service │ │ │ │ Rationale: The nftables service restores the nftables rules from the rules files referenced in the / │ │ │ │ etc/sysconfig/nftables.conf file during boot or the starting of the nftables service │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_enabled │ │ │ │ References: _c_i_s 4.2.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_nftables │ │ │ │ - │ │ │ │ -class enable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -19390,14 +19373,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_enabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_nftables │ │ │ │ + │ │ │ │ +class enable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -19421,50 +19421,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: nftables should be disabled if another firewall service is used as it may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.3.1.2 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nftables.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nftables.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nftables │ │ │ │ - │ │ │ │ -class disable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -19520,14 +19484,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nftables.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nftables.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nftables │ │ │ │ + │ │ │ │ +class disable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -20420,50 +20420,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t AC-18(a), AC-18(3), CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["bluetooth"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: bluetooth.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: bluetooth.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_bluetooth │ │ │ │ - │ │ │ │ -class disable_bluetooth { │ │ │ │ - service {'bluetooth': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -20527,14 +20491,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_bluetooth_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: bluetooth.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: bluetooth.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_bluetooth │ │ │ │ + │ │ │ │ +class disable_bluetooth { │ │ │ │ + service {'bluetooth': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["bluetooth"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -27577,27 +27577,14 @@ │ │ │ │ $ apt-get remove autofs │ │ │ │ With automounting enabled anyone with physical access could attach a USB drive or disc │ │ │ │ Rationale: and have its contents available in the filesystem even if they lacked permissions to │ │ │ │ mount it themselves. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_autofs_removed │ │ │ │ References: _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_autofs │ │ │ │ - │ │ │ │ -class remove_autofs { │ │ │ │ - package { 'autofs': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove autofs Package: Ensure autofs is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27606,14 +27593,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_autofs_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_autofs │ │ │ │ + │ │ │ │ +class remove_autofs { │ │ │ │ + package { 'autofs': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove autofs │ │ │ │ @@ -27670,50 +27670,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.18.1.4, A.6.2.1, A.6.2.2, A.7.1.1, │ │ │ │ A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-3, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["autofs"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: autofs.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: autofs.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_autofs │ │ │ │ - │ │ │ │ -class disable_autofs { │ │ │ │ - service {'autofs': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -27774,14 +27738,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_autofs_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "autofs" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: autofs.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: autofs.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_autofs │ │ │ │ + │ │ │ │ +class disable_autofs { │ │ │ │ + service {'autofs': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["autofs"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'autofs' 2>/dev/null | grep - │ │ │ │ @@ -33582,50 +33582,14 @@ │ │ │ │ $ sudo systemctl mask --now apport.service │ │ │ │ The Apport service modifies the kernel fs.suid_dumpable configuration at runtime which │ │ │ │ Rationale: prevents other hardening from being persistent. Disabling the service prevents this │ │ │ │ behavior. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_apport_disabled │ │ │ │ References: _c_i_s 1.5.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apport"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apport.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apport.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apport │ │ │ │ - │ │ │ │ -class disable_apport { │ │ │ │ - service {'apport': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33675,14 +33639,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_apport_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"apport" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apport.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apport.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apport │ │ │ │ + │ │ │ │ +class disable_apport { │ │ │ │ + service {'apport': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apport"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'apport' 2>/dev/null | grep - │ │ │ │ @@ -33734,27 +33734,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_avahi-daemon │ │ │ │ - │ │ │ │ -class remove_avahi-daemon { │ │ │ │ - package { 'avahi-daemon': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall avahi Server Package: Ensure avahi-daemon is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33766,14 +33753,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_avahi_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_avahi-daemon │ │ │ │ + │ │ │ │ +class remove_avahi-daemon { │ │ │ │ + package { 'avahi-daemon': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove avahi-daemon │ │ │ │ @@ -33818,50 +33818,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["avahi-daemon"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: avahi-daemon.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: avahi-daemon.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_avahi-daemon │ │ │ │ - │ │ │ │ -class disable_avahi-daemon { │ │ │ │ - service {'avahi-daemon': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33923,14 +33887,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi-daemon" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: avahi-daemon.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: avahi-daemon.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_avahi-daemon │ │ │ │ + │ │ │ │ +class disable_avahi-daemon { │ │ │ │ + service {'avahi-daemon': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["avahi-daemon"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'avahi-daemon' 2>/dev/null | grep - │ │ │ │ @@ -35023,31 +35023,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35074,14 +35057,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -35112,31 +35112,14 @@ │ │ │ │ SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35171,14 +35154,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37019,27 +37019,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, more and more replaced │ │ │ │ Rationale: by LDAP. NIS does not support efficiently security constraints, ACL, etc. and should not │ │ │ │ be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37048,14 +37035,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -37112,27 +37112,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_isc-dhcp-server │ │ │ │ - │ │ │ │ -class remove_isc-dhcp-server { │ │ │ │ - package { 'isc-dhcp-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure isc-dhcp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37146,14 +37133,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_isc-dhcp-server │ │ │ │ + │ │ │ │ +class remove_isc-dhcp-server { │ │ │ │ + package { 'isc-dhcp-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove isc-dhcp-server │ │ │ │ @@ -37184,50 +37184,14 @@ │ │ │ │ dhcpd6 service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd6.service │ │ │ │ Rationale: Unmanaged or unintentionally activated DHCP servers may provide faulty information to │ │ │ │ clients, interfering with the operation of a legitimate site DHCP server if there is one. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd6.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd6.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd6 │ │ │ │ - │ │ │ │ -class disable_dhcpd6 { │ │ │ │ - service {'dhcpd6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37277,14 +37241,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd6.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd6.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd6 │ │ │ │ + │ │ │ │ +class disable_dhcpd6 { │ │ │ │ + service {'dhcpd6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37328,50 +37328,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd │ │ │ │ - │ │ │ │ -class disable_dhcpd { │ │ │ │ - service {'dhcpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37427,14 +37391,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd │ │ │ │ + │ │ │ │ +class disable_dhcpd { │ │ │ │ + service {'dhcpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37486,27 +37486,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind9 │ │ │ │ - │ │ │ │ -class remove_bind9 { │ │ │ │ - package { 'bind9': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind9 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37518,14 +37505,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind9 │ │ │ │ + │ │ │ │ +class remove_bind9 { │ │ │ │ + package { 'bind9': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind9 │ │ │ │ @@ -37558,27 +37558,14 @@ │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37587,14 +37574,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -37625,50 +37625,14 @@ │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dnsmasq.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dnsmasq.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37718,14 +37682,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dnsmasq.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dnsmasq.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37780,27 +37780,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37816,14 +37803,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -37866,50 +37866,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: vsftpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: vsftpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37965,14 +37929,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: vsftpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: vsftpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38009,27 +38009,14 @@ │ │ │ │ Rationale: recommended SFTP be used if file transfer is required. Unless there is a need to run the │ │ │ │ system as a FTP server (for example, to allow anonymous downloads), it is recommended │ │ │ │ that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38040,14 +38027,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -38102,27 +38102,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38134,14 +38121,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -38183,50 +38183,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apache2.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apache2.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38282,14 +38246,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apache2.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apache2.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38334,27 +38334,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38366,14 +38353,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -38403,50 +38403,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nginx.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nginx.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38496,14 +38460,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nginx.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nginx.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38540,27 +38540,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot-core │ │ │ │ - │ │ │ │ -class remove_dovecot-core { │ │ │ │ - package { 'dovecot-core': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot-core is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38569,14 +38556,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot-core │ │ │ │ + │ │ │ │ +class remove_dovecot-core { │ │ │ │ + package { 'dovecot-core': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot-core │ │ │ │ @@ -38606,50 +38606,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dovecot.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dovecot.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38699,14 +38663,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dovecot.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dovecot.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38753,27 +38753,14 @@ │ │ │ │ command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software │ │ │ │ is removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ldap-utils │ │ │ │ - │ │ │ │ -class remove_ldap-utils { │ │ │ │ - package { 'ldap-utils': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure ldap-utils is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38782,14 +38769,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ldap-utils │ │ │ │ + │ │ │ │ +class remove_ldap-utils { │ │ │ │ + package { 'ldap-utils': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ldap-utils │ │ │ │ @@ -38835,27 +38835,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_slapd │ │ │ │ - │ │ │ │ -class remove_slapd { │ │ │ │ - package { 'slapd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure slapd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38867,14 +38854,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_slapd │ │ │ │ + │ │ │ │ +class remove_slapd { │ │ │ │ + package { 'slapd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove slapd │ │ │ │ @@ -38904,50 +38904,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up │ │ │ │ information from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software │ │ │ │ be disabled to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: slapd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: slapd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38997,14 +38961,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: slapd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: slapd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39138,27 +39138,14 @@ │ │ │ │ then this service should be disabled. The rpcbind package can be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39179,14 +39166,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39229,50 +39229,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rpcbind.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rpcbind.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39326,14 +39290,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rpcbind.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rpcbind.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39383,50 +39383,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nfs-server.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nfs-server.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39483,14 +39447,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nfs-server.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nfs-server.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39524,27 +39524,14 @@ │ │ │ │ these services be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ _c_i_s 2.1.9 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215040 │ │ │ │ _s_t_i_g_r_e_f SV-279937r1156364_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-279937 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39554,14 +39541,27 @@ │ │ │ │ - DISA-STIG-UBTU-22-215040 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -40685,27 +40685,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40737,14 +40724,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40801,50 +40801,14 @@ │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: xinetd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: xinetd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40902,14 +40866,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: xinetd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: xinetd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40968,27 +40968,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41004,14 +40991,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -41042,50 +41042,14 @@ │ │ │ │ disabled. The ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or │ │ │ │ NIS+ domain. This service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: ypserv.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: ypserv.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41135,14 +41099,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: ypserv.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: ypserv.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -41184,27 +41184,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-client │ │ │ │ - │ │ │ │ -class remove_rsh-client { │ │ │ │ - package { 'rsh-client': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh-client is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41216,14 +41203,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-client │ │ │ │ + │ │ │ │ +class remove_rsh-client { │ │ │ │ + package { 'rsh-client': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-client │ │ │ │ @@ -41305,27 +41305,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41336,14 +41323,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -41384,27 +41384,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41416,14 +41403,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -41482,27 +41482,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41516,14 +41503,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -41569,50 +41569,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: tftpd-hpa.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: tftpd-hpa.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41668,14 +41632,50 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: tftpd-hpa.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: tftpd-hpa.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -41707,27 +41707,14 @@ │ │ │ │ package can be removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41736,14 +41723,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -41774,50 +41774,14 @@ │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rsyncd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rsyncd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsyncd │ │ │ │ - │ │ │ │ -class disable_rsyncd { │ │ │ │ - service {'rsyncd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41872,14 +41836,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rsyncd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rsyncd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsyncd │ │ │ │ + │ │ │ │ +class disable_rsyncd { │ │ │ │ + service {'rsyncd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -41929,27 +41929,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_cups │ │ │ │ - │ │ │ │ -class remove_cups { │ │ │ │ - package { 'cups': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall CUPS Package: Ensure cups is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41961,14 +41948,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_cups_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_cups │ │ │ │ + │ │ │ │ +class remove_cups { │ │ │ │ + package { 'cups': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove cups │ │ │ │ @@ -42009,50 +42009,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["cups"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: cups.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: cups.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_cups │ │ │ │ - │ │ │ │ -class disable_cups { │ │ │ │ - service {'cups': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42108,14 +42072,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_cups_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: cups.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: cups.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_cups │ │ │ │ + │ │ │ │ +class disable_cups { │ │ │ │ + service {'cups': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["cups"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42156,27 +42156,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42185,14 +42172,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -42223,50 +42223,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be │ │ │ │ removed if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: squid.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: squid.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42317,14 +42281,50 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: squid.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: squid.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep - │ │ │ │ @@ -42367,27 +42367,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42396,14 +42383,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -42433,50 +42433,14 @@ │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smbd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: smbd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: smbd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smbd │ │ │ │ - │ │ │ │ -class disable_smbd { │ │ │ │ - service {'smbd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42526,14 +42490,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: smbd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: smbd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smbd │ │ │ │ + │ │ │ │ +class disable_smbd { │ │ │ │ + service {'smbd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smbd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42575,27 +42575,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_snmp │ │ │ │ - │ │ │ │ -class remove_snmp { │ │ │ │ - package { 'snmp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42606,14 +42593,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_snmp │ │ │ │ + │ │ │ │ +class remove_snmp { │ │ │ │ + package { 'snmp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove snmp │ │ │ │ @@ -42644,50 +42644,14 @@ │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: snmpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: snmpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42738,14 +42702,50 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmp" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: snmpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: snmpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmp' 2>/dev/null | grep - │ │ │ │ @@ -48205,26 +48205,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -48288,14 +48276,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ @@ -48333,23 +48333,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -48413,14 +48404,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2204-guide-cis_level1_workstation.html │ │ │ @@ -15097,137 +15097,137 @@ │ │ │ 0003af80: 6174 612d 7461 7267 6574 3d22 2369 6438 ata-target="#id8 │ │ │ 0003af90: 2220 7461 6269 6e64 6578 3d22 3022 2072 " tabindex="0" r │ │ │ 0003afa0: 6f6c 653d 2262 7574 746f 6e22 2061 7269 ole="button" ari │ │ │ 0003afb0: 612d 6578 7061 6e64 6564 3d22 6661 6c73 a-expanded="fals │ │ │ 0003afc0: 6522 2074 6974 6c65 3d22 4163 7469 7661 e" title="Activa │ │ │ 0003afd0: 7465 2074 6f20 7265 7665 616c 2220 6872 te to reveal" hr │ │ │ 0003afe0: 6566 3d22 2321 223e 5265 6d65 6469 6174 ef="#!">Remediat │ │ │ -0003aff0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0003b000: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0003b010: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]].
│ │ │ -0003b060: 6e61 6d65 203d 2022 6169 6465 220a 7665  name = "aide".ve
│ │ │ -0003b070: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -0003b090: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003b0a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003b0b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003b0c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003b0d0: 6439 2220 7461 6269 6e64 6578 3d22 3022 d9" tabindex="0" │ │ │ -0003b0e0: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ -0003b0f0: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ -0003b100: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ -0003b110: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ -0003b120: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -0003b130: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0003b140: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0003b150: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0003b1c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0003b1d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0003b1e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0003b220: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0003b230: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0003b250: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0003b270: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -0003b280: 7374 616c 6c5f 6169 6465 0a0a 636c 6173  stall_aide..clas
│ │ │ -0003b290: 7320 696e 7374 616c 6c5f 6169 6465 207b  s install_aide {
│ │ │ -0003b2a0: 0a20 2070 6163 6b61 6765 207b 2027 6169  .  package { 'ai
│ │ │ -0003b2b0: 6465 273a 0a20 2020 2065 6e73 7572 6520  de':.    ensure 
│ │ │ -0003b2c0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -0003b2d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0003b2e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -0003b390: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0003b3a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0003b3b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0003b3c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0003b3d0: 7365 2220 6964 3d22 6964 3130 223e 3c74 se" id="id10"> │ │ │ -0003b420: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0003b430: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0003b440: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0003b480: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0003b490: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0003b4b0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0003b4d0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0003b4e0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0003b4f0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0003b500: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0003b510: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0003b520: 3a0a 2020 2d20 434a 4953 2d35 2e31 302e  :.  - CJIS-5.10.
│ │ │ -0003b530: 312e 330a 2020 2d20 4449 5341 2d53 5449  1.3.  - DISA-STI
│ │ │ -0003b540: 472d 5542 5455 2d32 322d 3635 3130 3130  G-UBTU-22-651010
│ │ │ -0003b550: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0003b560: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -0003b570: 2d44 5353 2d52 6571 2d31 312e 350a 2020  -DSS-Req-11.5.  
│ │ │ -0003b580: 2d20 5043 492d 4453 5376 342d 3131 2e35  - PCI-DSSv4-11.5
│ │ │ -0003b590: 2e32 0a20 202d 2065 6e61 626c 655f 7374  .2.  - enable_st
│ │ │ -0003b5a0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0003b5b0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0003b5c0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0003b5d0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0003b5e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0003b5f0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0003b600: 655f 6169 6465 5f69 6e73 7461 6c6c 6564  e_aide_installed
│ │ │ -0003b610: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -0003b620: 2061 6964 6520 6973 2069 6e73 7461 6c6c   aide is install
│ │ │ -0003b630: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -0003b640: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0003b650: 2020 6e61 6d65 3a20 6169 6465 0a20 2020    name: aide.   
│ │ │ -0003b660: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -0003b670: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0003b680: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0003b690: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -0003b6a0: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ -0003b6b0: 532d 352e 3130 2e31 2e33 0a20 202d 2044  S-5.10.1.3.  - D
│ │ │ -0003b6c0: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ -0003b6d0: 2d36 3531 3031 300a 2020 2d20 4e49 5354  -651010.  - NIST
│ │ │ -0003b6e0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0003b6f0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -0003b700: 3131 2e35 0a20 202d 2050 4349 2d44 5353  11.5.  - PCI-DSS
│ │ │ -0003b710: 7634 2d31 312e 352e 320a 2020 2d20 656e  v4-11.5.2.  - en
│ │ │ -0003b720: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0003b730: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0003b740: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0003b750: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0003b760: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0003b770: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0003b780: 2070 6163 6b61 6765 5f61 6964 655f 696e   package_aide_in
│ │ │ -0003b790: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +0003aff0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +0003b000: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +0003b010: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003b020: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003b030: 7365 2220 6964 3d22 6964 3822 3e3c 7461 se" id="id8">< │ │ │ +0003b080: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0003b090: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0003b0b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0003b0c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0003b0e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0003b100: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0003b130: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0003b140: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0003b150: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0003b160: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0003b170: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0003b180: 0a20 202d 2043 4a49 532d 352e 3130 2e31  .  - CJIS-5.10.1
│ │ │ +0003b190: 2e33 0a20 202d 2044 4953 412d 5354 4947  .3.  - DISA-STIG
│ │ │ +0003b1a0: 2d55 4254 552d 3232 2d36 3531 3031 300a  -UBTU-22-651010.
│ │ │ +0003b1b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0003b1c0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +0003b1d0: 4453 532d 5265 712d 3131 2e35 0a20 202d  DSS-Req-11.5.  -
│ │ │ +0003b1e0: 2050 4349 2d44 5353 7634 2d31 312e 352e   PCI-DSSv4-11.5.
│ │ │ +0003b1f0: 320a 2020 2d20 656e 6162 6c65 5f73 7472  2.  - enable_str
│ │ │ +0003b200: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0003b210: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0003b220: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0003b230: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0003b240: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0003b250: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0003b260: 5f61 6964 655f 696e 7374 616c 6c65 640a  _aide_installed.
│ │ │ +0003b270: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +0003b280: 6169 6465 2069 7320 696e 7374 616c 6c65  aide is installe
│ │ │ +0003b290: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +0003b2a0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0003b2b0: 206e 616d 653a 2061 6964 650a 2020 2020   name: aide.    
│ │ │ +0003b2c0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +0003b2d0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0003b2e0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0003b2f0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0003b300: 2020 7461 6773 3a0a 2020 2d20 434a 4953    tags:.  - CJIS
│ │ │ +0003b310: 2d35 2e31 302e 312e 330a 2020 2d20 4449  -5.10.1.3.  - DI
│ │ │ +0003b320: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ +0003b330: 3635 3130 3130 0a20 202d 204e 4953 542d  651010.  - NIST-
│ │ │ +0003b340: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0003b350: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +0003b360: 312e 350a 2020 2d20 5043 492d 4453 5376  1.5.  - PCI-DSSv
│ │ │ +0003b370: 342d 3131 2e35 2e32 0a20 202d 2065 6e61  4-11.5.2.  - ena
│ │ │ +0003b380: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0003b390: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0003b3a0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0003b3b0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0003b3c0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0003b3d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0003b3e0: 7061 636b 6167 655f 6169 6465 5f69 6e73  package_aide_ins
│ │ │ +0003b3f0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Remediation │ │ │ +0003b4b0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0003b4c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +0003b540: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0003b560: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0003b5b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +0003b600: 5f61 6964 650a 0a63 6c61 7373 2069 6e73  _aide..class ins
│ │ │ +0003b610: 7461 6c6c 5f61 6964 6520 7b0a 2020 7061  tall_aide {.  pa
│ │ │ +0003b620: 636b 6167 6520 7b20 2761 6964 6527 3a0a  ckage { 'aide':.
│ │ │ +0003b630: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0003b640: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +0003b650: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +0003b710: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0003b720: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0003b730: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +0003b770: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +0003b780: 203d 2022 6169 6465 220a 7665 7273 696f   = "aide".versio
│ │ │ +0003b790: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  0003b7a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediatio │ │ │ -00041690: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000416a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ -00041770: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ +0003b570: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0003b580: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0003b5c0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0003b5d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -00041730: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00041750: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -000417a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000417b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -000417e0: 6f76 655f 7072 656c 696e 6b0a 0a63 6c61  ove_prelink..cla
│ │ │ -000417f0: 7373 2072 656d 6f76 655f 7072 656c 696e  ss remove_prelin
│ │ │ -00041800: 6b20 7b0a 2020 7061 636b 6167 6520 7b20  k {.  package { 
│ │ │ -00041810: 2770 7265 6c69 6e6b 273a 0a20 2020 2065  'prelink':.    e
│ │ │ -00041820: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00041830: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00041850: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00041860: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00041870: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00041880: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00041890: 6432 3022 2074 6162 696e 6465 783d 2230 d20" tabindex="0 │ │ │ -000418a0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -000418b0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -000418c0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -000418d0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -000418e0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -000418f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00041900: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ -000419b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00041a00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00041a40: 616d 653a 2043 6865 636b 2049 6620 5072  ame: Check If Pr
│ │ │ -00041a50: 656c 696e 6b65 6420 4973 2049 6e73 7461  elinked Is Insta
│ │ │ -00041a60: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -00041a70: 7569 6c74 696e 2e73 7461 743a 0a20 2020  uiltin.stat:.   
│ │ │ -00041a80: 2070 6174 683a 202f 7573 722f 7362 696e   path: /usr/sbin
│ │ │ -00041a90: 2f70 7265 6c69 6e6b 0a20 2020 2067 6574  /prelink.    get
│ │ │ -00041aa0: 5f63 6865 636b 7375 6d3a 2066 616c 7365  _checksum: false
│ │ │ -00041ab0: 0a20 2072 6567 6973 7465 723a 2070 7265  .  register: pre
│ │ │ -00041ac0: 6c69 6e6b 0a20 2074 6167 733a 0a20 202d  link.  tags:.  -
│ │ │ -00041ad0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00041ae0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00041af0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00041b00: 636f 6d70 6c65 7869 7479 0a20 202d 206d  complexity.  - m
│ │ │ -00041b10: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00041b20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00041b30: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00041b40: 7072 656c 696e 6b5f 7265 6d6f 7665 640a  prelink_removed.
│ │ │ -00041b50: 0a2d 206e 616d 653a 2052 6573 746f 7265  .- name: Restore
│ │ │ -00041b60: 2050 7265 6c69 6e6b 6564 2042 696e 6172   Prelinked Binar
│ │ │ -00041b70: 6965 730a 2020 616e 7369 626c 652e 6275  ies.  ansible.bu
│ │ │ -00041b80: 696c 7469 6e2e 636f 6d6d 616e 643a 0a20  iltin.command:. 
│ │ │ -00041b90: 2020 2063 6d64 3a20 7072 656c 696e 6b20     cmd: prelink 
│ │ │ -00041ba0: 2d75 610a 2020 7768 656e 3a20 7072 656c  -ua.  when: prel
│ │ │ -00041bb0: 696e 6b2e 7374 6174 2e65 7869 7374 730a  ink.stat.exists.
│ │ │ -00041bc0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00041bd0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00041be0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00041bf0: 2020 2d20 6d65 6469 756d 5f63 6f6d 706c    - medium_compl
│ │ │ -00041c00: 6578 6974 790a 2020 2d20 6d65 6469 756d  exity.  - medium
│ │ │ -00041c10: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00041c20: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00041c30: 202d 2070 6163 6b61 6765 5f70 7265 6c69   - package_preli
│ │ │ -00041c40: 6e6b 5f72 656d 6f76 6564 0a0a 2d20 6e61  nk_removed..- na
│ │ │ -00041c50: 6d65 3a20 456e 7375 7265 2070 7265 6c69  me: Ensure preli
│ │ │ -00041c60: 6e6b 2069 7320 5265 6d6f 7665 640a 2020  nk is Removed.  
│ │ │ -00041c70: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00041c80: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00041c90: 653a 2070 7265 6c69 6e6b 0a20 2020 2073  e: prelink.    s
│ │ │ -00041ca0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00041cb0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -00041cc0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00041cd0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00041ce0: 206d 6564 6975 6d5f 636f 6d70 6c65 7869   medium_complexi
│ │ │ -00041cf0: 7479 0a20 202d 206d 6564 6975 6d5f 7365  ty.  - medium_se
│ │ │ -00041d00: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00041d10: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00041d20: 7061 636b 6167 655f 7072 656c 696e 6b5f  package_prelink_
│ │ │ -00041d30: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00041690: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +000416a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
Disruption:Strategy: │ │ │ +000417b0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +000417c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Compl │ │ │ -00041990: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6d exity:m │ │ │ -000419a0: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Disruptio │ │ │ -000419c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000419e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000419f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00041a10: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00041a20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +00041730: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +00041740: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00041780: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00041790: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +000417e0: 4368 6563 6b20 4966 2050 7265 6c69 6e6b Check If Prelink │ │ │ +000417f0: 6564 2049 7320 496e 7374 616c 6c65 640a ed Is Installed. │ │ │ +00041800: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +00041810: 6e2e 7374 6174 3a0a 2020 2020 7061 7468 n.stat:. path │ │ │ +00041820: 3a20 2f75 7372 2f73 6269 6e2f 7072 656c : /usr/sbin/prel │ │ │ +00041830: 696e 6b0a 2020 2020 6765 745f 6368 6563 ink. get_chec │ │ │ +00041840: 6b73 756d 3a20 6661 6c73 650a 2020 7265 ksum: false. re │ │ │ +00041850: 6769 7374 6572 3a20 7072 656c 696e 6b0a gister: prelink. │ │ │ +00041860: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ +00041870: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00041880: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00041890: 2020 2d20 6d65 6469 756d 5f63 6f6d 706c - medium_compl │ │ │ +000418a0: 6578 6974 790a 2020 2d20 6d65 6469 756d exity. - medium │ │ │ +000418b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +000418c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +000418d0: 202d 2070 6163 6b61 6765 5f70 7265 6c69 - package_preli │ │ │ +000418e0: 6e6b 5f72 656d 6f76 6564 0a0a 2d20 6e61 nk_removed..- na │ │ │ +000418f0: 6d65 3a20 5265 7374 6f72 6520 5072 656c me: Restore Prel │ │ │ +00041900: 696e 6b65 6420 4269 6e61 7269 6573 0a20 inked Binaries. │ │ │ +00041910: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00041920: 2e63 6f6d 6d61 6e64 3a0a 2020 2020 636d .command:. cm │ │ │ +00041930: 643a 2070 7265 6c69 6e6b 202d 7561 0a20 d: prelink -ua. │ │ │ +00041940: 2077 6865 6e3a 2070 7265 6c69 6e6b 2e73 when: prelink.s │ │ │ +00041950: 7461 742e 6578 6973 7473 0a20 2074 6167 tat.exists. tag │ │ │ +00041960: 733a 0a20 202d 2064 6973 6162 6c65 5f73 s:. - disable_s │ │ │ +00041970: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00041980: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +00041990: 6564 6975 6d5f 636f 6d70 6c65 7869 7479 edium_complexity │ │ │ +000419a0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +000419b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +000419c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +000419d0: 636b 6167 655f 7072 656c 696e 6b5f 7265 ckage_prelink_re │ │ │ +000419e0: 6d6f 7665 640a 0a2d 206e 616d 653a 2045 moved..- name: E │ │ │ +000419f0: 6e73 7572 6520 7072 656c 696e 6b20 6973 nsure prelink is │ │ │ +00041a00: 2052 656d 6f76 6564 0a20 2061 6e73 6962 Removed. ansib │ │ │ +00041a10: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +00041a20: 6765 3a0a 2020 2020 6e61 6d65 3a20 7072 ge:. name: pr │ │ │ +00041a30: 656c 696e 6b0a 2020 2020 7374 6174 653a elink. state: │ │ │ +00041a40: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ +00041a50: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +00041a60: 7465 6779 0a20 202d 206c 6f77 5f64 6973 tegy. - low_dis │ │ │ +00041a70: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +00041a80: 756d 5f63 6f6d 706c 6578 6974 790a 2020 um_complexity. │ │ │ +00041a90: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00041aa0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00041ab0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +00041ac0: 6765 5f70 7265 6c69 6e6b 5f72 656d 6f76 ge_prelink_remov │ │ │ +00041ad0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed. │ │ │ +00041ae0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +00041b90: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00041ba0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00041c70: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00041c80: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00041cd0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00041ce0: 7072 656c 696e 6b0a 0a63 6c61 7373 2072  prelink..class r
│ │ │ +00041cf0: 656d 6f76 655f 7072 656c 696e 6b20 7b0a  emove_prelink {.
│ │ │ +00041d00: 2020 7061 636b 6167 6520 7b20 2770 7265    package { 'pre
│ │ │ +00041d10: 6c69 6e6b 273a 0a20 2020 2065 6e73 7572  link':.    ensur
│ │ │ +00041d20: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00041d30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00041d40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>R
│ │ │ -00051d60: 656d 6564 6961 7469 6f6e 204f 5342 7569  emediation OSBui
│ │ │ -00051d70: 6c64 2042 6c75 6570 7269 6e74 2073 6e69  ld Blueprint sni
│ │ │ -00051d80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -00051d90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00051dc0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -00051dd0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00051de0: 7375 646f 220a 7665 7273 696f 6e20 3d20 sudo".version = │ │ │ -00051df0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation P │ │ │ -00051eb0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00051ec0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ +00041c50: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00041c60: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00041ca0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00041cb0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00051f90: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00051fa0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00051ff0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -00052000: 7375 646f 0a0a 636c 6173 7320 696e 7374  sudo..class inst
│ │ │ -00052010: 616c 6c5f 7375 646f 207b 0a20 2070 6163  all_sudo {.  pac
│ │ │ -00052020: 6b61 6765 207b 2027 7375 646f 273a 0a20  kage { 'sudo':. 
│ │ │ -00052030: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00052040: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -00052050: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00052060: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -00052110: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00052120: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -00051f70: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00051f80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00051fc0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00051fd0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -000521f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00052200: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00052250: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00052260: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00052270: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00052280: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00052290: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000522a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -000522b0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ -000522c0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -000522d0: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ -000522e0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000522f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00052300: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00052310: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00052320: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00052330: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00052340: 2070 6163 6b61 6765 5f73 7564 6f5f 696e   package_sudo_in
│ │ │ -00052350: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -00052360: 2045 6e73 7572 6520 7375 646f 2069 7320   Ensure sudo is 
│ │ │ -00052370: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -00052380: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00052390: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ -000523a0: 7564 6f0a 2020 2020 7374 6174 653a 2070  udo.    state: p
│ │ │ -000523b0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -000523c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000523d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000523e0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -000523f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00052400: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -00052410: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00052420: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -00052430: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00052440: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00052450: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00052460: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00052470: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00052480: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00052490: 0a20 202d 2070 6163 6b61 6765 5f73 7564  .  - package_sud
│ │ │ -000524a0: 6f5f 696e 7374 616c 6c65 640a 3c2f 636f  o_installed.
low
Disru │ │ │ -000521d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000521e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00052220: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00052230: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00051e10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00051e20: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00051e70: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00051eb0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00051ec0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00051ed0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00051ee0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00051ef0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00051f00: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00051f10: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00051f20: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00051f30: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c  -2.2.6.  - enabl
│ │ │ +00051f40: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00051f50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00051f60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00051f70: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00051f80: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00051f90: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00051fa0: 636b 6167 655f 7375 646f 5f69 6e73 7461  ckage_sudo_insta
│ │ │ +00051fb0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +00051fc0: 7375 7265 2073 7564 6f20 6973 2069 6e73  sure sudo is ins
│ │ │ +00051fd0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00051fe0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00051ff0: 3a0a 2020 2020 6e61 6d65 3a20 7375 646f  :.    name: sudo
│ │ │ +00052000: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +00052010: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00052020: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00052030: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00052040: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00052050: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00052060: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +00052070: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +00052080: 5353 7634 2d32 2e32 2e36 0a20 202d 2065  SSv4-2.2.6.  - e
│ │ │ +00052090: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000520a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000520b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000520c0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000520d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000520e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000520f0: 2d20 7061 636b 6167 655f 7375 646f 5f69  - package_sudo_i
│ │ │ +00052100: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00052110: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +000521c0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000521d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00052250: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00052290: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ +00051e00: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00051e30: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00051e40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00051e80: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00051e90: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00052260: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00052280: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000522b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000522d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00052300: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +00052310: 7461 6c6c 5f73 7564 6f0a 0a63 6c61 7373  tall_sudo..class
│ │ │ +00052320: 2069 6e73 7461 6c6c 5f73 7564 6f20 7b0a   install_sudo {.
│ │ │ +00052330: 2020 7061 636b 6167 6520 7b20 2773 7564    package { 'sud
│ │ │ +00052340: 6f27 3a0a 2020 2020 656e 7375 7265 203d  o':.    ensure =
│ │ │ +00052350: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +00052360: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00052370: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +00052420: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00052430: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00052440: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ +00052490: 6e61 6d65 203d 2022 7375 646f 220a 7665  name = "sudo".ve
│ │ │ +000524a0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 000524c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000524d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000524e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000524f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00052500: 6434 3022 2074 6162 696e 6465 783d 2230 d40" tabindex="0 │ │ │ 00052510: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -41947,129 +41947,129 @@ │ │ │ 000a3da0: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 000a3db0: 743d 2223 6964 3135 3322 2074 6162 696e t="#id153" tabin │ │ │ 000a3dc0: 6465 783d 2230 2220 726f 6c65 3d22 6275 dex="0" role="bu │ │ │ 000a3dd0: 7474 6f6e 2220 6172 6961 2d65 7870 616e tton" aria-expan │ │ │ 000a3de0: 6465 643d 2266 616c 7365 2220 7469 746c ded="false" titl │ │ │ 000a3df0: 653d 2241 6374 6976 6174 6520 746f 2072 e="Activate to r │ │ │ 000a3e00: 6576 6561 6c22 2068 7265 663d 2223 2122 eveal" href="#!" │ │ │ -000a3e10: 3e52 656d 6564 6961 7469 6f6e 204f 5342 >Remediation OSB │ │ │ -000a3e20: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -000a3e30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -000a3e80: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -000a3e90: 3d20 226c 6962 7061 6d2d 6d6f 6475 6c65  = "libpam-module
│ │ │ -000a3ea0: 7322 0a76 6572 7369 6f6e 203d 2022 2a22  s".version = "*"
│ │ │ -000a3eb0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -000a3f70: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000a3f80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000a4050: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000a4060: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000a40b0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6c  nclude install_l
│ │ │ -000a40c0: 6962 7061 6d2d 6d6f 6475 6c65 730a 0a63  ibpam-modules..c
│ │ │ -000a40d0: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ -000a40e0: 7061 6d2d 6d6f 6475 6c65 7320 7b0a 2020  pam-modules {.  
│ │ │ -000a40f0: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ -000a4100: 6d2d 6d6f 6475 6c65 7327 3a0a 2020 2020  m-modules':.    
│ │ │ -000a4110: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -000a4120: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -000a4130: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000a41e0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000a41f0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000a4200: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -000a4030: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000a4040: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000a4080: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000a4090: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -000a42d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000a42e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000a4330: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000a4340: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000a4350: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000a4360: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000a4370: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ -000a4380: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000a4390: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000a43a0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000a43b0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000a43c0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000a43d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000a43e0: 2d20 7061 636b 6167 655f 7061 6d5f 6d6f  - package_pam_mo
│ │ │ -000a43f0: 6475 6c65 735f 696e 7374 616c 6c65 640a  dules_installed.
│ │ │ -000a4400: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -000a4410: 6c69 6270 616d 2d6d 6f64 756c 6573 2069  libpam-modules i
│ │ │ -000a4420: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -000a4430: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000a4440: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -000a4450: 206c 6962 7061 6d2d 6d6f 6475 6c65 730a   libpam-modules.
│ │ │ -000a4460: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -000a4470: 6e74 0a20 2077 6865 6e3a 2027 226c 6962  nt.  when: '"lib
│ │ │ -000a4480: 7061 6d2d 7275 6e74 696d 6522 2069 6e20  pam-runtime" in 
│ │ │ -000a4490: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000a44a0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -000a44b0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000a44c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000a44d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000a44e0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000a44f0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000a4500: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000a4510: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ -000a4520: 616d 5f6d 6f64 756c 6573 5f69 6e73 7461  am_modules_insta
│ │ │ -000a4530: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediation Ans
│ │ │ +000a3e20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +000a3e30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:low
Disrup │ │ │ -000a42b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000a42c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000a4300: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000a4310: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +000a3f00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000a3f10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000a3f60: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000a3f70: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000a3f80: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000a3f90: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000a3fa0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000a3fb0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000a3fc0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000a3fd0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000a3fe0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000a3ff0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000a4000: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000a4010: 202d 2070 6163 6b61 6765 5f70 616d 5f6d   - package_pam_m
│ │ │ +000a4020: 6f64 756c 6573 5f69 6e73 7461 6c6c 6564  odules_installed
│ │ │ +000a4030: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ +000a4040: 206c 6962 7061 6d2d 6d6f 6475 6c65 7320   libpam-modules 
│ │ │ +000a4050: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +000a4060: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000a4070: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000a4080: 3a20 6c69 6270 616d 2d6d 6f64 756c 6573  : libpam-modules
│ │ │ +000a4090: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +000a40a0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +000a40b0: 6270 616d 2d72 756e 7469 6d65 2220 696e  bpam-runtime" in
│ │ │ +000a40c0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000a40d0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +000a40e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000a40f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000a4100: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000a4110: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000a4120: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000a4130: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000a4140: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000a4150: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ +000a4160: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediatio │ │ │ +000a4220: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000a4230: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000a42f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000a4300: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ +000a3ee0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000a3ef0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000a3f30: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000a3f40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +000a42c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000a42e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000a4310: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000a4330: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000a4370: 616c 6c5f 6c69 6270 616d 2d6d 6f64 756c  all_libpam-modul
│ │ │ +000a4380: 6573 0a0a 636c 6173 7320 696e 7374 616c  es..class instal
│ │ │ +000a4390: 6c5f 6c69 6270 616d 2d6d 6f64 756c 6573  l_libpam-modules
│ │ │ +000a43a0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000a43b0: 6c69 6270 616d 2d6d 6f64 756c 6573 273a  libpam-modules':
│ │ │ +000a43c0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000a43d0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000a43e0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +000a44a0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +000a44b0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +000a4510: 616d 6520 3d20 226c 6962 7061 6d2d 6d6f  ame = "libpam-mo
│ │ │ +000a4520: 6475 6c65 7322 0a76 6572 7369 6f6e 203d  dules".version =
│ │ │ +000a4530: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remedia │ │ │ -000a53e0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -000a53f0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -000a5400: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -000a5440: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -000a5450: 5d5d 0a6e 616d 6520 3d20 226c 6962 7061  ]].name = "libpa
│ │ │ -000a5460: 6d2d 7077 7175 616c 6974 7922 0a76 6572  m-pwquality".ver
│ │ │ -000a5470: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -000a5530: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000a5540: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000a55f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000a5610: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000a5640: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000a55d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000a55e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000a5600: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000a5620: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000a5630: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -000a5680: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -000a5690: 7077 7175 616c 6974 790a 0a63 6c61 7373 pwquality..class │ │ │ -000a56a0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -000a56b0: 7077 7175 616c 6974 7920 7b0a 2020 7061 pwquality {. pa │ │ │ -000a56c0: 636b 6167 6520 7b20 276c 6962 7061 6d2d ckage { 'libpam- │ │ │ -000a56d0: 7077 7175 616c 6974 7927 3a0a 2020 2020 pwquality':. │ │ │ -000a56e0: 656e 7375 7265 203d 2667 743b 2027 696e ensure => 'in │ │ │ -000a56f0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a stalled',. }.}. │ │ │ -000a5700: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ -000a57b0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000a57c0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000a57d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

< │ │ │ -000a58a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000a58b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000a5900: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000a5910: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000a5920: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000a5930: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000a5940: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ -000a5950: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ -000a5960: 2d32 3135 3031 300a 2020 2d20 656e 6162  -215010.  - enab
│ │ │ -000a5970: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000a5980: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000a5990: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000a59a0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000a59b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000a59c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000a59d0: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ -000a59e0: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ -000a59f0: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -000a5a00: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ -000a5a10: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000a5a20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000a5a30: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000a5a40: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ -000a5a50: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ -000a5a60: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -000a5a70: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ -000a5a80: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000a5a90: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000a5aa0: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ -000a5ab0: 2d55 4254 552d 3232 2d32 3135 3031 300a  -UBTU-22-215010.
│ │ │ -000a5ac0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000a5ad0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000a5ae0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000a5af0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000a5b00: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000a5b10: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000a5b20: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ -000a5b30: 616d 5f70 7771 7561 6c69 7479 5f69 6e73  am_pwquality_ins
│ │ │ -000a5b40: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +000a5400: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000a5430: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -000a5880: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000a5890: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000a58d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000a58e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +000a54a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000a54c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000a54f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000a5510: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000a5480: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000a5490: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000a54d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000a54e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +000a5530: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +000a5540: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +000a5550: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +000a5560: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000a5570: 6773 3a0a 2020 2d20 4449 5341 2d53 5449 gs:. - DISA-STI │ │ │ +000a5580: 472d 5542 5455 2d32 322d 3231 3530 3130 G-UBTU-22-215010 │ │ │ +000a5590: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +000a55a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +000a55b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +000a55c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +000a55d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +000a55e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +000a55f0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +000a5600: 7061 6d5f 7077 7175 616c 6974 795f 696e pam_pwquality_in │ │ │ +000a5610: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ +000a5620: 2045 6e73 7572 6520 6c69 6270 616d 2d70 Ensure libpam-p │ │ │ +000a5630: 7771 7561 6c69 7479 2069 7320 696e 7374 wquality is inst │ │ │ +000a5640: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ +000a5650: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ +000a5660: 0a20 2020 206e 616d 653a 206c 6962 7061 . name: libpa │ │ │ +000a5670: 6d2d 7077 7175 616c 6974 790a 2020 2020 m-pwquality. │ │ │ +000a5680: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +000a5690: 2077 6865 6e3a 2027 226c 6962 7061 6d2d when: '"libpam- │ │ │ +000a56a0: 7275 6e74 696d 6522 2069 6e20 616e 7369 runtime" in ansi │ │ │ +000a56b0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +000a56c0: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +000a56d0: 4449 5341 2d53 5449 472d 5542 5455 2d32 DISA-STIG-UBTU-2 │ │ │ +000a56e0: 322d 3231 3530 3130 0a20 202d 2065 6e61 2-215010. - ena │ │ │ +000a56f0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +000a5700: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +000a5710: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +000a5720: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +000a5730: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +000a5740: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +000a5750: 7061 636b 6167 655f 7061 6d5f 7077 7175 package_pam_pwqu │ │ │ +000a5760: 616c 6974 795f 696e 7374 616c 6c65 640a ality_installed. │ │ │ +000a5770: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ +000a5820: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000a5830: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000a58d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000a5970: 636c 7564 6520 696e 7374 616c 6c5f 6c69  clude install_li
│ │ │ +000a5980: 6270 616d 2d70 7771 7561 6c69 7479 0a0a  bpam-pwquality..
│ │ │ +000a5990: 636c 6173 7320 696e 7374 616c 6c5f 6c69  class install_li
│ │ │ +000a59a0: 6270 616d 2d70 7771 7561 6c69 7479 207b  bpam-pwquality {
│ │ │ +000a59b0: 0a20 2070 6163 6b61 6765 207b 2027 6c69  .  package { 'li
│ │ │ +000a59c0: 6270 616d 2d70 7771 7561 6c69 7479 273a  bpam-pwquality':
│ │ │ +000a59d0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000a59e0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000a59f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ +000a5ab0: 204f 5342 7569 6c64 2042 6c75 6570 7269   OSBuild Bluepri
│ │ │ +000a5ac0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f  nt snippet ...
.[[packages]].n
│ │ │ +000a5b20: 616d 6520 3d20 226c 6962 7061 6d2d 7077  ame = "libpam-pw
│ │ │ +000a5b30: 7175 616c 6974 7922 0a76 6572 7369 6f6e  quality".version
│ │ │ +000a5b40: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remedi │ │ │ -000a66a0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000a66b0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000a66c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000a6700: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000a6710: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ -000a6720: 616d 2d72 756e 7469 6d65 220a 7665 7273  am-runtime".vers
│ │ │ -000a6730: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000a67f0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000a6800: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000a6810: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000a6840: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +000a58c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000a58f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000a5900: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000a5940: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000a5950: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -000a68b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000a68d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000a6900: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000a6920: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000a6890: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000a68a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000a68e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000a68f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000a6940: 696e 7374 616c 6c5f 6c69 6270 616d 2d72 install_libpam-r │ │ │ -000a6950: 756e 7469 6d65 0a0a 636c 6173 7320 696e untime..class in │ │ │ -000a6960: 7374 616c 6c5f 6c69 6270 616d 2d72 756e stall_libpam-run │ │ │ -000a6970: 7469 6d65 207b 0a20 2070 6163 6b61 6765 time {. package │ │ │ -000a6980: 207b 2027 6c69 6270 616d 2d72 756e 7469 { 'libpam-runti │ │ │ -000a6990: 6d65 273a 0a20 2020 2065 6e73 7572 6520 me':. ensure │ │ │ -000a69a0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ -000a69b0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -000a69c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -000a6a70: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000a6a80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000a6a90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000a6ac0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000a6b30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000a6b50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000a6b80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000a6ba0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000a6b10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000a6b20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000a6b60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000a6b70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -000a6bc0: 456e 7375 7265 206c 6962 7061 6d2d 7275 Ensure libpam-ru │ │ │ -000a6bd0: 6e74 696d 6520 6973 2069 6e73 7461 6c6c ntime is install │ │ │ -000a6be0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -000a6bf0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -000a6c00: 2020 6e61 6d65 3a20 6c69 6270 616d 2d72 name: libpam-r │ │ │ -000a6c10: 756e 7469 6d65 0a20 2020 2073 7461 7465 untime. state │ │ │ -000a6c20: 3a20 7072 6573 656e 740a 2020 7461 6773 : present. tags │ │ │ -000a6c30: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472 :. - enable_str │ │ │ -000a6c40: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -000a6c50: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -000a6c60: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -000a6c70: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -000a6c80: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -000a6c90: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -000a6ca0: 5f70 616d 5f72 756e 7469 6d65 5f69 6e73 _pam_runtime_ins │ │ │ -000a6cb0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.
│ │ │ +000a6760: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000a6780: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000a67b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000a6740: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000a6750: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000a6770: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000a6790: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000a67a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000a67f0: 2045 6e73 7572 6520 6c69 6270 616d 2d72 Ensure libpam-r │ │ │ +000a6800: 756e 7469 6d65 2069 7320 696e 7374 616c untime is instal │ │ │ +000a6810: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +000a6820: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +000a6830: 2020 206e 616d 653a 206c 6962 7061 6d2d name: libpam- │ │ │ +000a6840: 7275 6e74 696d 650a 2020 2020 7374 6174 runtime. stat │ │ │ +000a6850: 653a 2070 7265 7365 6e74 0a20 2074 6167 e: present. tag │ │ │ +000a6860: 733a 0a20 202d 2065 6e61 626c 655f 7374 s:. - enable_st │ │ │ +000a6870: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +000a6880: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +000a6890: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +000a68a0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +000a68b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +000a68c0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +000a68d0: 655f 7061 6d5f 7275 6e74 696d 655f 696e e_pam_runtime_in │ │ │ +000a68e0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +000a68f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +000a69a0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000a69b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000a6a30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000a6a40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000a6a50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000a6a90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000a6aa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000a6ac0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000a6ae0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +000a6af0: 7374 616c 6c5f 6c69 6270 616d 2d72 756e  stall_libpam-run
│ │ │ +000a6b00: 7469 6d65 0a0a 636c 6173 7320 696e 7374  time..class inst
│ │ │ +000a6b10: 616c 6c5f 6c69 6270 616d 2d72 756e 7469  all_libpam-runti
│ │ │ +000a6b20: 6d65 207b 0a20 2070 6163 6b61 6765 207b  me {.  package {
│ │ │ +000a6b30: 2027 6c69 6270 616d 2d72 756e 7469 6d65   'libpam-runtime
│ │ │ +000a6b40: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +000a6b50: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +000a6b60: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +000a6c20: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000a6c30: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000a6c40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +000a6c90: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ +000a6ca0: 7275 6e74 696d 6522 0a76 6572 7369 6f6e  runtime".version
│ │ │ +000a6cb0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
│ │ │ -000dee00: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000dee10: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000dee20: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000dee70: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000dee80: 2022 6170 7061 726d 6f72 2d75 7469 6c73   "apparmor-utils
│ │ │ -000dee90: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -000deea0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000def50: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000def60: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -000df000: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -000df0a0: 636c 7564 6520 696e 7374 616c 6c5f 6170  clude install_ap
│ │ │ -000df0b0: 7061 726d 6f72 2d75 7469 6c73 0a0a 636c  parmor-utils..cl
│ │ │ -000df0c0: 6173 7320 696e 7374 616c 6c5f 6170 7061  ass install_appa
│ │ │ -000df0d0: 726d 6f72 2d75 7469 6c73 207b 0a20 2070  rmor-utils {.  p
│ │ │ -000df0e0: 6163 6b61 6765 207b 2027 6170 7061 726d  ackage { 'apparm
│ │ │ -000df0f0: 6f72 2d75 7469 6c73 273a 0a20 2020 2065  or-utils':.    e
│ │ │ -000df100: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000df110: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000df120: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000df1d0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000df1e0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000deff0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000df020: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000df030: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000df070: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000df080: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -000df280: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000df320: 6e61 6d65 3a20 456e 7375 7265 2061 7070  name: Ensure app
│ │ │ -000df330: 6172 6d6f 722d 7574 696c 7320 6973 2069  armor-utils is i
│ │ │ -000df340: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -000df350: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000df360: 6765 3a0a 2020 2020 6e61 6d65 3a20 6170  ge:.    name: ap
│ │ │ -000df370: 7061 726d 6f72 2d75 7469 6c73 0a20 2020  parmor-utils.   
│ │ │ -000df380: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -000df390: 2020 7768 656e 3a20 616e 7369 626c 655f    when: ansible_
│ │ │ -000df3a0: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74  virtualization_t
│ │ │ -000df3b0: 7970 6520 6e6f 7420 696e 205b 2264 6f63  ype not in ["doc
│ │ │ -000df3c0: 6b65 7222 2c20 226c 7863 222c 2022 6f70  ker", "lxc", "op
│ │ │ -000df3d0: 656e 767a 222c 2022 706f 646d 616e 222c  envz", "podman",
│ │ │ -000df3e0: 2022 636f 6e74 6169 6e65 7222 5d0a 2020   "container"].  
│ │ │ -000df3f0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000df400: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000df410: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000df420: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000df430: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000df440: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000df450: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000df460: 6b61 6765 5f61 7070 6172 6d6f 722d 7574  kage_apparmor-ut
│ │ │ -000df470: 696c 735f 696e 7374 616c 6c65 640a 3c2f  ils_installed.
│ │ │ -000df270: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000df2a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000df2b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000df2f0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000df300: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000deef0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000def00: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000def50: 206e 616d 653a 2045 6e73 7572 6520 6170   name: Ensure ap
│ │ │ +000def60: 7061 726d 6f72 2d75 7469 6c73 2069 7320  parmor-utils is 
│ │ │ +000def70: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +000def80: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000def90: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ +000defa0: 7070 6172 6d6f 722d 7574 696c 730a 2020  pparmor-utils.  
│ │ │ +000defb0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +000defc0: 0a20 2077 6865 6e3a 2061 6e73 6962 6c65  .  when: ansible
│ │ │ +000defd0: 5f76 6972 7475 616c 697a 6174 696f 6e5f  _virtualization_
│ │ │ +000defe0: 7479 7065 206e 6f74 2069 6e20 5b22 646f  type not in ["do
│ │ │ +000deff0: 636b 6572 222c 2022 6c78 6322 2c20 226f  cker", "lxc", "o
│ │ │ +000df000: 7065 6e76 7a22 2c20 2270 6f64 6d61 6e22  penvz", "podman"
│ │ │ +000df010: 2c20 2263 6f6e 7461 696e 6572 225d 0a20  , "container"]. 
│ │ │ +000df020: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000df030: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000df040: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000df050: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000df060: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000df070: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000df080: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000df090: 636b 6167 655f 6170 7061 726d 6f72 2d75  ckage_apparmor-u
│ │ │ +000df0a0: 7469 6c73 5f69 6e73 7461 6c6c 6564 0a3c  tils_installed.<
│ │ │ +000df0b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000df160: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000df170: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +000deed0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000deee0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000def20: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000def30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +000df210: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000df220: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000df270: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000df2b0: 6c75 6465 2069 6e73 7461 6c6c 5f61 7070  lude install_app
│ │ │ +000df2c0: 6172 6d6f 722d 7574 696c 730a 0a63 6c61  armor-utils..cla
│ │ │ +000df2d0: 7373 2069 6e73 7461 6c6c 5f61 7070 6172  ss install_appar
│ │ │ +000df2e0: 6d6f 722d 7574 696c 7320 7b0a 2020 7061  mor-utils {.  pa
│ │ │ +000df2f0: 636b 6167 6520 7b20 2761 7070 6172 6d6f  ckage { 'apparmo
│ │ │ +000df300: 722d 7574 696c 7327 3a0a 2020 2020 656e  r-utils':.    en
│ │ │ +000df310: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000df320: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000df3e0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000df3f0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000df400: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000df410: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000df420: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000df430: 7365 2220 6964 3d22 6964 3236 3022 3e3c se" id="id260">< │ │ │ +000df440: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000df450: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000df460: 6170 7061 726d 6f72 2d75 7469 6c73 220a apparmor-utils". │ │ │ +000df470: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".Remedi │ │ │ -000e0280: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000e0290: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000e02a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000e02e0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000e02f0: 735d 5d0a 6e61 6d65 203d 2022 6170 7061  s]].name = "appa
│ │ │ -000e0300: 726d 6f72 220a 7665 7273 696f 6e20 3d20  rmor".version = 
│ │ │ -000e0310: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000e03d0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000e03e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ +000df200: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000df230: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000df240: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000df280: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000df290: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -000e0460: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000e0480: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000e04d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000e0500: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000e0520: 6c5f 6170 7061 726d 6f72 0a0a 636c 6173  l_apparmor..clas
│ │ │ -000e0530: 7320 696e 7374 616c 6c5f 6170 7061 726d  s install_apparm
│ │ │ -000e0540: 6f72 207b 0a20 2070 6163 6b61 6765 207b  or {.  package {
│ │ │ -000e0550: 2027 6170 7061 726d 6f72 273a 0a20 2020   'apparmor':.   
│ │ │ -000e0560: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000e0570: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000e0580: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000e0640: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000e0650: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -000e0470: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000e0490: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000e04e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000e04f0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -000e0720: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000e0730: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000e0780: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ -000e0790: 7070 6172 6d6f 7220 6973 2069 6e73 7461  pparmor is insta
│ │ │ -000e07a0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -000e07b0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -000e07c0: 2020 2020 6e61 6d65 3a20 6170 7061 726d      name: apparm
│ │ │ -000e07d0: 6f72 0a20 2020 2073 7461 7465 3a20 7072  or.    state: pr
│ │ │ -000e07e0: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ -000e07f0: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ -000e0800: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ -000e0810: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ -000e0820: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ -000e0830: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ -000e0840: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ -000e0850: 4449 5341 2d53 5449 472d 5542 5455 2d32  DISA-STIG-UBTU-2
│ │ │ -000e0860: 322d 3433 3130 3130 0a20 202d 2065 6e61  2-431010.  - ena
│ │ │ -000e0870: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000e0880: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000e0890: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000e08a0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000e08b0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000e08c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000e08d0: 7061 636b 6167 655f 6170 7061 726d 6f72  package_apparmor
│ │ │ -000e08e0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
low
Disru │ │ │ -000e0700: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000e0710: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000e0750: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000e0760: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +000e0340: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000e0360: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000e0390: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000e0320: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000e0330: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000e0350: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000e0370: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000e0380: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000e03d0: 2045 6e73 7572 6520 6170 7061 726d 6f72 Ensure apparmor │ │ │ +000e03e0: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ +000e03f0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +000e0400: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +000e0410: 653a 2061 7070 6172 6d6f 720a 2020 2020 e: apparmor. │ │ │ +000e0420: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +000e0430: 2077 6865 6e3a 2061 6e73 6962 6c65 5f76 when: ansible_v │ │ │ +000e0440: 6972 7475 616c 697a 6174 696f 6e5f 7479 irtualization_ty │ │ │ +000e0450: 7065 206e 6f74 2069 6e20 5b22 646f 636b pe not in ["dock │ │ │ +000e0460: 6572 222c 2022 6c78 6322 2c20 226f 7065 er", "lxc", "ope │ │ │ +000e0470: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20 nvz", "podman", │ │ │ +000e0480: 2263 6f6e 7461 696e 6572 225d 0a20 2074 "container"]. t │ │ │ +000e0490: 6167 733a 0a20 202d 2044 4953 412d 5354 ags:. - DISA-ST │ │ │ +000e04a0: 4947 2d55 4254 552d 3232 2d34 3331 3031 IG-UBTU-22-43101 │ │ │ +000e04b0: 300a 2020 2d20 656e 6162 6c65 5f73 7472 0. - enable_str │ │ │ +000e04c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +000e04d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +000e04e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +000e04f0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +000e0500: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +000e0510: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +000e0520: 5f61 7070 6172 6d6f 725f 696e 7374 616c _apparmor_instal │ │ │ +000e0530: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.

Remediation │ │ │ +000e05f0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +000e0600: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +000e0680: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000e06a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000e06f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000e0720: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +000e0740: 6c5f 6170 7061 726d 6f72 0a0a 636c 6173  l_apparmor..clas
│ │ │ +000e0750: 7320 696e 7374 616c 6c5f 6170 7061 726d  s install_apparm
│ │ │ +000e0760: 6f72 207b 0a20 2070 6163 6b61 6765 207b  or {.  package {
│ │ │ +000e0770: 2027 6170 7061 726d 6f72 273a 0a20 2020   'apparmor':.   
│ │ │ +000e0780: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +000e0790: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +000e07a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +000e0860: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +000e0870: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +000e08c0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +000e08d0: 3d20 2261 7070 6172 6d6f 7222 0a76 6572  = "apparmor".ver
│ │ │ +000e08e0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediation OS │ │ │ -000ebe80: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000ebe90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000ebea0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000ebee0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000ebef0: 203d 2022 7379 7374 656d 642d 6a6f 7572   = "systemd-jour
│ │ │ -000ebf00: 6e61 6c2d 7265 6d6f 7465 220a 7665 7273  nal-remote".vers
│ │ │ -000ebf10: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000ebfd0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000ebfe0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000ebff0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000ec020: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:< │ │ │ +000e0690: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000e06b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000e0700: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000e0710: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -000ec090: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000ec0b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000ec0e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000ec100: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000ec070: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000ec080: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000ec0c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000ec0d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000ec120: 696e 7374 616c 6c5f 7379 7374 656d 642d install_systemd- │ │ │ -000ec130: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 0a0a journal-remote.. │ │ │ -000ec140: 636c 6173 7320 696e 7374 616c 6c5f 7379 class install_sy │ │ │ -000ec150: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265 stemd-journal-re │ │ │ -000ec160: 6d6f 7465 207b 0a20 2070 6163 6b61 6765 mote {. package │ │ │ -000ec170: 207b 2027 7379 7374 656d 642d 6a6f 7572 { 'systemd-jour │ │ │ -000ec180: 6e61 6c2d 7265 6d6f 7465 273a 0a20 2020 nal-remote':. │ │ │ -000ec190: 2065 6e73 7572 6520 3d26 6774 3b20 2769 ensure => 'i │ │ │ -000ec1a0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d nstalled',. }.} │ │ │ -000ec1b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Ans │ │ │ -000ec270: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000ec280: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000ec350: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000ec360: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000ec3b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000ec3c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000ec3d0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000ec3e0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000ec3f0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000ec400: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000ec410: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000ec420: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000ec430: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000ec440: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000ec450: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000ec460: 202d 2070 6163 6b61 6765 5f73 7973 7465   - package_syste
│ │ │ -000ec470: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000ec480: 655f 696e 7374 616c 6c65 640a 0a2d 206e  e_installed..- n
│ │ │ -000ec490: 616d 653a 2045 6e73 7572 6520 7379 7374  ame: Ensure syst
│ │ │ -000ec4a0: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000ec4b0: 7465 2069 7320 696e 7374 616c 6c65 640a  te is installed.
│ │ │ -000ec4c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000ec4d0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000ec4e0: 616d 653a 2073 7973 7465 6d64 2d6a 6f75  ame: systemd-jou
│ │ │ -000ec4f0: 726e 616c 2d72 656d 6f74 650a 2020 2020  rnal-remote.    
│ │ │ -000ec500: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -000ec510: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -000ec520: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -000ec530: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -000ec540: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000ec550: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000ec560: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000ec570: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000ec580: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000ec590: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000ec5a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000ec5b0: 6163 6b61 6765 5f73 7973 7465 6d64 2d6a  ackage_systemd-j
│ │ │ -000ec5c0: 6f75 726e 616c 2d72 656d 6f74 655f 696e  ournal-remote_in
│ │ │ -000ec5d0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000ebe70: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +000ebe80: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000ebe90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disru │ │ │ -000ec330: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000ec340: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000ec380: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000ec390: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000ebf10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000ebf30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000ebf80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000ebfd0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000ebfe0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000ebff0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000ec000: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000ec010: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000ec020: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000ec030: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000ec040: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000ec050: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000ec060: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000ec070: 2020 2d20 7061 636b 6167 655f 7379 7374    - package_syst
│ │ │ +000ec080: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ +000ec090: 7465 5f69 6e73 7461 6c6c 6564 0a0a 2d20  te_installed..- 
│ │ │ +000ec0a0: 6e61 6d65 3a20 456e 7375 7265 2073 7973  name: Ensure sys
│ │ │ +000ec0b0: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +000ec0c0: 6f74 6520 6973 2069 6e73 7461 6c6c 6564  ote is installed
│ │ │ +000ec0d0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000ec0e0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000ec0f0: 6e61 6d65 3a20 7379 7374 656d 642d 6a6f  name: systemd-jo
│ │ │ +000ec100: 7572 6e61 6c2d 7265 6d6f 7465 0a20 2020  urnal-remote.   
│ │ │ +000ec110: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +000ec120: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +000ec130: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +000ec140: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000ec150: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +000ec160: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000ec170: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000ec180: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000ec190: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000ec1a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000ec1b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000ec1c0: 7061 636b 6167 655f 7379 7374 656d 642d  package_systemd-
│ │ │ +000ec1d0: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 5f69  journal-remote_i
│ │ │ +000ec1e0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000ec1f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000ec2a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000ec2b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000ec2c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000ec2d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000ec2e0: 7365 2220 6964 3d22 6964 3238 3122 3e3c se" id="id281">< │ │ │ +000ec2f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000ec300: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000ec310: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000ec320: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000ec330: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +000ec3c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000ec3d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ +000ebf40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000ebf50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000ebf90: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000ebfa0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +000ec340: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000ec350: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000ec390: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000ec3a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +000ec3f0: 6e73 7461 6c6c 5f73 7973 7465 6d64 2d6a  nstall_systemd-j
│ │ │ +000ec400: 6f75 726e 616c 2d72 656d 6f74 650a 0a63  ournal-remote..c
│ │ │ +000ec410: 6c61 7373 2069 6e73 7461 6c6c 5f73 7973  lass install_sys
│ │ │ +000ec420: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +000ec430: 6f74 6520 7b0a 2020 7061 636b 6167 6520  ote {.  package 
│ │ │ +000ec440: 7b20 2773 7973 7465 6d64 2d6a 6f75 726e  { 'systemd-journ
│ │ │ +000ec450: 616c 2d72 656d 6f74 6527 3a0a 2020 2020  al-remote':.    
│ │ │ +000ec460: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000ec470: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000ec480: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000ec530: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000ec540: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000ec550: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000ec5a0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000ec5b0: 2022 7379 7374 656d 642d 6a6f 7572 6e61   "systemd-journa
│ │ │ +000ec5c0: 6c2d 7265 6d6f 7465 220a 7665 7273 696f  l-remote".versio
│ │ │ +000ec5d0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  000ec5e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Rem │ │ │ -000ed740: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000ed750: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000ed760: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -000ed7b0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -000ed7c0: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -000ed7d0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ -000ed7e0: 7570 6c6f 6164 225d 0a3c 2f63 6f64 653e upload"]. │ │ │ -000ed7f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -000ed8a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -000ed8b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000ed8c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000ed8d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000ed8e0: 7365 2220 6964 3d22 6964 3238 3622 3e3c se" id="id286">< │ │ │ -000ed8f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000ed900: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000ed910: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000ed920: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000ed930: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000ed940: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000ed950: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000ed990: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000ed9a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000ed9c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000ed9d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -000ed9f0: 6e61 626c 655f 7379 7374 656d 642d 6a6f  nable_systemd-jo
│ │ │ -000eda00: 7572 6e61 6c2d 7570 6c6f 6164 0a0a 636c  urnal-upload..cl
│ │ │ -000eda10: 6173 7320 656e 6162 6c65 5f73 7973 7465  ass enable_syste
│ │ │ -000eda20: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000eda30: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -000eda40: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ -000eda50: 7570 6c6f 6164 273a 0a20 2020 2065 6e61  upload':.    ena
│ │ │ -000eda60: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -000eda70: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000eda80: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -000eda90: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000edaa0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000edb50: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000edb60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000edbe0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000edc00: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000edc50: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -000edca0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -000edcb0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -000edcc0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -000edcd0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -000edce0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000edcf0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000edd00: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000edd10: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000edd20: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000edd30: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000edd40: 2020 2d20 7365 7276 6963 655f 7379 7374    - service_syst
│ │ │ -000edd50: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -000edd60: 6164 5f65 6e61 626c 6564 0a0a 2d20 6e61  ad_enabled..- na
│ │ │ -000edd70: 6d65 3a20 456e 6162 6c65 2073 7973 7465  me: Enable syste
│ │ │ -000edd80: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000edd90: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ -000edda0: 6c65 2073 6572 7669 6365 2073 7973 7465  le service syste
│ │ │ -000eddb0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000eddc0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -000eddd0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000edde0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000eddf0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -000ede00: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ -000ede10: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ -000ede20: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ -000ede30: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ -000ede40: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 2053  journal-upload S
│ │ │ -000ede50: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000ede60: 5365 7276 6963 6520 7379 7374 656d 642d  Service systemd-
│ │ │ -000ede70: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 0a20  journal-upload. 
│ │ │ -000ede80: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -000ede90: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -000edea0: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ -000edeb0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 0a20  journal-upload. 
│ │ │ -000edec0: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -000eded0: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -000edee0: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -000edef0: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -000edf00: 7768 656e 3a0a 2020 2020 2d20 2722 7379  when:.    - '"sy
│ │ │ -000edf10: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265  stemd-journal-re
│ │ │ -000edf20: 6d6f 7465 2220 696e 2061 6e73 6962 6c65  mote" in ansible
│ │ │ -000edf30: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000edf40: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -000edf50: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000edf60: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000edf70: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000edf80: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000edf90: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000edfa0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000edfb0: 7365 7276 6963 655f 7379 7374 656d 642d  service_systemd-
│ │ │ -000edfc0: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 5f65  journal-upload_e
│ │ │ -000edfd0: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ -000edfe0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -000edff0: 0a20 2077 6865 6e3a 0a20 202d 2027 226c  .  when:.  - '"l
│ │ │ -000ee000: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -000ee010: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000ee020: 6167 6573 270a 2020 2d20 2820 616e 7369  ages'.  - ( ansi
│ │ │ -000ee030: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ -000ee040: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ -000ee050: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ -000ee060: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ -000ee070: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ -000ee080: 5d0a 2020 2020 616e 6420 2273 7973 7465  ].    and "syste
│ │ │ -000ee090: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000ee0a0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000ee0b0: 6374 732e 7061 636b 6167 6573 2029 0a3c  cts.packages ).<
│ │ │ +000ed740: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +000ed750: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +000ed760: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -000edc10: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000edc20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000edc60: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000edc70: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +000ed800: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000ed850: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000ed7e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000ed810: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000ed830: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000ed840: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000ed860: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000ed870: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000ed890: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +000ed8a0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +000ed8b0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +000ed8c0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +000ed8d0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +000ed8e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000ed8f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000ed900: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000ed910: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000ed920: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000ed930: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +000ed940: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ +000ed950: 6f75 726e 616c 2d75 706c 6f61 645f 656e  ournal-upload_en
│ │ │ +000ed960: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ +000ed970: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ +000ed980: 7572 6e61 6c2d 7570 6c6f 6164 2053 6572  urnal-upload Ser
│ │ │ +000ed990: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ +000ed9a0: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ +000ed9b0: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2062  urnal-upload.  b
│ │ │ +000ed9c0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +000ed9d0: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ +000ed9e0: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ +000ed9f0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +000eda00: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +000eda10: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000eda20: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ +000eda30: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e  le systemd-journ
│ │ │ +000eda40: 616c 2d75 706c 6f61 6420 5365 7276 6963  al-upload Servic
│ │ │ +000eda50: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +000eda60: 6365 2073 7973 7465 6d64 2d6a 6f75 726e  ce systemd-journ
│ │ │ +000eda70: 616c 2d75 706c 6f61 640a 2020 2020 616e  al-upload.    an
│ │ │ +000eda80: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +000eda90: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +000edaa0: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ +000edab0: 616c 2d75 706c 6f61 640a 2020 2020 2020  al-upload.      
│ │ │ +000edac0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +000edad0: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +000edae0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +000edaf0: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +000edb00: 0a20 2020 202d 2027 2273 7973 7465 6d64  .    - '"systemd
│ │ │ +000edb10: 2d6a 6f75 726e 616c 2d72 656d 6f74 6522  -journal-remote"
│ │ │ +000edb20: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +000edb30: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +000edb40: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ +000edb50: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000edb60: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000edb70: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000edb80: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000edb90: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000edba0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +000edbb0: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e  ce_systemd-journ
│ │ │ +000edbc0: 616c 2d75 706c 6f61 645f 656e 6162 6c65  al-upload_enable
│ │ │ +000edbd0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +000edbe0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +000edbf0: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d  en:.  - '"linux-
│ │ │ +000edc00: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +000edc10: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000edc20: 0a20 202d 2028 2061 6e73 6962 6c65 5f76  .  - ( ansible_v
│ │ │ +000edc30: 6972 7475 616c 697a 6174 696f 6e5f 7479  irtualization_ty
│ │ │ +000edc40: 7065 206e 6f74 2069 6e20 5b22 646f 636b  pe not in ["dock
│ │ │ +000edc50: 6572 222c 2022 6c78 6322 2c20 226f 7065  er", "lxc", "ope
│ │ │ +000edc60: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20  nvz", "podman", 
│ │ │ +000edc70: 2263 6f6e 7461 696e 6572 225d 0a20 2020  "container"].   
│ │ │ +000edc80: 2061 6e64 2022 7379 7374 656d 642d 6a6f   and "systemd-jo
│ │ │ +000edc90: 7572 6e61 6c2d 7265 6d6f 7465 2220 696e  urnal-remote" in
│ │ │ +000edca0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000edcb0: 6163 6b61 6765 7320 290a 3c2f 636f 6465  ackages ).
Remedi │ │ │ +000edd70: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000edd80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000edd90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000eddc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000ede30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000ede50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000ede80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000edea0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000ede10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000ede20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000ede60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000ede70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +000edec0: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a enable_systemd-j │ │ │ +000eded0: 6f75 726e 616c 2d75 706c 6f61 640a 0a63 ournal-upload..c │ │ │ +000edee0: 6c61 7373 2065 6e61 626c 655f 7379 7374 lass enable_syst │ │ │ +000edef0: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f emd-journal-uplo │ │ │ +000edf00: 6164 207b 0a20 2073 6572 7669 6365 207b ad {. service { │ │ │ +000edf10: 2773 7973 7465 6d64 2d6a 6f75 726e 616c 'systemd-journal │ │ │ +000edf20: 2d75 706c 6f61 6427 3a0a 2020 2020 656e -upload':. en │ │ │ +000edf30: 6162 6c65 203d 2667 743b 2074 7275 652c able => true, │ │ │ +000edf40: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +000edf50: 3b20 2772 756e 6e69 6e67 272c 0a20 207d ; 'running',. } │ │ │ +000edf60: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ +000edf70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000ee020: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000ee030: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000ee040: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000ee080: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +000ee090: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +000ee0a0: 6420 3d20 5b22 7379 7374 656d 642d 6a6f  d = ["systemd-jo
│ │ │ +000ee0b0: 7572 6e61 6c2d 7570 6c6f 6164 225d 0a3c  urnal-upload"].<
│ │ │  000ee0c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation OS │ │ │ -000eefb0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000eefc0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000eefd0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000ef010: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -000ef020: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -000ef030: 203d 205b 2273 7973 7465 6d64 2d6a 6f75   = ["systemd-jou
│ │ │ -000ef040: 726e 616c 6422 5d0a 3c2f 636f 6465 3e3c  rnald"].<
│ │ │ -000ef050: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000ef100: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000ef110: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000ef190: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000ef1a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000ef1b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000ef1f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000ef200: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000ef220: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000ef240: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -000ef250: 6162 6c65 5f73 7973 7465 6d64 2d6a 6f75  able_systemd-jou
│ │ │ -000ef260: 726e 616c 640a 0a63 6c61 7373 2065 6e61  rnald..class ena
│ │ │ -000ef270: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ -000ef280: 6e61 6c64 207b 0a20 2073 6572 7669 6365  nald {.  service
│ │ │ -000ef290: 207b 2773 7973 7465 6d64 2d6a 6f75 726e   {'systemd-journ
│ │ │ -000ef2a0: 616c 6427 3a0a 2020 2020 656e 6162 6c65  ald':.    enable
│ │ │ -000ef2b0: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ -000ef2c0: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ -000ef2d0: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ -000ef2e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000ef390: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000ef3a0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000ef440: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000ef4e0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000ef4f0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000ef500: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000ef510: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000ef520: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -000ef530: 5354 2d38 3030 2d35 332d 5343 2d32 340a  ST-800-53-SC-24.
│ │ │ -000ef540: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000ef550: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000ef560: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000ef570: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000ef580: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000ef590: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000ef5a0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -000ef5b0: 7973 7465 6d64 2d6a 6f75 726e 616c 645f  ystemd-journald_
│ │ │ -000ef5c0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -000ef5d0: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ -000ef5e0: 6a6f 7572 6e61 6c64 2053 6572 7669 6365  journald Service
│ │ │ -000ef5f0: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -000ef600: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ -000ef610: 6c64 0a20 2062 6c6f 636b 3a0a 0a20 202d  ld.  block:..  -
│ │ │ -000ef620: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000ef630: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000ef640: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -000ef650: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ -000ef660: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ -000ef670: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ -000ef680: 3a20 456e 6162 6c65 2073 7973 7465 6d64  : Enable systemd
│ │ │ -000ef690: 2d6a 6f75 726e 616c 6420 5365 7276 6963  -journald Servic
│ │ │ -000ef6a0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -000ef6b0: 6365 2073 7973 7465 6d64 2d6a 6f75 726e  ce systemd-journ
│ │ │ -000ef6c0: 616c 640a 2020 2020 616e 7369 626c 652e  ald.    ansible.
│ │ │ -000ef6d0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -000ef6e0: 0a20 2020 2020 206e 616d 653a 2073 7973  .      name: sys
│ │ │ -000ef6f0: 7465 6d64 2d6a 6f75 726e 616c 640a 2020  temd-journald.  
│ │ │ -000ef700: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ -000ef710: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -000ef720: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ -000ef730: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ -000ef740: 6865 6e3a 0a20 2020 202d 2027 2273 7973  hen:.    - '"sys
│ │ │ -000ef750: 7465 6d64 2220 696e 2061 6e73 6962 6c65  temd" in ansible
│ │ │ -000ef760: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000ef770: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000ef780: 542d 3830 302d 3533 2d53 432d 3234 0a20  T-800-53-SC-24. 
│ │ │ -000ef790: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000ef7a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000ef7b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000ef7c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000ef7d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000ef7e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000ef7f0: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -000ef800: 7374 656d 642d 6a6f 7572 6e61 6c64 5f65  stemd-journald_e
│ │ │ -000ef810: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ -000ef820: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -000ef830: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -000ef840: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -000ef850: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -000ef860: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +000eefa0: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +000eefb0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +000eefc0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -000ef430: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000ef460: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000ef470: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000ef4b0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000ef4c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000ef040: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000ef060: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000ef0b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000ef100: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000ef110: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000ef120: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000ef130: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000ef140: 204e 4953 542d 3830 302d 3533 2d53 432d   NIST-800-53-SC-
│ │ │ +000ef150: 3234 0a20 202d 2065 6e61 626c 655f 7374  24.  - enable_st
│ │ │ +000ef160: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000ef170: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000ef180: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000ef190: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000ef1a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000ef1b0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +000ef1c0: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ +000ef1d0: 6c64 5f65 6e61 626c 6564 0a0a 2d20 6e61  ld_enabled..- na
│ │ │ +000ef1e0: 6d65 3a20 456e 6162 6c65 2073 7973 7465  me: Enable syste
│ │ │ +000ef1f0: 6d64 2d6a 6f75 726e 616c 6420 5365 7276  md-journald Serv
│ │ │ +000ef200: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ +000ef210: 7669 6365 2073 7973 7465 6d64 2d6a 6f75  vice systemd-jou
│ │ │ +000ef220: 726e 616c 640a 2020 626c 6f63 6b3a 0a0a  rnald.  block:..
│ │ │ +000ef230: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ +000ef240: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +000ef250: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ +000ef260: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ +000ef270: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ +000ef280: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ +000ef290: 616d 653a 2045 6e61 626c 6520 7379 7374  ame: Enable syst
│ │ │ +000ef2a0: 656d 642d 6a6f 7572 6e61 6c64 2053 6572  emd-journald Ser
│ │ │ +000ef2b0: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ +000ef2c0: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ +000ef2d0: 7572 6e61 6c64 0a20 2020 2061 6e73 6962  urnald.    ansib
│ │ │ +000ef2e0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +000ef2f0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +000ef300: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ +000ef310: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +000ef320: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +000ef330: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +000ef340: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +000ef350: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +000ef360: 7379 7374 656d 6422 2069 6e20 616e 7369  systemd" in ansi
│ │ │ +000ef370: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000ef380: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000ef390: 4e49 5354 2d38 3030 2d35 332d 5343 2d32  NIST-800-53-SC-2
│ │ │ +000ef3a0: 340a 2020 2d20 656e 6162 6c65 5f73 7472  4.  - enable_str
│ │ │ +000ef3b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000ef3c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000ef3d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000ef3e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000ef3f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000ef400: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +000ef410: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +000ef420: 645f 656e 6162 6c65 640a 2020 2d20 7370  d_enabled.  - sp
│ │ │ +000ef430: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +000ef440: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +000ef450: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +000ef460: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +000ef470: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation
│ │ │ +000ef530: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +000ef540: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +000ef610: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000ef660: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disr │ │ │ +000ef070: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000ef080: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000ef0c0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000ef0d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +000ef5d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000ef5f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000ef640: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000ef650: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ +000ef680: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ +000ef690: 6c64 0a0a 636c 6173 7320 656e 6162 6c65  ld..class enable
│ │ │ +000ef6a0: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +000ef6b0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ +000ef6c0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ +000ef6d0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +000ef6e0: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ +000ef6f0: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ +000ef700: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ +000ef720: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000ef730: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000ef740: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000ef750: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000ef760: 6432 3932 2220 7461 6269 6e64 6578 3d22 d292" tabindex=" │ │ │ +000ef770: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000ef780: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000ef790: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000ef7a0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000ef7b0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000ef7c0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000ef7d0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000ef7e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +000ef830: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +000ef840: 735d 0a65 6e61 626c 6564 203d 205b 2273 s].enabled = ["s │ │ │ +000ef850: 7973 7465 6d64 2d6a 6f75 726e 616c 6422 ystemd-journald" │ │ │ +000ef860: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ].< │ │ │ 000ef870: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediat │ │ │ -00103b00: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00103b10: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00103b90: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00103ba0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00103bb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00103bf0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00103c00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00103c20: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00103c30: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00103c50: 7265 6d6f 7665 5f69 7074 6162 6c65 732d  remove_iptables-
│ │ │ -00103c60: 7065 7273 6973 7465 6e74 0a0a 636c 6173  persistent..clas
│ │ │ -00103c70: 7320 7265 6d6f 7665 5f69 7074 6162 6c65  s remove_iptable
│ │ │ -00103c80: 732d 7065 7273 6973 7465 6e74 207b 0a20  s-persistent {. 
│ │ │ -00103c90: 2070 6163 6b61 6765 207b 2027 6970 7461   package { 'ipta
│ │ │ -00103ca0: 626c 6573 2d70 6572 7369 7374 656e 7427  bles-persistent'
│ │ │ -00103cb0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00103cc0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00103cd0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00103ce0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00103d90: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00103da0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00103e20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00103e40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00103e90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00103ec0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00103e30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00103e50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00103ea0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00103eb0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00103ee0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00103ef0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00103f00: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00103f10: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00103f20: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00103f30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00103f40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00103f50: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00103f60: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00103f70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00103f80: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ -00103f90: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -00103fa0: 6e74 5f72 656d 6f76 6564 0a0a 2d20 6e61  nt_removed..- na
│ │ │ -00103fb0: 6d65 3a20 2752 656d 6f76 6520 6970 7461  me: 'Remove ipta
│ │ │ -00103fc0: 626c 6573 2d70 6572 7369 7374 656e 7420  bles-persistent 
│ │ │ -00103fd0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00103fe0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -00103ff0: 656e 7420 6973 2072 656d 6f76 6564 270a  ent is removed'.
│ │ │ -00104000: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00104010: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00104020: 616d 653a 2069 7074 6162 6c65 732d 7065  ame: iptables-pe
│ │ │ -00104030: 7273 6973 7465 6e74 0a20 2020 2073 7461  rsistent.    sta
│ │ │ -00104040: 7465 3a20 6162 7365 6e74 0a20 2077 6865  te: absent.  whe
│ │ │ -00104050: 6e3a 2027 2275 6677 2220 696e 2061 6e73  n: '"ufw" in ans
│ │ │ -00104060: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00104070: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00104080: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00104090: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -001040a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -001040b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -001040c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -001040d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -001040e0: 0a20 202d 2070 6163 6b61 6765 5f69 7074  .  - package_ipt
│ │ │ -001040f0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -00104100: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00103b00: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +00103b10: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +00103b20: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00103b30: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00103b40: 7365 2220 6964 3d22 6964 3332 3722 3e3c se" id="id327">< │ │ │ +00103b50: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00103b60: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00103b70: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00103b80: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00103b90: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00103ba0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00103bb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00103bf0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00103c00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00103c20: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00103c30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00103c50: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00103c60: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00103c70: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00103c80: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00103c90: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +00103ca0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00103cb0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00103cc0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00103cd0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00103ce0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00103cf0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +00103d00: 6167 655f 6970 7461 626c 6573 2d70 6572 age_iptables-per │ │ │ +00103d10: 7369 7374 656e 745f 7265 6d6f 7665 640a sistent_removed. │ │ │ +00103d20: 0a2d 206e 616d 653a 2027 5265 6d6f 7665 .- name: 'Remove │ │ │ +00103d30: 2069 7074 6162 6c65 732d 7065 7273 6973 iptables-persis │ │ │ +00103d40: 7465 6e74 2050 6163 6b61 6765 3a20 456e tent Package: En │ │ │ +00103d50: 7375 7265 2069 7074 6162 6c65 732d 7065 sure iptables-pe │ │ │ +00103d60: 7273 6973 7465 6e74 2069 7320 7265 6d6f rsistent is remo │ │ │ +00103d70: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ +00103d80: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +00103d90: 2020 2020 6e61 6d65 3a20 6970 7461 626c name: iptabl │ │ │ +00103da0: 6573 2d70 6572 7369 7374 656e 740a 2020 es-persistent. │ │ │ +00103db0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +00103dc0: 2020 7768 656e 3a20 2722 7566 7722 2069 when: '"ufw" i │ │ │ +00103dd0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +00103de0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +00103df0: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ +00103e00: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +00103e10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00103e20: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00103e30: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +00103e40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00103e50: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +00103e60: 655f 6970 7461 626c 6573 2d70 6572 7369 e_iptables-persi │ │ │ +00103e70: 7374 656e 745f 7265 6d6f 7665 640a 3c2f stent_removed.
Re │ │ │ +00103f30: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00103f40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00103f50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00103ff0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00104040: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00104080: 636c 7564 6520 7265 6d6f 7665 5f69 7074  clude remove_ipt
│ │ │ +00104090: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +001040a0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f69  ..class remove_i
│ │ │ +001040b0: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ +001040c0: 6e74 207b 0a20 2070 6163 6b61 6765 207b  nt {.  package {
│ │ │ +001040d0: 2027 6970 7461 626c 6573 2d70 6572 7369   'iptables-persi
│ │ │ +001040e0: 7374 656e 7427 3a0a 2020 2020 656e 7375  stent':.    ensu
│ │ │ +001040f0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00104100: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00104110: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00154790: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -001547a0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -001547b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -001547f0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -00154800: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00154810: 0a65 6e61 626c 6564 203d 205b 226e 6674  .enabled = ["nft
│ │ │ -00154820: 6162 6c65 7322 5d0a 3c2f 636f 6465 3e3c  ables"].<
│ │ │ -00154830: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -001548e0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001548f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00154970: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -00154a00: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Co │ │ │ +00103fd0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00104000: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00104020: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00104030: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00104050: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00104060: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00154980: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00154990: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -001549d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001549e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -00154a20: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -00154a30: 6162 6c65 5f6e 6674 6162 6c65 730a 0a63  able_nftables..c
│ │ │ -00154a40: 6c61 7373 2065 6e61 626c 655f 6e66 7461  lass enable_nfta
│ │ │ -00154a50: 626c 6573 207b 0a20 2073 6572 7669 6365  bles {.  service
│ │ │ -00154a60: 207b 276e 6674 6162 6c65 7327 3a0a 2020   {'nftables':.  
│ │ │ -00154a70: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ -00154a80: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ -00154a90: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ -00154aa0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00154b60: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00154b70: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00154bf0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00154c00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00154c10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00154c50: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00154c60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00154c80: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00154ca0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00154cb0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00154cc0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00154cd0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00154ce0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00154cf0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -00154d00: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00154d10: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00154d20: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00154d30: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00154d40: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00154d50: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00154d60: 5f6e 6674 6162 6c65 735f 656e 6162 6c65  _nftables_enable
│ │ │ -00154d70: 640a 0a2d 206e 616d 653a 2056 6572 6966  d..- name: Verif
│ │ │ -00154d80: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ -00154d90: 6365 2069 7320 456e 6162 6c65 6420 2d20  ce is Enabled - 
│ │ │ -00154da0: 456e 6162 6c65 2073 6572 7669 6365 206e  Enable service n
│ │ │ -00154db0: 6674 6162 6c65 730a 2020 626c 6f63 6b3a  ftables.  block:
│ │ │ -00154dc0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ -00154dd0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00154de0: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ -00154df0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00154e00: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ -00154e10: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ -00154e20: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ -00154e30: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ -00154e40: 7320 456e 6162 6c65 6420 2d20 456e 6162  s Enabled - Enab
│ │ │ -00154e50: 6c65 2053 6572 7669 6365 206e 6674 6162  le Service nftab
│ │ │ -00154e60: 6c65 730a 2020 2020 616e 7369 626c 652e  les.    ansible.
│ │ │ -00154e70: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00154e80: 0a20 2020 2020 206e 616d 653a 206e 6674  .      name: nft
│ │ │ -00154e90: 6162 6c65 730a 2020 2020 2020 656e 6162  ables.      enab
│ │ │ -00154ea0: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -00154eb0: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -00154ec0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -00154ed0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -00154ee0: 202d 2027 226e 6674 6162 6c65 7322 2069   - '"nftables" i
│ │ │ -00154ef0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00154f00: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00154f10: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -00154f20: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00154f30: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00154f40: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00154f50: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00154f60: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00154f70: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00154f80: 5f6e 6674 6162 6c65 735f 656e 6162 6c65  _nftables_enable
│ │ │ -00154f90: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00154fa0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -00154fb0: 656e 3a20 2820 226e 6674 6162 6c65 7322  en: ( "nftables"
│ │ │ -00154fc0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00154fd0: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ -00154fe0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00154ff0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00155000: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
│ │ │ +00154850: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00154870: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001548a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00154830: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00154840: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00154860: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00154880: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00154890: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +001548e0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +001548f0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00154900: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00154910: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00154920: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +00154930: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00154940: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00154950: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00154960: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00154970: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00154980: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +00154990: 6963 655f 6e66 7461 626c 6573 5f65 6e61 ice_nftables_ena │ │ │ +001549a0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 5665 bled..- name: Ve │ │ │ +001549b0: 7269 6679 206e 6674 6162 6c65 7320 5365 rify nftables Se │ │ │ +001549c0: 7276 6963 6520 6973 2045 6e61 626c 6564 rvice is Enabled │ │ │ +001549d0: 202d 2045 6e61 626c 6520 7365 7276 6963 - Enable servic │ │ │ +001549e0: 6520 6e66 7461 626c 6573 0a20 2062 6c6f e nftables. blo │ │ │ +001549f0: 636b 3a0a 0a20 202d 206e 616d 653a 2047 ck:.. - name: G │ │ │ +00154a00: 6174 6865 7220 7468 6520 7061 636b 6167 ather the packag │ │ │ +00154a10: 6520 6661 6374 730a 2020 2020 616e 7369 e facts. ansi │ │ │ +00154a20: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +00154a30: 6167 655f 6661 6374 733a 0a20 2020 2020 age_facts:. │ │ │ +00154a40: 206d 616e 6167 6572 3a20 6175 746f 0a0a manager: auto.. │ │ │ +00154a50: 2020 2d20 6e61 6d65 3a20 5665 7269 6679 - name: Verify │ │ │ +00154a60: 206e 6674 6162 6c65 7320 5365 7276 6963 nftables Servic │ │ │ +00154a70: 6520 6973 2045 6e61 626c 6564 202d 2045 e is Enabled - E │ │ │ +00154a80: 6e61 626c 6520 5365 7276 6963 6520 6e66 nable Service nf │ │ │ +00154a90: 7461 626c 6573 0a20 2020 2061 6e73 6962 tables. ansib │ │ │ +00154aa0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ +00154ab0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ +00154ac0: 6e66 7461 626c 6573 0a20 2020 2020 2065 nftables. e │ │ │ +00154ad0: 6e61 626c 6564 3a20 7472 7565 0a20 2020 nabled: true. │ │ │ +00154ae0: 2020 2073 7461 7465 3a20 7374 6172 7465 state: starte │ │ │ +00154af0: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +00154b00: 6661 6c73 650a 2020 2020 7768 656e 3a0a false. when:. │ │ │ +00154b10: 2020 2020 2d20 2722 6e66 7461 626c 6573 - '"nftables │ │ │ +00154b20: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +00154b30: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ +00154b40: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +00154b50: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00154b60: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00154b70: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00154b80: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00154b90: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00154ba0: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +00154bb0: 6963 655f 6e66 7461 626c 6573 5f65 6e61 ice_nftables_ena │ │ │ +00154bc0: 626c 6564 0a20 202d 2073 7065 6369 616c bled. - special │ │ │ +00154bd0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20 _service_block. │ │ │ +00154be0: 2077 6865 6e3a 2028 2022 6e66 7461 626c when: ( "nftabl │ │ │ +00154bf0: 6573 2220 696e 2061 6e73 6962 6c65 5f66 es" in ansible_f │ │ │ +00154c00: 6163 7473 2e70 6163 6b61 6765 7320 616e acts.packages an │ │ │ +00154c10: 6420 226c 696e 7578 2d62 6173 6522 2069 d "linux-base" i │ │ │ +00154c20: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +00154c30: 7061 636b 6167 6573 0a20 2020 2029 0a3c packages. ).< │ │ │ +00154c40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>

R │ │ │ +00154cf0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00154d00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00154da0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00154db0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00154e00: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00154e40: 6c75 6465 2065 6e61 626c 655f 6e66 7461  lude enable_nfta
│ │ │ +00154e50: 626c 6573 0a0a 636c 6173 7320 656e 6162  bles..class enab
│ │ │ +00154e60: 6c65 5f6e 6674 6162 6c65 7320 7b0a 2020  le_nftables {.  
│ │ │ +00154e70: 7365 7276 6963 6520 7b27 6e66 7461 626c  service {'nftabl
│ │ │ +00154e80: 6573 273a 0a20 2020 2065 6e61 626c 6520  es':.    enable 
│ │ │ +00154e90: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +00154ea0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +00154eb0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +00154f70: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00154f80: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00154f90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00154fa0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00154fb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00154fc0: 7365 2220 6964 3d22 6964 3430 3522 3e3c se" id="id405">< │ │ │ +00154fd0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00154fe0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00154ff0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +00155000: 226e 6674 6162 6c65 7322 5d0a 3c2f 636f "nftables"].< │ │ │ 00155020: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00155030: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00155040: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00155050: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00155060: 6434 3036 2220 7461 6269 6e64 6578 3d22 d406" tabindex=" │ │ │ 00155070: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -87509,255 +87509,255 @@ │ │ │ 00155d40: 6174 612d 7461 7267 6574 3d22 2369 6434 ata-target="#id4 │ │ │ 00155d50: 3038 2220 7461 6269 6e64 6578 3d22 3022 08" tabindex="0" │ │ │ 00155d60: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 00155d70: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 00155d80: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 00155d90: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 00155da0: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -00155db0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00155dc0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00155dd0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00155e10: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -00155e20: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00155e30: 0a6d 6173 6b65 6420 3d20 5b22 6e66 7461  .masked = ["nfta
│ │ │ -00155e40: 626c 6573 225d 0a3c 2f63 6f64 653e 3c2f  bles"].
Remediati │ │ │ -00155f00: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -00155f10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +00154d90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00154dc0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00154dd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00154e10: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00154e20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00155fc0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ -00155fa0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00155fb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00155fd0: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ -00155ff0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00156000: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ -00156020: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00156030: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ -00156050: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ -00156060: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ -00156070: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ -00156080: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ -00156090: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ -001560a0: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ -001560b0: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ -001560c0: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ -001560d0: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ -001560e0: 2020 2020 2d20 6e61 6d65 3a20 6e66 7461      - name: nfta
│ │ │ -001560f0: 626c 6573 2e73 6572 7669 6365 0a20 2020  bles.service.   
│ │ │ -00156100: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00156110: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -00156120: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -00156130: 616d 653a 206e 6674 6162 6c65 732e 736f  ame: nftables.so
│ │ │ -00156140: 636b 6574 0a20 2020 2020 2020 2065 6e61  cket.        ena
│ │ │ -00156150: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00156160: 2020 2020 6d61 736b 3a20 7472 7565 0a3c      mask: true.<
│ │ │ -00156170: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00156220: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00156230: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -001562d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001562e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00156330: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00156370: 6c75 6465 2064 6973 6162 6c65 5f6e 6674  lude disable_nft
│ │ │ -00156380: 6162 6c65 730a 0a63 6c61 7373 2064 6973  ables..class dis
│ │ │ -00156390: 6162 6c65 5f6e 6674 6162 6c65 7320 7b0a  able_nftables {.
│ │ │ -001563a0: 2020 7365 7276 6963 6520 7b27 6e66 7461    service {'nfta
│ │ │ -001563b0: 626c 6573 273a 0a20 2020 2065 6e61 626c  bles':.    enabl
│ │ │ -001563c0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -001563d0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001563e0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -001563f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -001564b0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001564c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -001562c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001562f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00156300: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00156340: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00156350: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00156590: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001565a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -00156600: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00156610: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00156620: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00156630: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00156640: 2050 4349 2d44 5353 7634 2d31 2e32 0a20   PCI-DSSv4-1.2. 
│ │ │ -00156650: 202d 2050 4349 2d44 5353 7634 2d31 2e32   - PCI-DSSv4-1.2
│ │ │ -00156660: 2e31 0a20 202d 2064 6973 6162 6c65 5f73  .1.  - disable_s
│ │ │ -00156670: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00156680: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00156690: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001566a0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -001566b0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -001566c0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -001566d0: 6365 5f6e 6674 6162 6c65 735f 6469 7361  ce_nftables_disa
│ │ │ -001566e0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 5665  bled..- name: Ve
│ │ │ -001566f0: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ -00156700: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ -00156710: 6420 2d20 4469 7361 626c 6520 7365 7276  d - Disable serv
│ │ │ -00156720: 6963 6520 6e66 7461 626c 6573 0a20 2062  ice nftables.  b
│ │ │ -00156730: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -00156740: 2056 6572 6966 7920 6e66 7461 626c 6573   Verify nftables
│ │ │ -00156750: 2053 6572 7669 6365 2069 7320 4469 7361   Service is Disa
│ │ │ -00156760: 626c 6564 202d 2043 6f6c 6c65 6374 2073  bled - Collect s
│ │ │ -00156770: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ -00156780: 5072 6573 656e 7420 696e 0a20 2020 2020  Present in.     
│ │ │ -00156790: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -001567a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001567b0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -001567c0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -001567d0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -001567e0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -001567f0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -00156800: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00156810: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00156820: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -00156830: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -00156840: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00156850: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00156860: 0a0a 2020 2d20 6e61 6d65 3a20 5665 7269  ..  - name: Veri
│ │ │ -00156870: 6679 206e 6674 6162 6c65 7320 5365 7276  fy nftables Serv
│ │ │ -00156880: 6963 6520 6973 2044 6973 6162 6c65 6420  ice is Disabled 
│ │ │ -00156890: 2d20 456e 7375 7265 206e 6674 6162 6c65  - Ensure nftable
│ │ │ -001568a0: 732e 7365 7276 6963 6520 6973 204d 6173  s.service is Mas
│ │ │ -001568b0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -001568c0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -001568d0: 0a20 2020 2020 206e 616d 653a 206e 6674  .      name: nft
│ │ │ -001568e0: 6162 6c65 732e 7365 7276 6963 650a 2020  ables.service.  
│ │ │ -001568f0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00156900: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -00156910: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -00156920: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00156930: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00156940: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00156950: 2069 7320 7365 6172 6368 2822 6e66 7461   is search("nfta
│ │ │ -00156960: 626c 6573 2e73 6572 7669 6365 222c 206d  bles.service", m
│ │ │ -00156970: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00156980: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00156990: 6f63 6b65 7420 4578 6973 7473 202d 206e  ocket Exists - n
│ │ │ -001569a0: 6674 6162 6c65 732e 736f 636b 6574 0a20  ftables.socket. 
│ │ │ -001569b0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -001569c0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -001569d0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -001569e0: 6974 2d66 696c 6573 206e 6674 6162 6c65  it-files nftable
│ │ │ -001569f0: 732e 736f 636b 6574 0a20 2020 2072 6567  s.socket.    reg
│ │ │ -00156a00: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -00156a10: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -00156a20: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -00156a30: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -00156a40: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -00156a50: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -00156a60: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -00156a70: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -00156a80: 2d20 6e61 6d65 3a20 5665 7269 6679 206e  - name: Verify n
│ │ │ -00156a90: 6674 6162 6c65 7320 5365 7276 6963 6520  ftables Service 
│ │ │ -00156aa0: 6973 2044 6973 6162 6c65 6420 2d20 4469  is Disabled - Di
│ │ │ -00156ab0: 7361 626c 6520 536f 636b 6574 206e 6674  sable Socket nft
│ │ │ -00156ac0: 6162 6c65 730a 2020 2020 616e 7369 626c  ables.    ansibl
│ │ │ -00156ad0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00156ae0: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ -00156af0: 6674 6162 6c65 732e 736f 636b 6574 0a20  ftables.socket. 
│ │ │ -00156b00: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00156b10: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -00156b20: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -00156b30: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00156b40: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00156b50: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00156b60: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00156b70: 226e 6674 6162 6c65 732e 736f 636b 6574  "nftables.socket
│ │ │ -00156b80: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00156b90: 6529 0a20 2074 6167 733a 0a20 202d 2050  e).  tags:.  - P
│ │ │ -00156ba0: 4349 2d44 5353 7634 2d31 2e32 0a20 202d  CI-DSSv4-1.2.  -
│ │ │ -00156bb0: 2050 4349 2d44 5353 7634 2d31 2e32 2e31   PCI-DSSv4-1.2.1
│ │ │ -00156bc0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00156bd0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00156be0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00156bf0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00156c00: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00156c10: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00156c20: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00156c30: 5f6e 6674 6162 6c65 735f 6469 7361 626c  _nftables_disabl
│ │ │ -00156c40: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00156c50: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00156c60: 6865 6e3a 2028 2022 6e66 7461 626c 6573  hen: ( "nftables
│ │ │ -00156c70: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00156c80: 7473 2e70 6163 6b61 6765 7320 616e 6420  ts.packages and 
│ │ │ -00156c90: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00156ca0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00156cb0: 636b 6167 6573 0a20 2020 2029 0a3c 2f63  ckages.    ).
low
Disru │ │ │ -00156570: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00156580: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001565c0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001565d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00155e70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00155e90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00155ec0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00155e50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00155e60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00155e80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00155ea0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00155eb0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00155ef0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00155f00: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00155f10: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00155f20: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00155f30: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00155f40: 7461 6773 3a0a 2020 2d20 5043 492d 4453 tags:. - PCI-DS │ │ │ +00155f50: 5376 342d 312e 320a 2020 2d20 5043 492d Sv4-1.2. - PCI- │ │ │ +00155f60: 4453 5376 342d 312e 322e 310a 2020 2d20 DSSv4-1.2.1. - │ │ │ +00155f70: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +00155f80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +00155f90: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +00155fa0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +00155fb0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +00155fc0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00155fd0: 2020 2d20 7365 7276 6963 655f 6e66 7461 - service_nfta │ │ │ +00155fe0: 626c 6573 5f64 6973 6162 6c65 640a 0a2d bles_disabled..- │ │ │ +00155ff0: 206e 616d 653a 2056 6572 6966 7920 6e66 name: Verify nf │ │ │ +00156000: 7461 626c 6573 2053 6572 7669 6365 2069 tables Service i │ │ │ +00156010: 7320 4469 7361 626c 6564 202d 2044 6973 s Disabled - Dis │ │ │ +00156020: 6162 6c65 2073 6572 7669 6365 206e 6674 able service nft │ │ │ +00156030: 6162 6c65 730a 2020 626c 6f63 6b3a 0a0a ables. block:.. │ │ │ +00156040: 2020 2d20 6e61 6d65 3a20 5665 7269 6679 - name: Verify │ │ │ +00156050: 206e 6674 6162 6c65 7320 5365 7276 6963 nftables Servic │ │ │ +00156060: 6520 6973 2044 6973 6162 6c65 6420 2d20 e is Disabled - │ │ │ +00156070: 436f 6c6c 6563 7420 7379 7374 656d 6420 Collect systemd │ │ │ +00156080: 5365 7276 6963 6573 2050 7265 7365 6e74 Services Present │ │ │ +00156090: 2069 6e0a 2020 2020 2020 7468 6520 5379 in. the Sy │ │ │ +001560a0: 7374 656d 0a20 2020 2061 6e73 6962 6c65 stem. ansible │ │ │ +001560b0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ +001560c0: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ +001560d0: 6973 742d 756e 6974 2d66 696c 6573 202d ist-unit-files - │ │ │ +001560e0: 2d74 7970 6520 7365 7276 6963 650a 2020 -type service. │ │ │ +001560f0: 2020 7265 6769 7374 6572 3a20 7365 7276 register: serv │ │ │ +00156100: 6963 655f 6578 6973 7473 0a20 2020 2063 ice_exists. c │ │ │ +00156110: 6861 6e67 6564 5f77 6865 6e3a 2066 616c hanged_when: fal │ │ │ +00156120: 7365 0a20 2020 2066 6169 6c65 645f 7768 se. failed_wh │ │ │ +00156130: 656e 3a20 7365 7276 6963 655f 6578 6973 en: service_exis │ │ │ +00156140: 7473 2e72 6320 6e6f 7420 696e 205b 302c ts.rc not in [0, │ │ │ +00156150: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f 1]. check_mo │ │ │ +00156160: 6465 3a20 6661 6c73 650a 0a20 202d 206e de: false.. - n │ │ │ +00156170: 616d 653a 2056 6572 6966 7920 6e66 7461 ame: Verify nfta │ │ │ +00156180: 626c 6573 2053 6572 7669 6365 2069 7320 bles Service is │ │ │ +00156190: 4469 7361 626c 6564 202d 2045 6e73 7572 Disabled - Ensur │ │ │ +001561a0: 6520 6e66 7461 626c 6573 2e73 6572 7669 e nftables.servi │ │ │ +001561b0: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ +001561c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +001561d0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +001561e0: 6e61 6d65 3a20 6e66 7461 626c 6573 2e73 name: nftables.s │ │ │ +001561f0: 6572 7669 6365 0a20 2020 2020 2073 7461 ervice. sta │ │ │ +00156200: 7465 3a20 7374 6f70 7065 640a 2020 2020 te: stopped. │ │ │ +00156210: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ +00156220: 0a20 2020 2020 206d 6173 6b65 643a 2074 . masked: t │ │ │ +00156230: 7275 650a 2020 2020 7768 656e 3a20 7365 rue. when: se │ │ │ +00156240: 7276 6963 655f 6578 6973 7473 2e73 7464 rvice_exists.std │ │ │ +00156250: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ +00156260: 7263 6828 226e 6674 6162 6c65 732e 7365 rch("nftables.se │ │ │ +00156270: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ +00156280: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ +00156290: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ +001562a0: 7869 7374 7320 2d20 6e66 7461 626c 6573 xists - nftables │ │ │ +001562b0: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ +001562c0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ +001562d0: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ +001562e0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ +001562f0: 7320 6e66 7461 626c 6573 2e73 6f63 6b65 s nftables.socke │ │ │ +00156300: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ +00156310: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +00156320: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +00156330: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +00156340: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ +00156350: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ +00156360: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ +00156370: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ +00156380: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ +00156390: 2056 6572 6966 7920 6e66 7461 626c 6573 Verify nftables │ │ │ +001563a0: 2053 6572 7669 6365 2069 7320 4469 7361 Service is Disa │ │ │ +001563b0: 626c 6564 202d 2044 6973 6162 6c65 2053 bled - Disable S │ │ │ +001563c0: 6f63 6b65 7420 6e66 7461 626c 6573 0a20 ocket nftables. │ │ │ +001563d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +001563e0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +001563f0: 2020 6e61 6d65 3a20 6e66 7461 626c 6573 name: nftables │ │ │ +00156400: 2e73 6f63 6b65 740a 2020 2020 2020 656e .socket. en │ │ │ +00156410: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +00156420: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ +00156430: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +00156440: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ +00156450: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +00156460: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ +00156470: 7320 7365 6172 6368 2822 6e66 7461 626c s search("nftabl │ │ │ +00156480: 6573 2e73 6f63 6b65 7422 2c20 6d75 6c74 es.socket", mult │ │ │ +00156490: 696c 696e 653d 5472 7565 290a 2020 7461 iline=True). ta │ │ │ +001564a0: 6773 3a0a 2020 2d20 5043 492d 4453 5376 gs:. - PCI-DSSv │ │ │ +001564b0: 342d 312e 320a 2020 2d20 5043 492d 4453 4-1.2. - PCI-DS │ │ │ +001564c0: 5376 342d 312e 322e 310a 2020 2d20 6469 Sv4-1.2.1. - di │ │ │ +001564d0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +001564e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +001564f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +00156500: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +00156510: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +00156520: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +00156530: 2d20 7365 7276 6963 655f 6e66 7461 626c - service_nftabl │ │ │ +00156540: 6573 5f64 6973 6162 6c65 640a 2020 2d20 es_disabled. - │ │ │ +00156550: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ +00156560: 626c 6f63 6b0a 2020 7768 656e 3a20 2820 block. when: ( │ │ │ +00156570: 226e 6674 6162 6c65 7322 2069 6e20 616e "nftables" in an │ │ │ +00156580: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +00156590: 6167 6573 2061 6e64 2022 6c69 6e75 782d ages and "linux- │ │ │ +001565a0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +001565b0: 5f66 6163 7473 2e70 6163 6b61 6765 730a _facts.packages. │ │ │ +001565c0: 2020 2020 290a 3c2f 636f 6465 3e3c 2f70 ).

Remediatio │ │ │ +00156680: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ +00156690: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001566a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001566d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00156740: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ +00156720: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00156730: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ +00156770: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ +00156780: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ +001567c0: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ +001567d0: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ +001567e0: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ +001567f0: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ +00156800: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ +00156810: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ +00156820: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ +00156830: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ +00156840: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ +00156850: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ +00156860: 2020 202d 206e 616d 653a 206e 6674 6162     - name: nftab
│ │ │ +00156870: 6c65 732e 7365 7276 6963 650a 2020 2020  les.service.    
│ │ │ +00156880: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00156890: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +001568a0: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +001568b0: 6d65 3a20 6e66 7461 626c 6573 2e73 6f63  me: nftables.soc
│ │ │ +001568c0: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +001568d0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +001568e0: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
Re │ │ │ +001569a0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001569b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001569c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00156a60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00156ab0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00156a40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00156a70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00156a90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00156aa0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00156ac0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00156ad0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00156af0: 7564 6520 6469 7361 626c 655f 6e66 7461  ude disable_nfta
│ │ │ +00156b00: 626c 6573 0a0a 636c 6173 7320 6469 7361  bles..class disa
│ │ │ +00156b10: 626c 655f 6e66 7461 626c 6573 207b 0a20  ble_nftables {. 
│ │ │ +00156b20: 2073 6572 7669 6365 207b 276e 6674 6162   service {'nftab
│ │ │ +00156b30: 6c65 7327 3a0a 2020 2020 656e 6162 6c65  les':.    enable
│ │ │ +00156b40: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +00156b50: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00156b60: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +00156b70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00156c20: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00156c30: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00156c40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +00156c90: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00156ca0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +00156cb0: 5b22 6e66 7461 626c 6573 225d 0a3c 2f63  ["nftables"].
│ │ │ 00156cd0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation │ │ │ -00213a60: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00213a70: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -00213ac0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00213ad0: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00213ae0: 6420 3d20 5b22 6170 706f 7274 225d 0a3c  d = ["apport"].<
│ │ │ -00213af0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00213ba0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -00213bb0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -00213bc0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00213c40: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00213c60: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -00213c90: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -00213c70: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00213c80: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -00213ca0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -00213cc0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00213cd0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -00213d00: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -00213d10: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -00213d20: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -00213d30: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -00213d40: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -00213d50: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -00213d60: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -00213d70: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -00213d80: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -00213d90: 6d65 3a20 6170 706f 7274 2e73 6572 7669  me: apport.servi
│ │ │ -00213da0: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ -00213db0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00213dc0: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ -00213dd0: 2020 202d 206e 616d 653a 2061 7070 6f72     - name: appor
│ │ │ -00213de0: 742e 736f 636b 6574 0a20 2020 2020 2020  t.socket.       
│ │ │ -00213df0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00213e00: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -00213e10: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ -00213e20: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -00213ed0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00213ee0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00213f60: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00213f80: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00213fd0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -00214020: 5f61 7070 6f72 740a 0a63 6c61 7373 2064  _apport..class d
│ │ │ -00214030: 6973 6162 6c65 5f61 7070 6f72 7420 7b0a  isable_apport {.
│ │ │ -00214040: 2020 7365 7276 6963 6520 7b27 6170 706f    service {'appo
│ │ │ -00214050: 7274 273a 0a20 2020 2065 6e61 626c 6520  rt':.    enable 
│ │ │ -00214060: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -00214070: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -00214080: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -00214090: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00214140: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00214150: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disr │ │ │ -00213f90: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00213fa0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00213fe0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00213ff0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002141f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00214290: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -002142a0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -002142b0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -002142c0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -002142d0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -002142e0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002142f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00214300: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00214310: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00214320: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00214330: 6572 7669 6365 5f61 7070 6f72 745f 6469  ervice_apport_di
│ │ │ -00214340: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f  sabled.  - unkno
│ │ │ -00214350: 776e 5f73 6576 6572 6974 790a 0a2d 206e  wn_severity..- n
│ │ │ -00214360: 616d 653a 2044 6973 6162 6c65 2041 7070  ame: Disable App
│ │ │ -00214370: 6f72 7420 5365 7276 6963 6520 2d20 4469  ort Service - Di
│ │ │ -00214380: 7361 626c 6520 7365 7276 6963 6520 6170  sable service ap
│ │ │ -00214390: 706f 7274 0a20 2062 6c6f 636b 3a0a 0a20  port.  block:.. 
│ │ │ -002143a0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002143b0: 2041 7070 6f72 7420 5365 7276 6963 6520   Apport Service 
│ │ │ -002143c0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002143d0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002143e0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002143f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00214400: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00214410: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00214420: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00214430: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00214440: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00214450: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00214460: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00214470: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00214480: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -00214490: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002144a0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002144b0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002144c0: 2044 6973 6162 6c65 2041 7070 6f72 7420   Disable Apport 
│ │ │ -002144d0: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ -002144e0: 2061 7070 6f72 742e 7365 7276 6963 6520   apport.service 
│ │ │ -002144f0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -00214500: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00214510: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00214520: 653a 2061 7070 6f72 742e 7365 7276 6963  e: apport.servic
│ │ │ -00214530: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00214540: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -00214550: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00214560: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00214570: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -00214580: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00214590: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002145a0: 6170 706f 7274 2e73 6572 7669 6365 222c  apport.service",
│ │ │ -002145b0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002145c0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -002145d0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -002145e0: 2061 7070 6f72 742e 736f 636b 6574 0a20   apport.socket. 
│ │ │ -002145f0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00214600: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -00214610: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -00214620: 6974 2d66 696c 6573 2061 7070 6f72 742e  it-files apport.
│ │ │ -00214630: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -00214640: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -00214650: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00214660: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00214670: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00214680: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00214690: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -002146a0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -002146b0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -002146c0: 6e61 6d65 3a20 4469 7361 626c 6520 4170  name: Disable Ap
│ │ │ -002146d0: 706f 7274 2053 6572 7669 6365 202d 2044  port Service - D
│ │ │ -002146e0: 6973 6162 6c65 2053 6f63 6b65 7420 6170  isable Socket ap
│ │ │ -002146f0: 706f 7274 0a20 2020 2061 6e73 6962 6c65  port.    ansible
│ │ │ -00214700: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -00214710: 3a0a 2020 2020 2020 6e61 6d65 3a20 6170  :.      name: ap
│ │ │ -00214720: 706f 7274 2e73 6f63 6b65 740a 2020 2020  port.socket.    
│ │ │ -00214730: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -00214740: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -00214750: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ -00214760: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -00214770: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -00214780: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -00214790: 6573 2069 7320 7365 6172 6368 2822 6170  es is search("ap
│ │ │ -002147a0: 706f 7274 2e73 6f63 6b65 7422 2c20 6d75  port.socket", mu
│ │ │ -002147b0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -002147c0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -002147d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002147e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002147f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00214800: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00214810: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00214820: 655f 6170 706f 7274 5f64 6973 6162 6c65  e_apport_disable
│ │ │ -00214830: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00214840: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ -00214850: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -00214860: 0a20 2077 6865 6e3a 2027 2261 7070 6f72  .  when: '"appor
│ │ │ -00214870: 7422 2069 6e20 616e 7369 626c 655f 6661  t" in ansible_fa
│ │ │ -00214880: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
low< │ │ │ +00213b40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ -002141e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00214210: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00214220: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00214260: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00214270: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00213b00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00213b20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00213b70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00213b80: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00213bb0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00213bc0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00213bd0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00213be0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00213bf0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00213c00: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00213c10: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00213c20: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00213c30: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00213c40: 2020 2d20 7365 7276 6963 655f 6170 706f    - service_appo
│ │ │ +00213c50: 7274 5f64 6973 6162 6c65 640a 2020 2d20  rt_disabled.  - 
│ │ │ +00213c60: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +00213c70: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +00213c80: 6520 4170 706f 7274 2053 6572 7669 6365  e Apport Service
│ │ │ +00213c90: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00213ca0: 6365 2061 7070 6f72 740a 2020 626c 6f63  ce apport.  bloc
│ │ │ +00213cb0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +00213cc0: 7361 626c 6520 4170 706f 7274 2053 6572  sable Apport Ser
│ │ │ +00213cd0: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +00213ce0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +00213cf0: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +00213d00: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +00213d10: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00213d20: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00213d30: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00213d40: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +00213d50: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +00213d60: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +00213d70: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00213d80: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00213d90: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00213da0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +00213db0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +00213dc0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +00213dd0: 6e61 6d65 3a20 4469 7361 626c 6520 4170  name: Disable Ap
│ │ │ +00213de0: 706f 7274 2053 6572 7669 6365 202d 2045  port Service - E
│ │ │ +00213df0: 6e73 7572 6520 6170 706f 7274 2e73 6572  nsure apport.ser
│ │ │ +00213e00: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +00213e10: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00213e20: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00213e30: 2020 6e61 6d65 3a20 6170 706f 7274 2e73    name: apport.s
│ │ │ +00213e40: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +00213e50: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00213e60: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00213e70: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00213e80: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +00213e90: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +00213ea0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00213eb0: 7263 6828 2261 7070 6f72 742e 7365 7276  rch("apport.serv
│ │ │ +00213ec0: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +00213ed0: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +00213ee0: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +00213ef0: 7374 7320 2d20 6170 706f 7274 2e73 6f63  sts - apport.soc
│ │ │ +00213f00: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +00213f10: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00213f20: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00213f30: 7374 2d75 6e69 742d 6669 6c65 7320 6170  st-unit-files ap
│ │ │ +00213f40: 706f 7274 2e73 6f63 6b65 740a 2020 2020  port.socket.    
│ │ │ +00213f50: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +00213f60: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +00213f70: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00213f80: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00213f90: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00213fa0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +00213fb0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +00213fc0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +00213fd0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +00213fe0: 6c65 2041 7070 6f72 7420 5365 7276 6963  le Apport Servic
│ │ │ +00213ff0: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00214000: 6574 2061 7070 6f72 740a 2020 2020 616e  et apport.    an
│ │ │ +00214010: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00214020: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00214030: 653a 2061 7070 6f72 742e 736f 636b 6574  e: apport.socket
│ │ │ +00214040: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00214050: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +00214060: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00214070: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00214080: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +00214090: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +002140a0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +002140b0: 6828 2261 7070 6f72 742e 736f 636b 6574  h("apport.socket
│ │ │ +002140c0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +002140d0: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ +002140e0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002140f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00214100: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00214110: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00214120: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00214130: 6572 7669 6365 5f61 7070 6f72 745f 6469  ervice_apport_di
│ │ │ +00214140: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +00214150: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00214160: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +00214170: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ +00214180: 6170 706f 7274 2220 696e 2061 6e73 6962  apport" in ansib
│ │ │ +00214190: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002141a0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002141b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ +00214260: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +00214270: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +002142f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00214300: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00214320: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00214330: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +00214340: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +00214350: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +00214360: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00214380: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00214390: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +002143b0: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +002143c0: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +002143d0: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +002143e0: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +002143f0: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +00214400: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +00214410: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +00214420: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +00214430: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +00214440: 2d20 6e61 6d65 3a20 6170 706f 7274 2e73 - name: apport.s │ │ │ +00214450: 6572 7669 6365 0a20 2020 2020 2020 2065 ervice. e │ │ │ +00214460: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +00214470: 2020 2020 2020 6d61 736b 3a20 7472 7565 mask: true │ │ │ +00214480: 0a20 2020 2020 202d 206e 616d 653a 2061 . - name: a │ │ │ +00214490: 7070 6f72 742e 736f 636b 6574 0a20 2020 pport.socket. │ │ │ +002144a0: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +002144b0: 6c73 650a 2020 2020 2020 2020 6d61 736b lse. mask │ │ │ +002144c0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f : true.
Remediati │ │ │ +00214580: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00214590: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00214610: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00214620: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00214640: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00214650: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00214670: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00214690: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +002146c0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +002146d0: 6162 6c65 5f61 7070 6f72 740a 0a63 6c61  able_apport..cla
│ │ │ +002146e0: 7373 2064 6973 6162 6c65 5f61 7070 6f72  ss disable_appor
│ │ │ +002146f0: 7420 7b0a 2020 7365 7276 6963 6520 7b27  t {.  service {'
│ │ │ +00214700: 6170 706f 7274 273a 0a20 2020 2065 6e61  apport':.    ena
│ │ │ +00214710: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +00214720: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00214730: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +00214740: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00214750: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +00214800: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00214810: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00214820: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00214860: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00214870: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00214880: 203d 205b 2261 7070 6f72 7422 5d0a 3c2f   = ["apport"].
R │ │ │ -00224f60: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00224f70: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00224f80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00224f90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00224fc0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00224fd0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00224fe0: 2263 726f 6e22 0a76 6572 7369 6f6e 203d  "cron".version =
│ │ │ -00224ff0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -002250b0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002250c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00225150: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00225170: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00225190: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002251c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002251d0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -002251e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -00225200: 6c6c 5f63 726f 6e0a 0a63 6c61 7373 2069  ll_cron..class i
│ │ │ -00225210: 6e73 7461 6c6c 5f63 726f 6e20 7b0a 2020  nstall_cron {.  
│ │ │ -00225220: 7061 636b 6167 6520 7b20 2763 726f 6e27  package { 'cron'
│ │ │ -00225230: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00225240: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00225250: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00225310: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00225320: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002253a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002253b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002253d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002253e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00225400: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00225420: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00225450: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00225460: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00225470: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00225480: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00225490: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002254a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002254b0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -002254c0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -002254d0: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -002254e0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -002254f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00225500: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00225510: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00225520: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00225530: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00225540: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ -00225550: 6f6e 5f69 6e73 7461 6c6c 6564 0a0a 2d20  on_installed..- 
│ │ │ -00225560: 6e61 6d65 3a20 456e 7375 7265 2063 726f  name: Ensure cro
│ │ │ -00225570: 6e20 6973 2069 6e73 7461 6c6c 6564 0a20  n is installed. 
│ │ │ -00225580: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00225590: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002255a0: 6d65 3a20 6372 6f6e 0a20 2020 2073 7461  me: cron.    sta
│ │ │ -002255b0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -002255c0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -002255d0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -002255e0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -002255f0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00225600: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00225610: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00225620: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00225630: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ -00225640: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00225650: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00225660: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00225670: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00225680: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00225690: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002256a0: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564  e_cron_installed
│ │ │ +00224f60: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00224f70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +00225010: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +002250b0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +002250c0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002250d0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002250e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002250f0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00225100: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00225110: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +00225120: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +00225130: 342d 322e 322e 360a 2020 2d20 656e 6162  4-2.2.6.  - enab
│ │ │ +00225140: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00225150: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00225160: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00225170: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00225180: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00225190: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +002251a0: 6163 6b61 6765 5f63 726f 6e5f 696e 7374  ackage_cron_inst
│ │ │ +002251b0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +002251c0: 6e73 7572 6520 6372 6f6e 2069 7320 696e  nsure cron is in
│ │ │ +002251d0: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +002251e0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +002251f0: 653a 0a20 2020 206e 616d 653a 2063 726f  e:.    name: cro
│ │ │ +00225200: 6e0a 2020 2020 7374 6174 653a 2070 7265  n.    state: pre
│ │ │ +00225210: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ +00225220: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00225230: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00225240: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00225250: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00225260: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00225270: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00225280: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +00225290: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +002252a0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002252b0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002252c0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002252d0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002252e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002252f0: 202d 2070 6163 6b61 6765 5f63 726f 6e5f   - package_cron_
│ │ │ +00225300: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
Remedi │ │ │ +002253c0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002253d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002253e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00225410: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +00225000: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00225030: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00225040: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00225080: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00225090: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00225480: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002254a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002254d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +002254f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00225460: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00225470: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002254b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002254c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00225510: 696e 7374 616c 6c5f 6372 6f6e 0a0a 636c install_cron..cl │ │ │ +00225520: 6173 7320 696e 7374 616c 6c5f 6372 6f6e ass install_cron │ │ │ +00225530: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +00225540: 6372 6f6e 273a 0a20 2020 2065 6e73 7572 cron':. ensur │ │ │ +00225550: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +00225560: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +00225620: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00225630: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00225640: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +00225690: 6573 5d5d 0a6e 616d 6520 3d20 2263 726f  es]].name = "cro
│ │ │ +002256a0: 6e22 0a76 6572 7369 6f6e 203d 2022 2a22  n".version = "*"
│ │ │  002256b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
R │ │ │ -002268d0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002268e0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002268f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00226900: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00226930: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00226940: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00226950: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -00226960: 5b22 6372 6f6e 225d 0a3c 2f63 6f64 653e  ["cron"].
│ │ │ -00226970: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00226a20: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00226a30: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00226a40: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00226a50: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00226a60: 7365 2220 6964 3d22 6964 3831 3222 3e3c se" id="id812">< │ │ │ -00226a70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00226a80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00226a90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00226aa0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00226ab0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00226ac0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00226ad0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00226b10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00226b20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00226b40: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00226b50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -00226b70: 6e61 626c 655f 6372 6f6e 0a0a 636c 6173  nable_cron..clas
│ │ │ -00226b80: 7320 656e 6162 6c65 5f63 726f 6e20 7b0a  s enable_cron {.
│ │ │ -00226b90: 2020 7365 7276 6963 6520 7b27 6372 6f6e    service {'cron
│ │ │ -00226ba0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00226bb0: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -00226bc0: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -00226bd0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -00226bf0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00226c00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00226c10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00226c20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00226c30: 6438 3133 2220 7461 6269 6e64 6578 3d22 d813" tabindex=" │ │ │ -00226c40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00226c50: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00226c60: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00226c70: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00226c80: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00226c90: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00226ca0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00226cb0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +0024cbd0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0024cc70: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0024cc80: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0024cc90: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0024cd10: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0024cd40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0024cd60: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0024cd70: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0024cd90: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0024cda0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0024cdc0: 6c75 6465 2072 656d 6f76 655f 646e 736d  lude remove_dnsm
│ │ │ +0024cdd0: 6173 710a 0a63 6c61 7373 2072 656d 6f76  asq..class remov
│ │ │ +0024cde0: 655f 646e 736d 6173 7120 7b0a 2020 7061  e_dnsmasq {.  pa
│ │ │ +0024cdf0: 636b 6167 6520 7b20 2764 6e73 6d61 7371  ckage { 'dnsmasq
│ │ │ +0024ce00: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0024ce10: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0024ce20: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediati │ │ │ -0024dc30: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0024dc40: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0024dc50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0024dca0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0024dcb0: 736b 6564 203d 205b 2264 6e73 6d61 7371  sked = ["dnsmasq
│ │ │ -0024dcc0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -0024dcd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ -0024dd80: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ -0024dd90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0024de10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0024de20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0024de40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0024de50: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ -0024de60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ -0024de70: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ -0024de80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024dea0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0024deb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ -0024ded0: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ -0024dee0: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ -0024def0: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ -0024df00: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ -0024df10: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ -0024df20: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ -0024df30: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ -0024df40: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ -0024df50: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ -0024df60: 2d20 6e61 6d65 3a20 646e 736d 6173 712e - name: dnsmasq. │ │ │ -0024df70: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ -0024df80: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -0024df90: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ -0024dfa0: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ -0024dfb0: 646e 736d 6173 712e 736f 636b 6574 0a20 dnsmasq.socket. │ │ │ -0024dfc0: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ -0024dfd0: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ -0024dfe0: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ -0024dff0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Com │ │ │ -00226d30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00226d60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00226d80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00226d90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00226db0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00226dd0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00226de0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00226df0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00226e00: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00226e10: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00226e20: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00226e30: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00226e40: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00226e50: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00226e60: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00226e70: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00226e80: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00226e90: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00226ea0: 640a 2020 2d20 7365 7276 6963 655f 6372  d.  - service_cr
│ │ │ -00226eb0: 6f6e 5f65 6e61 626c 6564 0a0a 2d20 6e61  on_enabled..- na
│ │ │ -00226ec0: 6d65 3a20 456e 6162 6c65 2063 726f 6e20  me: Enable cron 
│ │ │ -00226ed0: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -00226ee0: 2073 6572 7669 6365 2063 726f 6e0a 2020   service cron.  
│ │ │ -00226ef0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -00226f00: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ -00226f10: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ -00226f20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00226f30: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00226f40: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00226f50: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ -00226f60: 626c 6520 6372 6f6e 2053 6572 7669 6365  ble cron Service
│ │ │ -00226f70: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00226f80: 6520 6372 6f6e 0a20 2020 2061 6e73 6962  e cron.    ansib
│ │ │ -00226f90: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00226fa0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00226fb0: 6372 6f6e 0a20 2020 2020 2065 6e61 626c  cron.      enabl
│ │ │ -00226fc0: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ -00226fd0: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ -00226fe0: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ -00226ff0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ -00227000: 2d20 2722 6372 6f6e 2220 696e 2061 6e73  - '"cron" in ans
│ │ │ -00227010: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00227020: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00227030: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00227040: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00227050: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00227060: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00227070: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00227080: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00227090: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002270a0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002270b0: 6963 655f 6372 6f6e 5f65 6e61 626c 6564  ice_cron_enabled
│ │ │ -002270c0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -002270d0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -002270e0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002270f0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00227100: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
│ │ │ +00226980: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00226a20: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00226a30: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00226a40: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00226a50: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00226a60: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00226a70: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00226a80: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00226a90: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00226aa0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00226ab0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00226ac0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00226ad0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00226ae0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00226af0: 5f63 726f 6e5f 656e 6162 6c65 640a 0a2d  _cron_enabled..-
│ │ │ +00226b00: 206e 616d 653a 2045 6e61 626c 6520 6372   name: Enable cr
│ │ │ +00226b10: 6f6e 2053 6572 7669 6365 202d 2045 6e61  on Service - Ena
│ │ │ +00226b20: 626c 6520 7365 7276 6963 6520 6372 6f6e  ble service cron
│ │ │ +00226b30: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +00226b40: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00226b50: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00226b60: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00226b70: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +00226b80: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +00226b90: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +00226ba0: 456e 6162 6c65 2063 726f 6e20 5365 7276  Enable cron Serv
│ │ │ +00226bb0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ +00226bc0: 7669 6365 2063 726f 6e0a 2020 2020 616e  vice cron.    an
│ │ │ +00226bd0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00226be0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00226bf0: 653a 2063 726f 6e0a 2020 2020 2020 656e  e: cron.      en
│ │ │ +00226c00: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ +00226c10: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ +00226c20: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ +00226c30: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ +00226c40: 2020 202d 2027 2263 726f 6e22 2069 6e20     - '"cron" in 
│ │ │ +00226c50: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00226c60: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00226c70: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00226c80: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +00226c90: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00226ca0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00226cb0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00226cc0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00226cd0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00226ce0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00226cf0: 6572 7669 6365 5f63 726f 6e5f 656e 6162  ervice_cron_enab
│ │ │ +00226d00: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00226d10: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00226d20: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00226d30: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00226d40: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00226d50: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00226e00: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00226e10: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00226970: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002269a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002269b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002269f0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00226a00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00226eb0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00226ec0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00226f10: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00226f50: 6c75 6465 2065 6e61 626c 655f 6372 6f6e  lude enable_cron
│ │ │ +00226f60: 0a0a 636c 6173 7320 656e 6162 6c65 5f63  ..class enable_c
│ │ │ +00226f70: 726f 6e20 7b0a 2020 7365 7276 6963 6520  ron {.  service 
│ │ │ +00226f80: 7b27 6372 6f6e 273a 0a20 2020 2065 6e61  {'cron':.    ena
│ │ │ +00226f90: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +00226fa0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00226fb0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00226fc0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00226fd0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00227080: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00227090: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002270a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +002270e0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +002270f0: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +00227100: 203d 205b 2263 726f 6e22 5d0a 3c2f 636f   = ["cron"].
< │ │ │ 00227120: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00227130: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00227140: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00227150: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00227160: 6438 3134 2220 7461 6269 6e64 6578 3d22 d814" tabindex=" │ │ │ 00227170: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -148273,88 +148273,88 @@ │ │ │ 00243300: 7365 2220 6461 7461 2d74 6172 6765 743d se" data-target= │ │ │ 00243310: 2223 6964 3837 3022 2074 6162 696e 6465 "#id870" tabinde │ │ │ 00243320: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 00243330: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 00243340: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 00243350: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 00243360: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -00243370: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00243380: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +00226ea0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00226ed0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00226ee0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00226f20: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00226f30: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00243420: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00243430: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00243480: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002434c0: 6e63 6c75 6465 2072 656d 6f76 655f 6e69  nclude remove_ni
│ │ │ -002434d0: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -002434e0: 6e69 7320 7b0a 2020 7061 636b 6167 6520  nis {.  package 
│ │ │ -002434f0: 7b20 276e 6973 273a 0a20 2020 2065 6e73  { 'nis':.    ens
│ │ │ -00243500: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00243510: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -002435d0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002435e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -00243410: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00243440: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00243450: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00243490: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002434a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00243690: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002436b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002436e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00243670: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00243680: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002436a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002436c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002436d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00243710: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00243720: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -00243730: 206e 6973 2070 6163 6b61 6765 3a20 456e nis package: En │ │ │ -00243740: 7375 7265 206e 6973 2069 7320 7265 6d6f sure nis is remo │ │ │ -00243750: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -00243760: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -00243770: 2020 2020 6e61 6d65 3a20 6e69 730a 2020 name: nis. │ │ │ -00243780: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -00243790: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -002437a0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -002437b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -002437c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -002437d0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ -002437e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -002437f0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -00243800: 6b61 6765 5f6e 6973 5f72 656d 6f76 6564 kage_nis_removed │ │ │ +00243370: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00243380: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +00243420: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002434c0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +002434d0: 6c20 7468 6520 6e69 7320 7061 636b 6167  l the nis packag
│ │ │ +002434e0: 653a 2045 6e73 7572 6520 6e69 7320 6973  e: Ensure nis is
│ │ │ +002434f0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00243500: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00243510: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ +00243520: 6973 0a20 2020 2073 7461 7465 3a20 6162  is.    state: ab
│ │ │ +00243530: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +00243540: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00243550: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00243560: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00243570: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00243580: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00243590: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002435a0: 2d20 7061 636b 6167 655f 6e69 735f 7265  - package_nis_re
│ │ │ +002435b0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00243670: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00243680: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00243740: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00243750: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +00243410: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00243440: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00243450: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00243490: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002434a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +00243710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00243730: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00243760: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00243780: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002437b0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +002437c0: 6d6f 7665 5f6e 6973 0a0a 636c 6173 7320  move_nis..class 
│ │ │ +002437d0: 7265 6d6f 7665 5f6e 6973 207b 0a20 2070  remove_nis {.  p
│ │ │ +002437e0: 6163 6b61 6765 207b 2027 6e69 7327 3a0a  ackage { 'nis':.
│ │ │ +002437f0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00243800: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00243810: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation │ │ │ -002455c0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002455d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00245660: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00245680: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002456a0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002456d0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002456e0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00245710: 6f76 655f 6973 632d 6468 6370 2d73 6572  ove_isc-dhcp-ser
│ │ │ -00245720: 7665 720a 0a63 6c61 7373 2072 656d 6f76  ver..class remov
│ │ │ -00245730: 655f 6973 632d 6468 6370 2d73 6572 7665  e_isc-dhcp-serve
│ │ │ -00245740: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ -00245750: 2769 7363 2d64 6863 702d 7365 7276 6572  'isc-dhcp-server
│ │ │ -00245760: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00245770: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00245780: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00245840: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00245850: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -002458e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00245900: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00245920: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00245950: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00245960: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00245990: 6e73 7461 6c6c 2044 4843 5020 5365 7276  nstall DHCP Serv
│ │ │ -002459a0: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ -002459b0: 7265 2069 7363 2d64 6863 702d 7365 7276  re isc-dhcp-serv
│ │ │ -002459c0: 6572 2069 7320 7265 6d6f 7665 6427 0a20  er is removed'. 
│ │ │ -002459d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002459e0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002459f0: 6d65 3a20 6973 632d 6468 6370 2d73 6572  me: isc-dhcp-ser
│ │ │ -00245a00: 7665 720a 2020 2020 7374 6174 653a 2061  ver.    state: a
│ │ │ -00245a10: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00245a20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00245a30: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00245a40: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00245a50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00245a60: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -00245a70: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00245a80: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00245a90: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00245aa0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00245ab0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00245ac0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00245ad0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00245ae0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00245af0: 2020 2d20 7061 636b 6167 655f 6468 6370    - package_dhcp
│ │ │ -00245b00: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002455c0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +002455d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +00245660: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00245680: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00245690: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002456a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002456b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002456d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00245700: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00245710: 696e 7374 616c 6c20 4448 4350 2053 6572  install DHCP Ser
│ │ │ +00245720: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +00245730: 7572 6520 6973 632d 6468 6370 2d73 6572  ure isc-dhcp-ser
│ │ │ +00245740: 7665 7220 6973 2072 656d 6f76 6564 270a  ver is removed'.
│ │ │ +00245750: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00245760: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00245770: 616d 653a 2069 7363 2d64 6863 702d 7365  ame: isc-dhcp-se
│ │ │ +00245780: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ +00245790: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +002457a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002457b0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +002457c0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002457d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002457e0: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +002457f0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00245800: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00245810: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00245820: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00245830: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00245840: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00245850: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00245860: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00245870: 0a20 202d 2070 6163 6b61 6765 5f64 6863  .  - package_dhc
│ │ │ +00245880: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +00245940: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00245950: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00245960: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00245990: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00245a00: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00245a20: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00245a50: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002459e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002459f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00245a30: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00245a40: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00245a90: 6520 7265 6d6f 7665 5f69 7363 2d64 6863 e remove_isc-dhc │ │ │ +00245aa0: 702d 7365 7276 6572 0a0a 636c 6173 7320 p-server..class │ │ │ +00245ab0: 7265 6d6f 7665 5f69 7363 2d64 6863 702d remove_isc-dhcp- │ │ │ +00245ac0: 7365 7276 6572 207b 0a20 2070 6163 6b61 server {. packa │ │ │ +00245ad0: 6765 207b 2027 6973 632d 6468 6370 2d73 ge { 'isc-dhcp-s │ │ │ +00245ae0: 6572 7665 7227 3a0a 2020 2020 656e 7375 erver':. ensu │ │ │ +00245af0: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ +00245b00: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ 00245b10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remediati │ │ │ -002469b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -002469c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -002469d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -00246a20: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -00246a30: 736b 6564 203d 205b 2264 6863 7064 3622  sked = ["dhcpd6"
│ │ │ -00246a40: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00246a50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ku │ │ │ -00246b00: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -00246b10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00246ba0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00246bc0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00246bd0: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -00246bf0: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -00246c00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00246c20: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00246c30: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -00246c50: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -00246c60: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -00246c70: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -00246c80: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -00246c90: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -00246ca0: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -00246cb0: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -00246cc0: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -00246cd0: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -00246ce0: 206e 616d 653a 2064 6863 7064 362e 7365   name: dhcpd6.se
│ │ │ -00246cf0: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -00246d00: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00246d10: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -00246d20: 2020 2020 2020 2d20 6e61 6d65 3a20 6468        - name: dh
│ │ │ -00246d30: 6370 6436 2e73 6f63 6b65 740a 2020 2020  cpd6.socket.    
│ │ │ -00246d40: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00246d50: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -00246d60: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ -00246e20: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00246e30: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00246ec0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00246ee0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00246ef0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00246f00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00246f10: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00246f30: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -00246f70: 626c 655f 6468 6370 6436 0a0a 636c 6173  ble_dhcpd6..clas
│ │ │ -00246f80: 7320 6469 7361 626c 655f 6468 6370 6436  s disable_dhcpd6
│ │ │ -00246f90: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ -00246fa0: 6863 7064 3627 3a0a 2020 2020 656e 6162  hcpd6':.    enab
│ │ │ -00246fb0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -00246fc0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00246fd0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -00246fe0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00246ff0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -002470a0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002470b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00247130: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00247150: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002471a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002471d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -002471f0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00247200: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00247210: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00247220: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00247230: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00247240: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00247250: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00247260: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00247270: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00247280: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00247290: 640a 2020 2d20 7365 7276 6963 655f 6468  d.  - service_dh
│ │ │ -002472a0: 6370 6436 5f64 6973 6162 6c65 640a 0a2d  cpd6_disabled..-
│ │ │ -002472b0: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -002472c0: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ -002472d0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -002472e0: 6468 6370 6436 0a20 2062 6c6f 636b 3a0a  dhcpd6.  block:.
│ │ │ -002472f0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00247300: 6c65 2044 4843 5044 3620 5365 7276 6963  le DHCPD6 Servic
│ │ │ -00247310: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ -00247320: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -00247330: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -00247340: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -00247350: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -00247360: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -00247370: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -00247380: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -00247390: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -002473a0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002473b0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -002473c0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -002473d0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002473e0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -002473f0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00247400: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00247410: 653a 2044 6973 6162 6c65 2044 4843 5044  e: Disable DHCPD
│ │ │ -00247420: 3620 5365 7276 6963 6520 2d20 456e 7375  6 Service - Ensu
│ │ │ -00247430: 7265 2064 6863 7064 362e 7365 7276 6963  re dhcpd6.servic
│ │ │ -00247440: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -00247450: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00247460: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00247470: 616d 653a 2064 6863 7064 362e 7365 7276  ame: dhcpd6.serv
│ │ │ -00247480: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -00247490: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -002474a0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002474b0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -002474c0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -002474d0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -002474e0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002474f0: 2822 6468 6370 6436 2e73 6572 7669 6365  ("dhcpd6.service
│ │ │ -00247500: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00247510: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00247520: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00247530: 202d 2064 6863 7064 362e 736f 636b 6574   - dhcpd6.socket
│ │ │ -00247540: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00247550: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00247560: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00247570: 756e 6974 2d66 696c 6573 2064 6863 7064  unit-files dhcpd
│ │ │ -00247580: 362e 736f 636b 6574 0a20 2020 2072 6567  6.socket.    reg
│ │ │ -00247590: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -002475a0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -002475b0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -002475c0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -002475d0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -002475e0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002475f0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -00247600: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -00247610: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00247620: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ -00247630: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -00247640: 6468 6370 6436 0a20 2020 2061 6e73 6962  dhcpd6.    ansib
│ │ │ -00247650: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00247660: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00247670: 6468 6370 6436 2e73 6f63 6b65 740a 2020  dhcpd6.socket.  
│ │ │ -00247680: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00247690: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -002476a0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -002476b0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002476c0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002476d0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002476e0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002476f0: 6468 6370 6436 2e73 6f63 6b65 7422 2c20  dhcpd6.socket", 
│ │ │ -00247700: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00247710: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00247720: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00247730: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00247740: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00247750: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00247760: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00247770: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00247780: 7365 7276 6963 655f 6468 6370 6436 5f64  service_dhcpd6_d
│ │ │ -00247790: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002477a0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002477b0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -002477c0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -002477d0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -002477e0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002469b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +002469c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00246a40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ +00246ad0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00246ae0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -00247160: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00247170: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002471b0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002471c0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +00246a50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00246a60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00246aa0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00246ab0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +00246b00: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00246b10: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00246b20: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00246b30: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00246b40: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00246b50: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00246b60: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00246b70: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00246b80: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00246b90: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00246ba0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00246bb0: 6365 5f64 6863 7064 365f 6469 7361 626c  ce_dhcpd6_disabl
│ │ │ +00246bc0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +00246bd0: 626c 6520 4448 4350 4436 2053 6572 7669  ble DHCPD6 Servi
│ │ │ +00246be0: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +00246bf0: 7669 6365 2064 6863 7064 360a 2020 626c  vice dhcpd6.  bl
│ │ │ +00246c00: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00246c10: 4469 7361 626c 6520 4448 4350 4436 2053  Disable DHCPD6 S
│ │ │ +00246c20: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +00246c30: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00246c40: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00246c50: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00246c60: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00246c70: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00246c80: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00246c90: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00246ca0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00246cb0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00246cc0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00246cd0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00246ce0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00246cf0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00246d00: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00246d10: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00246d20: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00246d30: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ +00246d40: 2045 6e73 7572 6520 6468 6370 6436 2e73   Ensure dhcpd6.s
│ │ │ +00246d50: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +00246d60: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00246d70: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00246d80: 2020 2020 6e61 6d65 3a20 6468 6370 6436      name: dhcpd6
│ │ │ +00246d90: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +00246da0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00246db0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00246dc0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +00246dd0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +00246de0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +00246df0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00246e00: 6561 7263 6828 2264 6863 7064 362e 7365  earch("dhcpd6.se
│ │ │ +00246e10: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +00246e20: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +00246e30: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +00246e40: 7869 7374 7320 2d20 6468 6370 6436 2e73  xists - dhcpd6.s
│ │ │ +00246e50: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +00246e60: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00246e70: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00246e80: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00246e90: 6468 6370 6436 2e73 6f63 6b65 740a 2020  dhcpd6.socket.  
│ │ │ +00246ea0: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +00246eb0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +00246ec0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00246ed0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00246ee0: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +00246ef0: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +00246f00: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00246f10: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +00246f20: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +00246f30: 6162 6c65 2044 4843 5044 3620 5365 7276  able DHCPD6 Serv
│ │ │ +00246f40: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +00246f50: 636b 6574 2064 6863 7064 360a 2020 2020  cket dhcpd6.    
│ │ │ +00246f60: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00246f70: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00246f80: 616d 653a 2064 6863 7064 362e 736f 636b  ame: dhcpd6.sock
│ │ │ +00246f90: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00246fa0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00246fb0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00246fc0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00246fd0: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00246fe0: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00246ff0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00247000: 7263 6828 2264 6863 7064 362e 736f 636b  rch("dhcpd6.sock
│ │ │ +00247010: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +00247020: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +00247030: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00247040: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00247050: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00247060: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00247070: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00247080: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00247090: 0a20 202d 2073 6572 7669 6365 5f64 6863  .  - service_dhc
│ │ │ +002470a0: 7064 365f 6469 7361 626c 6564 0a20 202d  pd6_disabled.  -
│ │ │ +002470b0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +002470c0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +002470d0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +002470e0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +002470f0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00247100: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +002471b0: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ +002471c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ +002472c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +00247300: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +00247310: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +00247320: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +00247330: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +00247340: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +00247350: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +00247360: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +00247370: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +00247380: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +00247390: 2020 2020 202d 206e 616d 653a 2064 6863       - name: dhc
│ │ │ +002473a0: 7064 362e 7365 7276 6963 650a 2020 2020  pd6.service.    
│ │ │ +002473b0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002473c0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +002473d0: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +002473e0: 6d65 3a20 6468 6370 6436 2e73 6f63 6b65  me: dhcpd6.socke
│ │ │ +002473f0: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ +00247400: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +00247410: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ +00247430: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00247440: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00247450: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00247460: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00247470: 6438 3830 2220 7461 6269 6e64 6578 3d22 d880" tabindex=" │ │ │ +00247480: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00247490: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +002474a0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +002474b0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +002474c0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +002474d0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002474e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +00247250: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00247260: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00247280: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +00247290: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +002472d0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002472e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +00247570: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00247580: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002475a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002475c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002475d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00247610: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00247620: 6520 6469 7361 626c 655f 6468 6370 6436 e disable_dhcpd6 │ │ │ +00247630: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +00247640: 6468 6370 6436 207b 0a20 2073 6572 7669 dhcpd6 {. servi │ │ │ +00247650: 6365 207b 2764 6863 7064 3627 3a0a 2020 ce {'dhcpd6':. │ │ │ +00247660: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +00247670: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +00247680: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +00247690: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +002476a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00247750: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +00247760: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +00247770: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +002477c0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +002477d0: 6173 6b65 6420 3d20 5b22 6468 6370 6436  asked = ["dhcpd6
│ │ │ +002477e0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 002477f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00248be0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00248bf0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -00248c50: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -00248c60: 6564 203d 205b 2264 6863 7064 225d 0a3c  ed = ["dhcpd"].<
│ │ │ -00248c70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00248d20: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -00248d30: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -00248d40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00248dc0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00248de0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -00248e10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -00248df0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00248e00: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -00248e20: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -00248e40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00248e50: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -00248e80: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -00248e90: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -00248ea0: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -00248eb0: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -00248ec0: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -00248ed0: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -00248ee0: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -00248ef0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -00248f00: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -00248f10: 6d65 3a20 6468 6370 642e 7365 7276 6963  me: dhcpd.servic
│ │ │ -00248f20: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -00248f30: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -00248f40: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -00248f50: 2020 2d20 6e61 6d65 3a20 6468 6370 642e    - name: dhcpd.
│ │ │ -00248f60: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ -00248f70: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00248f80: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -00248f90: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00249050: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00249060: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00249130: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00249140: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00249190: 6e63 6c75 6465 2064 6973 6162 6c65 5f64  nclude disable_d
│ │ │ -002491a0: 6863 7064 0a0a 636c 6173 7320 6469 7361  hcpd..class disa
│ │ │ -002491b0: 626c 655f 6468 6370 6420 7b0a 2020 7365  ble_dhcpd {.  se
│ │ │ -002491c0: 7276 6963 6520 7b27 6468 6370 6427 3a0a  rvice {'dhcpd':.
│ │ │ -002491d0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -002491e0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -002491f0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -00249200: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -002492c0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002492d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ -00249110: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00249120: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00249160: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00249170: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00249380: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002493a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002493d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00249360: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00249370: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00249390: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002493b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002493c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00249400: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00249410: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00249420: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00249430: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00249440: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00249450: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00249460: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00249470: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00249480: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -00249490: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -002494a0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -002494b0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -002494c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002494d0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -002494e0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -002494f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00249500: 640a 2020 2d20 7365 7276 6963 655f 6468 d. - service_dh │ │ │ -00249510: 6370 645f 6469 7361 626c 6564 0a0a 2d20 cpd_disabled..- │ │ │ -00249520: 6e61 6d65 3a20 4469 7361 626c 6520 4448 name: Disable DH │ │ │ -00249530: 4350 2053 6572 7669 6365 202d 2044 6973 CP Service - Dis │ │ │ -00249540: 6162 6c65 2073 6572 7669 6365 2064 6863 able service dhc │ │ │ -00249550: 7064 0a20 2062 6c6f 636b 3a0a 0a20 202d pd. block:.. - │ │ │ -00249560: 206e 616d 653a 2044 6973 6162 6c65 2044 name: Disable D │ │ │ -00249570: 4843 5020 5365 7276 6963 6520 2d20 436f HCP Service - Co │ │ │ -00249580: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ -00249590: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ -002495a0: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ -002495b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -002495c0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ -002495d0: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ -002495e0: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ -002495f0: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ -00249600: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ -00249610: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -00249620: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -00249630: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ -00249640: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ -00249650: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -00249660: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -00249670: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -00249680: 6162 6c65 2044 4843 5020 5365 7276 6963 able DHCP Servic │ │ │ -00249690: 6520 2d20 456e 7375 7265 2064 6863 7064 e - Ensure dhcpd │ │ │ -002496a0: 2e73 6572 7669 6365 2069 7320 4d61 736b .service is Mask │ │ │ -002496b0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62 ed. ansible.b │ │ │ -002496c0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -002496d0: 2020 2020 2020 6e61 6d65 3a20 6468 6370 name: dhcp │ │ │ -002496e0: 642e 7365 7276 6963 650a 2020 2020 2020 d.service. │ │ │ -002496f0: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -00249700: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ -00249710: 6c73 650a 2020 2020 2020 6d61 736b 6564 lse. masked │ │ │ -00249720: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -00249730: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ -00249740: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -00249750: 7365 6172 6368 2822 6468 6370 642e 7365 search("dhcpd.se │ │ │ -00249760: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ -00249770: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ -00249780: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ -00249790: 7869 7374 7320 2d20 6468 6370 642e 736f xists - dhcpd.so │ │ │ -002497a0: 636b 6574 0a20 2020 2061 6e73 6962 6c65 cket. ansible │ │ │ -002497b0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ -002497c0: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ -002497d0: 6973 742d 756e 6974 2d66 696c 6573 2064 ist-unit-files d │ │ │ -002497e0: 6863 7064 2e73 6f63 6b65 740a 2020 2020 hcpd.socket. │ │ │ -002497f0: 7265 6769 7374 6572 3a20 736f 636b 6574 register: socket │ │ │ -00249800: 5f66 696c 655f 6578 6973 7473 0a20 2020 _file_exists. │ │ │ -00249810: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ -00249820: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ -00249830: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ -00249840: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ -00249850: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ -00249860: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ -00249870: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -00249880: 6c65 2044 4843 5020 5365 7276 6963 6520 le DHCP Service │ │ │ -00249890: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ -002498a0: 2064 6863 7064 0a20 2020 2061 6e73 6962 dhcpd. ansib │ │ │ -002498b0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -002498c0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -002498d0: 6468 6370 642e 736f 636b 6574 0a20 2020 dhcpd.socket. │ │ │ -002498e0: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ -002498f0: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ -00249900: 746f 7070 6564 0a20 2020 2020 206d 6173 topped. mas │ │ │ -00249910: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ -00249920: 656e 3a20 736f 636b 6574 5f66 696c 655f en: socket_file_ │ │ │ -00249930: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ -00249940: 6e65 7320 6973 2073 6561 7263 6828 2264 nes is search("d │ │ │ -00249950: 6863 7064 2e73 6f63 6b65 7422 2c20 6d75 hcpd.socket", mu │ │ │ -00249960: 6c74 696c 696e 653d 5472 7565 290a 2020 ltiline=True). │ │ │ -00249970: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00249980: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00249990: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -002499a0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -002499b0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -002499c0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -002499d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -002499e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002499f0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -00249a00: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -00249a10: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00249a20: 640a 2020 2d20 7365 7276 6963 655f 6468 d. - service_dh │ │ │ -00249a30: 6370 645f 6469 7361 626c 6564 0a20 202d cpd_disabled. - │ │ │ -00249a40: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -00249a50: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ -00249a60: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -00249a70: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -00249a80: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +00248be0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +00248bf0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00248c80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00248ca0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00248cb0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00248cc0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00248cd0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00248cf0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00248d20: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00248d30: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00248d40: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00248d50: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00248d60: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00248d70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00248d80: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00248d90: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00248da0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00248db0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00248dc0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00248dd0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00248de0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00248df0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00248e00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00248e10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00248e20: 2073 6572 7669 6365 5f64 6863 7064 5f64   service_dhcpd_d
│ │ │ +00248e30: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ +00248e40: 2044 6973 6162 6c65 2044 4843 5020 5365   Disable DHCP Se
│ │ │ +00248e50: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +00248e60: 7365 7276 6963 6520 6468 6370 640a 2020  service dhcpd.  
│ │ │ +00248e70: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00248e80: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ +00248e90: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +00248ea0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00248eb0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00248ec0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00248ed0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00248ee0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00248ef0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00248f00: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00248f10: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00248f20: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00248f30: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00248f40: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00248f50: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00248f60: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00248f70: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00248f80: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00248f90: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00248fa0: 4448 4350 2053 6572 7669 6365 202d 2045  DHCP Service - E
│ │ │ +00248fb0: 6e73 7572 6520 6468 6370 642e 7365 7276  nsure dhcpd.serv
│ │ │ +00248fc0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +00248fd0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00248fe0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00248ff0: 206e 616d 653a 2064 6863 7064 2e73 6572   name: dhcpd.ser
│ │ │ +00249000: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +00249010: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00249020: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00249030: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00249040: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +00249050: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +00249060: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +00249070: 6828 2264 6863 7064 2e73 6572 7669 6365  h("dhcpd.service
│ │ │ +00249080: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00249090: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +002490a0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +002490b0: 202d 2064 6863 7064 2e73 6f63 6b65 740a   - dhcpd.socket.
│ │ │ +002490c0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002490d0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002490e0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002490f0: 6e69 742d 6669 6c65 7320 6468 6370 642e  nit-files dhcpd.
│ │ │ +00249100: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +00249110: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +00249120: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00249130: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00249140: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00249150: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00249160: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +00249170: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +00249180: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +00249190: 6e61 6d65 3a20 4469 7361 626c 6520 4448  name: Disable DH
│ │ │ +002491a0: 4350 2053 6572 7669 6365 202d 2044 6973  CP Service - Dis
│ │ │ +002491b0: 6162 6c65 2053 6f63 6b65 7420 6468 6370  able Socket dhcp
│ │ │ +002491c0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +002491d0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +002491e0: 2020 2020 206e 616d 653a 2064 6863 7064       name: dhcpd
│ │ │ +002491f0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +00249200: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00249210: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00249220: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00249230: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +00249240: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00249250: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00249260: 7320 7365 6172 6368 2822 6468 6370 642e  s search("dhcpd.
│ │ │ +00249270: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +00249280: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +00249290: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002492a0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002492b0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002492c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002492d0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +002492e0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002492f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00249300: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00249310: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00249320: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00249330: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00249340: 2073 6572 7669 6365 5f64 6863 7064 5f64   service_dhcpd_d
│ │ │ +00249350: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +00249360: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +00249370: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +00249380: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00249390: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002493a0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002493b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ +00249460: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +00249470: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +002494f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00249500: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00249520: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00249530: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +00249540: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +00249550: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +00249560: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00249580: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00249590: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +002495b0: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +002495c0: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +002495d0: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +002495e0: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +002495f0: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +00249600: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +00249610: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +00249620: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +00249630: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +00249640: 2d20 6e61 6d65 3a20 6468 6370 642e 7365 - name: dhcpd.se │ │ │ +00249650: 7276 6963 650a 2020 2020 2020 2020 656e rvice. en │ │ │ +00249660: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +00249670: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ +00249680: 2020 2020 2020 2d20 6e61 6d65 3a20 6468 - name: dh │ │ │ +00249690: 6370 642e 736f 636b 6574 0a20 2020 2020 cpd.socket. │ │ │ +002496a0: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +002496b0: 650a 2020 2020 2020 2020 6d61 736b 3a20 e. mask: │ │ │ +002496c0: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072 true.
Remediation │ │ │ +00249780: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00249790: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00249820: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00249840: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00249860: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00249890: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002498a0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +002498b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +002498d0: 6c65 5f64 6863 7064 0a0a 636c 6173 7320  le_dhcpd..class 
│ │ │ +002498e0: 6469 7361 626c 655f 6468 6370 6420 7b0a  disable_dhcpd {.
│ │ │ +002498f0: 2020 7365 7276 6963 6520 7b27 6468 6370    service {'dhcp
│ │ │ +00249900: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +00249910: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00249920: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00249930: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +002499f0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00249a00: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00249a10: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00249a20: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00249a30: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00249a40: 7365 2220 6964 3d22 6964 3838 3722 3e3c se" id="id887">< │ │ │ +00249a50: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00249a60: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00249a70: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +00249a80: 6468 6370 6422 5d0a 3c2f 636f 6465 3e3c dhcpd"].< │ │ │ 00249a90: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediation │ │ │ -0024b620: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0024b630: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0024b6c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0024b6e0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0024b700: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0024b730: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0024b740: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0024b770: 6f76 655f 6269 6e64 390a 0a63 6c61 7373  ove_bind9..class
│ │ │ -0024b780: 2072 656d 6f76 655f 6269 6e64 3920 7b0a   remove_bind9 {.
│ │ │ -0024b790: 2020 7061 636b 6167 6520 7b20 2762 696e    package { 'bin
│ │ │ -0024b7a0: 6439 273a 0a20 2020 2065 6e73 7572 6520  d9':.    ensure 
│ │ │ -0024b7b0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0024b7c0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0024b880: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0024b890: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0024b910: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0024b920: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0024b940: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0024b950: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0024b970: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0024b990: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0024b9c0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -0024b9d0: 6e69 6e73 7461 6c6c 2062 696e 6420 5061  ninstall bind Pa
│ │ │ -0024b9e0: 636b 6167 653a 2045 6e73 7572 6520 6269  ckage: Ensure bi
│ │ │ -0024b9f0: 6e64 3920 6973 2072 656d 6f76 6564 270a  nd9 is removed'.
│ │ │ -0024ba00: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0024ba10: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0024ba20: 616d 653a 2062 696e 6439 0a20 2020 2073  ame: bind9.    s
│ │ │ -0024ba30: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0024ba40: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0024ba50: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0024ba60: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0024ba70: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0024ba80: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0024ba90: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0024baa0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0024bab0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0024bac0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -0024bad0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0024bae0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0024baf0: 2d20 7061 636b 6167 655f 6269 6e64 5f72  - package_bind_r
│ │ │ -0024bb00: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Complexity │ │ │ +0024b6c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024b6e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024b6f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024b700: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024b710: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024b730: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024b760: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0024b770: 696e 7374 616c 6c20 6269 6e64 2050 6163  install bind Pac
│ │ │ +0024b780: 6b61 6765 3a20 456e 7375 7265 2062 696e  kage: Ensure bin
│ │ │ +0024b790: 6439 2069 7320 7265 6d6f 7665 6427 0a20  d9 is removed'. 
│ │ │ +0024b7a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0024b7b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0024b7c0: 6d65 3a20 6269 6e64 390a 2020 2020 7374  me: bind9.    st
│ │ │ +0024b7d0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +0024b7e0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0024b7f0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0024b800: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0024b810: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0024b820: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +0024b830: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0024b840: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0024b850: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0024b860: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +0024b870: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0024b880: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0024b890: 2070 6163 6b61 6765 5f62 696e 645f 7265   package_bind_re
│ │ │ +0024b8a0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +0024b960: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0024b970: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0024ba00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024ba20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024ba30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024ba40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024ba50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024ba70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024baa0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0024bab0: 6d6f 7665 5f62 696e 6439 0a0a 636c 6173  move_bind9..clas
│ │ │ +0024bac0: 7320 7265 6d6f 7665 5f62 696e 6439 207b  s remove_bind9 {
│ │ │ +0024bad0: 0a20 2070 6163 6b61 6765 207b 2027 6269  .  package { 'bi
│ │ │ +0024bae0: 6e64 3927 3a0a 2020 2020 656e 7375 7265  nd9':.    ensure
│ │ │ +0024baf0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +0024bb00: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remedi │ │ │ -0024c970: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0024c980: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0024c990: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0024c9c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0024ca30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0024ca50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0024ca80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0024ca10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0024ca20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0024ca60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0024ca70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -0024cac0: 6520 7265 6d6f 7665 5f64 6e73 6d61 7371 e remove_dnsmasq │ │ │ -0024cad0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f64 ..class remove_d │ │ │ -0024cae0: 6e73 6d61 7371 207b 0a20 2070 6163 6b61 nsmasq {. packa │ │ │ -0024caf0: 6765 207b 2027 646e 736d 6173 7127 3a0a ge { 'dnsmasq':. │ │ │ -0024cb00: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ -0024cb10: 2027 7075 7267 6564 272c 0a20 207d 0a7d 'purged',. }.} │ │ │ -0024cb20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

Remediation Ans │ │ │ -0024cbe0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0024cbf0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0024ccc0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0024ccd0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -0024cd30: 616c 6c20 646e 736d 6173 7120 5061 636b  all dnsmasq Pack
│ │ │ -0024cd40: 6167 653a 2045 6e73 7572 6520 646e 736d  age: Ensure dnsm
│ │ │ -0024cd50: 6173 7120 6973 2072 656d 6f76 6564 270a  asq is removed'.
│ │ │ -0024cd60: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0024cd70: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0024cd80: 616d 653a 2064 6e73 6d61 7371 0a20 2020  ame: dnsmasq.   
│ │ │ -0024cd90: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0024cda0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -0024cdb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0024cdc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0024cdd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0024cde0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -0024cdf0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0024ce00: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0024ce10: 6167 655f 646e 736d 6173 715f 7265 6d6f  age_dnsmasq_remo
│ │ │ -0024ce20: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

low
Disru │ │ │ -0024cca0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0024ccb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0024ccf0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0024cd00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0024ca30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0024ca50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0024ca80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0024ca10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0024ca20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0024ca40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0024ca60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0024ca70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0024cab0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0024cac0: 3a20 2755 6e69 6e73 7461 6c6c 2064 6e73 : 'Uninstall dns │ │ │ +0024cad0: 6d61 7371 2050 6163 6b61 6765 3a20 456e masq Package: En │ │ │ +0024cae0: 7375 7265 2064 6e73 6d61 7371 2069 7320 sure dnsmasq is │ │ │ +0024caf0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ +0024cb00: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +0024cb10: 6765 3a0a 2020 2020 6e61 6d65 3a20 646e ge:. name: dn │ │ │ +0024cb20: 736d 6173 710a 2020 2020 7374 6174 653a smasq. state: │ │ │ +0024cb30: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ +0024cb40: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +0024cb50: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +0024cb60: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +0024cb70: 6469 7372 7570 7469 6f6e 0a20 202d 206c disruption. - l │ │ │ +0024cb80: 6f77 5f73 6576 6572 6974 790a 2020 2d20 ow_severity. - │ │ │ +0024cb90: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0024cba0: 0a20 202d 2070 6163 6b61 6765 5f64 6e73 . - package_dns │ │ │ +0024cbb0: 6d61 7371 5f72 656d 6f76 6564 0a3c 2f63 masq_removed.
Remedia │ │ │ -0024e0a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0024e0b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024e0c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024e0d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024e0e0: 7365 2220 6964 3d22 6964 3930 3022 3e3c se" id="id900">< │ │ │ -0024e0f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024e100: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024e110: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024e120: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024e130: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024e140: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024e150: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024e190: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024e1a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024e1c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0024e1d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0024e1f0: 6973 6162 6c65 5f64 6e73 6d61 7371 0a0a  isable_dnsmasq..
│ │ │ -0024e200: 636c 6173 7320 6469 7361 626c 655f 646e  class disable_dn
│ │ │ -0024e210: 736d 6173 7120 7b0a 2020 7365 7276 6963  smasq {.  servic
│ │ │ -0024e220: 6520 7b27 646e 736d 6173 7127 3a0a 2020  e {'dnsmasq':.  
│ │ │ -0024e230: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -0024e240: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -0024e250: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -0024e260: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0024e270: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0024e320: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0024e330: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024e340: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024e350: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024e360: 7365 2220 6964 3d22 6964 3930 3122 3e3c se" id="id901">< │ │ │ -0024e370: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024e380: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024e390: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024e3a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024e3b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024e3c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024e3d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024e410: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024e420: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024e440: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0024e450: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0024e470: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0024e480: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0024e490: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0024e4a0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0024e4b0: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -0024e4c0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -0024e4d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0024e4e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0024e4f0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -0024e500: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -0024e510: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -0024e520: 6963 655f 646e 736d 6173 715f 6469 7361 ice_dnsmasq_disa │ │ │ -0024e530: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469 bled..- name: Di │ │ │ -0024e540: 7361 626c 6520 646e 736d 6173 7120 5365 sable dnsmasq Se │ │ │ -0024e550: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -0024e560: 7365 7276 6963 6520 646e 736d 6173 710a service dnsmasq. │ │ │ -0024e570: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ -0024e580: 6d65 3a20 4469 7361 626c 6520 646e 736d me: Disable dnsm │ │ │ -0024e590: 6173 7120 5365 7276 6963 6520 2d20 436f asq Service - Co │ │ │ -0024e5a0: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ -0024e5b0: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ -0024e5c0: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ -0024e5d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -0024e5e0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ -0024e5f0: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ -0024e600: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ -0024e610: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ -0024e620: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ -0024e630: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -0024e640: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -0024e650: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ -0024e660: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ -0024e670: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -0024e680: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -0024e690: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -0024e6a0: 6162 6c65 2064 6e73 6d61 7371 2053 6572 able dnsmasq Ser │ │ │ -0024e6b0: 7669 6365 202d 2045 6e73 7572 6520 646e vice - Ensure dn │ │ │ -0024e6c0: 736d 6173 712e 7365 7276 6963 6520 6973 smasq.service is │ │ │ -0024e6d0: 204d 6173 6b65 640a 2020 2020 616e 7369 Masked. ansi │ │ │ -0024e6e0: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ -0024e6f0: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ -0024e700: 2064 6e73 6d61 7371 2e73 6572 7669 6365 dnsmasq.service │ │ │ -0024e710: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -0024e720: 6f70 7065 640a 2020 2020 2020 656e 6162 opped. enab │ │ │ -0024e730: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -0024e740: 206d 6173 6b65 643a 2074 7275 650a 2020 masked: true. │ │ │ -0024e750: 2020 7768 656e 3a20 7365 7276 6963 655f when: service_ │ │ │ -0024e760: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ -0024e770: 6e65 7320 6973 2073 6561 7263 6828 2264 nes is search("d │ │ │ -0024e780: 6e73 6d61 7371 2e73 6572 7669 6365 222c nsmasq.service", │ │ │ -0024e790: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ -0024e7a0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974 .. - name: Unit │ │ │ -0024e7b0: 2053 6f63 6b65 7420 4578 6973 7473 202d Socket Exists - │ │ │ -0024e7c0: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a dnsmasq.socket. │ │ │ -0024e7d0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -0024e7e0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -0024e7f0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -0024e800: 6e69 742d 6669 6c65 7320 646e 736d 6173 nit-files dnsmas │ │ │ -0024e810: 712e 736f 636b 6574 0a20 2020 2072 6567 q.socket. reg │ │ │ -0024e820: 6973 7465 723a 2073 6f63 6b65 745f 6669 ister: socket_fi │ │ │ -0024e830: 6c65 5f65 7869 7374 730a 2020 2020 6368 le_exists. ch │ │ │ -0024e840: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ -0024e850: 650a 2020 2020 6661 696c 6564 5f77 6865 e. failed_whe │ │ │ -0024e860: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -0024e870: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ -0024e880: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ -0024e890: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ -0024e8a0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ -0024e8b0: 646e 736d 6173 7120 5365 7276 6963 6520 dnsmasq Service │ │ │ -0024e8c0: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ -0024e8d0: 2064 6e73 6d61 7371 0a20 2020 2061 6e73 dnsmasq. ans │ │ │ -0024e8e0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -0024e8f0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -0024e900: 3a20 646e 736d 6173 712e 736f 636b 6574 : dnsmasq.socket │ │ │ -0024e910: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -0024e920: 6661 6c73 650a 2020 2020 2020 7374 6174 false. stat │ │ │ -0024e930: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ -0024e940: 206d 6173 6b65 643a 2074 7275 650a 2020 masked: true. │ │ │ -0024e950: 2020 7768 656e 3a20 736f 636b 6574 5f66 when: socket_f │ │ │ -0024e960: 696c 655f 6578 6973 7473 2e73 7464 6f75 ile_exists.stdou │ │ │ -0024e970: 745f 6c69 6e65 7320 6973 2073 6561 7263 t_lines is searc │ │ │ -0024e980: 6828 2264 6e73 6d61 7371 2e73 6f63 6b65 h("dnsmasq.socke │ │ │ -0024e990: 7422 2c20 6d75 6c74 696c 696e 653d 5472 t", multiline=Tr │ │ │ -0024e9a0: 7565 290a 2020 7461 6773 3a0a 2020 2d20 ue). tags:. - │ │ │ -0024e9b0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -0024e9c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0024e9d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0024e9e0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -0024e9f0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -0024ea00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0024ea10: 2020 2d20 7365 7276 6963 655f 646e 736d - service_dnsm │ │ │ -0024ea20: 6173 715f 6469 7361 626c 6564 0a20 202d asq_disabled. - │ │ │ -0024ea30: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -0024ea40: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ -0024ea50: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -0024ea60: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0024ea70: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +0024dc30: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +0024dc40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0024dcc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0024dcd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0024dce0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0024dd20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0024dd30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0024dd50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0024dd60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0024dd80: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0024dd90: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0024dda0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0024ddb0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0024ddc0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0024ddd0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0024dde0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0024ddf0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0024de00: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0024de10: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0024de20: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0024de30: 6365 5f64 6e73 6d61 7371 5f64 6973 6162  ce_dnsmasq_disab
│ │ │ +0024de40: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +0024de50: 6162 6c65 2064 6e73 6d61 7371 2053 6572  able dnsmasq Ser
│ │ │ +0024de60: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +0024de70: 6572 7669 6365 2064 6e73 6d61 7371 0a20  ervice dnsmasq. 
│ │ │ +0024de80: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +0024de90: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ +0024dea0: 7371 2053 6572 7669 6365 202d 2043 6f6c  sq Service - Col
│ │ │ +0024deb0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +0024dec0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +0024ded0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0024dee0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0024def0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0024df00: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0024df10: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0024df20: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0024df30: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0024df40: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0024df50: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0024df60: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0024df70: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0024df80: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0024df90: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0024dfa0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0024dfb0: 626c 6520 646e 736d 6173 7120 5365 7276  ble dnsmasq Serv
│ │ │ +0024dfc0: 6963 6520 2d20 456e 7375 7265 2064 6e73  ice - Ensure dns
│ │ │ +0024dfd0: 6d61 7371 2e73 6572 7669 6365 2069 7320  masq.service is 
│ │ │ +0024dfe0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +0024dff0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0024e000: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0024e010: 646e 736d 6173 712e 7365 7276 6963 650a  dnsmasq.service.
│ │ │ +0024e020: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0024e030: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +0024e040: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0024e050: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0024e060: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +0024e070: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0024e080: 6573 2069 7320 7365 6172 6368 2822 646e  es is search("dn
│ │ │ +0024e090: 736d 6173 712e 7365 7276 6963 6522 2c20  smasq.service", 
│ │ │ +0024e0a0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0024e0b0: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0024e0c0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0024e0d0: 646e 736d 6173 712e 736f 636b 6574 0a20  dnsmasq.socket. 
│ │ │ +0024e0e0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0024e0f0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0024e100: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0024e110: 6974 2d66 696c 6573 2064 6e73 6d61 7371  it-files dnsmasq
│ │ │ +0024e120: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0024e130: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0024e140: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0024e150: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0024e160: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0024e170: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0024e180: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0024e190: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0024e1a0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0024e1b0: 206e 616d 653a 2044 6973 6162 6c65 2064   name: Disable d
│ │ │ +0024e1c0: 6e73 6d61 7371 2053 6572 7669 6365 202d  nsmasq Service -
│ │ │ +0024e1d0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +0024e1e0: 646e 736d 6173 710a 2020 2020 616e 7369  dnsmasq.    ansi
│ │ │ +0024e1f0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0024e200: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0024e210: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a   dnsmasq.socket.
│ │ │ +0024e220: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0024e230: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +0024e240: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +0024e250: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0024e260: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +0024e270: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +0024e280: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +0024e290: 2822 646e 736d 6173 712e 736f 636b 6574  ("dnsmasq.socket
│ │ │ +0024e2a0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +0024e2b0: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ +0024e2c0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0024e2d0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0024e2e0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0024e2f0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0024e300: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0024e310: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0024e320: 202d 2073 6572 7669 6365 5f64 6e73 6d61   - service_dnsma
│ │ │ +0024e330: 7371 5f64 6973 6162 6c65 640a 2020 2d20  sq_disabled.  - 
│ │ │ +0024e340: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +0024e350: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +0024e360: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0024e370: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0024e380: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediati │ │ │ +0024e440: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ +0024e450: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0024e500: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ +0024e4e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0024e4f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0024e510: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ +0024e530: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0024e540: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ +0024e560: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0024e570: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ +0024e590: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ +0024e5a0: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ +0024e5b0: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ +0024e5c0: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ +0024e5d0: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ +0024e5e0: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ +0024e5f0: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ +0024e600: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ +0024e610: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ +0024e620: 2020 2020 2d20 6e61 6d65 3a20 646e 736d      - name: dnsm
│ │ │ +0024e630: 6173 712e 7365 7276 6963 650a 2020 2020  asq.service.    
│ │ │ +0024e640: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0024e650: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0024e660: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +0024e670: 6d65 3a20 646e 736d 6173 712e 736f 636b  me: dnsmasq.sock
│ │ │ +0024e680: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ +0024e690: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0024e6a0: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ +0024e6c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0024e760: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0024e770: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0024e780: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0024e800: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0024e830: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0024e850: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0024e860: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0024e880: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0024e8a0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0024e8b0: 6465 2064 6973 6162 6c65 5f64 6e73 6d61  de disable_dnsma
│ │ │ +0024e8c0: 7371 0a0a 636c 6173 7320 6469 7361 626c  sq..class disabl
│ │ │ +0024e8d0: 655f 646e 736d 6173 7120 7b0a 2020 7365  e_dnsmasq {.  se
│ │ │ +0024e8e0: 7276 6963 6520 7b27 646e 736d 6173 7127  rvice {'dnsmasq'
│ │ │ +0024e8f0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +0024e900: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +0024e910: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +0024e920: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +0024e940: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0024e950: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0024e960: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0024e970: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0024e980: 6439 3031 2220 7461 6269 6e64 6578 3d22 d901" tabindex=" │ │ │ +0024e990: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0024e9a0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0024e9b0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0024e9c0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0024e9d0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0024e9e0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0024e9f0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0024ea00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +0024ea50: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0024ea60: 735d 0a6d 6173 6b65 6420 3d20 5b22 646e s].masked = ["dn │ │ │ +0024ea70: 736d 6173 7122 5d0a 3c2f 636f 6465 3e3c smasq"].< │ │ │ 0024ea80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -00250720: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00250730: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -002507b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002507c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002507d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00250810: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00250820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00250840: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00250850: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00250870: 7265 6d6f 7665 5f76 7366 7470 640a 0a63  remove_vsftpd..c
│ │ │ -00250880: 6c61 7373 2072 656d 6f76 655f 7673 6674  lass remove_vsft
│ │ │ -00250890: 7064 207b 0a20 2070 6163 6b61 6765 207b  pd {.  package {
│ │ │ -002508a0: 2027 7673 6674 7064 273a 0a20 2020 2065   'vsftpd':.    e
│ │ │ -002508b0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -002508c0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -002508e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002508f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00250900: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00250910: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00250920: 6439 3035 2220 7461 6269 6e64 6578 3d22 d905" tabindex=" │ │ │ -00250930: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00250940: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00250950: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00250960: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00250970: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00250980: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00250990: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002509a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00250a20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00250a50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00250a70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00250a80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00250aa0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00250ab0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00250ad0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2076  me: 'Uninstall v
│ │ │ -00250ae0: 7366 7470 6420 5061 636b 6167 653a 2045  sftpd Package: E
│ │ │ -00250af0: 6e73 7572 6520 7673 6674 7064 2069 7320  nsure vsftpd is 
│ │ │ -00250b00: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00250b10: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00250b20: 6765 3a0a 2020 2020 6e61 6d65 3a20 7673  ge:.    name: vs
│ │ │ -00250b30: 6674 7064 0a20 2020 2073 7461 7465 3a20  ftpd.    state: 
│ │ │ -00250b40: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -00250b50: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00250b60: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00250b70: 3830 302d 3533 2d43 4d2d 370a 2020 2d20  800-53-CM-7.  - 
│ │ │ -00250b80: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00250b90: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00250ba0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00250bb0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00250bc0: 2e31 2869 6929 0a20 202d 204e 4953 542d  .1(ii).  - NIST-
│ │ │ -00250bd0: 3830 302d 3533 2d49 412d 3528 3129 2863  800-53-IA-5(1)(c
│ │ │ -00250be0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00250bf0: 332d 4941 2d35 2831 292e 3128 7629 0a20  3-IA-5(1).1(v). 
│ │ │ -00250c00: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00250c10: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -00250c20: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -00250c30: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00250c40: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00250c50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00250c60: 0a20 202d 2070 6163 6b61 6765 5f76 7366  .  - package_vsf
│ │ │ -00250c70: 7470 645f 7265 6d6f 7665 640a 3c2f 636f  tpd_removed.
< │ │ │ +00250740: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00250750: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00250760: 7365 2220 6964 3d22 6964 3930 3422 3e3c se" id="id904">< │ │ │ +00250770: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00250780: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00250790: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002507a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002507b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002507c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002507d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00250810: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00250820: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00250840: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00250850: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00250870: 2755 6e69 6e73 7461 6c6c 2076 7366 7470 'Uninstall vsftp │ │ │ +00250880: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ +00250890: 6520 7673 6674 7064 2069 7320 7265 6d6f e vsftpd is remo │ │ │ +002508a0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ +002508b0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +002508c0: 2020 2020 6e61 6d65 3a20 7673 6674 7064 name: vsftpd │ │ │ +002508d0: 0a20 2020 2073 7461 7465 3a20 6162 7365 . state: abse │ │ │ +002508e0: 6e74 0a20 2074 6167 733a 0a20 202d 204e nt. tags:. - N │ │ │ +002508f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ +00250900: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +00250910: 3533 2d43 4d2d 370a 2020 2d20 4e49 5354 53-CM-7. - NIST │ │ │ +00250920: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ +00250930: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00250940: 434d 2d37 2862 290a 2020 2d20 4e49 5354 CM-7(b). - NIST │ │ │ +00250950: 2d38 3030 2d35 332d 434d 2d37 2e31 2869 -800-53-CM-7.1(i │ │ │ +00250960: 6929 0a20 202d 204e 4953 542d 3830 302d i). - NIST-800- │ │ │ +00250970: 3533 2d49 412d 3528 3129 2863 290a 2020 53-IA-5(1)(c). │ │ │ +00250980: 2d20 4e49 5354 2d38 3030 2d35 332d 4941 - NIST-800-53-IA │ │ │ +00250990: 2d35 2831 292e 3128 7629 0a20 202d 2064 -5(1).1(v). - d │ │ │ +002509a0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +002509b0: 2020 2d20 6869 6768 5f73 6576 6572 6974 - high_severit │ │ │ +002509c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +002509d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +002509e0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ +002509f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00250a00: 2070 6163 6b61 6765 5f76 7366 7470 645f package_vsftpd_ │ │ │ +00250a10: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +00250a20: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00250ad0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00250ae0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00250b60: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00250b70: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00250b80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00250bc0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00250bd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00250bf0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00250c00: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00250c20: 7265 6d6f 7665 5f76 7366 7470 640a 0a63  remove_vsftpd..c
│ │ │ +00250c30: 6c61 7373 2072 656d 6f76 655f 7673 6674  lass remove_vsft
│ │ │ +00250c40: 7064 207b 0a20 2070 6163 6b61 6765 207b  pd {.  package {
│ │ │ +00250c50: 2027 7673 6674 7064 273a 0a20 2020 2065   'vsftpd':.    e
│ │ │ +00250c60: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00250c70: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00250c90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00250ca0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00250cb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00250cc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00250cd0: 6439 3036 2220 7461 6269 6e64 6578 3d22 d906" tabindex=" │ │ │ 00250ce0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -152059,251 +152059,251 @@ │ │ │ 00251fa0: 2d74 6172 6765 743d 2223 6964 3930 3822 -target="#id908" │ │ │ 00251fb0: 2074 6162 696e 6465 783d 2230 2220 726f tabindex="0" ro │ │ │ 00251fc0: 6c65 3d22 6275 7474 6f6e 2220 6172 6961 le="button" aria │ │ │ 00251fd0: 2d65 7870 616e 6465 643d 2266 616c 7365 -expanded="false │ │ │ 00251fe0: 2220 7469 746c 653d 2241 6374 6976 6174 " title="Activat │ │ │ 00251ff0: 6520 746f 2072 6576 6561 6c22 2068 7265 e to reveal" hre │ │ │ 00252000: 663d 2223 2122 3e52 656d 6564 6961 7469 f="#!">Remediati │ │ │ -00252010: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00252020: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00252030: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -00252080: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -00252090: 736b 6564 203d 205b 2276 7366 7470 6422  sked = ["vsftpd"
│ │ │ -002520a0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -002520b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ku │ │ │ -00252160: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -00252170: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00252200: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00252220: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00252230: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -00252250: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -00252260: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00252280: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00252290: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -002522b0: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -002522c0: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -002522d0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -002522e0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -002522f0: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -00252300: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -00252310: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -00252320: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -00252330: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -00252340: 206e 616d 653a 2076 7366 7470 642e 7365   name: vsftpd.se
│ │ │ -00252350: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -00252360: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00252370: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -00252380: 2020 2020 2020 2d20 6e61 6d65 3a20 7673        - name: vs
│ │ │ -00252390: 6674 7064 2e73 6f63 6b65 740a 2020 2020  ftpd.socket.    
│ │ │ -002523a0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002523b0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -002523c0: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ -00252480: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00252490: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00252520: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00252540: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00252550: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00252560: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00252570: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00252590: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -002525d0: 626c 655f 7673 6674 7064 0a0a 636c 6173  ble_vsftpd..clas
│ │ │ -002525e0: 7320 6469 7361 626c 655f 7673 6674 7064  s disable_vsftpd
│ │ │ -002525f0: 207b 0a20 2073 6572 7669 6365 207b 2776   {.  service {'v
│ │ │ -00252600: 7366 7470 6427 3a0a 2020 2020 656e 6162  sftpd':.    enab
│ │ │ -00252610: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -00252620: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00252630: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -00252640: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00252650: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00252700: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00252710: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00252790: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002527b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00252800: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00252830: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00252850: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00252860: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00252870: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00252880: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00252890: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002528a0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002528b0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002528c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002528d0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -002528e0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002528f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00252900: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00252910: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00252920: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00252930: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00252940: 7276 6963 655f 7673 6674 7064 5f64 6973  rvice_vsftpd_dis
│ │ │ -00252950: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -00252960: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ -00252970: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -00252980: 7365 7276 6963 6520 7673 6674 7064 0a20  service vsftpd. 
│ │ │ -00252990: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -002529a0: 653a 2044 6973 6162 6c65 2076 7366 7470  e: Disable vsftp
│ │ │ -002529b0: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ -002529c0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -002529d0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -002529e0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -002529f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00252a00: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00252a10: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00252a20: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -00252a30: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -00252a40: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00252a50: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -00252a60: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00252a70: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -00252a80: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00252a90: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00252aa0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00252ab0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00252ac0: 6c65 2076 7366 7470 6420 5365 7276 6963  le vsftpd Servic
│ │ │ -00252ad0: 6520 2d20 456e 7375 7265 2076 7366 7470  e - Ensure vsftp
│ │ │ -00252ae0: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -00252af0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -00252b00: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00252b10: 0a20 2020 2020 206e 616d 653a 2076 7366  .      name: vsf
│ │ │ -00252b20: 7470 642e 7365 7276 6963 650a 2020 2020  tpd.service.    
│ │ │ -00252b30: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00252b40: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00252b50: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -00252b60: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -00252b70: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -00252b80: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -00252b90: 7320 7365 6172 6368 2822 7673 6674 7064  s search("vsftpd
│ │ │ -00252ba0: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -00252bb0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -00252bc0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -00252bd0: 7420 4578 6973 7473 202d 2076 7366 7470  t Exists - vsftp
│ │ │ -00252be0: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -00252bf0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00252c00: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00252c10: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00252c20: 6573 2076 7366 7470 642e 736f 636b 6574  es vsftpd.socket
│ │ │ -00252c30: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -00252c40: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00252c50: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00252c60: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00252c70: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -00252c80: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -00252c90: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00252ca0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00252cb0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00252cc0: 4469 7361 626c 6520 7673 6674 7064 2053  Disable vsftpd S
│ │ │ -00252cd0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -00252ce0: 2053 6f63 6b65 7420 7673 6674 7064 0a20   Socket vsftpd. 
│ │ │ -00252cf0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00252d00: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -00252d10: 2020 6e61 6d65 3a20 7673 6674 7064 2e73    name: vsftpd.s
│ │ │ -00252d20: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -00252d30: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00252d40: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -00252d50: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00252d60: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -00252d70: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00252d80: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00252d90: 7365 6172 6368 2822 7673 6674 7064 2e73  search("vsftpd.s
│ │ │ -00252da0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00252db0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00252dc0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00252dd0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -00252de0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -00252df0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00252e00: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -00252e10: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00252e20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00252e30: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00252e40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00252e50: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00252e60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00252e70: 7365 7276 6963 655f 7673 6674 7064 5f64  service_vsftpd_d
│ │ │ -00252e80: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -00252e90: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -00252ea0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -00252eb0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00252ec0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00252ed0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00252010: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +00252020: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +002520a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ +00252130: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00252140: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -002527c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002527d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00252810: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00252820: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +002520b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002520c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00252100: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00252110: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +00252160: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00252170: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00252180: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00252190: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +002521a0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +002521b0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +002521c0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002521d0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002521e0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +002521f0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00252200: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00252210: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00252220: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00252230: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00252240: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00252250: 202d 2073 6572 7669 6365 5f76 7366 7470   - service_vsftp
│ │ │ +00252260: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ +00252270: 6d65 3a20 4469 7361 626c 6520 7673 6674  me: Disable vsft
│ │ │ +00252280: 7064 2053 6572 7669 6365 202d 2044 6973  pd Service - Dis
│ │ │ +00252290: 6162 6c65 2073 6572 7669 6365 2076 7366  able service vsf
│ │ │ +002522a0: 7470 640a 2020 626c 6f63 6b3a 0a0a 2020  tpd.  block:..  
│ │ │ +002522b0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002522c0: 7673 6674 7064 2053 6572 7669 6365 202d  vsftpd Service -
│ │ │ +002522d0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +002522e0: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +002522f0: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +00252300: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00252310: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00252320: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00252330: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +00252340: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +00252350: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +00252360: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +00252370: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +00252380: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +00252390: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +002523a0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002523b0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002523c0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002523d0: 4469 7361 626c 6520 7673 6674 7064 2053  Disable vsftpd S
│ │ │ +002523e0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +002523f0: 7673 6674 7064 2e73 6572 7669 6365 2069  vsftpd.service i
│ │ │ +00252400: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +00252410: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00252420: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00252430: 3a20 7673 6674 7064 2e73 6572 7669 6365  : vsftpd.service
│ │ │ +00252440: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00252450: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +00252460: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00252470: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00252480: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +00252490: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +002524a0: 6e65 7320 6973 2073 6561 7263 6828 2276  nes is search("v
│ │ │ +002524b0: 7366 7470 642e 7365 7276 6963 6522 2c20  sftpd.service", 
│ │ │ +002524c0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +002524d0: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +002524e0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +002524f0: 7673 6674 7064 2e73 6f63 6b65 740a 2020  vsftpd.socket.  
│ │ │ +00252500: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00252510: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00252520: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00252530: 742d 6669 6c65 7320 7673 6674 7064 2e73  t-files vsftpd.s
│ │ │ +00252540: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +00252550: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +00252560: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00252570: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00252580: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00252590: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002525a0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002525b0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002525c0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002525d0: 616d 653a 2044 6973 6162 6c65 2076 7366  ame: Disable vsf
│ │ │ +002525e0: 7470 6420 5365 7276 6963 6520 2d20 4469  tpd Service - Di
│ │ │ +002525f0: 7361 626c 6520 536f 636b 6574 2076 7366  sable Socket vsf
│ │ │ +00252600: 7470 640a 2020 2020 616e 7369 626c 652e  tpd.    ansible.
│ │ │ +00252610: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00252620: 0a20 2020 2020 206e 616d 653a 2076 7366  .      name: vsf
│ │ │ +00252630: 7470 642e 736f 636b 6574 0a20 2020 2020  tpd.socket.     
│ │ │ +00252640: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00252650: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00252660: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +00252670: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00252680: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00252690: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002526a0: 7320 6973 2073 6561 7263 6828 2276 7366  s is search("vsf
│ │ │ +002526b0: 7470 642e 736f 636b 6574 222c 206d 756c  tpd.socket", mul
│ │ │ +002526c0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002526d0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002526e0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002526f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00252700: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00252710: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +00252720: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00252730: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00252740: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00252750: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00252760: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00252770: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00252780: 0a20 202d 2073 6572 7669 6365 5f76 7366  .  - service_vsf
│ │ │ +00252790: 7470 645f 6469 7361 626c 6564 0a20 202d  tpd_disabled.  -
│ │ │ +002527a0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +002527b0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +002527c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +002527d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +002527e0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +002527f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +002528a0: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ +002528b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ +002529b0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +002529f0: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +00252a00: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +00252a10: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +00252a20: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +00252a30: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +00252a40: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +00252a50: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +00252a60: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +00252a70: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +00252a80: 2020 2020 202d 206e 616d 653a 2076 7366       - name: vsf
│ │ │ +00252a90: 7470 642e 7365 7276 6963 650a 2020 2020  tpd.service.    
│ │ │ +00252aa0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00252ab0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +00252ac0: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +00252ad0: 6d65 3a20 7673 6674 7064 2e73 6f63 6b65  me: vsftpd.socke
│ │ │ +00252ae0: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ +00252af0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +00252b00: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ +00252b20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00252b30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00252b40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00252b50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00252b60: 6439 3130 2220 7461 6269 6e64 6578 3d22 d910" tabindex=" │ │ │ +00252b70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00252b80: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00252b90: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00252ba0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00252bb0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00252bc0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00252bd0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +00252940: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00252950: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00252970: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +00252980: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +002529c0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002529d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +00252c60: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00252c70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00252c90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00252cb0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00252cc0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00252d00: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00252d10: 6520 6469 7361 626c 655f 7673 6674 7064 e disable_vsftpd │ │ │ +00252d20: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +00252d30: 7673 6674 7064 207b 0a20 2073 6572 7669 vsftpd {. servi │ │ │ +00252d40: 6365 207b 2776 7366 7470 6427 3a0a 2020 ce {'vsftpd':. │ │ │ +00252d50: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +00252d60: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +00252d70: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +00252d80: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +00252d90: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00252e40: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +00252e50: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +00252e60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +00252eb0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00252ec0: 6173 6b65 6420 3d20 5b22 7673 6674 7064  asked = ["vsftpd
│ │ │ +00252ed0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00252ee0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
│ │ │ -00253ec0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00253ed0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00253f70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00254010: 696e 636c 7564 6520 7265 6d6f 7665 5f66  include remove_f
│ │ │ -00254020: 7470 0a0a 636c 6173 7320 7265 6d6f 7665  tp..class remove
│ │ │ -00254030: 5f66 7470 207b 0a20 2070 6163 6b61 6765  _ftp {.  package
│ │ │ -00254040: 207b 2027 6674 7027 3a0a 2020 2020 656e   { 'ftp':.    en
│ │ │ -00254050: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00254060: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00254120: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00254130: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00253f60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00253f90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00253fa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00253fe0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00253ff0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -002541c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002541d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002541f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00254210: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00254220: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00254260: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00254270: 653a 2027 5265 6d6f 7665 2066 7470 2050  e: 'Remove ftp P
│ │ │ -00254280: 6163 6b61 6765 3a20 456e 7375 7265 2066  ackage: Ensure f
│ │ │ -00254290: 7470 2069 7320 7265 6d6f 7665 6427 0a20  tp is removed'. 
│ │ │ -002542a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002542b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002542c0: 6d65 3a20 6674 700a 2020 2020 7374 6174  me: ftp.    stat
│ │ │ -002542d0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -002542e0: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -002542f0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00254300: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00254310: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00254320: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00254330: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00254340: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -00254350: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00254360: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00254370: 6b61 6765 5f66 7470 5f72 656d 6f76 6564  kage_ftp_removed
│ │ │ +00253ec0: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +00253ed0: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +00253ee0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +00253fb0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00253fc0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00254010: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ +00254020: 6674 7020 5061 636b 6167 653a 2045 6e73  ftp Package: Ens
│ │ │ +00254030: 7572 6520 6674 7020 6973 2072 656d 6f76  ure ftp is remov
│ │ │ +00254040: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00254050: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00254060: 2020 206e 616d 653a 2066 7470 0a20 2020     name: ftp.   
│ │ │ +00254070: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00254080: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +00254090: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002540a0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +002540b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002540c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002540d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002540e0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +002540f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00254100: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00254110: 2d20 7061 636b 6167 655f 6674 705f 7265  - package_ftp_re
│ │ │ +00254120: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +002541e0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002541f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002542b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002542c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +00253f90: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00253fa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00253fe0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00253ff0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00254280: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002542a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002542d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +002542f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00254320: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00254330: 6d6f 7665 5f66 7470 0a0a 636c 6173 7320  move_ftp..class 
│ │ │ +00254340: 7265 6d6f 7665 5f66 7470 207b 0a20 2070  remove_ftp {.  p
│ │ │ +00254350: 6163 6b61 6765 207b 2027 6674 7027 3a0a  ackage { 'ftp':.
│ │ │ +00254360: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00254370: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00254380: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediatio │ │ │ -00255f60: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00255f70: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00256000: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00256020: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00256030: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00256040: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00256050: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00256070: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002560a0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -002560b0: 6d6f 7665 5f61 7061 6368 6532 0a0a 636c  move_apache2..cl
│ │ │ -002560c0: 6173 7320 7265 6d6f 7665 5f61 7061 6368  ass remove_apach
│ │ │ -002560d0: 6532 207b 0a20 2070 6163 6b61 6765 207b  e2 {.  package {
│ │ │ -002560e0: 2027 6170 6163 6865 3227 3a0a 2020 2020   'apache2':.    
│ │ │ -002560f0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00256100: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00256120: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002561c0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002561d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002561e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00256280: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002562d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00256310: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -00256320: 6170 6163 6865 3220 5061 636b 6167 653a  apache2 Package:
│ │ │ -00256330: 2045 6e73 7572 6520 6170 6163 6865 3220   Ensure apache2 
│ │ │ -00256340: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00256350: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00256360: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00256370: 2061 7061 6368 6532 0a20 2020 2073 7461   apache2.    sta
│ │ │ -00256380: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00256390: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002563a0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002563b0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002563c0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002563d0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -002563e0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002563f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00256400: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00256410: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00256420: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00256430: 6163 6b61 6765 5f68 7474 7064 5f72 656d  ackage_httpd_rem
│ │ │ -00256440: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -00256450: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
< │ │ │ +00255ff0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00256030: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -00256260: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00256290: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002562b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002562c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002562e0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002562f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00256000: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00256020: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00256050: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00256070: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +002560a0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +002560b0: 6e69 6e73 7461 6c6c 2061 7061 6368 6532  ninstall apache2
│ │ │ +002560c0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +002560d0: 2061 7061 6368 6532 2069 7320 7265 6d6f   apache2 is remo
│ │ │ +002560e0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +002560f0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00256100: 2020 2020 6e61 6d65 3a20 6170 6163 6865      name: apache
│ │ │ +00256110: 320a 2020 2020 7374 6174 653a 2061 6273  2.    state: abs
│ │ │ +00256120: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00256130: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00256140: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00256150: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00256160: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00256170: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +00256180: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00256190: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002561a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002561b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002561c0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002561d0: 6874 7470 645f 7265 6d6f 7665 640a 2020  httpd_removed.  
│ │ │ +002561e0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +002561f0: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +00256200: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +002562b0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002562c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00256340: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00256360: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002563b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002563e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00256400: 655f 6170 6163 6865 320a 0a63 6c61 7373  e_apache2..class
│ │ │ +00256410: 2072 656d 6f76 655f 6170 6163 6865 3220   remove_apache2 
│ │ │ +00256420: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ +00256430: 7061 6368 6532 273a 0a20 2020 2065 6e73  pache2':.    ens
│ │ │ +00256440: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00256450: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation O │ │ │ -00257790: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -002577a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002577b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -002577f0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00257800: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00257810: 203d 205b 2261 7061 6368 6532 225d 0a3c   = ["apache2"].<
│ │ │ -00257820: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -002578d0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -002578e0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -002578f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ +00256370: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00256380: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002563c0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002563d0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -00257970: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00257990: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -002579c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -002579a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002579b0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -002579d0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -002579f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00257a00: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -00257a30: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -00257a40: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -00257a50: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -00257a60: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -00257a70: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -00257a80: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -00257a90: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -00257aa0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -00257ab0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -00257ac0: 6d65 3a20 6170 6163 6865 322e 7365 7276  me: apache2.serv
│ │ │ -00257ad0: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ -00257ae0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00257af0: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ -00257b00: 2020 2020 2d20 6e61 6d65 3a20 6170 6163      - name: apac
│ │ │ -00257b10: 6865 322e 736f 636b 6574 0a20 2020 2020  he2.socket.     
│ │ │ -00257b20: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00257b30: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -00257b40: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.
Remediation │ │ │ -00257c00: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00257c10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00257ca0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00257cc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00257ce0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00257d10: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00257d20: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00257d30: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -00257d50: 6c65 5f61 7061 6368 6532 0a0a 636c 6173  le_apache2..clas
│ │ │ -00257d60: 7320 6469 7361 626c 655f 6170 6163 6865  s disable_apache
│ │ │ -00257d70: 3220 7b0a 2020 7365 7276 6963 6520 7b27  2 {.  service {'
│ │ │ -00257d80: 6170 6163 6865 3227 3a0a 2020 2020 656e  apache2':.    en
│ │ │ -00257d90: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -00257da0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00257db0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -00257dc0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00257e80: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00257e90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00257f20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00257f40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00257f60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00257f90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00257fa0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -00257fd0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00257fe0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00257ff0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00258000: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00258010: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00258020: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -00258030: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -00258040: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00258050: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -00258060: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00258070: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00258080: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00258090: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -002580a0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002580b0: 6963 655f 6874 7470 645f 6469 7361 626c  ice_httpd_disabl
│ │ │ -002580c0: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ -002580d0: 6576 6572 6974 790a 0a2d 206e 616d 653a  everity..- name:
│ │ │ -002580e0: 2044 6973 6162 6c65 2061 7061 6368 6532   Disable apache2
│ │ │ -002580f0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -00258100: 6c65 2073 6572 7669 6365 2061 7061 6368  le service apach
│ │ │ -00258110: 6532 0a20 2062 6c6f 636b 3a0a 0a20 202d  e2.  block:..  -
│ │ │ -00258120: 206e 616d 653a 2044 6973 6162 6c65 2061   name: Disable a
│ │ │ -00258130: 7061 6368 6532 2053 6572 7669 6365 202d  pache2 Service -
│ │ │ -00258140: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -00258150: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -00258160: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -00258170: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00258180: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -00258190: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002581a0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -002581b0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -002581c0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -002581d0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002581e0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -002581f0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00258200: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -00258210: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00258220: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00258230: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00258240: 4469 7361 626c 6520 6170 6163 6865 3220  Disable apache2 
│ │ │ -00258250: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ -00258260: 2061 7061 6368 6532 2e73 6572 7669 6365   apache2.service
│ │ │ -00258270: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -00258280: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00258290: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002582a0: 6d65 3a20 6170 6163 6865 322e 7365 7276  me: apache2.serv
│ │ │ -002582b0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -002582c0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -002582d0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002582e0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -002582f0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -00258300: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -00258310: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -00258320: 2822 6170 6163 6865 322e 7365 7276 6963  ("apache2.servic
│ │ │ -00258330: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -00258340: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -00258350: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -00258360: 7320 2d20 6170 6163 6865 322e 736f 636b  s - apache2.sock
│ │ │ -00258370: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ -00258380: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -00258390: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -002583a0: 742d 756e 6974 2d66 696c 6573 2061 7061  t-unit-files apa
│ │ │ -002583b0: 6368 6532 2e73 6f63 6b65 740a 2020 2020  che2.socket.    
│ │ │ -002583c0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002583d0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002583e0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002583f0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00258400: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00258410: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00258420: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00258430: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00258440: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00258450: 6c65 2061 7061 6368 6532 2053 6572 7669  le apache2 Servi
│ │ │ -00258460: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -00258470: 6b65 7420 6170 6163 6865 320a 2020 2020  ket apache2.    
│ │ │ -00258480: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00258490: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002584a0: 616d 653a 2061 7061 6368 6532 2e73 6f63  ame: apache2.soc
│ │ │ -002584b0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ -002584c0: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ -002584d0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -002584e0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -002584f0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ -00258500: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ -00258510: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00258520: 6172 6368 2822 6170 6163 6865 322e 736f  arch("apache2.so
│ │ │ -00258530: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -00258540: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -00258550: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00258560: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00258570: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00258580: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00258590: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -002585a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002585b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002585c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002585d0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -002585e0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -002585f0: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ -00258600: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00258610: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ -00258620: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -00258630: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00258640: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00258650: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00258660: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00257780: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +00257790: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +002577a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00257820: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00257840: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00257890: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002578c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00257830: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00257850: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002578a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002578b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002578e0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002578f0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00257900: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00257910: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00257920: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00257930: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00257940: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00257950: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00257960: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00257970: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00257980: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00257990: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002579a0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002579b0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002579c0: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ +002579d0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +002579e0: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ +002579f0: 4469 7361 626c 6520 6170 6163 6865 3220  Disable apache2 
│ │ │ +00257a00: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00257a10: 6520 7365 7276 6963 6520 6170 6163 6865  e service apache
│ │ │ +00257a20: 320a 2020 626c 6f63 6b3a 0a0a 2020 2d20  2.  block:..  - 
│ │ │ +00257a30: 6e61 6d65 3a20 4469 7361 626c 6520 6170  name: Disable ap
│ │ │ +00257a40: 6163 6865 3220 5365 7276 6963 6520 2d20  ache2 Service - 
│ │ │ +00257a50: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +00257a60: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +00257a70: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +00257a80: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00257a90: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00257aa0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00257ab0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +00257ac0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +00257ad0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +00257ae0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00257af0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00257b00: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +00257b10: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +00257b20: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +00257b30: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00257b40: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00257b50: 6973 6162 6c65 2061 7061 6368 6532 2053  isable apache2 S
│ │ │ +00257b60: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +00257b70: 6170 6163 6865 322e 7365 7276 6963 6520  apache2.service 
│ │ │ +00257b80: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +00257b90: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00257ba0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00257bb0: 653a 2061 7061 6368 6532 2e73 6572 7669  e: apache2.servi
│ │ │ +00257bc0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +00257bd0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +00257be0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00257bf0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00257c00: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +00257c10: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +00257c20: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00257c30: 2261 7061 6368 6532 2e73 6572 7669 6365  "apache2.service
│ │ │ +00257c40: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00257c50: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +00257c60: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +00257c70: 202d 2061 7061 6368 6532 2e73 6f63 6b65   - apache2.socke
│ │ │ +00257c80: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +00257c90: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00257ca0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00257cb0: 2d75 6e69 742d 6669 6c65 7320 6170 6163  -unit-files apac
│ │ │ +00257cc0: 6865 322e 736f 636b 6574 0a20 2020 2072  he2.socket.    r
│ │ │ +00257cd0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +00257ce0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +00257cf0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00257d00: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00257d10: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00257d20: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00257d30: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00257d40: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00257d50: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00257d60: 6520 6170 6163 6865 3220 5365 7276 6963  e apache2 Servic
│ │ │ +00257d70: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00257d80: 6574 2061 7061 6368 6532 0a20 2020 2061  et apache2.    a
│ │ │ +00257d90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00257da0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00257db0: 6d65 3a20 6170 6163 6865 322e 736f 636b  me: apache2.sock
│ │ │ +00257dc0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00257dd0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00257de0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00257df0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00257e00: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00257e10: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00257e20: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00257e30: 7263 6828 2261 7061 6368 6532 2e73 6f63  rch("apache2.soc
│ │ │ +00257e40: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +00257e50: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +00257e60: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00257e70: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00257e80: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00257e90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00257ea0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +00257eb0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00257ec0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00257ed0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00257ee0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00257ef0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00257f00: 655f 6874 7470 645f 6469 7361 626c 6564  e_httpd_disabled
│ │ │ +00257f10: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +00257f20: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ +00257f30: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00257f40: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00257f50: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00257f60: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00257f70: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Kub │ │ │ +00258030: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +00258040: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +002580d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002580f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:mediumReboot │ │ │ +00258120: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true │ │ │ +00258140: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00258170: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ +00258180: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ +00258190: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ +002581a0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ +002581b0: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ +002581c0: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ +002581d0: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ +002581e0: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ +002581f0: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ +00258200: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ +00258210: 6e61 6d65 3a20 6170 6163 6865 322e 7365  name: apache2.se
│ │ │ +00258220: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ +00258230: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00258240: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +00258250: 2020 2020 2020 2d20 6e61 6d65 3a20 6170        - name: ap
│ │ │ +00258260: 6163 6865 322e 736f 636b 6574 0a20 2020  ache2.socket.   
│ │ │ +00258270: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00258280: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +00258290: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ +00258350: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00258360: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +002583e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002583f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00258410: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00258420: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00258440: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00258460: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00258490: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +002584a0: 6162 6c65 5f61 7061 6368 6532 0a0a 636c  able_apache2..cl
│ │ │ +002584b0: 6173 7320 6469 7361 626c 655f 6170 6163  ass disable_apac
│ │ │ +002584c0: 6865 3220 7b0a 2020 7365 7276 6963 6520  he2 {.  service 
│ │ │ +002584d0: 7b27 6170 6163 6865 3227 3a0a 2020 2020  {'apache2':.    
│ │ │ +002584e0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +002584f0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +00258500: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +00258510: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +002585d0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +002585e0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +002585f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +00258640: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +00258650: 6b65 6420 3d20 5b22 6170 6163 6865 3222  ked = ["apache2"
│ │ │ +00258660: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00258670: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remedi │ │ │ -00259cf0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00259d00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00259d10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00259d40: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00259db0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00259dd0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00259e00: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00259d90: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00259da0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00259de0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00259df0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -00259e40: 6520 7265 6d6f 7665 5f6e 6769 6e78 0a0a e remove_nginx.. │ │ │ -00259e50: 636c 6173 7320 7265 6d6f 7665 5f6e 6769 class remove_ngi │ │ │ -00259e60: 6e78 207b 0a20 2070 6163 6b61 6765 207b nx {. package { │ │ │ -00259e70: 2027 6e67 696e 7827 3a0a 2020 2020 656e 'nginx':. en │ │ │ -00259e80: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ -00259e90: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.

Remed │ │ │ -00259f50: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00259f60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00259ff0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0025a000: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0025a020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0025a040: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0025a050: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0025a090: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0025a0a0: 653a 2027 556e 696e 7374 616c 6c20 6e67  e: 'Uninstall ng
│ │ │ -0025a0b0: 696e 7820 5061 636b 6167 653a 2045 6e73  inx Package: Ens
│ │ │ -0025a0c0: 7572 6520 6e67 696e 7820 6973 2072 656d  ure nginx is rem
│ │ │ -0025a0d0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0025a0e0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0025a0f0: 0a20 2020 206e 616d 653a 206e 6769 6e78  .    name: nginx
│ │ │ -0025a100: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -0025a110: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -0025a120: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0025a130: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0025a140: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0025a150: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0025a160: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -0025a170: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0025a180: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0025a190: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0025a1a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0025a1b0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -0025a1c0: 6769 6e78 5f72 656d 6f76 6564 0a20 202d  ginx_removed.  -
│ │ │ -0025a1d0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -0025a1e0: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +00259cf0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +00259d00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00259db0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00259dd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00259e00: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00259d90: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00259da0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00259dc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00259de0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00259df0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00259e30: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00259e40: 3a20 2755 6e69 6e73 7461 6c6c 206e 6769 : 'Uninstall ngi │ │ │ +00259e50: 6e78 2050 6163 6b61 6765 3a20 456e 7375 nx Package: Ensu │ │ │ +00259e60: 7265 206e 6769 6e78 2069 7320 7265 6d6f re nginx is remo │ │ │ +00259e70: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ +00259e80: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +00259e90: 2020 2020 6e61 6d65 3a20 6e67 696e 780a name: nginx. │ │ │ +00259ea0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ +00259eb0: 740a 2020 7461 6773 3a0a 2020 2d20 4e49 t. tags:. - NI │ │ │ +00259ec0: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +00259ed0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +00259ee0: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ +00259ef0: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ +00259f00: 290a 2020 2d20 6469 7361 626c 655f 7374 ). - disable_st │ │ │ +00259f10: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +00259f20: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00259f30: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00259f40: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00259f50: 640a 2020 2d20 7061 636b 6167 655f 6e67 d. - package_ng │ │ │ +00259f60: 696e 785f 7265 6d6f 7665 640a 2020 2d20 inx_removed. - │ │ │ +00259f70: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479 unknown_severity │ │ │ +00259f80: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Pup │ │ │ +0025a040: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0025a050: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0025a120: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0025a130: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0025a180: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0025a190: 6e67 696e 780a 0a63 6c61 7373 2072 656d  nginx..class rem
│ │ │ +0025a1a0: 6f76 655f 6e67 696e 7820 7b0a 2020 7061  ove_nginx {.  pa
│ │ │ +0025a1b0: 636b 6167 6520 7b20 276e 6769 6e78 273a  ckage { 'nginx':
│ │ │ +0025a1c0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0025a1d0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0025a1e0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0025a1f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediat │ │ │ -0025af90: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0025afa0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0025afb0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -0025b000: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -0025b010: 6173 6b65 6420 3d20 5b22 6e67 696e 7822  asked = ["nginx"
│ │ │ -0025b020: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0025b030: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ku │ │ │ -0025b0e0: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -0025b0f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0025b1b0: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>medium< │ │ │ -0025b200: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0025b210: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0025a100: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0025a110: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0025a150: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0025a160: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ -0025b180: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0025b1a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboo │ │ │ -0025b1d0: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -0025b1e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
apiVersio
│ │ │ -0025b230: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -0025b240: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -0025b250: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -0025b260: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -0025b270: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -0025b280: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -0025b290: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -0025b2a0: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -0025b2b0: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -0025b2c0: 206e 616d 653a 206e 6769 6e78 2e73 6572   name: nginx.ser
│ │ │ -0025b2d0: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ -0025b2e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0025b2f0: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ -0025b300: 2020 2020 202d 206e 616d 653a 206e 6769       - name: ngi
│ │ │ -0025b310: 6e78 2e73 6f63 6b65 740a 2020 2020 2020  nx.socket.      
│ │ │ -0025b320: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0025b330: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -0025b340: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ -0025b400: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0025b410: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0025b490: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0025b4b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0025b500: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0025b530: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -0025b550: 655f 6e67 696e 780a 0a63 6c61 7373 2064  e_nginx..class d
│ │ │ -0025b560: 6973 6162 6c65 5f6e 6769 6e78 207b 0a20  isable_nginx {. 
│ │ │ -0025b570: 2073 6572 7669 6365 207b 276e 6769 6e78   service {'nginx
│ │ │ -0025b580: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -0025b590: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -0025b5a0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -0025b5b0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -0025b5d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0025b670: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0025b680: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0025b690: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:< │ │ │ -0025b4a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0025b4c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0025b510: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0025b520: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -0025b730: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0025b780: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0025b7c0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0025b7d0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0025b7e0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0025b7f0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0025b800: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -0025b810: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0025b820: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0025b830: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0025b840: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0025b850: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0025b860: 7669 6365 5f6e 6769 6e78 5f64 6973 6162  vice_nginx_disab
│ │ │ -0025b870: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ -0025b880: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ -0025b890: 3a20 4469 7361 626c 6520 6e67 696e 7820  : Disable nginx 
│ │ │ -0025b8a0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0025b8b0: 6520 7365 7276 6963 6520 6e67 696e 780a  e service nginx.
│ │ │ -0025b8c0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -0025b8d0: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ -0025b8e0: 7820 5365 7276 6963 6520 2d20 436f 6c6c  x Service - Coll
│ │ │ -0025b8f0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -0025b900: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -0025b910: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0025b920: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0025b930: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0025b940: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0025b950: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0025b960: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0025b970: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0025b980: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0025b990: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0025b9a0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0025b9b0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0025b9c0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0025b9d0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0025b9e0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0025b9f0: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ -0025ba00: 202d 2045 6e73 7572 6520 6e67 696e 782e   - Ensure nginx.
│ │ │ -0025ba10: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -0025ba20: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0025ba30: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0025ba40: 2020 2020 206e 616d 653a 206e 6769 6e78       name: nginx
│ │ │ -0025ba50: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -0025ba60: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -0025ba70: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0025ba80: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -0025ba90: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0025baa0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -0025bab0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -0025bac0: 6561 7263 6828 226e 6769 6e78 2e73 6572  earch("nginx.ser
│ │ │ -0025bad0: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -0025bae0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -0025baf0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -0025bb00: 6973 7473 202d 206e 6769 6e78 2e73 6f63  ists - nginx.soc
│ │ │ -0025bb10: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -0025bb20: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0025bb30: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0025bb40: 7374 2d75 6e69 742d 6669 6c65 7320 6e67  st-unit-files ng
│ │ │ -0025bb50: 696e 782e 736f 636b 6574 0a20 2020 2072  inx.socket.    r
│ │ │ -0025bb60: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -0025bb70: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -0025bb80: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0025bb90: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0025bba0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0025bbb0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0025bbc0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0025bbd0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0025bbe0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0025bbf0: 6520 6e67 696e 7820 5365 7276 6963 6520  e nginx Service 
│ │ │ -0025bc00: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0025bc10: 206e 6769 6e78 0a20 2020 2061 6e73 6962   nginx.    ansib
│ │ │ -0025bc20: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0025bc30: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0025bc40: 6e67 696e 782e 736f 636b 6574 0a20 2020  nginx.socket.   
│ │ │ -0025bc50: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0025bc60: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0025bc70: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -0025bc80: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0025bc90: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0025bca0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -0025bcb0: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ -0025bcc0: 6769 6e78 2e73 6f63 6b65 7422 2c20 6d75  ginx.socket", mu
│ │ │ -0025bcd0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -0025bce0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -0025bcf0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0025bd00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0025bd10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0025bd20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0025bd30: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0025bd40: 655f 6e67 696e 785f 6469 7361 626c 6564  e_nginx_disabled
│ │ │ -0025bd50: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0025bd60: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ -0025bd70: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -0025bd80: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0025bd90: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0025bda0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0025af90: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +0025afa0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +0025afb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0025afc0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0025afd0: 7365 2220 6964 3d22 6964 3933 3222 3e3c se" id="id932">< │ │ │ +0025afe0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0025aff0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0025b000: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0025b010: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0025b020: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0025b0b0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0025b0c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Co │ │ │ -0025b710: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0025b740: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0025b760: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0025b770: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0025b790: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0025b7a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +0025b030: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0025b040: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0025b080: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0025b090: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0025b0e0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0025b0f0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0025b100: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0025b110: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0025b120: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +0025b130: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0025b140: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0025b150: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0025b160: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +0025b170: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +0025b180: 6e67 696e 785f 6469 7361 626c 6564 0a20 nginx_disabled. │ │ │ +0025b190: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572 - unknown_sever │ │ │ +0025b1a0: 6974 790a 0a2d 206e 616d 653a 2044 6973 ity..- name: Dis │ │ │ +0025b1b0: 6162 6c65 206e 6769 6e78 2053 6572 7669 able nginx Servi │ │ │ +0025b1c0: 6365 202d 2044 6973 6162 6c65 2073 6572 ce - Disable ser │ │ │ +0025b1d0: 7669 6365 206e 6769 6e78 0a20 2062 6c6f vice nginx. blo │ │ │ +0025b1e0: 636b 3a0a 0a20 202d 206e 616d 653a 2044 ck:.. - name: D │ │ │ +0025b1f0: 6973 6162 6c65 206e 6769 6e78 2053 6572 isable nginx Ser │ │ │ +0025b200: 7669 6365 202d 2043 6f6c 6c65 6374 2073 vice - Collect s │ │ │ +0025b210: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ +0025b220: 5072 6573 656e 7420 696e 2074 6865 2053 Present in the S │ │ │ +0025b230: 7973 7465 6d0a 2020 2020 616e 7369 626c ystem. ansibl │ │ │ +0025b240: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ +0025b250: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ +0025b260: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ +0025b270: 2d2d 7479 7065 2073 6572 7669 6365 0a20 --type service. │ │ │ +0025b280: 2020 2072 6567 6973 7465 723a 2073 6572 register: ser │ │ │ +0025b290: 7669 6365 5f65 7869 7374 730a 2020 2020 vice_exists. │ │ │ +0025b2a0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ +0025b2b0: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ +0025b2c0: 6865 6e3a 2073 6572 7669 6365 5f65 7869 hen: service_exi │ │ │ +0025b2d0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ +0025b2e0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ +0025b2f0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ +0025b300: 6e61 6d65 3a20 4469 7361 626c 6520 6e67 name: Disable ng │ │ │ +0025b310: 696e 7820 5365 7276 6963 6520 2d20 456e inx Service - En │ │ │ +0025b320: 7375 7265 206e 6769 6e78 2e73 6572 7669 sure nginx.servi │ │ │ +0025b330: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ +0025b340: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +0025b350: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +0025b360: 6e61 6d65 3a20 6e67 696e 782e 7365 7276 name: nginx.serv │ │ │ +0025b370: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ +0025b380: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ +0025b390: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +0025b3a0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +0025b3b0: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ +0025b3c0: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ +0025b3d0: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ +0025b3e0: 2822 6e67 696e 782e 7365 7276 6963 6522 ("nginx.service" │ │ │ +0025b3f0: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ +0025b400: 290a 0a20 202d 206e 616d 653a 2055 6e69 ).. - name: Uni │ │ │ +0025b410: 7420 536f 636b 6574 2045 7869 7374 7320 t Socket Exists │ │ │ +0025b420: 2d20 6e67 696e 782e 736f 636b 6574 0a20 - nginx.socket. │ │ │ +0025b430: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +0025b440: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ +0025b450: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ +0025b460: 6974 2d66 696c 6573 206e 6769 6e78 2e73 it-files nginx.s │ │ │ +0025b470: 6f63 6b65 740a 2020 2020 7265 6769 7374 ocket. regist │ │ │ +0025b480: 6572 3a20 736f 636b 6574 5f66 696c 655f er: socket_file_ │ │ │ +0025b490: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ +0025b4a0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ +0025b4b0: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ +0025b4c0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +0025b4d0: 7473 2e72 6320 6e6f 7420 696e 205b 302c ts.rc not in [0, │ │ │ +0025b4e0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f 1]. check_mo │ │ │ +0025b4f0: 6465 3a20 6661 6c73 650a 0a20 202d 206e de: false.. - n │ │ │ +0025b500: 616d 653a 2044 6973 6162 6c65 206e 6769 ame: Disable ngi │ │ │ +0025b510: 6e78 2053 6572 7669 6365 202d 2044 6973 nx Service - Dis │ │ │ +0025b520: 6162 6c65 2053 6f63 6b65 7420 6e67 696e able Socket ngin │ │ │ +0025b530: 780a 2020 2020 616e 7369 626c 652e 6275 x. ansible.bu │ │ │ +0025b540: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ +0025b550: 2020 2020 206e 616d 653a 206e 6769 6e78 name: nginx │ │ │ +0025b560: 2e73 6f63 6b65 740a 2020 2020 2020 656e .socket. en │ │ │ +0025b570: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +0025b580: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ +0025b590: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +0025b5a0: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ +0025b5b0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +0025b5c0: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ +0025b5d0: 7320 7365 6172 6368 2822 6e67 696e 782e s search("nginx. │ │ │ +0025b5e0: 736f 636b 6574 222c 206d 756c 7469 6c69 socket", multili │ │ │ +0025b5f0: 6e65 3d54 7275 6529 0a20 2074 6167 733a ne=True). tags: │ │ │ +0025b600: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +0025b610: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +0025b620: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +0025b630: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +0025b640: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0025b650: 0a20 202d 2073 6572 7669 6365 5f6e 6769 . - service_ngi │ │ │ +0025b660: 6e78 5f64 6973 6162 6c65 640a 2020 2d20 nx_disabled. - │ │ │ +0025b670: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ +0025b680: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ +0025b690: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ +0025b6a0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +0025b6b0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +0025b6c0: 732e 7061 636b 6167 6573 270a 3c2f 636f s.packages'.
< │ │ │ +0025b6e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0025b6f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0025b700: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0025b710: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0025b720: 6439 3333 2220 7461 6269 6e64 6578 3d22 d933" tabindex=" │ │ │ +0025b730: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0025b740: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0025b750: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0025b760: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0025b770: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0025b780: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +0025b790: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
│ │ │ +0025b830: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ +0025b8e0: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ +0025b8f0: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ +0025b900: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ +0025b910: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ +0025b920: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ +0025b930: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ +0025b940: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ +0025b950: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ +0025b960: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ +0025b970: 206e 6769 6e78 2e73 6572 7669 6365 0a20   nginx.service. 
│ │ │ +0025b980: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +0025b990: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +0025b9a0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +0025b9b0: 206e 616d 653a 206e 6769 6e78 2e73 6f63   name: nginx.soc
│ │ │ +0025b9c0: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +0025b9d0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0025b9e0: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
Re │ │ │ +0025baa0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0025bab0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0025bac0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +0025b820: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0025b850: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ +0025b860: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ +0025b8a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0025b8b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +0025bb60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0025bbb0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0025bb40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0025bb70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0025bb90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0025bba0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0025bbc0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0025bbd0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0025bbf0: 7564 6520 6469 7361 626c 655f 6e67 696e  ude disable_ngin
│ │ │ +0025bc00: 780a 0a63 6c61 7373 2064 6973 6162 6c65  x..class disable
│ │ │ +0025bc10: 5f6e 6769 6e78 207b 0a20 2073 6572 7669  _nginx {.  servi
│ │ │ +0025bc20: 6365 207b 276e 6769 6e78 273a 0a20 2020  ce {'nginx':.   
│ │ │ +0025bc30: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +0025bc40: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +0025bc50: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +0025bc60: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +0025bd20: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0025bd30: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0025bd40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +0025bd90: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +0025bda0: 736b 6564 203d 205b 226e 6769 6e78 225d  sked = ["nginx"]
│ │ │  0025bdb0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation P │ │ │ -0025d310: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0025d320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0025d3a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0025d3c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0025d410: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0025d440: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0025d460: 655f 646f 7665 636f 742d 636f 7265 0a0a  e_dovecot-core..
│ │ │ -0025d470: 636c 6173 7320 7265 6d6f 7665 5f64 6f76  class remove_dov
│ │ │ -0025d480: 6563 6f74 2d63 6f72 6520 7b0a 2020 7061  ecot-core {.  pa
│ │ │ -0025d490: 636b 6167 6520 7b20 2764 6f76 6563 6f74  ckage { 'dovecot
│ │ │ -0025d4a0: 2d63 6f72 6527 3a0a 2020 2020 656e 7375  -core':.    ensu
│ │ │ -0025d4b0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0025d4c0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0025d4d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0025d580: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0025d590: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0025d5a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0025d5d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ -0025d3d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0025d3e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0025d420: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0025d430: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -0025d640: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0025d660: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0025d690: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0025d620: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0025d630: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0025d670: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0025d680: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0025d6d0: 2027 556e 696e 7374 616c 6c20 646f 7665 'Uninstall dove │ │ │ -0025d6e0: 636f 7420 5061 636b 6167 653a 2045 6e73 cot Package: Ens │ │ │ -0025d6f0: 7572 6520 646f 7665 636f 742d 636f 7265 ure dovecot-core │ │ │ -0025d700: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -0025d710: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -0025d720: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -0025d730: 3a20 646f 7665 636f 742d 636f 7265 0a20 : dovecot-core. │ │ │ -0025d740: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -0025d750: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ -0025d760: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0025d770: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -0025d780: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -0025d790: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f ion. - no_reboo │ │ │ -0025d7a0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -0025d7b0: 6b61 6765 5f64 6f76 6563 6f74 5f72 656d kage_dovecot_rem │ │ │ -0025d7c0: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e oved. - unknown │ │ │ -0025d7d0: 5f73 6576 6572 6974 790a 3c2f 636f 6465 _severity.Remediation A │ │ │ +0025d310: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +0025d320: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..

│ │ │ +0025d3a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0025d3c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0025d410: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0025d440: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0025d3b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0025d3d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0025d420: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0025d430: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +0025d460: 7374 616c 6c20 646f 7665 636f 7420 5061  stall dovecot Pa
│ │ │ +0025d470: 636b 6167 653a 2045 6e73 7572 6520 646f  ckage: Ensure do
│ │ │ +0025d480: 7665 636f 742d 636f 7265 2069 7320 7265  vecot-core is re
│ │ │ +0025d490: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0025d4a0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0025d4b0: 3a0a 2020 2020 6e61 6d65 3a20 646f 7665  :.    name: dove
│ │ │ +0025d4c0: 636f 742d 636f 7265 0a20 2020 2073 7461  cot-core.    sta
│ │ │ +0025d4d0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +0025d4e0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0025d4f0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0025d500: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0025d510: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0025d520: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0025d530: 6564 0a20 202d 2070 6163 6b61 6765 5f64  ed.  - package_d
│ │ │ +0025d540: 6f76 6563 6f74 5f72 656d 6f76 6564 0a20  ovecot_removed. 
│ │ │ +0025d550: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +0025d560: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
Remediation │ │ │ +0025d620: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0025d630: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0025d6b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0025d6d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0025d720: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0025d750: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0025d6c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0025d6e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0025d730: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0025d740: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0025d770: 7665 5f64 6f76 6563 6f74 2d63 6f72 650a  ve_dovecot-core.
│ │ │ +0025d780: 0a63 6c61 7373 2072 656d 6f76 655f 646f  .class remove_do
│ │ │ +0025d790: 7665 636f 742d 636f 7265 207b 0a20 2070  vecot-core {.  p
│ │ │ +0025d7a0: 6163 6b61 6765 207b 2027 646f 7665 636f  ackage { 'doveco
│ │ │ +0025d7b0: 742d 636f 7265 273a 0a20 2020 2065 6e73  t-core':.    ens
│ │ │ +0025d7c0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0025d7d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Re │ │ │ -0025e5c0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0025e5d0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0025e5e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0025e5f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0025e600: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0025e610: 7365 2220 6964 3d22 6964 3934 3222 3e3c se" id="id942">< │ │ │ -0025e620: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0025e630: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0025e640: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0025e650: 646f 7665 636f 7422 5d0a 3c2f 636f 6465 dovecot"].
Remedi │ │ │ -0025e710: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ -0025e720: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0025e730: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0025e7d0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0025e800: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0025e810: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ -0025e860: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ -0025e870: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ -0025e880: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ -0025e890: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ -0025e8a0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ -0025e8b0: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ -0025e8c0: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ -0025e8d0: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ -0025e8e0: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ -0025e8f0: 0a20 2020 2020 202d 206e 616d 653a 2064  .      - name: d
│ │ │ -0025e900: 6f76 6563 6f74 2e73 6572 7669 6365 0a20  ovecot.service. 
│ │ │ -0025e910: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -0025e920: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -0025e930: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -0025e940: 206e 616d 653a 2064 6f76 6563 6f74 2e73   name: dovecot.s
│ │ │ -0025e950: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -0025e960: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0025e970: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -0025e980: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0025ea30: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0025ea40: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Co │ │ │ -0025e7b0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0025e7e0: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ -0025e7f0: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ -0025e830: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0025e840: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0025eae0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0025eb80: 636c 7564 6520 6469 7361 626c 655f 646f  clude disable_do
│ │ │ -0025eb90: 7665 636f 740a 0a63 6c61 7373 2064 6973  vecot..class dis
│ │ │ -0025eba0: 6162 6c65 5f64 6f76 6563 6f74 207b 0a20  able_dovecot {. 
│ │ │ -0025ebb0: 2073 6572 7669 6365 207b 2764 6f76 6563   service {'dovec
│ │ │ -0025ebc0: 6f74 273a 0a20 2020 2065 6e61 626c 6520  ot':.    enable 
│ │ │ -0025ebd0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -0025ebe0: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -0025ebf0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -0025ec00: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0025ecb0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0025ecc0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0025ead0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0025eb00: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0025eb10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0025eb50: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0025eb60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0025ed60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0025ee00: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0025ee10: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0025ee20: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0025ee30: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0025ee40: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -0025ee50: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0025ee60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0025ee70: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0025ee80: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -0025ee90: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0025eea0: 6572 7669 6365 5f64 6f76 6563 6f74 5f64  ervice_dovecot_d
│ │ │ -0025eeb0: 6973 6162 6c65 640a 2020 2d20 756e 6b6e  isabled.  - unkn
│ │ │ -0025eec0: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20  own_severity..- 
│ │ │ -0025eed0: 6e61 6d65 3a20 4469 7361 626c 6520 446f  name: Disable Do
│ │ │ -0025eee0: 7665 636f 7420 5365 7276 6963 6520 2d20  vecot Service - 
│ │ │ -0025eef0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -0025ef00: 646f 7665 636f 740a 2020 626c 6f63 6b3a  dovecot.  block:
│ │ │ -0025ef10: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0025ef20: 626c 6520 446f 7665 636f 7420 5365 7276  ble Dovecot Serv
│ │ │ -0025ef30: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -0025ef40: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -0025ef50: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -0025ef60: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -0025ef70: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0025ef80: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0025ef90: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -0025efa0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -0025efb0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -0025efc0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -0025efd0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0025efe0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0025eff0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0025f000: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -0025f010: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -0025f020: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -0025f030: 616d 653a 2044 6973 6162 6c65 2044 6f76  ame: Disable Dov
│ │ │ -0025f040: 6563 6f74 2053 6572 7669 6365 202d 2045  ecot Service - E
│ │ │ -0025f050: 6e73 7572 6520 646f 7665 636f 742e 7365  nsure dovecot.se
│ │ │ -0025f060: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0025f070: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0025f080: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0025f090: 2020 206e 616d 653a 2064 6f76 6563 6f74     name: dovecot
│ │ │ -0025f0a0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -0025f0b0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -0025f0c0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0025f0d0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -0025f0e0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0025f0f0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -0025f100: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -0025f110: 6561 7263 6828 2264 6f76 6563 6f74 2e73  earch("dovecot.s
│ │ │ -0025f120: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0025f130: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0025f140: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0025f150: 4578 6973 7473 202d 2064 6f76 6563 6f74  Exists - dovecot
│ │ │ -0025f160: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -0025f170: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0025f180: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0025f190: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0025f1a0: 7320 646f 7665 636f 742e 736f 636b 6574  s dovecot.socket
│ │ │ -0025f1b0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0025f1c0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0025f1d0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0025f1e0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0025f1f0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -0025f200: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -0025f210: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -0025f220: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -0025f230: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -0025f240: 4469 7361 626c 6520 446f 7665 636f 7420  Disable Dovecot 
│ │ │ -0025f250: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0025f260: 6520 536f 636b 6574 2064 6f76 6563 6f74  e Socket dovecot
│ │ │ -0025f270: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0025f280: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0025f290: 2020 2020 6e61 6d65 3a20 646f 7665 636f      name: doveco
│ │ │ -0025f2a0: 742e 736f 636b 6574 0a20 2020 2020 2065  t.socket.      e
│ │ │ -0025f2b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0025f2c0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0025f2d0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0025f2e0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0025f2f0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0025f300: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0025f310: 6973 2073 6561 7263 6828 2264 6f76 6563  is search("dovec
│ │ │ -0025f320: 6f74 2e73 6f63 6b65 7422 2c20 6d75 6c74  ot.socket", mult
│ │ │ -0025f330: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -0025f340: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -0025f350: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0025f360: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0025f370: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0025f380: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0025f390: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0025f3a0: 646f 7665 636f 745f 6469 7361 626c 6564  dovecot_disabled
│ │ │ -0025f3b0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0025f3c0: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ -0025f3d0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -0025f3e0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0025f3f0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0025f400: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0025e5c0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0025e5d0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
│ │ │ -0025ed50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0025ed80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0025ed90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0025edd0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0025ede0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0025e670: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025e680: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0025e6d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0025e710: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0025e720: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0025e730: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0025e740: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0025e750: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +0025e760: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0025e770: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0025e780: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0025e790: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +0025e7a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +0025e7b0: 7276 6963 655f 646f 7665 636f 745f 6469  rvice_dovecot_di
│ │ │ +0025e7c0: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f  sabled.  - unkno
│ │ │ +0025e7d0: 776e 5f73 6576 6572 6974 790a 0a2d 206e  wn_severity..- n
│ │ │ +0025e7e0: 616d 653a 2044 6973 6162 6c65 2044 6f76  ame: Disable Dov
│ │ │ +0025e7f0: 6563 6f74 2053 6572 7669 6365 202d 2044  ecot Service - D
│ │ │ +0025e800: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ +0025e810: 6f76 6563 6f74 0a20 2062 6c6f 636b 3a0a  ovecot.  block:.
│ │ │ +0025e820: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0025e830: 6c65 2044 6f76 6563 6f74 2053 6572 7669  le Dovecot Servi
│ │ │ +0025e840: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0025e850: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0025e860: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0025e870: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0025e880: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0025e890: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0025e8a0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0025e8b0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0025e8c0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0025e8d0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0025e8e0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0025e8f0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0025e900: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0025e910: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0025e920: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0025e930: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0025e940: 6d65 3a20 4469 7361 626c 6520 446f 7665  me: Disable Dove
│ │ │ +0025e950: 636f 7420 5365 7276 6963 6520 2d20 456e  cot Service - En
│ │ │ +0025e960: 7375 7265 2064 6f76 6563 6f74 2e73 6572  sure dovecot.ser
│ │ │ +0025e970: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +0025e980: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0025e990: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0025e9a0: 2020 6e61 6d65 3a20 646f 7665 636f 742e    name: dovecot.
│ │ │ +0025e9b0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +0025e9c0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0025e9d0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0025e9e0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +0025e9f0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0025ea00: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +0025ea10: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0025ea20: 6172 6368 2822 646f 7665 636f 742e 7365  arch("dovecot.se
│ │ │ +0025ea30: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +0025ea40: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +0025ea50: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +0025ea60: 7869 7374 7320 2d20 646f 7665 636f 742e  xists - dovecot.
│ │ │ +0025ea70: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +0025ea80: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0025ea90: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +0025eaa0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +0025eab0: 2064 6f76 6563 6f74 2e73 6f63 6b65 740a   dovecot.socket.
│ │ │ +0025eac0: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +0025ead0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0025eae0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +0025eaf0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +0025eb00: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +0025eb10: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +0025eb20: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +0025eb30: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0025eb40: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +0025eb50: 6973 6162 6c65 2044 6f76 6563 6f74 2053  isable Dovecot S
│ │ │ +0025eb60: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0025eb70: 2053 6f63 6b65 7420 646f 7665 636f 740a   Socket dovecot.
│ │ │ +0025eb80: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0025eb90: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0025eba0: 2020 206e 616d 653a 2064 6f76 6563 6f74     name: dovecot
│ │ │ +0025ebb0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +0025ebc0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0025ebd0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +0025ebe0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +0025ebf0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0025ec00: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0025ec10: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +0025ec20: 7320 7365 6172 6368 2822 646f 7665 636f  s search("doveco
│ │ │ +0025ec30: 742e 736f 636b 6574 222c 206d 756c 7469  t.socket", multi
│ │ │ +0025ec40: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +0025ec50: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0025ec60: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0025ec70: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0025ec80: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0025ec90: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0025eca0: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +0025ecb0: 6f76 6563 6f74 5f64 6973 6162 6c65 640a  ovecot_disabled.
│ │ │ +0025ecc0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0025ecd0: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ +0025ece0: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ +0025ecf0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0025ed00: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0025ed10: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0025ed20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0025edd0: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ +0025ede0: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ +0025edf0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ +0025e660: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0025e690: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0025e6a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0025e6e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0025e6f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +0025ee70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0025ee90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +0025ee80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0025eea0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +0025eed0: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +0025eef0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0025ef20: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +0025ef30: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +0025ef40: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +0025ef50: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +0025ef60: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +0025ef70: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +0025ef80: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +0025ef90: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +0025efa0: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +0025efb0: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +0025efc0: 616d 653a 2064 6f76 6563 6f74 2e73 6572  ame: dovecot.ser
│ │ │ +0025efd0: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ +0025efe0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0025eff0: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ +0025f000: 2020 2020 202d 206e 616d 653a 2064 6f76       - name: dov
│ │ │ +0025f010: 6563 6f74 2e73 6f63 6b65 740a 2020 2020  ecot.socket.    
│ │ │ +0025f020: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0025f030: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0025f040: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ +0025f100: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0025f110: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0025f1a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0025f1c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0025f1d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025f1e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0025f1f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0025f210: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0025f250: 626c 655f 646f 7665 636f 740a 0a63 6c61  ble_dovecot..cla
│ │ │ +0025f260: 7373 2064 6973 6162 6c65 5f64 6f76 6563  ss disable_dovec
│ │ │ +0025f270: 6f74 207b 0a20 2073 6572 7669 6365 207b  ot {.  service {
│ │ │ +0025f280: 2764 6f76 6563 6f74 273a 0a20 2020 2065  'dovecot':.    e
│ │ │ +0025f290: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +0025f2a0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +0025f2b0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +0025f2c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +0025f380: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0025f390: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +0025f3f0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +0025f400: 6564 203d 205b 2264 6f76 6563 6f74 225d  ed = ["dovecot"]
│ │ │  0025f410: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Reme │ │ │ -00260d60: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00260d70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00260e00: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00260e10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00260e30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00260e50: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00260e60: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00260ea0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00260eb0: 7564 6520 7265 6d6f 7665 5f6c 6461 702d  ude remove_ldap-
│ │ │ -00260ec0: 7574 696c 730a 0a63 6c61 7373 2072 656d  utils..class rem
│ │ │ -00260ed0: 6f76 655f 6c64 6170 2d75 7469 6c73 207b  ove_ldap-utils {
│ │ │ -00260ee0: 0a20 2070 6163 6b61 6765 207b 2027 6c64  .  package { 'ld
│ │ │ -00260ef0: 6170 2d75 7469 6c73 273a 0a20 2020 2065  ap-utils':.    e
│ │ │ -00260f00: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00260f10: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00260f30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00260f40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00260f50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00260f60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00260f70: 6439 3439 2220 7461 6269 6e64 6578 3d22 d949" tabindex=" │ │ │ -00260f80: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00260f90: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00260fa0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00260fb0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00260fc0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00260fd0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00260fe0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00260ff0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00261070: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002610a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002610c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002610d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002610f0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00261100: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00261120: 6d65 3a20 2745 6e73 7572 6520 4c44 4150  me: 'Ensure LDAP
│ │ │ -00261130: 2063 6c69 656e 7420 6973 206e 6f74 2069   client is not i
│ │ │ -00261140: 6e73 7461 6c6c 6564 3a20 456e 7375 7265  nstalled: Ensure
│ │ │ -00261150: 206c 6461 702d 7574 696c 7320 6973 2072   ldap-utils is r
│ │ │ -00261160: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00261170: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00261180: 653a 0a20 2020 206e 616d 653a 206c 6461  e:.    name: lda
│ │ │ -00261190: 702d 7574 696c 730a 2020 2020 7374 6174  p-utils.    stat
│ │ │ -002611a0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -002611b0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002611c0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002611d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002611e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002611f0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00261200: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00261210: 6564 0a20 202d 2070 6163 6b61 6765 5f6f  ed.  - package_o
│ │ │ -00261220: 7065 6e6c 6461 702d 636c 6965 6e74 735f  penldap-clients_
│ │ │ -00261230: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00260d60: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00260d70: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00260d80: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +00260e00: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00260e30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00260e50: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00260e60: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00260e80: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00260e90: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00260eb0: 6d65 3a20 2745 6e73 7572 6520 4c44 4150  me: 'Ensure LDAP
│ │ │ +00260ec0: 2063 6c69 656e 7420 6973 206e 6f74 2069   client is not i
│ │ │ +00260ed0: 6e73 7461 6c6c 6564 3a20 456e 7375 7265  nstalled: Ensure
│ │ │ +00260ee0: 206c 6461 702d 7574 696c 7320 6973 2072   ldap-utils is r
│ │ │ +00260ef0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00260f00: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00260f10: 653a 0a20 2020 206e 616d 653a 206c 6461  e:.    name: lda
│ │ │ +00260f20: 702d 7574 696c 730a 2020 2020 7374 6174  p-utils.    stat
│ │ │ +00260f30: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00260f40: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00260f50: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00260f60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00260f70: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00260f80: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +00260f90: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00260fa0: 6564 0a20 202d 2070 6163 6b61 6765 5f6f  ed.  - package_o
│ │ │ +00260fb0: 7065 6e6c 6461 702d 636c 6965 6e74 735f  penldap-clients_
│ │ │ +00260fc0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00260fd0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00261080: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00261090: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00261110: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00261120: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00261130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00261170: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00261180: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002611a0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002611b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002611d0: 7265 6d6f 7665 5f6c 6461 702d 7574 696c  remove_ldap-util
│ │ │ +002611e0: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ +002611f0: 6c64 6170 2d75 7469 6c73 207b 0a20 2070  ldap-utils {.  p
│ │ │ +00261200: 6163 6b61 6765 207b 2027 6c64 6170 2d75  ackage { 'ldap-u
│ │ │ +00261210: 7469 6c73 273a 0a20 2020 2065 6e73 7572  tils':.    ensur
│ │ │ +00261220: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00261230: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00261240: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002629f0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00262a00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00262a10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00262a20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00262a30: 7365 2220 6964 3d22 6964 3935 3222 3e3c se" id="id952">< │ │ │ -00262a40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00262a50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00262a60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00262a70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00262a80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00262a90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00262aa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00262ae0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00262af0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00262b10: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00262b20: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -00262b40: 2072 656d 6f76 655f 736c 6170 640a 0a63 remove_slapd..c │ │ │ -00262b50: 6c61 7373 2072 656d 6f76 655f 736c 6170 lass remove_slap │ │ │ -00262b60: 6420 7b0a 2020 7061 636b 6167 6520 7b20 d {. package { │ │ │ -00262b70: 2773 6c61 7064 273a 0a20 2020 2065 6e73 'slapd':. ens │ │ │ -00262b80: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ -00262b90: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedi │ │ │ -00262c50: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00262c60: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00262d10: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00262d30: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00262d60: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00262cf0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00262d00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00262d20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00262d40: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00262d50: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00262d90: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00262da0: 3a20 2755 6e69 6e73 7461 6c6c 2073 6c61 : 'Uninstall sla │ │ │ -00262db0: 7064 2050 6163 6b61 6765 3a20 456e 7375 pd Package: Ensu │ │ │ -00262dc0: 7265 2073 6c61 7064 2069 7320 7265 6d6f re slapd is remo │ │ │ -00262dd0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -00262de0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -00262df0: 2020 2020 6e61 6d65 3a20 736c 6170 640a name: slapd. │ │ │ -00262e00: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -00262e10: 740a 2020 7461 6773 3a0a 2020 2d20 4e49 t. tags:. - NI │ │ │ -00262e20: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -00262e30: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00262e40: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ -00262e50: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ -00262e60: 290a 2020 2d20 6469 7361 626c 655f 7374 ). - disable_st │ │ │ -00262e70: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00262e80: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00262e90: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00262ea0: 206c 6f77 5f73 6576 6572 6974 790a 2020 low_severity. │ │ │ -00262eb0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -00262ec0: 6564 0a20 202d 2070 6163 6b61 6765 5f6f ed. - package_o │ │ │ -00262ed0: 7065 6e6c 6461 702d 7365 7276 6572 735f penldap-servers_ │ │ │ -00262ee0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +002629f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +00262a00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00262a10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00262a40: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00262ab0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00262ad0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00262b00: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00262a90: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00262aa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00262ae0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00262af0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +00262b40: 2027 556e 696e 7374 616c 6c20 736c 6170 'Uninstall slap │ │ │ +00262b50: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ +00262b60: 6520 736c 6170 6420 6973 2072 656d 6f76 e slapd is remov │ │ │ +00262b70: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +00262b80: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +00262b90: 2020 206e 616d 653a 2073 6c61 7064 0a20 name: slapd. │ │ │ +00262ba0: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ +00262bb0: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +00262bc0: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ +00262bd0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00262be0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ +00262bf0: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ +00262c00: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +00262c10: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +00262c20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00262c30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +00262c40: 6c6f 775f 7365 7665 7269 7479 0a20 202d low_severity. - │ │ │ +00262c50: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00262c60: 640a 2020 2d20 7061 636b 6167 655f 6f70 d. - package_op │ │ │ +00262c70: 656e 6c64 6170 2d73 6572 7665 7273 5f72 enldap-servers_r │ │ │ +00262c80: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.

Remediati │ │ │ +00262d40: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00262d50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00262dd0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00262de0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00262e00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00262e10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00262e30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00262e50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00262e80: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00262e90: 656d 6f76 655f 736c 6170 640a 0a63 6c61  emove_slapd..cla
│ │ │ +00262ea0: 7373 2072 656d 6f76 655f 736c 6170 6420  ss remove_slapd 
│ │ │ +00262eb0: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +00262ec0: 6c61 7064 273a 0a20 2020 2065 6e73 7572  lapd':.    ensur
│ │ │ +00262ed0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00262ee0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00262ef0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation O │ │ │ -00263cc0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00263cd0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00263ce0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00263d20: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00263d30: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00263d40: 203d 205b 2273 6c61 7064 225d 0a3c 2f63   = ["slapd"].
│ │ │ -00263d60: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00263e00: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ -00263e10: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ -00263e20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00263f10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00263f40: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ -00263f60: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ -00263f70: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ -00263f80: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ -00263f90: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ -00263fa0: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ -00263fb0: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ -00263fc0: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ -00263fd0: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ -00263fe0: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ -00263ff0: 3a20 736c 6170 642e 7365 7276 6963 650a  : slapd.service.
│ │ │ -00264000: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -00264010: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -00264020: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ -00264030: 2d20 6e61 6d65 3a20 736c 6170 642e 736f  - name: slapd.so
│ │ │ -00264040: 636b 6574 0a20 2020 2020 2020 2065 6e61  cket.        ena
│ │ │ -00264050: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00264060: 2020 2020 6d61 736b 3a20 7472 7565 0a3c      mask: true.<
│ │ │ -00264070: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00264120: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00264130: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ -00263ed0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ -00263ee0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ -00263f20: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00263f30: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002641d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002641e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00264230: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00264270: 6c75 6465 2064 6973 6162 6c65 5f73 6c61  lude disable_sla
│ │ │ -00264280: 7064 0a0a 636c 6173 7320 6469 7361 626c  pd..class disabl
│ │ │ -00264290: 655f 736c 6170 6420 7b0a 2020 7365 7276  e_slapd {.  serv
│ │ │ -002642a0: 6963 6520 7b27 736c 6170 6427 3a0a 2020  ice {'slapd':.  
│ │ │ -002642b0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -002642c0: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -002642d0: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -002642e0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002642f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -002643a0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -002643b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -002643c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002643d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002643e0: 7365 2220 6964 3d22 6964 3935 3922 3e3c se" id="id959">< │ │ │ -002643f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00264400: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00264410: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00264420: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00264430: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -002644c0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002644d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ -002641c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002641f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00264200: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00264240: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00264250: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ -00264440: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00264450: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00264490: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002644a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -002644f0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00264500: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00264510: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00264520: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00264530: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -00264540: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00264550: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -00264560: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -00264570: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00264580: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00264590: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -002645a0: 6963 655f 736c 6170 645f 6469 7361 626c ice_slapd_disabl │ │ │ -002645b0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361 ed..- name: Disa │ │ │ -002645c0: 626c 6520 4c44 4150 2053 6572 7665 7220 ble LDAP Server │ │ │ -002645d0: 2873 6c61 7064 2920 2d20 4469 7361 626c (slapd) - Disabl │ │ │ -002645e0: 6520 7365 7276 6963 6520 736c 6170 640a e service slapd. │ │ │ -002645f0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ -00264600: 6d65 3a20 4469 7361 626c 6520 4c44 4150 me: Disable LDAP │ │ │ -00264610: 2053 6572 7665 7220 2873 6c61 7064 2920 Server (slapd) │ │ │ -00264620: 2d20 436f 6c6c 6563 7420 7379 7374 656d - Collect system │ │ │ -00264630: 6420 5365 7276 6963 6573 2050 7265 7365 d Services Prese │ │ │ -00264640: 6e74 2069 6e20 7468 6520 5379 7374 656d nt in the System │ │ │ -00264650: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -00264660: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379 ltin.command: sy │ │ │ -00264670: 7374 656d 6374 6c20 2d71 206c 6973 742d stemctl -q list- │ │ │ -00264680: 756e 6974 2d66 696c 6573 202d 2d74 7970 unit-files --typ │ │ │ -00264690: 6520 7365 7276 6963 650a 2020 2020 7265 e service. re │ │ │ -002646a0: 6769 7374 6572 3a20 7365 7276 6963 655f gister: service_ │ │ │ -002646b0: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ -002646c0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ -002646d0: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ -002646e0: 7365 7276 6963 655f 6578 6973 7473 2e72 service_exists.r │ │ │ -002646f0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ -00264700: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ -00264710: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ -00264720: 2044 6973 6162 6c65 204c 4441 5020 5365 Disable LDAP Se │ │ │ -00264730: 7276 6572 2028 736c 6170 6429 202d 2045 rver (slapd) - E │ │ │ -00264740: 6e73 7572 6520 736c 6170 642e 7365 7276 nsure slapd.serv │ │ │ -00264750: 6963 6520 6973 204d 6173 6b65 640a 2020 ice is Masked. │ │ │ -00264760: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00264770: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -00264780: 206e 616d 653a 2073 6c61 7064 2e73 6572 name: slapd.ser │ │ │ -00264790: 7669 6365 0a20 2020 2020 2073 7461 7465 vice. state │ │ │ -002647a0: 3a20 7374 6f70 7065 640a 2020 2020 2020 : stopped. │ │ │ -002647b0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -002647c0: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ -002647d0: 650a 2020 2020 7768 656e 3a20 7365 7276 e. when: serv │ │ │ -002647e0: 6963 655f 6578 6973 7473 2e73 7464 6f75 ice_exists.stdou │ │ │ -002647f0: 745f 6c69 6e65 7320 6973 2073 6561 7263 t_lines is searc │ │ │ -00264800: 6828 2273 6c61 7064 2e73 6572 7669 6365 h("slapd.service │ │ │ -00264810: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -00264820: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e e).. - name: Un │ │ │ -00264830: 6974 2053 6f63 6b65 7420 4578 6973 7473 it Socket Exists │ │ │ -00264840: 202d 2073 6c61 7064 2e73 6f63 6b65 740a - slapd.socket. │ │ │ -00264850: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -00264860: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -00264870: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -00264880: 6e69 742d 6669 6c65 7320 736c 6170 642e nit-files slapd. │ │ │ -00264890: 736f 636b 6574 0a20 2020 2072 6567 6973 socket. regis │ │ │ -002648a0: 7465 723a 2073 6f63 6b65 745f 6669 6c65 ter: socket_file │ │ │ -002648b0: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ -002648c0: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ -002648d0: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ -002648e0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -002648f0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -00264900: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -00264910: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -00264920: 6e61 6d65 3a20 4469 7361 626c 6520 4c44 name: Disable LD │ │ │ -00264930: 4150 2053 6572 7665 7220 2873 6c61 7064 AP Server (slapd │ │ │ -00264940: 2920 2d20 4469 7361 626c 6520 536f 636b ) - Disable Sock │ │ │ -00264950: 6574 2073 6c61 7064 0a20 2020 2061 6e73 et slapd. ans │ │ │ -00264960: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -00264970: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -00264980: 3a20 736c 6170 642e 736f 636b 6574 0a20 : slapd.socket. │ │ │ -00264990: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ -002649a0: 6c73 650a 2020 2020 2020 7374 6174 653a lse. state: │ │ │ -002649b0: 2073 746f 7070 6564 0a20 2020 2020 206d stopped. m │ │ │ -002649c0: 6173 6b65 643a 2074 7275 650a 2020 2020 asked: true. │ │ │ -002649d0: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ -002649e0: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -002649f0: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -00264a00: 2273 6c61 7064 2e73 6f63 6b65 7422 2c20 "slapd.socket", │ │ │ -00264a10: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ -00264a20: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -00264a30: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00264a40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00264a50: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00264a60: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -00264a70: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -00264a80: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00264a90: 7365 7276 6963 655f 736c 6170 645f 6469 service_slapd_di │ │ │ -00264aa0: 7361 626c 6564 0a20 202d 2073 7065 6369 sabled. - speci │ │ │ -00264ab0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b al_service_block │ │ │ -00264ac0: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ -00264ad0: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ -00264ae0: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -00264af0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c '.< │ │ │ +00263cb0: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +00263cc0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00263cd0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00263d50: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00263d70: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00263dc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00263df0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00263d60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00263d80: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00263dd0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00263de0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00263e10: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00263e20: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00263e30: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00263e40: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00263e50: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00263e60: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00263e70: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00263e80: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00263e90: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00263ea0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00263eb0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +00263ec0: 6c61 7064 5f64 6973 6162 6c65 640a 0a2d  lapd_disabled..-
│ │ │ +00263ed0: 206e 616d 653a 2044 6973 6162 6c65 204c   name: Disable L
│ │ │ +00263ee0: 4441 5020 5365 7276 6572 2028 736c 6170  DAP Server (slap
│ │ │ +00263ef0: 6429 202d 2044 6973 6162 6c65 2073 6572  d) - Disable ser
│ │ │ +00263f00: 7669 6365 2073 6c61 7064 0a20 2062 6c6f  vice slapd.  blo
│ │ │ +00263f10: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00263f20: 6973 6162 6c65 204c 4441 5020 5365 7276  isable LDAP Serv
│ │ │ +00263f30: 6572 2028 736c 6170 6429 202d 2043 6f6c  er (slapd) - Col
│ │ │ +00263f40: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +00263f50: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +00263f60: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +00263f70: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00263f80: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +00263f90: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +00263fa0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +00263fb0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +00263fc0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +00263fd0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00263fe0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00263ff0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +00264000: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +00264010: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00264020: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00264030: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00264040: 626c 6520 4c44 4150 2053 6572 7665 7220  ble LDAP Server 
│ │ │ +00264050: 2873 6c61 7064 2920 2d20 456e 7375 7265  (slapd) - Ensure
│ │ │ +00264060: 2073 6c61 7064 2e73 6572 7669 6365 2069   slapd.service i
│ │ │ +00264070: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +00264080: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00264090: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002640a0: 3a20 736c 6170 642e 7365 7276 6963 650a  : slapd.service.
│ │ │ +002640b0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002640c0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +002640d0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002640e0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002640f0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +00264100: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00264110: 6573 2069 7320 7365 6172 6368 2822 736c  es is search("sl
│ │ │ +00264120: 6170 642e 7365 7276 6963 6522 2c20 6d75  apd.service", mu
│ │ │ +00264130: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +00264140: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +00264150: 636b 6574 2045 7869 7374 7320 2d20 736c  cket Exists - sl
│ │ │ +00264160: 6170 642e 736f 636b 6574 0a20 2020 2061  apd.socket.    a
│ │ │ +00264170: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00264180: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00264190: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002641a0: 696c 6573 2073 6c61 7064 2e73 6f63 6b65  iles slapd.socke
│ │ │ +002641b0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +002641c0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002641d0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002641e0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002641f0: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00264200: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00264210: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00264220: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00264230: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00264240: 2044 6973 6162 6c65 204c 4441 5020 5365   Disable LDAP Se
│ │ │ +00264250: 7276 6572 2028 736c 6170 6429 202d 2044  rver (slapd) - D
│ │ │ +00264260: 6973 6162 6c65 2053 6f63 6b65 7420 736c  isable Socket sl
│ │ │ +00264270: 6170 640a 2020 2020 616e 7369 626c 652e  apd.    ansible.
│ │ │ +00264280: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00264290: 0a20 2020 2020 206e 616d 653a 2073 6c61  .      name: sla
│ │ │ +002642a0: 7064 2e73 6f63 6b65 740a 2020 2020 2020  pd.socket.      
│ │ │ +002642b0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002642c0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +002642d0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +002642e0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002642f0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00264300: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00264310: 2069 7320 7365 6172 6368 2822 736c 6170   is search("slap
│ │ │ +00264320: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ +00264330: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +00264340: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00264350: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00264360: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00264370: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00264380: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00264390: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002643a0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002643b0: 6365 5f73 6c61 7064 5f64 6973 6162 6c65  ce_slapd_disable
│ │ │ +002643c0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +002643d0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +002643e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +002643f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00264400: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00264420: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +002644c0: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +002644d0: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +002644e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +002645d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00264600: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +00264620: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +00264630: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +00264640: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +00264650: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +00264660: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +00264670: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +00264680: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +00264690: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +002646a0: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +002646b0: 3a20 736c 6170 642e 7365 7276 6963 650a  : slapd.service.
│ │ │ +002646c0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +002646d0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +002646e0: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ +002646f0: 2d20 6e61 6d65 3a20 736c 6170 642e 736f  - name: slapd.so
│ │ │ +00264700: 636b 6574 0a20 2020 2020 2020 2065 6e61  cket.        ena
│ │ │ +00264710: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00264720: 2020 2020 6d61 736b 3a20 7472 7565 0a3c      mask: true.<
│ │ │ +00264730: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +002647e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002647f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +00264590: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +002645a0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +002645e0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002645f0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00264890: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002648a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002648f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00264930: 6c75 6465 2064 6973 6162 6c65 5f73 6c61  lude disable_sla
│ │ │ +00264940: 7064 0a0a 636c 6173 7320 6469 7361 626c  pd..class disabl
│ │ │ +00264950: 655f 736c 6170 6420 7b0a 2020 7365 7276  e_slapd {.  serv
│ │ │ +00264960: 6963 6520 7b27 736c 6170 6427 3a0a 2020  ice {'slapd':.  
│ │ │ +00264970: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +00264980: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +00264990: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +002649a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +002649b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00264a60: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00264a70: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00264a80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[customizat
│ │ │ +00264ad0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00264ae0: 6173 6b65 6420 3d20 5b22 736c 6170 6422  asked = ["slapd"
│ │ │ +00264af0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00264b00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>R │ │ │ -00269190: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002691a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +00264880: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002648b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002648c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00264900: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00264910: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00269240: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00269250: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002692a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002692e0: 6e63 6c75 6465 2072 656d 6f76 655f 7270  nclude remove_rp
│ │ │ -002692f0: 6362 696e 640a 0a63 6c61 7373 2072 656d  cbind..class rem
│ │ │ -00269300: 6f76 655f 7270 6362 696e 6420 7b0a 2020  ove_rpcbind {.  
│ │ │ -00269310: 7061 636b 6167 6520 7b20 2772 7063 6269  package { 'rpcbi
│ │ │ -00269320: 6e64 273a 0a20 2020 2065 6e73 7572 6520  nd':.    ensure 
│ │ │ -00269330: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00269340: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00269400: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00269410: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00269490: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002694d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ -00269230: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00269260: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00269270: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002692b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002692c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -002694a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002694c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002694f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00269510: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00269540: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00269550: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00269560: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00269570: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00269580: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00269590: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002695a0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002695b0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002695c0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002695d0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -002695e0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002695f0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -00269600: 7063 6269 6e64 5f72 656d 6f76 6564 0a0a  pcbind_removed..
│ │ │ -00269610: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00269620: 6c6c 2072 7063 6269 6e64 2050 6163 6b61  ll rpcbind Packa
│ │ │ -00269630: 6765 3a20 456e 7375 7265 2072 7063 6269  ge: Ensure rpcbi
│ │ │ -00269640: 6e64 2069 7320 7265 6d6f 7665 6427 0a20  nd is removed'. 
│ │ │ -00269650: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00269660: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00269670: 6d65 3a20 7270 6362 696e 640a 2020 2020  me: rpcbind.    
│ │ │ -00269680: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00269690: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -002696a0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -002696b0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -002696c0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002696d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002696e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002696f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00269700: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -00269710: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00269720: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00269730: 6167 655f 7270 6362 696e 645f 7265 6d6f  age_rpcbind_remo
│ │ │ -00269740: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +00269240: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002692e0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002692f0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00269300: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00269310: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00269320: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +00269330: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00269340: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00269350: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00269360: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +00269370: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00269380: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00269390: 7061 636b 6167 655f 7270 6362 696e 645f  package_rpcbind_
│ │ │ +002693a0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ +002693b0: 2027 556e 696e 7374 616c 6c20 7270 6362   'Uninstall rpcb
│ │ │ +002693c0: 696e 6420 5061 636b 6167 653a 2045 6e73  ind Package: Ens
│ │ │ +002693d0: 7572 6520 7270 6362 696e 6420 6973 2072  ure rpcbind is r
│ │ │ +002693e0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +002693f0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00269400: 653a 0a20 2020 206e 616d 653a 2072 7063  e:.    name: rpc
│ │ │ +00269410: 6269 6e64 0a20 2020 2073 7461 7465 3a20  bind.    state: 
│ │ │ +00269420: 6162 7365 6e74 0a20 2077 6865 6e3a 2027  absent.  when: '
│ │ │ +00269430: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00269440: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00269450: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00269460: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00269470: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00269480: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00269490: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +002694a0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +002694b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002694c0: 0a20 202d 2070 6163 6b61 6765 5f72 7063  .  - package_rpc
│ │ │ +002694d0: 6269 6e64 5f72 656d 6f76 6564 0a3c 2f63  bind_removed.
│ │ │ +002694f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00269590: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002695a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002695b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +00269230: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00269260: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00269270: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002692b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002692c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +00269630: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00269660: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00269680: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00269690: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002696b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002696c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002696e0: 6c75 6465 2072 656d 6f76 655f 7270 6362  lude remove_rpcb
│ │ │ +002696f0: 696e 640a 0a63 6c61 7373 2072 656d 6f76  ind..class remov
│ │ │ +00269700: 655f 7270 6362 696e 6420 7b0a 2020 7061  e_rpcbind {.  pa
│ │ │ +00269710: 636b 6167 6520 7b20 2772 7063 6269 6e64  ckage { 'rpcbind
│ │ │ +00269720: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00269730: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00269740: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0026a850: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0026a860: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0026a8c0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -0026a8d0: 6564 203d 205b 2272 7063 6269 6e64 225d  ed = ["rpcbind"]
│ │ │ -0026a8e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Kub │ │ │ -0026a9a0: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -0026a9b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0026aa40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0026aa60: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:mediumReboot │ │ │ -0026aa90: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true │ │ │ -0026aab0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0026aae0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ -0026aaf0: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ -0026ab00: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ -0026ab10: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ -0026ab20: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ -0026ab30: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ -0026ab40: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ -0026ab50: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ -0026ab60: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ -0026ab70: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ -0026ab80: 6e61 6d65 3a20 7270 6362 696e 642e 7365  name: rpcbind.se
│ │ │ -0026ab90: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -0026aba0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0026abb0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -0026abc0: 2020 2020 2020 2d20 6e61 6d65 3a20 7270        - name: rp
│ │ │ -0026abd0: 6362 696e 642e 736f 636b 6574 0a20 2020  cbind.socket.   
│ │ │ -0026abe0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0026abf0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -0026ac00: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ -0026acc0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0026acd0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0026ad50: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0026ad60: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0026ad80: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0026ad90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0026adb0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0026add0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0026ae00: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -0026ae10: 6162 6c65 5f72 7063 6269 6e64 0a0a 636c  able_rpcbind..cl
│ │ │ -0026ae20: 6173 7320 6469 7361 626c 655f 7270 6362  ass disable_rpcb
│ │ │ -0026ae30: 696e 6420 7b0a 2020 7365 7276 6963 6520  ind {.  service 
│ │ │ -0026ae40: 7b27 7270 6362 696e 6427 3a0a 2020 2020  {'rpcbind':.    
│ │ │ -0026ae50: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -0026ae60: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -0026ae70: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -0026ae80: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0026af40: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0026af50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0026afd0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0026afe0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0026b000: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0026b010: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0026b030: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0026b050: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0026b080: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0026b090: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0026b0a0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0026b0b0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0026b0c0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0026b0d0: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -0026b0e0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -0026b0f0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -0026b100: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0026b110: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0026b120: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0026b130: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -0026b140: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0026b150: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0026b160: 7669 6365 5f72 7063 6269 6e64 5f64 6973  vice_rpcbind_dis
│ │ │ -0026b170: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -0026b180: 6973 6162 6c65 2072 7063 6269 6e64 2053  isable rpcbind S
│ │ │ -0026b190: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0026b1a0: 2073 6572 7669 6365 2072 7063 6269 6e64   service rpcbind
│ │ │ -0026b1b0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0026b1c0: 616d 653a 2044 6973 6162 6c65 2072 7063  ame: Disable rpc
│ │ │ -0026b1d0: 6269 6e64 2053 6572 7669 6365 202d 2043  bind Service - C
│ │ │ -0026b1e0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ -0026b1f0: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ -0026b200: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ -0026b210: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0026b220: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0026b230: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0026b240: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -0026b250: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -0026b260: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -0026b270: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0026b280: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0026b290: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -0026b2a0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -0026b2b0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0026b2c0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0026b2d0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -0026b2e0: 7361 626c 6520 7270 6362 696e 6420 5365  sable rpcbind Se
│ │ │ -0026b2f0: 7276 6963 6520 2d20 456e 7375 7265 2072  rvice - Ensure r
│ │ │ -0026b300: 7063 6269 6e64 2e73 6572 7669 6365 2069  pcbind.service i
│ │ │ -0026b310: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -0026b320: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -0026b330: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -0026b340: 3a20 7270 6362 696e 642e 7365 7276 6963  : rpcbind.servic
│ │ │ -0026b350: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0026b360: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -0026b370: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0026b380: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0026b390: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -0026b3a0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -0026b3b0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -0026b3c0: 7270 6362 696e 642e 7365 7276 6963 6522  rpcbind.service"
│ │ │ -0026b3d0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -0026b3e0: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ -0026b3f0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ -0026b400: 2d20 7270 6362 696e 642e 736f 636b 6574  - rpcbind.socket
│ │ │ -0026b410: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0026b420: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -0026b430: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -0026b440: 756e 6974 2d66 696c 6573 2072 7063 6269  unit-files rpcbi
│ │ │ -0026b450: 6e64 2e73 6f63 6b65 740a 2020 2020 7265  nd.socket.    re
│ │ │ -0026b460: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -0026b470: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -0026b480: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0026b490: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0026b4a0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0026b4b0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0026b4c0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0026b4d0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0026b4e0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0026b4f0: 2072 7063 6269 6e64 2053 6572 7669 6365   rpcbind Service
│ │ │ -0026b500: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -0026b510: 7420 7270 6362 696e 640a 2020 2020 616e  t rpcbind.    an
│ │ │ -0026b520: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0026b530: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0026b540: 653a 2072 7063 6269 6e64 2e73 6f63 6b65  e: rpcbind.socke
│ │ │ -0026b550: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -0026b560: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -0026b570: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0026b580: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0026b590: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -0026b5a0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -0026b5b0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0026b5c0: 6368 2822 7270 6362 696e 642e 736f 636b  ch("rpcbind.sock
│ │ │ -0026b5d0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -0026b5e0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -0026b5f0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0026b600: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0026b610: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -0026b620: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0026b630: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0026b640: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0026b650: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -0026b660: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0026b670: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0026b680: 7270 6362 696e 645f 6469 7361 626c 6564  rpcbind_disabled
│ │ │ -0026b690: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0026b6a0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -0026b6b0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -0026b6c0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0026b6d0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
Complexity │ │ │ +0026a8f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0026a910: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0026a920: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026a930: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0026a940: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0026a960: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0026a990: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0026a9a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0026a9b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0026a9c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0026a9d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0026a9e0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0026a9f0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0026aa00: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +0026aa10: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0026aa20: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0026aa30: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0026aa40: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +0026aa50: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0026aa60: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0026aa70: 6963 655f 7270 6362 696e 645f 6469 7361  ice_rpcbind_disa
│ │ │ +0026aa80: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ +0026aa90: 7361 626c 6520 7270 6362 696e 6420 5365  sable rpcbind Se
│ │ │ +0026aaa0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +0026aab0: 7365 7276 6963 6520 7270 6362 696e 640a  service rpcbind.
│ │ │ +0026aac0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +0026aad0: 6d65 3a20 4469 7361 626c 6520 7270 6362  me: Disable rpcb
│ │ │ +0026aae0: 696e 6420 5365 7276 6963 6520 2d20 436f  ind Service - Co
│ │ │ +0026aaf0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +0026ab00: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +0026ab10: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +0026ab20: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0026ab30: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0026ab40: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0026ab50: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +0026ab60: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +0026ab70: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +0026ab80: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0026ab90: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0026aba0: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +0026abb0: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +0026abc0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +0026abd0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +0026abe0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +0026abf0: 6162 6c65 2072 7063 6269 6e64 2053 6572  able rpcbind Ser
│ │ │ +0026ac00: 7669 6365 202d 2045 6e73 7572 6520 7270  vice - Ensure rp
│ │ │ +0026ac10: 6362 696e 642e 7365 7276 6963 6520 6973  cbind.service is
│ │ │ +0026ac20: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +0026ac30: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0026ac40: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0026ac50: 2072 7063 6269 6e64 2e73 6572 7669 6365   rpcbind.service
│ │ │ +0026ac60: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0026ac70: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +0026ac80: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0026ac90: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0026aca0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +0026acb0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0026acc0: 6e65 7320 6973 2073 6561 7263 6828 2272  nes is search("r
│ │ │ +0026acd0: 7063 6269 6e64 2e73 6572 7669 6365 222c  pcbind.service",
│ │ │ +0026ace0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0026acf0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +0026ad00: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +0026ad10: 2072 7063 6269 6e64 2e73 6f63 6b65 740a   rpcbind.socket.
│ │ │ +0026ad20: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0026ad30: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0026ad40: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0026ad50: 6e69 742d 6669 6c65 7320 7270 6362 696e  nit-files rpcbin
│ │ │ +0026ad60: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ +0026ad70: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +0026ad80: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +0026ad90: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0026ada0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0026adb0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0026adc0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0026add0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0026ade0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0026adf0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0026ae00: 7270 6362 696e 6420 5365 7276 6963 6520  rpcbind Service 
│ │ │ +0026ae10: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +0026ae20: 2072 7063 6269 6e64 0a20 2020 2061 6e73   rpcbind.    ans
│ │ │ +0026ae30: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0026ae40: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0026ae50: 3a20 7270 6362 696e 642e 736f 636b 6574  : rpcbind.socket
│ │ │ +0026ae60: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0026ae70: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +0026ae80: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +0026ae90: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0026aea0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +0026aeb0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +0026aec0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +0026aed0: 6828 2272 7063 6269 6e64 2e73 6f63 6b65  h("rpcbind.socke
│ │ │ +0026aee0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +0026aef0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +0026af00: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0026af10: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0026af20: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0026af30: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0026af40: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0026af50: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0026af60: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +0026af70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0026af80: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ +0026af90: 7063 6269 6e64 5f64 6973 6162 6c65 640a  pcbind_disabled.
│ │ │ +0026afa0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0026afb0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0026afc0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0026afd0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0026afe0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +0026b0a0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ +0026b0b0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
< │ │ │ +0026b150: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026b160: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0026b190: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0026b1a0: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ +0026b1f0: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ +0026b200: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ +0026b210: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ +0026b220: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ +0026b230: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ +0026b240: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ +0026b250: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ +0026b260: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ +0026b270: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ +0026b280: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ +0026b290: 7270 6362 696e 642e 7365 7276 6963 650a  rpcbind.service.
│ │ │ +0026b2a0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +0026b2b0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +0026b2c0: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ +0026b2d0: 2d20 6e61 6d65 3a20 7270 6362 696e 642e  - name: rpcbind.
│ │ │ +0026b2e0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +0026b2f0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0026b300: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +0026b310: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0026b3d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0026b3e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +0026b140: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0026b170: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ +0026b180: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ +0026b1c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0026b1d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0026b4b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0026b4c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0026b510: 6e63 6c75 6465 2064 6973 6162 6c65 5f72  nclude disable_r
│ │ │ +0026b520: 7063 6269 6e64 0a0a 636c 6173 7320 6469  pcbind..class di
│ │ │ +0026b530: 7361 626c 655f 7270 6362 696e 6420 7b0a  sable_rpcbind {.
│ │ │ +0026b540: 2020 7365 7276 6963 6520 7b27 7270 6362    service {'rpcb
│ │ │ +0026b550: 696e 6427 3a0a 2020 2020 656e 6162 6c65  ind':.    enable
│ │ │ +0026b560: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +0026b570: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0026b580: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +0026b590: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0026b640: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +0026b650: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +0026b660: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +0026b6b0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +0026b6c0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +0026b6d0: 5b22 7270 6362 696e 6422 5d0a 3c2f 636f  ["rpcbind"].
< │ │ │ 0026b6f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0026b700: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0026b710: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0026b720: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0026b730: 6439 3733 2220 7461 6269 6e64 6578 3d22 d973" tabindex=" │ │ │ 0026b740: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -159016,257 +159016,257 @@ │ │ │ 0026d270: 6172 6765 743d 2223 6964 3937 3522 2074 arget="#id975" t │ │ │ 0026d280: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0026d290: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0026d2a0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0026d2b0: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0026d2c0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0026d2d0: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0026d2e0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0026d2f0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0026d350: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -0026d360: 6564 203d 205b 226e 6673 2d73 6572 7665  ed = ["nfs-serve
│ │ │ -0026d370: 7222 5d0a 3c2f 636f 6465 3e3c 2f70 7265  r"].
Remediation │ │ │ -0026d430: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ -0026d440: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0026d4c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
│ │ │ -0026d510: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 < │ │ │ -0026d540: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Complexity:low
Disrup │ │ │ +0026b490: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0026b4a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0026b4e0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0026b4f0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0026d4d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0026d4e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:medium
Reb │ │ │ -0026d520: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -0026d530: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

apiVers │ │ │ -0026d580: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -0026d590: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -0026d5a0: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -0026d5b0: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -0026d5c0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -0026d5d0: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -0026d5e0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -0026d5f0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -0026d600: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -0026d610: 202d 206e 616d 653a 206e 6673 2d73 6572 - name: nfs-ser │ │ │ -0026d620: 7665 722e 7365 7276 6963 650a 2020 2020 ver.service. │ │ │ -0026d630: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ -0026d640: 7365 0a20 2020 2020 2020 206d 6173 6b3a se. mask: │ │ │ -0026d650: 2074 7275 650a 2020 2020 2020 2d20 6e61 true. - na │ │ │ -0026d660: 6d65 3a20 6e66 732d 7365 7276 6572 2e73 me: nfs-server.s │ │ │ -0026d670: 6f63 6b65 740a 2020 2020 2020 2020 656e ocket. en │ │ │ -0026d680: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -0026d690: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ -0026d6a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

│ │ │ -0026d750: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0026d760: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0026d800: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0026d8a0: 636c 7564 6520 6469 7361 626c 655f 6e66  clude disable_nf
│ │ │ -0026d8b0: 732d 7365 7276 6572 0a0a 636c 6173 7320  s-server..class 
│ │ │ -0026d8c0: 6469 7361 626c 655f 6e66 732d 7365 7276  disable_nfs-serv
│ │ │ -0026d8d0: 6572 207b 0a20 2073 6572 7669 6365 207b  er {.  service {
│ │ │ -0026d8e0: 276e 6673 2d73 6572 7665 7227 3a0a 2020  'nfs-server':.  
│ │ │ -0026d8f0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -0026d900: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -0026d910: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -0026d920: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0026d930: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -0026d9e0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -0026d9f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0026da00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026da10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026da20: 7365 2220 6964 3d22 6964 3937 3822 3e3c se" id="id978">< │ │ │ -0026da30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026da40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026da50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026da60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026da70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0026db00: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0026db10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -0026d7f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0026d820: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0026d830: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0026d870: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0026d880: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -0026da80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026da90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0026dad0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026dae0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -0026db30: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0026db40: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0026db50: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0026db60: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0026db70: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0026db80: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -0026db90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -0026dba0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -0026dbb0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -0026dbc0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -0026dbd0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0026dbe0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0026dbf0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ -0026dc00: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0026dc10: 7365 7276 6963 655f 6e66 735f 6469 7361 service_nfs_disa │ │ │ -0026dc20: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e bled. - unknown │ │ │ -0026dc30: 5f73 6576 6572 6974 790a 0a2d 206e 616d _severity..- nam │ │ │ -0026dc40: 653a 2044 6973 6162 6c65 204e 6574 776f e: Disable Netwo │ │ │ -0026dc50: 726b 2046 696c 6520 5379 7374 656d 2028 rk File System ( │ │ │ -0026dc60: 6e66 7329 202d 2044 6973 6162 6c65 2073 nfs) - Disable s │ │ │ -0026dc70: 6572 7669 6365 206e 6673 2d73 6572 7665 ervice nfs-serve │ │ │ -0026dc80: 720a 2020 626c 6f63 6b3a 0a0a 2020 2d20 r. block:.. - │ │ │ -0026dc90: 6e61 6d65 3a20 4469 7361 626c 6520 4e65 name: Disable Ne │ │ │ -0026dca0: 7477 6f72 6b20 4669 6c65 2053 7973 7465 twork File Syste │ │ │ -0026dcb0: 6d20 286e 6673 2920 2d20 436f 6c6c 6563 m (nfs) - Collec │ │ │ -0026dcc0: 7420 7379 7374 656d 6420 5365 7276 6963 t systemd Servic │ │ │ -0026dcd0: 6573 2050 7265 7365 6e74 2069 6e0a 2020 es Present in. │ │ │ -0026dce0: 2020 2020 7468 6520 5379 7374 656d 0a20 the System. │ │ │ -0026dcf0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -0026dd00: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -0026dd10: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -0026dd20: 6974 2d66 696c 6573 202d 2d74 7970 6520 it-files --type │ │ │ -0026dd30: 7365 7276 6963 650a 2020 2020 7265 6769 service. regi │ │ │ -0026dd40: 7374 6572 3a20 7365 7276 6963 655f 6578 ster: service_ex │ │ │ -0026dd50: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -0026dd60: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -0026dd70: 2066 6169 6c65 645f 7768 656e 3a20 7365 failed_when: se │ │ │ -0026dd80: 7276 6963 655f 6578 6973 7473 2e72 6320 rvice_exists.rc │ │ │ -0026dd90: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -0026dda0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -0026ddb0: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -0026ddc0: 6973 6162 6c65 204e 6574 776f 726b 2046 isable Network F │ │ │ -0026ddd0: 696c 6520 5379 7374 656d 2028 6e66 7329 ile System (nfs) │ │ │ -0026dde0: 202d 2045 6e73 7572 6520 6e66 732d 7365 - Ensure nfs-se │ │ │ -0026ddf0: 7276 6572 2e73 6572 7669 6365 2069 7320 rver.service is │ │ │ -0026de00: 4d61 736b 6564 0a20 2020 2061 6e73 6962 Masked. ansib │ │ │ -0026de10: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -0026de20: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -0026de30: 6e66 732d 7365 7276 6572 2e73 6572 7669 nfs-server.servi │ │ │ -0026de40: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -0026de50: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -0026de60: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -0026de70: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -0026de80: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -0026de90: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -0026dea0: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -0026deb0: 226e 6673 2d73 6572 7665 722e 7365 7276 "nfs-server.serv │ │ │ -0026dec0: 6963 6522 2c20 6d75 6c74 696c 696e 653d ice", multiline= │ │ │ -0026ded0: 5472 7565 290a 0a20 202d 206e 616d 653a True).. - name: │ │ │ -0026dee0: 2055 6e69 7420 536f 636b 6574 2045 7869 Unit Socket Exi │ │ │ -0026def0: 7374 7320 2d20 6e66 732d 7365 7276 6572 sts - nfs-server │ │ │ -0026df00: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ -0026df10: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -0026df20: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -0026df30: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -0026df40: 7320 6e66 732d 7365 7276 6572 2e73 6f63 s nfs-server.soc │ │ │ -0026df50: 6b65 740a 2020 2020 7265 6769 7374 6572 ket. register │ │ │ -0026df60: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ -0026df70: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -0026df80: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -0026df90: 2066 6169 6c65 645f 7768 656e 3a20 736f failed_when: so │ │ │ -0026dfa0: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -0026dfb0: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ -0026dfc0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ -0026dfd0: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ -0026dfe0: 653a 2044 6973 6162 6c65 204e 6574 776f e: Disable Netwo │ │ │ -0026dff0: 726b 2046 696c 6520 5379 7374 656d 2028 rk File System ( │ │ │ -0026e000: 6e66 7329 202d 2044 6973 6162 6c65 2053 nfs) - Disable S │ │ │ -0026e010: 6f63 6b65 7420 6e66 732d 7365 7276 6572 ocket nfs-server │ │ │ -0026e020: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -0026e030: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ -0026e040: 2020 2020 6e61 6d65 3a20 6e66 732d 7365 name: nfs-se │ │ │ -0026e050: 7276 6572 2e73 6f63 6b65 740a 2020 2020 rver.socket. │ │ │ -0026e060: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -0026e070: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -0026e080: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -0026e090: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -0026e0a0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -0026e0b0: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -0026e0c0: 6573 2069 7320 7365 6172 6368 2822 6e66 es is search("nf │ │ │ -0026e0d0: 732d 7365 7276 6572 2e73 6f63 6b65 7422 s-server.socket" │ │ │ -0026e0e0: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -0026e0f0: 290a 2020 7461 6773 3a0a 2020 2d20 4e49 ). tags:. - NI │ │ │ -0026e100: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -0026e110: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -0026e120: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ -0026e130: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ -0026e140: 290a 2020 2d20 6469 7361 626c 655f 7374 ). - disable_st │ │ │ -0026e150: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0026e160: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0026e170: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0026e180: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0026e190: 640a 2020 2d20 7365 7276 6963 655f 6e66 d. - service_nf │ │ │ -0026e1a0: 735f 6469 7361 626c 6564 0a20 202d 2073 s_disabled. - s │ │ │ -0026e1b0: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ -0026e1c0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e lock. - unknown │ │ │ -0026e1d0: 5f73 6576 6572 6974 790a 2020 7768 656e _severity. when │ │ │ -0026e1e0: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -0026e1f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -0026e200: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
Complexity │ │ │ +0026d380: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0026d3a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0026d3b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026d3c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0026d3d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0026d3f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0026d420: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0026d430: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0026d440: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0026d450: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0026d460: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0026d470: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0026d480: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0026d490: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0026d4a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0026d4b0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0026d4c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0026d4d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0026d4e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0026d4f0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0026d500: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0026d510: 7669 6365 5f6e 6673 5f64 6973 6162 6c65  vice_nfs_disable
│ │ │ +0026d520: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +0026d530: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ +0026d540: 4469 7361 626c 6520 4e65 7477 6f72 6b20  Disable Network 
│ │ │ +0026d550: 4669 6c65 2053 7973 7465 6d20 286e 6673  File System (nfs
│ │ │ +0026d560: 2920 2d20 4469 7361 626c 6520 7365 7276  ) - Disable serv
│ │ │ +0026d570: 6963 6520 6e66 732d 7365 7276 6572 0a20  ice nfs-server. 
│ │ │ +0026d580: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +0026d590: 653a 2044 6973 6162 6c65 204e 6574 776f  e: Disable Netwo
│ │ │ +0026d5a0: 726b 2046 696c 6520 5379 7374 656d 2028  rk File System (
│ │ │ +0026d5b0: 6e66 7329 202d 2043 6f6c 6c65 6374 2073  nfs) - Collect s
│ │ │ +0026d5c0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +0026d5d0: 5072 6573 656e 7420 696e 0a20 2020 2020  Present in.     
│ │ │ +0026d5e0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0026d5f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0026d600: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0026d610: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0026d620: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0026d630: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0026d640: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0026d650: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0026d660: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0026d670: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0026d680: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0026d690: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0026d6a0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0026d6b0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0026d6c0: 626c 6520 4e65 7477 6f72 6b20 4669 6c65  ble Network File
│ │ │ +0026d6d0: 2053 7973 7465 6d20 286e 6673 2920 2d20   System (nfs) - 
│ │ │ +0026d6e0: 456e 7375 7265 206e 6673 2d73 6572 7665  Ensure nfs-serve
│ │ │ +0026d6f0: 722e 7365 7276 6963 6520 6973 204d 6173  r.service is Mas
│ │ │ +0026d700: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +0026d710: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0026d720: 0a20 2020 2020 206e 616d 653a 206e 6673  .      name: nfs
│ │ │ +0026d730: 2d73 6572 7665 722e 7365 7276 6963 650a  -server.service.
│ │ │ +0026d740: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0026d750: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +0026d760: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0026d770: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0026d780: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +0026d790: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0026d7a0: 6573 2069 7320 7365 6172 6368 2822 6e66  es is search("nf
│ │ │ +0026d7b0: 732d 7365 7276 6572 2e73 6572 7669 6365  s-server.service
│ │ │ +0026d7c0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +0026d7d0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +0026d7e0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +0026d7f0: 202d 206e 6673 2d73 6572 7665 722e 736f   - nfs-server.so
│ │ │ +0026d800: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +0026d810: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0026d820: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +0026d830: 6973 742d 756e 6974 2d66 696c 6573 206e  ist-unit-files n
│ │ │ +0026d840: 6673 2d73 6572 7665 722e 736f 636b 6574  fs-server.socket
│ │ │ +0026d850: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0026d860: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0026d870: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0026d880: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0026d890: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +0026d8a0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +0026d8b0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0026d8c0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0026d8d0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0026d8e0: 4469 7361 626c 6520 4e65 7477 6f72 6b20  Disable Network 
│ │ │ +0026d8f0: 4669 6c65 2053 7973 7465 6d20 286e 6673  File System (nfs
│ │ │ +0026d900: 2920 2d20 4469 7361 626c 6520 536f 636b  ) - Disable Sock
│ │ │ +0026d910: 6574 206e 6673 2d73 6572 7665 720a 2020  et nfs-server.  
│ │ │ +0026d920: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0026d930: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0026d940: 206e 616d 653a 206e 6673 2d73 6572 7665   name: nfs-serve
│ │ │ +0026d950: 722e 736f 636b 6574 0a20 2020 2020 2065  r.socket.      e
│ │ │ +0026d960: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0026d970: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +0026d980: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +0026d990: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +0026d9a0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0026d9b0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +0026d9c0: 6973 2073 6561 7263 6828 226e 6673 2d73  is search("nfs-s
│ │ │ +0026d9d0: 6572 7665 722e 736f 636b 6574 222c 206d  erver.socket", m
│ │ │ +0026d9e0: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +0026d9f0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0026da00: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0026da10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026da20: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0026da30: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0026da40: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0026da50: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0026da60: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0026da70: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0026da80: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0026da90: 202d 2073 6572 7669 6365 5f6e 6673 5f64   - service_nfs_d
│ │ │ +0026daa0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +0026dab0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +0026dac0: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365  k.  - unknown_se
│ │ │ +0026dad0: 7665 7269 7479 0a20 2077 6865 6e3a 2027  verity.  when: '
│ │ │ +0026dae0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +0026daf0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0026db00: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0026db10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0026dbc0: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ +0026dbd0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ +0026dcd0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +0026dd10: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +0026dd20: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +0026dd30: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +0026dd40: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +0026dd50: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +0026dd60: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +0026dd70: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +0026dd80: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +0026dd90: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +0026dda0: 2020 2020 202d 206e 616d 653a 206e 6673       - name: nfs
│ │ │ +0026ddb0: 2d73 6572 7665 722e 7365 7276 6963 650a  -server.service.
│ │ │ +0026ddc0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +0026ddd0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +0026dde0: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ +0026ddf0: 2d20 6e61 6d65 3a20 6e66 732d 7365 7276  - name: nfs-serv
│ │ │ +0026de00: 6572 2e73 6f63 6b65 740a 2020 2020 2020  er.socket.      
│ │ │ +0026de10: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0026de20: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +0026de30: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ +0026def0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0026df00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Comp │ │ │ +0026dc60: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0026dc70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0026dc90: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +0026dca0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +0026dce0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0026dcf0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0026df80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0026dfa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0026dff0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0026e020: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0026e040: 655f 6e66 732d 7365 7276 6572 0a0a 636c  e_nfs-server..cl
│ │ │ +0026e050: 6173 7320 6469 7361 626c 655f 6e66 732d  ass disable_nfs-
│ │ │ +0026e060: 7365 7276 6572 207b 0a20 2073 6572 7669  server {.  servi
│ │ │ +0026e070: 6365 207b 276e 6673 2d73 6572 7665 7227  ce {'nfs-server'
│ │ │ +0026e080: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +0026e090: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +0026e0a0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +0026e0b0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +0026e0d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0026e0e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0026e0f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0026e100: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0026e110: 6439 3738 2220 7461 6269 6e64 6578 3d22 d978" tabindex=" │ │ │ +0026e120: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0026e130: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0026e140: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0026e150: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0026e160: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0026e170: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0026e180: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0026e190: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +0026e1e0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0026e1f0: 735d 0a6d 6173 6b65 6420 3d20 5b22 6e66 s].masked = ["nf │ │ │ +0026e200: 732d 7365 7276 6572 225d 0a3c 2f63 6f64 s-server"].Remedia │ │ │ -0026f1f0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0026f200: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0026f210: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026f220: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026f230: 7365 2220 6964 3d22 6964 3938 3122 3e3c se" id="id981">< │ │ │ -0026f240: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026f250: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026f260: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026f270: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026f280: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0026f310: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0026f320: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:< │ │ │ +0026df90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0026dfb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0026e000: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0026e010: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complex │ │ │ -0026f290: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026f2a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0026f2e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026f2f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -0026f340: 2072 656d 6f76 655f 6e66 732d 6b65 726e remove_nfs-kern │ │ │ -0026f350: 656c 2d73 6572 7665 720a 0a63 6c61 7373 el-server..class │ │ │ -0026f360: 2072 656d 6f76 655f 6e66 732d 6b65 726e remove_nfs-kern │ │ │ -0026f370: 656c 2d73 6572 7665 7220 7b0a 2020 7061 el-server {. pa │ │ │ -0026f380: 636b 6167 6520 7b20 276e 6673 2d6b 6572 ckage { 'nfs-ker │ │ │ -0026f390: 6e65 6c2d 7365 7276 6572 273a 0a20 2020 nel-server':. │ │ │ -0026f3a0: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ -0026f3b0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
Re │ │ │ -0026f470: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0026f480: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0026f520: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0026f530: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0026f580: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0026f5c0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -0026f5d0: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276   nfs-kernel-serv
│ │ │ -0026f5e0: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ -0026f5f0: 7265 206e 6673 2d6b 6572 6e65 6c2d 7365  re nfs-kernel-se
│ │ │ -0026f600: 7276 6572 2069 7320 7265 6d6f 7665 6427  rver is removed'
│ │ │ -0026f610: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0026f620: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0026f630: 6e61 6d65 3a20 6e66 732d 6b65 726e 656c  name: nfs-kernel
│ │ │ -0026f640: 2d73 6572 7665 720a 2020 2020 7374 6174  -server.    stat
│ │ │ -0026f650: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0026f660: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -0026f670: 5542 5455 2d32 322d 3231 3530 3430 0a20  UBTU-22-215040. 
│ │ │ -0026f680: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0026f690: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0026f6a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0026f6b0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -0026f6c0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -0026f6d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0026f6e0: 2020 2d20 7061 636b 6167 655f 6e66 732d    - package_nfs-
│ │ │ -0026f6f0: 6b65 726e 656c 2d73 6572 7665 725f 7265  kernel-server_re
│ │ │ -0026f700: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


│ │ │ +0026f210: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0026f240: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -0026f510: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0026f540: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0026f550: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0026f590: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0026f5a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +0026f2b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0026f2d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0026f300: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0026f290: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0026f2a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0026f2e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0026f2f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0026f340: 2027 556e 696e 7374 616c 6c20 6e66 732d 'Uninstall nfs- │ │ │ +0026f350: 6b65 726e 656c 2d73 6572 7665 7220 5061 kernel-server Pa │ │ │ +0026f360: 636b 6167 653a 2045 6e73 7572 6520 6e66 ckage: Ensure nf │ │ │ +0026f370: 732d 6b65 726e 656c 2d73 6572 7665 7220 s-kernel-server │ │ │ +0026f380: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ +0026f390: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +0026f3a0: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ +0026f3b0: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276 nfs-kernel-serv │ │ │ +0026f3c0: 6572 0a20 2020 2073 7461 7465 3a20 6162 er. state: ab │ │ │ +0026f3d0: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ +0026f3e0: 2044 4953 412d 5354 4947 2d55 4254 552d DISA-STIG-UBTU- │ │ │ +0026f3f0: 3232 2d32 3135 3034 300a 2020 2d20 6469 22-215040. - di │ │ │ +0026f400: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +0026f410: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +0026f420: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +0026f430: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576 tion. - low_sev │ │ │ +0026f440: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0026f450: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +0026f460: 6163 6b61 6765 5f6e 6673 2d6b 6572 6e65 ackage_nfs-kerne │ │ │ +0026f470: 6c2d 7365 7276 6572 5f72 656d 6f76 6564 l-server_removed │ │ │ +0026f480: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Pup │ │ │ +0026f540: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0026f550: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

< │ │ │ +0026f620: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0026f630: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0026f680: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0026f690: 6e66 732d 6b65 726e 656c 2d73 6572 7665  nfs-kernel-serve
│ │ │ +0026f6a0: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ +0026f6b0: 6e66 732d 6b65 726e 656c 2d73 6572 7665  nfs-kernel-serve
│ │ │ +0026f6c0: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ +0026f6d0: 276e 6673 2d6b 6572 6e65 6c2d 7365 7276  'nfs-kernel-serv
│ │ │ +0026f6e0: 6572 273a 0a20 2020 2065 6e73 7572 6520  er':.    ensure 
│ │ │ +0026f6f0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0026f700: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation Pu │ │ │ -002817e0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002817f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +0026f600: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0026f610: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0026f650: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0026f660: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00281870: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00281890: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002818e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00281910: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00281930: 655f 7869 6e65 7464 0a0a 636c 6173 7320  e_xinetd..class 
│ │ │ -00281940: 7265 6d6f 7665 5f78 696e 6574 6420 7b0a  remove_xinetd {.
│ │ │ -00281950: 2020 7061 636b 6167 6520 7b20 2778 696e    package { 'xin
│ │ │ -00281960: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ -00281970: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00281980: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ -00281a40: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -00281a50: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00281a60: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00281a70: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00281a80: 7365 2220 6964 3d22 6964 3130 3133 223e se" id="id1013"> │ │ │ -00281a90: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ -002818a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002818b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002818f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00281900: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -00281b00: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00281b20: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00281b50: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00281ae0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00281af0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00281b30: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00281b40: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00281b90: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00281ba0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00281bb0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00281bc0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00281bd0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00281be0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00281bf0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00281c00: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -00281c10: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -00281c20: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -00281c30: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -00281c40: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ -00281c50: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00281c60: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00281c70: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00281c80: 2d20 6c6f 775f 7365 7665 7269 7479 0a20 - low_severity. │ │ │ -00281c90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00281ca0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -00281cb0: 7869 6e65 7464 5f72 656d 6f76 6564 0a0a xinetd_removed.. │ │ │ -00281cc0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461 - name: 'Uninsta │ │ │ -00281cd0: 6c6c 2078 696e 6574 6420 7061 636b 6167 ll xinetd packag │ │ │ -00281ce0: 6520 6966 206e 6f74 2075 7365 6420 6279 e if not used by │ │ │ -00281cf0: 206e 6574 776f 726b 2073 6572 7669 6365 network service │ │ │ -00281d00: 733a 2045 6e73 7572 6520 7869 6e65 7464 s: Ensure xinetd │ │ │ -00281d10: 2069 730a 2020 2020 7265 6d6f 7665 6427 is. removed' │ │ │ -00281d20: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -00281d30: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ -00281d40: 6e61 6d65 3a20 7869 6e65 7464 0a20 2020 name: xinetd. │ │ │ -00281d50: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ -00281d60: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ -00281d70: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -00281d80: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -00281d90: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -00281da0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -00281db0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00281dc0: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ -00281dd0: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ -00281de0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -00281df0: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -00281e00: 322e 322e 340a 2020 2d20 6469 7361 626c 2.2.4. - disabl │ │ │ -00281e10: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00281e20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00281e30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00281e40: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ -00281e50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00281e60: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -00281e70: 6765 5f78 696e 6574 645f 7265 6d6f 7665 ge_xinetd_remove │ │ │ -00281e80: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +002817d0: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +002817e0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +002817f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

│ │ │ +00281870: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00281890: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002818e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00281910: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00281880: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002818a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002818f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00281900: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00281930: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00281940: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00281950: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00281960: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00281970: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00281980: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00281990: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002819a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002819b0: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +002819c0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002819d0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +002819e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002819f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00281a00: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00281a10: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00281a20: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00281a30: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00281a40: 2d20 7061 636b 6167 655f 7869 6e65 7464  - package_xinetd
│ │ │ +00281a50: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ +00281a60: 3a20 2755 6e69 6e73 7461 6c6c 2078 696e  : 'Uninstall xin
│ │ │ +00281a70: 6574 6420 7061 636b 6167 6520 6966 206e  etd package if n
│ │ │ +00281a80: 6f74 2075 7365 6420 6279 206e 6574 776f  ot used by netwo
│ │ │ +00281a90: 726b 2073 6572 7669 6365 733a 2045 6e73  rk services: Ens
│ │ │ +00281aa0: 7572 6520 7869 6e65 7464 2069 730a 2020  ure xinetd is.  
│ │ │ +00281ab0: 2020 7265 6d6f 7665 6427 0a20 2061 6e73    removed'.  ans
│ │ │ +00281ac0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00281ad0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00281ae0: 7869 6e65 7464 0a20 2020 2073 7461 7465  xinetd.    state
│ │ │ +00281af0: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ +00281b00: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00281b10: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00281b20: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00281b30: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00281b40: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00281b50: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00281b60: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00281b70: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ +00281b80: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +00281b90: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +00281ba0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00281bb0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00281bc0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00281bd0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +00281be0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +00281bf0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00281c00: 0a20 202d 2070 6163 6b61 6765 5f78 696e  .  - package_xin
│ │ │ +00281c10: 6574 645f 7265 6d6f 7665 640a 3c2f 636f  etd_removed.
< │ │ │ +00281c30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00281c40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00281c50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00281c60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00281c70: 6431 3031 3322 2074 6162 696e 6465 783d d1013" tabindex= │ │ │ +00281c80: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +00281c90: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00281ca0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00281cb0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00281cc0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00281cd0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00281ce0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00281cf0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +00281d90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00281de0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00281e20: 636c 7564 6520 7265 6d6f 7665 5f78 696e  clude remove_xin
│ │ │ +00281e30: 6574 640a 0a63 6c61 7373 2072 656d 6f76  etd..class remov
│ │ │ +00281e40: 655f 7869 6e65 7464 207b 0a20 2070 6163  e_xinetd {.  pac
│ │ │ +00281e50: 6b61 6765 207b 2027 7869 6e65 7464 273a  kage { 'xinetd':
│ │ │ +00281e60: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00281e70: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00281e80: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00281e90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remed │ │ │ -002835c0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002835d0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002835e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -00283630: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00283640: 735d 0a6d 6173 6b65 6420 3d20 5b22 7869 s].masked = ["xi │ │ │ -00283650: 6e65 7464 225d 0a3c 2f63 6f64 653e 3c2f netd"].
Remediat │ │ │ -00283710: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ -00283720: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Co │ │ │ +00281d70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00281da0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00281dc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00281dd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00281df0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00281e00: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Reboot:true │ │ │ -00283820: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -00283860: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -00283870: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -00283880: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -00283890: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -002838a0: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -002838b0: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -002838c0: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -002838d0: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -002838e0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -002838f0: 2020 2020 2020 2d20 6e61 6d65 3a20 7869        - name: xi
│ │ │ -00283900: 6e65 7464 2e73 6572 7669 6365 0a20 2020  netd.service.   
│ │ │ -00283910: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00283920: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -00283930: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -00283940: 616d 653a 2078 696e 6574 642e 736f 636b  ame: xinetd.sock
│ │ │ -00283950: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -00283960: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00283970: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -00283990: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00283a30: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00283a40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00283a50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -002837b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002837e0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -002837f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -00283830: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00283840: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00283ae0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00283af0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00283b40: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00283b80: 6c75 6465 2064 6973 6162 6c65 5f78 696e  lude disable_xin
│ │ │ -00283b90: 6574 640a 0a63 6c61 7373 2064 6973 6162  etd..class disab
│ │ │ -00283ba0: 6c65 5f78 696e 6574 6420 7b0a 2020 7365  le_xinetd {.  se
│ │ │ -00283bb0: 7276 6963 6520 7b27 7869 6e65 7464 273a  rvice {'xinetd':
│ │ │ -00283bc0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00283bd0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -00283be0: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -00283bf0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -00283cb0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00283cc0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00283cd0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -00283ad0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00283b00: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00283b10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00283b50: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00283b60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -00283d70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00283dc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00283e00: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00283e10: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00283e20: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00283e30: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00283e40: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00283e50: 542d 3830 302d 3137 312d 332e 342e 370a  T-800-171-3.4.7.
│ │ │ -00283e60: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00283e70: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -00283e80: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -00283e90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00283ea0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -00283eb0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00283ec0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00283ed0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00283ee0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00283ef0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00283f00: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00283f10: 7365 7276 6963 655f 7869 6e65 7464 5f64  service_xinetd_d
│ │ │ -00283f20: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ -00283f30: 2044 6973 6162 6c65 2078 696e 6574 6420   Disable xinetd 
│ │ │ -00283f40: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -00283f50: 6520 7365 7276 6963 6520 7869 6e65 7464  e service xinetd
│ │ │ -00283f60: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -00283f70: 616d 653a 2044 6973 6162 6c65 2078 696e  ame: Disable xin
│ │ │ -00283f80: 6574 6420 5365 7276 6963 6520 2d20 436f  etd Service - Co
│ │ │ -00283f90: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -00283fa0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -00283fb0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -00283fc0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00283fd0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00283fe0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00283ff0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -00284000: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -00284010: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -00284020: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00284030: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00284040: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -00284050: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -00284060: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00284070: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00284080: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00284090: 6162 6c65 2078 696e 6574 6420 5365 7276  able xinetd Serv
│ │ │ -002840a0: 6963 6520 2d20 456e 7375 7265 2078 696e  ice - Ensure xin
│ │ │ -002840b0: 6574 642e 7365 7276 6963 6520 6973 204d  etd.service is M
│ │ │ -002840c0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -002840d0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -002840e0: 643a 0a20 2020 2020 206e 616d 653a 2078  d:.      name: x
│ │ │ -002840f0: 696e 6574 642e 7365 7276 6963 650a 2020  inetd.service.  
│ │ │ -00284100: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00284110: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -00284120: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -00284130: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00284140: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00284150: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00284160: 2069 7320 7365 6172 6368 2822 7869 6e65   is search("xine
│ │ │ -00284170: 7464 2e73 6572 7669 6365 222c 206d 756c  td.service", mul
│ │ │ -00284180: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -00284190: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -002841a0: 6b65 7420 4578 6973 7473 202d 2078 696e  ket Exists - xin
│ │ │ -002841b0: 6574 642e 736f 636b 6574 0a20 2020 2061  etd.socket.    a
│ │ │ -002841c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -002841d0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -002841e0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -002841f0: 696c 6573 2078 696e 6574 642e 736f 636b  iles xinetd.sock
│ │ │ -00284200: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -00284210: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00284220: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -00284230: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -00284240: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -00284250: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00284260: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00284270: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00284280: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00284290: 3a20 4469 7361 626c 6520 7869 6e65 7464  : Disable xinetd
│ │ │ -002842a0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002842b0: 6c65 2053 6f63 6b65 7420 7869 6e65 7464  le Socket xinetd
│ │ │ -002842c0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002842d0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002842e0: 2020 2020 6e61 6d65 3a20 7869 6e65 7464      name: xinetd
│ │ │ -002842f0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -00284300: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00284310: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -00284320: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00284330: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00284340: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00284350: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -00284360: 7320 7365 6172 6368 2822 7869 6e65 7464  s search("xinetd
│ │ │ -00284370: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00284380: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00284390: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -002843a0: 3731 2d33 2e34 2e37 0a20 202d 204e 4953  71-3.4.7.  - NIS
│ │ │ -002843b0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -002843c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002843d0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -002843e0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -002843f0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00284400: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00284410: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00284420: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00284430: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00284440: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00284450: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00284460: 5f78 696e 6574 645f 6469 7361 626c 6564  _xinetd_disabled
│ │ │ -00284470: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00284480: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -00284490: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002844a0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002844b0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
Co │ │ │ -00283d50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00283d80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00283da0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00283db0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00283dd0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00283de0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +00283660: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00283690: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002836b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002836c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002836e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002836f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00283710: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00283720: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00283730: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00283740: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00283750: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00283760: 2d38 3030 2d31 3731 2d33 2e34 2e37 0a20  -800-171-3.4.7. 
│ │ │ +00283770: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00283780: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00283790: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002837a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002837b0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +002837c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002837d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002837e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002837f0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00283800: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00283810: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00283820: 6572 7669 6365 5f78 696e 6574 645f 6469  ervice_xinetd_di
│ │ │ +00283830: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +00283840: 4469 7361 626c 6520 7869 6e65 7464 2053  Disable xinetd S
│ │ │ +00283850: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +00283860: 2073 6572 7669 6365 2078 696e 6574 640a   service xinetd.
│ │ │ +00283870: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00283880: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ +00283890: 7464 2053 6572 7669 6365 202d 2043 6f6c  td Service - Col
│ │ │ +002838a0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +002838b0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +002838c0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +002838d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002838e0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002838f0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +00283900: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +00283910: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +00283920: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +00283930: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00283940: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00283950: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +00283960: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +00283970: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00283980: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00283990: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002839a0: 626c 6520 7869 6e65 7464 2053 6572 7669  ble xinetd Servi
│ │ │ +002839b0: 6365 202d 2045 6e73 7572 6520 7869 6e65  ce - Ensure xine
│ │ │ +002839c0: 7464 2e73 6572 7669 6365 2069 7320 4d61  td.service is Ma
│ │ │ +002839d0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +002839e0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002839f0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7869  :.      name: xi
│ │ │ +00283a00: 6e65 7464 2e73 6572 7669 6365 0a20 2020  netd.service.   
│ │ │ +00283a10: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00283a20: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +00283a30: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +00283a40: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +00283a50: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +00283a60: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +00283a70: 6973 2073 6561 7263 6828 2278 696e 6574  is search("xinet
│ │ │ +00283a80: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +00283a90: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00283aa0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00283ab0: 6574 2045 7869 7374 7320 2d20 7869 6e65  et Exists - xine
│ │ │ +00283ac0: 7464 2e73 6f63 6b65 740a 2020 2020 616e  td.socket.    an
│ │ │ +00283ad0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00283ae0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00283af0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00283b00: 6c65 7320 7869 6e65 7464 2e73 6f63 6b65  les xinetd.socke
│ │ │ +00283b10: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00283b20: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00283b30: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00283b40: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00283b50: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00283b60: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00283b70: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00283b80: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00283b90: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00283ba0: 2044 6973 6162 6c65 2078 696e 6574 6420   Disable xinetd 
│ │ │ +00283bb0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00283bc0: 6520 536f 636b 6574 2078 696e 6574 640a  e Socket xinetd.
│ │ │ +00283bd0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00283be0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00283bf0: 2020 206e 616d 653a 2078 696e 6574 642e     name: xinetd.
│ │ │ +00283c00: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +00283c10: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00283c20: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00283c30: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00283c40: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +00283c50: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00283c60: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00283c70: 2073 6561 7263 6828 2278 696e 6574 642e   search("xinetd.
│ │ │ +00283c80: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +00283c90: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +00283ca0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00283cb0: 312d 332e 342e 370a 2020 2d20 4e49 5354  1-3.4.7.  - NIST
│ │ │ +00283cc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00283cd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00283ce0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00283cf0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +00283d00: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00283d10: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00283d20: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00283d30: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00283d40: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00283d50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00283d60: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00283d70: 7869 6e65 7464 5f64 6973 6162 6c65 640a  xinetd_disabled.
│ │ │ +00283d80: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +00283d90: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +00283da0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00283db0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00283dc0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +00283e80: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +00283e90: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
< │ │ │ +00283f90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00283fc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +00283fe0: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +00283ff0: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +00284000: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +00284010: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +00284020: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +00284030: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +00284040: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +00284050: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +00284060: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +00284070: 3a20 7869 6e65 7464 2e73 6572 7669 6365  : xinetd.service
│ │ │ +00284080: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +00284090: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +002840a0: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +002840b0: 202d 206e 616d 653a 2078 696e 6574 642e   - name: xinetd.
│ │ │ +002840c0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +002840d0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002840e0: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +002840f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002841b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002841c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +00283f50: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +00283f60: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +00283fa0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00283fb0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00284240: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00284260: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002842b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +00284300: 5f78 696e 6574 640a 0a63 6c61 7373 2064  _xinetd..class d
│ │ │ +00284310: 6973 6162 6c65 5f78 696e 6574 6420 7b0a  isable_xinetd {.
│ │ │ +00284320: 2020 7365 7276 6963 6520 7b27 7869 6e65    service {'xine
│ │ │ +00284330: 7464 273a 0a20 2020 2065 6e61 626c 6520  td':.    enable 
│ │ │ +00284340: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +00284350: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +00284360: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +00284370: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +00284420: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00284430: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00284440: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +00284490: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +002844a0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +002844b0: 205b 2278 696e 6574 6422 5d0a 3c2f 636f   ["xinetd"].
< │ │ │ 002844d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002844e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002844f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00284500: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00284510: 6431 3032 3022 2074 6162 696e 6465 783d d1020" tabindex= │ │ │ 00284520: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -165382,99 +165382,99 @@ │ │ │ 00286050: 6174 612d 7461 7267 6574 3d22 2369 6431 ata-target="#id1 │ │ │ 00286060: 3032 3222 2074 6162 696e 6465 783d 2230 022" tabindex="0 │ │ │ 00286070: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 00286080: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 00286090: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 002860a0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 002860b0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -002860c0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002860d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +00284270: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00284280: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002842c0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +002842d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -00286160: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00286170: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00286190: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002861b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002861c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00286200: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00286210: 7564 6520 7265 6d6f 7665 5f79 7073 6572  ude remove_ypser
│ │ │ -00286220: 760a 0a63 6c61 7373 2072 656d 6f76 655f  v..class remove_
│ │ │ -00286230: 7970 7365 7276 207b 0a20 2070 6163 6b61  ypserv {.  packa
│ │ │ -00286240: 6765 207b 2027 7970 7365 7276 273a 0a20  ge { 'ypserv':. 
│ │ │ -00286250: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00286260: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00286270: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -00286330: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00286340: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002863c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002863e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00286430: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00286460: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00286480: 7461 6c6c 2079 7073 6572 7620 5061 636b  tall ypserv Pack
│ │ │ -00286490: 6167 653a 2045 6e73 7572 6520 7970 7365  age: Ensure ypse
│ │ │ -002864a0: 7276 2069 7320 7265 6d6f 7665 6427 0a20  rv is removed'. 
│ │ │ -002864b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002864c0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002864d0: 6d65 3a20 7970 7365 7276 0a20 2020 2073  me: ypserv.    s
│ │ │ -002864e0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -002864f0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00286500: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00286510: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00286520: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -00286530: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -00286540: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ -00286550: 3528 3129 2863 290a 2020 2d20 5043 492d  5(1)(c).  - PCI-
│ │ │ -00286560: 4453 532d 5265 712d 322e 322e 320a 2020  DSS-Req-2.2.2.  
│ │ │ -00286570: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -00286580: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00286590: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -002865a0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -002865b0: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -002865c0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002865d0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002865e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002865f0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00286600: 655f 7970 7365 7276 5f72 656d 6f76 6564  e_ypserv_removed
│ │ │ +002860c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +002860d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ -002863f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00286400: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00286440: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00286450: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +00286160: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00286190: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002861b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002861c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002861e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002861f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00286210: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2079  me: 'Uninstall y
│ │ │ +00286220: 7073 6572 7620 5061 636b 6167 653a 2045  pserv Package: E
│ │ │ +00286230: 6e73 7572 6520 7970 7365 7276 2069 7320  nsure ypserv is 
│ │ │ +00286240: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00286250: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00286260: 6765 3a0a 2020 2020 6e61 6d65 3a20 7970  ge:.    name: yp
│ │ │ +00286270: 7365 7276 0a20 2020 2073 7461 7465 3a20  serv.    state: 
│ │ │ +00286280: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00286290: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002862a0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +002862b0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002862c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002862d0: 4d2d 3728 6229 0a20 202d 204e 4953 542d  M-7(b).  - NIST-
│ │ │ +002862e0: 3830 302d 3533 2d49 412d 3528 3129 2863  800-53-IA-5(1)(c
│ │ │ +002862f0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +00286300: 712d 322e 322e 320a 2020 2d20 5043 492d  q-2.2.2.  - PCI-
│ │ │ +00286310: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +00286320: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +00286330: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00286340: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +00286350: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +00286360: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00286370: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00286380: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00286390: 2020 2d20 7061 636b 6167 655f 7970 7365    - package_ypse
│ │ │ +002863a0: 7276 5f72 656d 6f76 6564 0a3c 2f63 6f64  rv_removed.
Reme │ │ │ +00286460: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00286470: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +00286500: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00286530: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00286550: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00286560: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00286580: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00286590: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002865b0: 6c75 6465 2072 656d 6f76 655f 7970 7365  lude remove_ypse
│ │ │ +002865c0: 7276 0a0a 636c 6173 7320 7265 6d6f 7665  rv..class remove
│ │ │ +002865d0: 5f79 7073 6572 7620 7b0a 2020 7061 636b  _ypserv {.  pack
│ │ │ +002865e0: 6167 6520 7b20 2779 7073 6572 7627 3a0a  age { 'ypserv':.
│ │ │ +002865f0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00286600: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00286610: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediati │ │ │ -00287470: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00287480: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00287490: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ -002874e0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -002874f0: 6173 6b65 6420 3d20 5b22 7970 7365 7276  asked = ["ypserv
│ │ │ -00287500: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -00287510: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002875c0: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ -002875d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00287610: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00287620: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00287630: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00287640: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00287650: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00287660: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00287670: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:mediumRe │ │ │ -002876b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ -002876c0: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue │ │ │ -002876d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74 Strategy:disable< │ │ │ -00287700: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ -00287710: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ -00287720: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ -00287730: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ -00287740: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ -00287750: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ -00287760: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ -00287770: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ -00287780: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ -00287790: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ -002877a0: 2020 2d20 6e61 6d65 3a20 7970 7365 7276 - name: ypserv │ │ │ -002877b0: 2e73 6572 7669 6365 0a20 2020 2020 2020 .service. │ │ │ -002877c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ -002877d0: 2020 2020 2020 2020 6d61 736b 3a20 7472 mask: tr │ │ │ -002877e0: 7565 0a20 2020 2020 202d 206e 616d 653a ue. - name: │ │ │ -002877f0: 2079 7073 6572 762e 736f 636b 6574 0a20 ypserv.socket. │ │ │ -00287800: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ -00287810: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ -00287820: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ -00287830: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ -002878e0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002878f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00287900: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002879a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002879c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002879f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00287980: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00287990: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002879b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002879d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002879e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00287a30: 2064 6973 6162 6c65 5f79 7073 6572 760a disable_ypserv. │ │ │ -00287a40: 0a63 6c61 7373 2064 6973 6162 6c65 5f79 .class disable_y │ │ │ -00287a50: 7073 6572 7620 7b0a 2020 7365 7276 6963 pserv {. servic │ │ │ -00287a60: 6520 7b27 7970 7365 7276 273a 0a20 2020 e {'ypserv':. │ │ │ -00287a70: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ -00287a80: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ -00287a90: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ -00287aa0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediat │ │ │ -00287b60: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00287b70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00287b80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00287b90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00287ba0: 7365 2220 6964 3d22 6964 3130 3239 223e se" id="id1029"> │ │ │ -00287bb0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00287c20: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00287c40: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00287c70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00287c00: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00287c10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00287c50: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00287c60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00287cb0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00287cc0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00287cd0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00287ce0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00287cf0: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -00287d00: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -00287d10: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -00287d20: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00287d30: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -00287d40: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00287d50: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ -00287d60: 7669 6365 5f79 7073 6572 765f 6469 7361 vice_ypserv_disa │ │ │ -00287d70: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469 bled..- name: Di │ │ │ -00287d80: 7361 626c 6520 7970 7365 7276 2053 6572 sable ypserv Ser │ │ │ -00287d90: 7669 6365 202d 2044 6973 6162 6c65 2073 vice - Disable s │ │ │ -00287da0: 6572 7669 6365 2079 7073 6572 760a 2020 ervice ypserv. │ │ │ -00287db0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ -00287dc0: 3a20 4469 7361 626c 6520 7970 7365 7276 : Disable ypserv │ │ │ -00287dd0: 2053 6572 7669 6365 202d 2043 6f6c 6c65 Service - Colle │ │ │ -00287de0: 6374 2073 7973 7465 6d64 2053 6572 7669 ct systemd Servi │ │ │ -00287df0: 6365 7320 5072 6573 656e 7420 696e 2074 ces Present in t │ │ │ -00287e00: 6865 2053 7973 7465 6d0a 2020 2020 616e he System. an │ │ │ -00287e10: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ -00287e20: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ -00287e30: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ -00287e40: 6c65 7320 2d2d 7479 7065 2073 6572 7669 les --type servi │ │ │ -00287e50: 6365 0a20 2020 2072 6567 6973 7465 723a ce. register: │ │ │ -00287e60: 2073 6572 7669 6365 5f65 7869 7374 730a service_exists. │ │ │ -00287e70: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ -00287e80: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ -00287e90: 6564 5f77 6865 6e3a 2073 6572 7669 6365 ed_when: service │ │ │ -00287ea0: 5f65 7869 7374 732e 7263 206e 6f74 2069 _exists.rc not i │ │ │ -00287eb0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865 n [0, 1]. che │ │ │ -00287ec0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a ck_mode: false.. │ │ │ -00287ed0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -00287ee0: 6520 7970 7365 7276 2053 6572 7669 6365 e ypserv Service │ │ │ -00287ef0: 202d 2045 6e73 7572 6520 7970 7365 7276 - Ensure ypserv │ │ │ -00287f00: 2e73 6572 7669 6365 2069 7320 4d61 736b .service is Mask │ │ │ -00287f10: 6564 0a20 2020 2061 6e73 6962 6c65 2e62 ed. ansible.b │ │ │ -00287f20: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -00287f30: 2020 2020 2020 6e61 6d65 3a20 7970 7365 name: ypse │ │ │ -00287f40: 7276 2e73 6572 7669 6365 0a20 2020 2020 rv.service. │ │ │ -00287f50: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -00287f60: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ -00287f70: 616c 7365 0a20 2020 2020 206d 6173 6b65 alse. maske │ │ │ -00287f80: 643a 2074 7275 650a 2020 2020 7768 656e d: true. when │ │ │ -00287f90: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -00287fa0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973 .stdout_lines is │ │ │ -00287fb0: 2073 6561 7263 6828 2279 7073 6572 762e search("ypserv. │ │ │ -00287fc0: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ -00287fd0: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ -00287fe0: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ -00287ff0: 2045 7869 7374 7320 2d20 7970 7365 7276 Exists - ypserv │ │ │ -00288000: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ -00288010: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -00288020: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -00288030: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -00288040: 7320 7970 7365 7276 2e73 6f63 6b65 740a s ypserv.socket. │ │ │ -00288050: 2020 2020 7265 6769 7374 6572 3a20 736f register: so │ │ │ -00288060: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -00288070: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -00288080: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -00288090: 6c65 645f 7768 656e 3a20 736f 636b 6574 led_when: socket │ │ │ -002880a0: 5f66 696c 655f 6578 6973 7473 2e72 6320 _file_exists.rc │ │ │ -002880b0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -002880c0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -002880d0: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -002880e0: 6973 6162 6c65 2079 7073 6572 7620 5365 isable ypserv Se │ │ │ -002880f0: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -00288100: 536f 636b 6574 2079 7073 6572 760a 2020 Socket ypserv. │ │ │ -00288110: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00288120: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -00288130: 206e 616d 653a 2079 7073 6572 762e 736f name: ypserv.so │ │ │ -00288140: 636b 6574 0a20 2020 2020 2065 6e61 626c cket. enabl │ │ │ -00288150: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ -00288160: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -00288170: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ -00288180: 650a 2020 2020 7768 656e 3a20 736f 636b e. when: sock │ │ │ -00288190: 6574 5f66 696c 655f 6578 6973 7473 2e73 et_file_exists.s │ │ │ -002881a0: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ -002881b0: 6561 7263 6828 2279 7073 6572 762e 736f earch("ypserv.so │ │ │ -002881c0: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ -002881d0: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ -002881e0: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ -002881f0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -00288200: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -00288210: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -00288220: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -00288230: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -00288240: 6564 0a20 202d 2073 6572 7669 6365 5f79 ed. - service_y │ │ │ -00288250: 7073 6572 765f 6469 7361 626c 6564 0a20 pserv_disabled. │ │ │ -00288260: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -00288270: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ -00288280: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -00288290: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -002882a0: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'.
< │ │ │ +002874c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002874d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002874e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002874f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00287500: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00287510: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00287520: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00287560: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00287570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00287590: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002875a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002875c0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +002875d0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +002875e0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +002875f0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00287600: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +00287610: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00287620: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00287630: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00287640: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00287650: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00287660: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +00287670: 6963 655f 7970 7365 7276 5f64 6973 6162 ice_ypserv_disab │ │ │ +00287680: 6c65 640a 0a2d 206e 616d 653a 2044 6973 led..- name: Dis │ │ │ +00287690: 6162 6c65 2079 7073 6572 7620 5365 7276 able ypserv Serv │ │ │ +002876a0: 6963 6520 2d20 4469 7361 626c 6520 7365 ice - Disable se │ │ │ +002876b0: 7276 6963 6520 7970 7365 7276 0a20 2062 rvice ypserv. b │ │ │ +002876c0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ +002876d0: 2044 6973 6162 6c65 2079 7073 6572 7620 Disable ypserv │ │ │ +002876e0: 5365 7276 6963 6520 2d20 436f 6c6c 6563 Service - Collec │ │ │ +002876f0: 7420 7379 7374 656d 6420 5365 7276 6963 t systemd Servic │ │ │ +00287700: 6573 2050 7265 7365 6e74 2069 6e20 7468 es Present in th │ │ │ +00287710: 6520 5379 7374 656d 0a20 2020 2061 6e73 e System. ans │ │ │ +00287720: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ +00287730: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ +00287740: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ +00287750: 6573 202d 2d74 7970 6520 7365 7276 6963 es --type servic │ │ │ +00287760: 650a 2020 2020 7265 6769 7374 6572 3a20 e. register: │ │ │ +00287770: 7365 7276 6963 655f 6578 6973 7473 0a20 service_exists. │ │ │ +00287780: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ +00287790: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ +002877a0: 645f 7768 656e 3a20 7365 7276 6963 655f d_when: service_ │ │ │ +002877b0: 6578 6973 7473 2e72 6320 6e6f 7420 696e exists.rc not in │ │ │ +002877c0: 205b 302c 2031 5d0a 2020 2020 6368 6563 [0, 1]. chec │ │ │ +002877d0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20 k_mode: false.. │ │ │ +002877e0: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ +002877f0: 2079 7073 6572 7620 5365 7276 6963 6520 ypserv Service │ │ │ +00287800: 2d20 456e 7375 7265 2079 7073 6572 762e - Ensure ypserv. │ │ │ +00287810: 7365 7276 6963 6520 6973 204d 6173 6b65 service is Maske │ │ │ +00287820: 640a 2020 2020 616e 7369 626c 652e 6275 d. ansible.bu │ │ │ +00287830: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ +00287840: 2020 2020 206e 616d 653a 2079 7073 6572 name: ypser │ │ │ +00287850: 762e 7365 7276 6963 650a 2020 2020 2020 v.service. │ │ │ +00287860: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ +00287870: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +00287880: 6c73 650a 2020 2020 2020 6d61 736b 6564 lse. masked │ │ │ +00287890: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ +002878a0: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ +002878b0: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ +002878c0: 7365 6172 6368 2822 7970 7365 7276 2e73 search("ypserv.s │ │ │ +002878d0: 6572 7669 6365 222c 206d 756c 7469 6c69 ervice", multili │ │ │ +002878e0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61 ne=True).. - na │ │ │ +002878f0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420 me: Unit Socket │ │ │ +00287900: 4578 6973 7473 202d 2079 7073 6572 762e Exists - ypserv. │ │ │ +00287910: 736f 636b 6574 0a20 2020 2061 6e73 6962 socket. ansib │ │ │ +00287920: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +00287930: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ +00287940: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ +00287950: 2079 7073 6572 762e 736f 636b 6574 0a20 ypserv.socket. │ │ │ +00287960: 2020 2072 6567 6973 7465 723a 2073 6f63 register: soc │ │ │ +00287970: 6b65 745f 6669 6c65 5f65 7869 7374 730a ket_file_exists. │ │ │ +00287980: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ +00287990: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ +002879a0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f ed_when: socket_ │ │ │ +002879b0: 6669 6c65 5f65 7869 7374 732e 7263 206e file_exists.rc n │ │ │ +002879c0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ +002879d0: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ +002879e0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ +002879f0: 7361 626c 6520 7970 7365 7276 2053 6572 sable ypserv Ser │ │ │ +00287a00: 7669 6365 202d 2044 6973 6162 6c65 2053 vice - Disable S │ │ │ +00287a10: 6f63 6b65 7420 7970 7365 7276 0a20 2020 ocket ypserv. │ │ │ +00287a20: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00287a30: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +00287a40: 6e61 6d65 3a20 7970 7365 7276 2e73 6f63 name: ypserv.soc │ │ │ +00287a50: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ +00287a60: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ +00287a70: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +00287a80: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +00287a90: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ +00287aa0: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ +00287ab0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +00287ac0: 6172 6368 2822 7970 7365 7276 2e73 6f63 arch("ypserv.soc │ │ │ +00287ad0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d ket", multiline= │ │ │ +00287ae0: 5472 7565 290a 2020 7461 6773 3a0a 2020 True). tags:. │ │ │ +00287af0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +00287b00: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +00287b10: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +00287b20: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +00287b30: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +00287b40: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00287b50: 640a 2020 2d20 7365 7276 6963 655f 7970 d. - service_yp │ │ │ +00287b60: 7365 7276 5f64 6973 6162 6c65 640a 2020 serv_disabled. │ │ │ +00287b70: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ +00287b80: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ +00287b90: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +00287ba0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00287bb0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +00287bc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedi │ │ │ +00287c70: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ +00287c80: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00287c90: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +00287d20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00287d30: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00287d60: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00287d70: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ +00287dc0: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ +00287dd0: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ +00287de0: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ +00287df0: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ +00287e00: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ +00287e10: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ +00287e20: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ +00287e30: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ +00287e40: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ +00287e50: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ +00287e60: 7970 7365 7276 2e73 6572 7669 6365 0a20  ypserv.service. 
│ │ │ +00287e70: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +00287e80: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +00287e90: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +00287ea0: 206e 616d 653a 2079 7073 6572 762e 736f   name: ypserv.so
│ │ │ +00287eb0: 636b 6574 0a20 2020 2020 2020 2065 6e61  cket.        ena
│ │ │ +00287ec0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00287ed0: 2020 2020 6d61 736b 3a20 7472 7565 0a3c      mask: true.<
│ │ │ +00287ee0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +00287f90: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00287fa0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
C │ │ │ +00287d10: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00287d40: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ +00287d50: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ +00287d90: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00287da0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00288080: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00288090: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +002880e0: 6e63 6c75 6465 2064 6973 6162 6c65 5f79  nclude disable_y
│ │ │ +002880f0: 7073 6572 760a 0a63 6c61 7373 2064 6973  pserv..class dis
│ │ │ +00288100: 6162 6c65 5f79 7073 6572 7620 7b0a 2020  able_ypserv {.  
│ │ │ +00288110: 7365 7276 6963 6520 7b27 7970 7365 7276  service {'ypserv
│ │ │ +00288120: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +00288130: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +00288140: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +00288150: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +00288170: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00288210: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00288220: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00288230: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00288240: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00288250: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00288260: 7365 2220 6964 3d22 6964 3130 3239 223e se" id="id1029"> │ │ │ +00288270: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00288280: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00288290: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +002882a0: 2279 7073 6572 7622 5d0a 3c2f 636f 6465  "ypserv"].
Remedi │ │ │ -00289830: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00289840: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00289850: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ +00288060: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00288070: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002880b0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +002880c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -002898f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00289910: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00289940: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002898d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002898e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00289900: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00289920: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00289930: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00289970: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00289980: 6465 2072 656d 6f76 655f 7273 682d 636c de remove_rsh-cl │ │ │ -00289990: 6965 6e74 0a0a 636c 6173 7320 7265 6d6f ient..class remo │ │ │ -002899a0: 7665 5f72 7368 2d63 6c69 656e 7420 7b0a ve_rsh-client {. │ │ │ -002899b0: 2020 7061 636b 6167 6520 7b20 2772 7368 package { 'rsh │ │ │ -002899c0: 2d63 6c69 656e 7427 3a0a 2020 2020 656e -client':. en │ │ │ -002899d0: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ -002899e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Reme │ │ │ -00289aa0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00289ab0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00289ac0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00289b60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00289bb0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00289bf0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -00289c00: 7273 6820 5061 636b 6167 653a 2045 6e73  rsh Package: Ens
│ │ │ -00289c10: 7572 6520 7273 682d 636c 6965 6e74 2069  ure rsh-client i
│ │ │ -00289c20: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00289c30: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00289c40: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00289c50: 7273 682d 636c 6965 6e74 0a20 2020 2073  rsh-client.    s
│ │ │ -00289c60: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00289c70: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00289c80: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -00289c90: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00289ca0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00289cb0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00289cc0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00289cd0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00289ce0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00289cf0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00289d00: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -00289d10: 7368 5f72 656d 6f76 6564 0a20 202d 2075  sh_removed.  - u
│ │ │ -00289d20: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00289830: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +00289840: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
Co │ │ │ -00289b40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00289b70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00289b90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00289ba0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00289bc0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00289bd0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +002898d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002898e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00289900: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00289920: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00289930: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00289970: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00289980: 653a 2027 556e 696e 7374 616c 6c20 7273  e: 'Uninstall rs
│ │ │ +00289990: 6820 5061 636b 6167 653a 2045 6e73 7572  h Package: Ensur
│ │ │ +002899a0: 6520 7273 682d 636c 6965 6e74 2069 7320  e rsh-client is 
│ │ │ +002899b0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +002899c0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +002899d0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7273  ge:.    name: rs
│ │ │ +002899e0: 682d 636c 6965 6e74 0a20 2020 2073 7461  h-client.    sta
│ │ │ +002899f0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00289a00: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00289a10: 3137 312d 332e 312e 3133 0a20 202d 2050  171-3.1.13.  - P
│ │ │ +00289a20: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +00289a30: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +00289a40: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00289a50: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00289a60: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00289a70: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00289a80: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00289a90: 0a20 202d 2070 6163 6b61 6765 5f72 7368  .  - package_rsh
│ │ │ +00289aa0: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ +00289ab0: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
R │ │ │ +00289b70: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00289b80: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00289c20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00289cc0: 696e 636c 7564 6520 7265 6d6f 7665 5f72  include remove_r
│ │ │ +00289cd0: 7368 2d63 6c69 656e 740a 0a63 6c61 7373  sh-client..class
│ │ │ +00289ce0: 2072 656d 6f76 655f 7273 682d 636c 6965   remove_rsh-clie
│ │ │ +00289cf0: 6e74 207b 0a20 2070 6163 6b61 6765 207b  nt {.  package {
│ │ │ +00289d00: 2027 7273 682d 636c 6965 6e74 273a 0a20   'rsh-client':. 
│ │ │ +00289d10: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00289d20: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00289d30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0028c3c0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0028c3d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00289c10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00289c40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00289c50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00289c90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00289ca0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0028c470: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0028c510: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -0028c520: 616c 6b0a 0a63 6c61 7373 2072 656d 6f76  alk..class remov
│ │ │ -0028c530: 655f 7461 6c6b 207b 0a20 2070 6163 6b61  e_talk {.  packa
│ │ │ -0028c540: 6765 207b 2027 7461 6c6b 273a 0a20 2020  ge { 'talk':.   
│ │ │ -0028c550: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -0028c560: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -0028c620: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0028c630: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0028c460: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0028c490: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0028c4a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0028c4e0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0028c4f0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0028c710: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0028c720: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0028c770: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -0028c780: 6c6c 2074 616c 6b20 5061 636b 6167 653a  ll talk Package:
│ │ │ -0028c790: 2045 6e73 7572 6520 7461 6c6b 2069 7320   Ensure talk is 
│ │ │ -0028c7a0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -0028c7b0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0028c7c0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7461  ge:.    name: ta
│ │ │ -0028c7d0: 6c6b 0a20 2020 2073 7461 7465 3a20 6162  lk.    state: ab
│ │ │ -0028c7e0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0028c7f0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0028c800: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0028c810: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -0028c820: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0028c830: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0028c840: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0028c850: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0028c860: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0028c870: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0028c880: 6765 5f74 616c 6b5f 7265 6d6f 7665 640a  ge_talk_removed.
│ │ │ +0028c3c0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +0028c3d0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
Complexity:low
Disrup │ │ │ -0028c6f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0028c700: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0028c740: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0028c750: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0028c4b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028c4c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0028c510: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0028c520: 6c6c 2074 616c 6b20 5061 636b 6167 653a  ll talk Package:
│ │ │ +0028c530: 2045 6e73 7572 6520 7461 6c6b 2069 7320   Ensure talk is 
│ │ │ +0028c540: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +0028c550: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +0028c560: 6765 3a0a 2020 2020 6e61 6d65 3a20 7461  ge:.    name: ta
│ │ │ +0028c570: 6c6b 0a20 2020 2073 7461 7465 3a20 6162  lk.    state: ab
│ │ │ +0028c580: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +0028c590: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +0028c5a0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0028c5b0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +0028c5c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0028c5d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0028c5e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0028c5f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0028c600: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0028c610: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0028c620: 6765 5f74 616c 6b5f 7265 6d6f 7665 640a  ge_talk_removed.
│ │ │ +0028c630: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +0028c6f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0028c700: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +0028c490: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028c4a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028c4e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0028c4f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +0028c7d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0028c7e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0028c840: 5f74 616c 6b0a 0a63 6c61 7373 2072 656d  _talk..class rem
│ │ │ +0028c850: 6f76 655f 7461 6c6b 207b 0a20 2070 6163  ove_talk {.  pac
│ │ │ +0028c860: 6b61 6765 207b 2027 7461 6c6b 273a 0a20  kage { 'talk':. 
│ │ │ +0028c870: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0028c880: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  0028c890: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Reme │ │ │ -0028de20: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0028de30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +0028c7b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0028c7c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0028c800: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0028c810: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -0028dec0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0028def0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0028df10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0028df20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0028df40: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0028df50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0028df70: 6c75 6465 2072 656d 6f76 655f 7465 6c6e  lude remove_teln
│ │ │ -0028df80: 6574 0a0a 636c 6173 7320 7265 6d6f 7665  et..class remove
│ │ │ -0028df90: 5f74 656c 6e65 7420 7b0a 2020 7061 636b  _telnet {.  pack
│ │ │ -0028dfa0: 6167 6520 7b20 2774 656c 6e65 7427 3a0a  age { 'telnet':.
│ │ │ -0028dfb0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0028dfc0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -0028dfd0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0028e090: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0028e0a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0028e120: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0028e140: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0028e190: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0028e1c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0028e130: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0028e150: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0028e1a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0028e1b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ -0028e1e0: 7665 2074 656c 6e65 7420 436c 6965 6e74  ve telnet Client
│ │ │ -0028e1f0: 733a 2045 6e73 7572 6520 7465 6c6e 6574  s: Ensure telnet
│ │ │ -0028e200: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0028e210: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0028e220: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0028e230: 3a20 7465 6c6e 6574 0a20 2020 2073 7461  : telnet.    sta
│ │ │ -0028e240: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0028e250: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0028e260: 3137 312d 332e 312e 3133 0a20 202d 2050  171-3.1.13.  - P
│ │ │ -0028e270: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -0028e280: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -0028e290: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0028e2a0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0028e2b0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0028e2c0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0028e2d0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0028e2e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0028e2f0: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ -0028e300: 6c6e 6574 5f72 656d 6f76 6564 0a3c 2f63  lnet_removed.<
│ │ │ +0028de40: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low< │ │ │ +0028dee0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0028df30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0028df70: 616d 653a 2027 5265 6d6f 7665 2074 656c  ame: 'Remove tel
│ │ │ +0028df80: 6e65 7420 436c 6965 6e74 733a 2045 6e73  net Clients: Ens
│ │ │ +0028df90: 7572 6520 7465 6c6e 6574 2069 7320 7265  ure telnet is re
│ │ │ +0028dfa0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0028dfb0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0028dfc0: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ +0028dfd0: 6574 0a20 2020 2073 7461 7465 3a20 6162  et.    state: ab
│ │ │ +0028dfe0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +0028dff0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0028e000: 312e 3133 0a20 202d 2050 4349 2d44 5353  1.13.  - PCI-DSS
│ │ │ +0028e010: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +0028e020: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +0028e030: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0028e040: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0028e050: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0028e060: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +0028e070: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0028e080: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0028e090: 7061 636b 6167 655f 7465 6c6e 6574 5f72  package_telnet_r
│ │ │ +0028e0a0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediat
│ │ │ +0028e160: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +0028e170: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +0028e1b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0028e1c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0028e1d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0028e1e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0028e1f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0028e280: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0028e290: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Co │ │ │ +0028dec0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0028def0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0028df10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0028df20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0028df40: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0028df50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +0028e200: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0028e210: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0028e250: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0028e260: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +0028e2b0: 2072 656d 6f76 655f 7465 6c6e 6574 0a0a remove_telnet.. │ │ │ +0028e2c0: 636c 6173 7320 7265 6d6f 7665 5f74 656c class remove_tel │ │ │ +0028e2d0: 6e65 7420 7b0a 2020 7061 636b 6167 6520 net {. package │ │ │ +0028e2e0: 7b20 2774 656c 6e65 7427 3a0a 2020 2020 { 'telnet':. │ │ │ +0028e2f0: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ +0028e300: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ 0028e320: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediatio │ │ │ -0028fe40: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0028fe50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0028fed0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0028fee0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0028ff00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0028ff10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0028ff30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0028ff50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0028ff80: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0028ff90: 656d 6f76 655f 7466 7470 642d 6870 610a  emove_tftpd-hpa.
│ │ │ -0028ffa0: 0a63 6c61 7373 2072 656d 6f76 655f 7466  .class remove_tf
│ │ │ -0028ffb0: 7470 642d 6870 6120 7b0a 2020 7061 636b  tpd-hpa {.  pack
│ │ │ -0028ffc0: 6167 6520 7b20 2774 6674 7064 2d68 7061  age { 'tftpd-hpa
│ │ │ -0028ffd0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0028ffe0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -0028fff0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002900b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002900c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00290140: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00290150: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00290170: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00290180: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002901a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002901c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002901f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00290200: 6e69 6e73 7461 6c6c 2074 6674 7064 2d68  ninstall tftpd-h
│ │ │ -00290210: 7061 2050 6163 6b61 6765 3a20 456e 7375  pa Package: Ensu
│ │ │ -00290220: 7265 2074 6674 7064 2d68 7061 2069 7320  re tftpd-hpa is 
│ │ │ -00290230: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00290240: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00290250: 6765 3a0a 2020 2020 6e61 6d65 3a20 7466  ge:.    name: tf
│ │ │ -00290260: 7470 642d 6870 610a 2020 2020 7374 6174  tpd-hpa.    stat
│ │ │ -00290270: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00290280: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00290290: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -002902a0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -002902b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002902c0: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ -002902d0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002902e0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002902f0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00290300: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -00290310: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -00290320: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00290330: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00290340: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00290350: 640a 2020 2d20 7061 636b 6167 655f 7466  d.  - package_tf
│ │ │ -00290360: 7470 2d73 6572 7665 725f 7265 6d6f 7665  tp-server_remove
│ │ │ -00290370: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0028fe40: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +0028fe50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0028fed0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0028fee0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0028fef0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0028ff30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0028ff40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0028ff60: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0028ff70: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +0028ff90: 556e 696e 7374 616c 6c20 7466 7470 642d  Uninstall tftpd-
│ │ │ +0028ffa0: 6870 6120 5061 636b 6167 653a 2045 6e73  hpa Package: Ens
│ │ │ +0028ffb0: 7572 6520 7466 7470 642d 6870 6120 6973  ure tftpd-hpa is
│ │ │ +0028ffc0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0028ffd0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0028ffe0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +0028fff0: 6674 7064 2d68 7061 0a20 2020 2073 7461  ftpd-hpa.    sta
│ │ │ +00290000: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00290010: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00290020: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00290030: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00290040: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00290050: 3533 2d43 4d2d 3728 6229 0a20 202d 2050  53-CM-7(b).  - P
│ │ │ +00290060: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +00290070: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +00290080: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00290090: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +002900a0: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +002900b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002900c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002900d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002900e0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +002900f0: 6674 702d 7365 7276 6572 5f72 656d 6f76  ftp-server_remov
│ │ │ +00290100: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00290110: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +002901c0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002901d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +00290260: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00290280: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002902a0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002902d0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002902e0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00290310: 6f76 655f 7466 7470 642d 6870 610a 0a63  ove_tftpd-hpa..c
│ │ │ +00290320: 6c61 7373 2072 656d 6f76 655f 7466 7470  lass remove_tftp
│ │ │ +00290330: 642d 6870 6120 7b0a 2020 7061 636b 6167  d-hpa {.  packag
│ │ │ +00290340: 6520 7b20 2774 6674 7064 2d68 7061 273a  e { 'tftpd-hpa':
│ │ │ +00290350: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00290360: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00290370: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00290380: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remedi │ │ │ -002917c0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002917d0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002917e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -00291830: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00291840: 5d0a 6d61 736b 6564 203d 205b 2274 6674  ].masked = ["tft
│ │ │ -00291850: 7064 2d68 7061 225d 0a3c 2f63 6f64 653e  pd-hpa"].
│ │ │ -00291860: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00291910: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ -00291920: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00291930: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002919c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002919d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00291a00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00291a10: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -00291a60: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -00291a70: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -00291a80: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -00291a90: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -00291aa0: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -00291ab0: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -00291ac0: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -00291ad0: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -00291ae0: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -00291af0: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -00291b00: 7466 7470 642d 6870 612e 7365 7276 6963  tftpd-hpa.servic
│ │ │ -00291b10: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -00291b20: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -00291b30: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -00291b40: 2020 2d20 6e61 6d65 3a20 7466 7470 642d    - name: tftpd-
│ │ │ -00291b50: 6870 612e 736f 636b 6574 0a20 2020 2020  hpa.socket.     
│ │ │ -00291b60: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00291b70: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -00291b80: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.Remediatio
│ │ │ -00291c40: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ -00291c50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -00291cd0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00291d10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ -002919b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002919e0: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -002919f0: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -00291a30: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00291a40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ -00291ce0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00291d00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00291d30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00291d50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00291d80: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00291d90: 6162 6c65 5f74 6674 7064 2d68 7061 0a0a  able_tftpd-hpa..
│ │ │ -00291da0: 636c 6173 7320 6469 7361 626c 655f 7466  class disable_tf
│ │ │ -00291db0: 7470 642d 6870 6120 7b0a 2020 7365 7276  tpd-hpa {.  serv
│ │ │ -00291dc0: 6963 6520 7b27 7466 7470 642d 6870 6127  ice {'tftpd-hpa'
│ │ │ -00291dd0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00291de0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -00291df0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -00291e00: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -00291e20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00291e30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00291e40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00291e50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00291e60: 6431 3035 3322 2074 6162 696e 6465 783d d1053" tabindex= │ │ │ -00291e70: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -00291e80: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -00291e90: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -00291ea0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -00291eb0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -00291ec0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00291ed0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00291ee0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -00291f70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00291f80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00291fd0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00292010: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00292020: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00292030: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00292040: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00292050: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00292060: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00292070: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00292080: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00292090: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002920a0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002920b0: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -002920c0: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -002920d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002920e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002920f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00292100: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00292110: 7466 7470 5f64 6973 6162 6c65 640a 0a2d  tftp_disabled..-
│ │ │ -00292120: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ -00292130: 6674 7064 2d68 7061 2053 6572 7669 6365  ftpd-hpa Service
│ │ │ -00292140: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -00292150: 6365 2074 6674 7064 2d68 7061 0a20 2062  ce tftpd-hpa.  b
│ │ │ -00292160: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -00292170: 2044 6973 6162 6c65 2074 6674 7064 2d68   Disable tftpd-h
│ │ │ -00292180: 7061 2053 6572 7669 6365 202d 2043 6f6c  pa Service - Col
│ │ │ -00292190: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -002921a0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -002921b0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -002921c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002921d0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002921e0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002921f0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -00292200: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -00292210: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -00292220: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00292230: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00292240: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -00292250: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -00292260: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00292270: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00292280: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00292290: 626c 6520 7466 7470 642d 6870 6120 5365  ble tftpd-hpa Se
│ │ │ -002922a0: 7276 6963 6520 2d20 456e 7375 7265 2074  rvice - Ensure t
│ │ │ -002922b0: 6674 7064 2d68 7061 2e73 6572 7669 6365  ftpd-hpa.service
│ │ │ -002922c0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -002922d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002922e0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002922f0: 6d65 3a20 7466 7470 642d 6870 612e 7365  me: tftpd-hpa.se
│ │ │ -00292300: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -00292310: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -00292320: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00292330: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00292340: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -00292350: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -00292360: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00292370: 6368 2822 7466 7470 642d 6870 612e 7365  ch("tftpd-hpa.se
│ │ │ -00292380: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ -00292390: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ -002923a0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ -002923b0: 7869 7374 7320 2d20 7466 7470 642d 6870  xists - tftpd-hp
│ │ │ -002923c0: 612e 736f 636b 6574 0a20 2020 2061 6e73  a.socket.    ans
│ │ │ -002923d0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002923e0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002923f0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00292400: 6573 2074 6674 7064 2d68 7061 2e73 6f63  es tftpd-hpa.soc
│ │ │ -00292410: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -00292420: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00292430: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00292440: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00292450: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -00292460: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00292470: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00292480: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00292490: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -002924a0: 653a 2044 6973 6162 6c65 2074 6674 7064  e: Disable tftpd
│ │ │ -002924b0: 2d68 7061 2053 6572 7669 6365 202d 2044  -hpa Service - D
│ │ │ -002924c0: 6973 6162 6c65 2053 6f63 6b65 7420 7466  isable Socket tf
│ │ │ -002924d0: 7470 642d 6870 610a 2020 2020 616e 7369  tpd-hpa.    ansi
│ │ │ -002924e0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002924f0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00292500: 2074 6674 7064 2d68 7061 2e73 6f63 6b65   tftpd-hpa.socke
│ │ │ -00292510: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -00292520: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -00292530: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00292540: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00292550: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -00292560: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -00292570: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00292580: 6368 2822 7466 7470 642d 6870 612e 736f  ch("tftpd-hpa.so
│ │ │ -00292590: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -002925a0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -002925b0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002925c0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -002925d0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -002925e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002925f0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -00292600: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00292610: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -00292620: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00292630: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00292640: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00292650: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00292660: 7669 6365 5f74 6674 705f 6469 7361 626c  vice_tftp_disabl
│ │ │ -00292670: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00292680: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00292690: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -002926a0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -002926b0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
C │ │ │ -00291f60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00291f90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00291fa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00291fe0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00291ff0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +00291860: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00291870: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00291890: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002918b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002918c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00291900: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00291910: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00291920: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00291930: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00291940: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00291950: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00291960: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00291970: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00291980: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00291990: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +002919a0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002919b0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +002919c0: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +002919d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002919e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002919f0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00291a00: 0a20 202d 2073 6572 7669 6365 5f74 6674  .  - service_tft
│ │ │ +00291a10: 705f 6469 7361 626c 6564 0a0a 2d20 6e61  p_disabled..- na
│ │ │ +00291a20: 6d65 3a20 4469 7361 626c 6520 7466 7470  me: Disable tftp
│ │ │ +00291a30: 642d 6870 6120 5365 7276 6963 6520 2d20  d-hpa Service - 
│ │ │ +00291a40: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +00291a50: 7466 7470 642d 6870 610a 2020 626c 6f63  tftpd-hpa.  bloc
│ │ │ +00291a60: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +00291a70: 7361 626c 6520 7466 7470 642d 6870 6120  sable tftpd-hpa 
│ │ │ +00291a80: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ +00291a90: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ +00291aa0: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ +00291ab0: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ +00291ac0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00291ad0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00291ae0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00291af0: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ +00291b00: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ +00291b10: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ +00291b20: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00291b30: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00291b40: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ +00291b50: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +00291b60: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +00291b70: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +00291b80: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +00291b90: 2074 6674 7064 2d68 7061 2053 6572 7669   tftpd-hpa Servi
│ │ │ +00291ba0: 6365 202d 2045 6e73 7572 6520 7466 7470  ce - Ensure tftp
│ │ │ +00291bb0: 642d 6870 612e 7365 7276 6963 6520 6973  d-hpa.service is
│ │ │ +00291bc0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +00291bd0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00291be0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00291bf0: 2074 6674 7064 2d68 7061 2e73 6572 7669   tftpd-hpa.servi
│ │ │ +00291c00: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +00291c10: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +00291c20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00291c30: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00291c40: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +00291c50: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +00291c60: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00291c70: 2274 6674 7064 2d68 7061 2e73 6572 7669  "tftpd-hpa.servi
│ │ │ +00291c80: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +00291c90: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +00291ca0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +00291cb0: 7473 202d 2074 6674 7064 2d68 7061 2e73  ts - tftpd-hpa.s
│ │ │ +00291cc0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +00291cd0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00291ce0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00291cf0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00291d00: 7466 7470 642d 6870 612e 736f 636b 6574  tftpd-hpa.socket
│ │ │ +00291d10: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00291d20: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00291d30: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00291d40: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00291d50: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +00291d60: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +00291d70: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +00291d80: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +00291d90: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +00291da0: 4469 7361 626c 6520 7466 7470 642d 6870  Disable tftpd-hp
│ │ │ +00291db0: 6120 5365 7276 6963 6520 2d20 4469 7361  a Service - Disa
│ │ │ +00291dc0: 626c 6520 536f 636b 6574 2074 6674 7064  ble Socket tftpd
│ │ │ +00291dd0: 2d68 7061 0a20 2020 2061 6e73 6962 6c65  -hpa.    ansible
│ │ │ +00291de0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00291df0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7466  :.      name: tf
│ │ │ +00291e00: 7470 642d 6870 612e 736f 636b 6574 0a20  tpd-hpa.socket. 
│ │ │ +00291e10: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00291e20: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +00291e30: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +00291e40: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00291e50: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00291e60: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +00291e70: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00291e80: 2274 6674 7064 2d68 7061 2e73 6f63 6b65  "tftpd-hpa.socke
│ │ │ +00291e90: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +00291ea0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +00291eb0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00291ec0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00291ed0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00291ee0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00291ef0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +00291f00: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +00291f10: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +00291f20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00291f30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00291f40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00291f50: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00291f60: 655f 7466 7470 5f64 6973 6162 6c65 640a  e_tftp_disabled.
│ │ │ +00291f70: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +00291f80: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +00291f90: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00291fa0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00291fb0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +00292070: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +00292080: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
< │ │ │ +00292180: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002921b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +002921d0: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +002921e0: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +002921f0: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +00292200: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +00292210: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +00292220: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +00292230: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +00292240: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +00292250: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +00292260: 3a20 7466 7470 642d 6870 612e 7365 7276  : tftpd-hpa.serv
│ │ │ +00292270: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ +00292280: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00292290: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ +002922a0: 2020 2020 2d20 6e61 6d65 3a20 7466 7470      - name: tftp
│ │ │ +002922b0: 642d 6870 612e 736f 636b 6574 0a20 2020  d-hpa.socket.   
│ │ │ +002922c0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002922d0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +002922e0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.Remediat
│ │ │ +002923a0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +002923b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +002923f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00292400: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00292410: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00292420: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00292430: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +002924c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +002924d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +00292140: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +00292150: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +00292190: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002921a0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ +00292440: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00292450: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00292490: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002924a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ +002924f0: 6973 6162 6c65 5f74 6674 7064 2d68 7061  isable_tftpd-hpa
│ │ │ +00292500: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +00292510: 7466 7470 642d 6870 6120 7b0a 2020 7365  tftpd-hpa {.  se
│ │ │ +00292520: 7276 6963 6520 7b27 7466 7470 642d 6870  rvice {'tftpd-hp
│ │ │ +00292530: 6127 3a0a 2020 2020 656e 6162 6c65 203d  a':.    enable =
│ │ │ +00292540: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00292550: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00292560: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +00292620: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00292630: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00292640: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00292650: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +00292690: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +002926a0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +002926b0: 5b22 7466 7470 642d 6870 6122 5d0a 3c2f  ["tftpd-hpa"].
│ │ │ -002934d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002934e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -002935c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002935d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00293620: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00293630: 7273 796e 630a 0a63 6c61 7373 2072 656d  rsync..class rem
│ │ │ -00293640: 6f76 655f 7273 796e 6320 7b0a 2020 7061  ove_rsync {.  pa
│ │ │ -00293650: 636b 6167 6520 7b20 2772 7379 6e63 273a  ckage { 'rsync':
│ │ │ -00293660: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00293670: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00293680: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00293690: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -00293740: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00293750: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -00293820: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ -002935a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002935b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002935f0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00293600: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -002937e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00293800: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00293850: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00293860: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00293890: 6e73 7461 6c6c 2072 7379 6e63 2050 6163  nstall rsync Pac
│ │ │ -002938a0: 6b61 6765 3a20 456e 7375 7265 2072 7379  kage: Ensure rsy
│ │ │ -002938b0: 6e63 2069 7320 7265 6d6f 7665 6427 0a20  nc is removed'. 
│ │ │ -002938c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002938d0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002938e0: 6d65 3a20 7273 796e 630a 2020 2020 7374  me: rsync.    st
│ │ │ -002938f0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00293900: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00293910: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00293920: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00293930: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00293940: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00293950: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00293960: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00293970: 6167 655f 7273 796e 635f 7265 6d6f 7665  age_rsync_remove
│ │ │ -00293980: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002934d0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +002934e0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +002934f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002935c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002935d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00293630: 616c 6c20 7273 796e 6320 5061 636b 6167  all rsync Packag
│ │ │ +00293640: 653a 2045 6e73 7572 6520 7273 796e 6320  e: Ensure rsync 
│ │ │ +00293650: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00293660: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00293670: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00293680: 2072 7379 6e63 0a20 2020 2073 7461 7465   rsync.    state
│ │ │ +00293690: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +002936a0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002936b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002936c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002936d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002936e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002936f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00293700: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00293710: 5f72 7379 6e63 5f72 656d 6f76 6564 0a3c  _rsync_removed.<
│ │ │ +00293720: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002937d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002937e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +002935a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002935b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002935f0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00293600: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002938c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002938d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00293920: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00293930: 7273 796e 630a 0a63 6c61 7373 2072 656d  rsync..class rem
│ │ │ +00293940: 6f76 655f 7273 796e 6320 7b0a 2020 7061  ove_rsync {.  pa
│ │ │ +00293950: 636b 6167 6520 7b20 2772 7379 6e63 273a  ckage { 'rsync':
│ │ │ +00293960: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00293970: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00293980: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00293990: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ -002947c0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -002947d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -00294820: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -00294830: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -00294840: 3d20 5b22 7273 796e 6364 225d 0a3c 2f63  = ["rsyncd"].
│ │ │ -00294860: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00294900: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -00294910: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -00294920: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +002938a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002938b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002938f0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00293900: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002949a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002949c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -002949f0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -002949d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002949e0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -00294a00: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -00294a20: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00294a30: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -00294a60: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -00294a70: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -00294a80: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -00294a90: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -00294aa0: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -00294ab0: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -00294ac0: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -00294ad0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -00294ae0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -00294af0: 6d65 3a20 7273 796e 6364 2e73 6572 7669  me: rsyncd.servi
│ │ │ -00294b00: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ -00294b10: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00294b20: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ -00294b30: 2020 202d 206e 616d 653a 2072 7379 6e63     - name: rsync
│ │ │ -00294b40: 642e 736f 636b 6574 0a20 2020 2020 2020  d.socket.       
│ │ │ -00294b50: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00294b60: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -00294b70: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ -00294b80: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00294c30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00294c40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -00294cd0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00294cf0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00294d10: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00294d40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00294d50: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00294d60: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -00294d80: 6c65 5f72 7379 6e63 640a 0a63 6c61 7373  le_rsyncd..class
│ │ │ -00294d90: 2064 6973 6162 6c65 5f72 7379 6e63 6420   disable_rsyncd 
│ │ │ -00294da0: 7b0a 2020 7365 7276 6963 6520 7b27 7273  {.  service {'rs
│ │ │ -00294db0: 796e 6364 273a 0a20 2020 2065 6e61 626c  yncd':.    enabl
│ │ │ -00294dc0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -00294dd0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00294de0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -00294df0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -00294eb0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00294ec0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -00294f40: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00294f60: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00294fb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00294fe0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00294f50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00294f70: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00294fc0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00294fd0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00295000: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00295010: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00295020: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00295030: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00295040: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00295050: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00295060: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -00295070: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00295080: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00295090: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002950a0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -002950b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -002950c0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002950d0: 7669 6365 5f72 7379 6e63 645f 6469 7361  vice_rsyncd_disa
│ │ │ -002950e0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -002950f0: 7375 7265 2072 7379 6e63 6420 7365 7276  sure rsyncd serv
│ │ │ -00295100: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ -00295110: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -00295120: 6520 7273 796e 6364 0a20 2062 6c6f 636b  e rsyncd.  block
│ │ │ -00295130: 3a0a 0a20 202d 206e 616d 653a 2045 6e73  :..  - name: Ens
│ │ │ -00295140: 7572 6520 7273 796e 6364 2073 6572 7669  ure rsyncd servi
│ │ │ -00295150: 6365 2069 7320 6469 7361 626c 6564 202d  ce is disabled -
│ │ │ -00295160: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -00295170: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -00295180: 7420 696e 0a20 2020 2020 2074 6865 2053  t in.      the S
│ │ │ -00295190: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ -002951a0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -002951b0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -002951c0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002951d0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ -002951e0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ -002951f0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ -00295200: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -00295210: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -00295220: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00295230: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00295240: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00295250: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00295260: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ -00295270: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ -00295280: 6973 6162 6c65 6420 2d20 456e 7375 7265  isabled - Ensure
│ │ │ -00295290: 2072 7379 6e63 642e 7365 7276 6963 6520   rsyncd.service 
│ │ │ -002952a0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -002952b0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002952c0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002952d0: 653a 2072 7379 6e63 642e 7365 7276 6963  e: rsyncd.servic
│ │ │ -002952e0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -002952f0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -00295300: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00295310: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00295320: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -00295330: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00295340: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00295350: 7273 796e 6364 2e73 6572 7669 6365 222c  rsyncd.service",
│ │ │ -00295360: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -00295370: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -00295380: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -00295390: 2072 7379 6e63 642e 736f 636b 6574 0a20   rsyncd.socket. 
│ │ │ -002953a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002953b0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -002953c0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -002953d0: 6974 2d66 696c 6573 2072 7379 6e63 642e  it-files rsyncd.
│ │ │ -002953e0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -002953f0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -00295400: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00295410: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00295420: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00295430: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00295440: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00295450: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00295460: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00295470: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ -00295480: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ -00295490: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ -002954a0: 6520 536f 636b 6574 2072 7379 6e63 640a  e Socket rsyncd.
│ │ │ -002954b0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002954c0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002954d0: 2020 206e 616d 653a 2072 7379 6e63 642e     name: rsyncd.
│ │ │ -002954e0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002954f0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00295500: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00295510: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00295520: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00295530: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00295540: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00295550: 2073 6561 7263 6828 2272 7379 6e63 642e   search("rsyncd.
│ │ │ -00295560: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -00295570: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -00295580: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00295590: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002955a0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -002955b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002955c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002955d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002955e0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -002955f0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00295600: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00295610: 6572 7669 6365 5f72 7379 6e63 645f 6469  ervice_rsyncd_di
│ │ │ -00295620: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -00295630: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -00295640: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00295650: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00295660: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00295670: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002947b0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +002947c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +002947d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00294850: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00294870: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002948c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002948f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00294910: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00294920: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00294930: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00294940: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00294950: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00294960: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00294970: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +00294980: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00294990: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002949a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002949b0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +002949c0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002949d0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002949e0: 6963 655f 7273 796e 6364 5f64 6973 6162  ice_rsyncd_disab
│ │ │ +002949f0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00294a00: 7572 6520 7273 796e 6364 2073 6572 7669  ure rsyncd servi
│ │ │ +00294a10: 6365 2069 7320 6469 7361 626c 6564 202d  ce is disabled -
│ │ │ +00294a20: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +00294a30: 2072 7379 6e63 640a 2020 626c 6f63 6b3a   rsyncd.  block:
│ │ │ +00294a40: 0a0a 2020 2d20 6e61 6d65 3a20 456e 7375  ..  - name: Ensu
│ │ │ +00294a50: 7265 2072 7379 6e63 6420 7365 7276 6963  re rsyncd servic
│ │ │ +00294a60: 6520 6973 2064 6973 6162 6c65 6420 2d20  e is disabled - 
│ │ │ +00294a70: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +00294a80: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +00294a90: 2069 6e0a 2020 2020 2020 7468 6520 5379   in.      the Sy
│ │ │ +00294aa0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +00294ab0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00294ac0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00294ad0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +00294ae0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +00294af0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +00294b00: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +00294b10: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +00294b20: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +00294b30: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +00294b40: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00294b50: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00294b60: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00294b70: 616d 653a 2045 6e73 7572 6520 7273 796e  ame: Ensure rsyn
│ │ │ +00294b80: 6364 2073 6572 7669 6365 2069 7320 6469  cd service is di
│ │ │ +00294b90: 7361 626c 6564 202d 2045 6e73 7572 6520  sabled - Ensure 
│ │ │ +00294ba0: 7273 796e 6364 2e73 6572 7669 6365 2069  rsyncd.service i
│ │ │ +00294bb0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +00294bc0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00294bd0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00294be0: 3a20 7273 796e 6364 2e73 6572 7669 6365  : rsyncd.service
│ │ │ +00294bf0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00294c00: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +00294c10: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00294c20: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00294c30: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +00294c40: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +00294c50: 6e65 7320 6973 2073 6561 7263 6828 2272  nes is search("r
│ │ │ +00294c60: 7379 6e63 642e 7365 7276 6963 6522 2c20  syncd.service", 
│ │ │ +00294c70: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00294c80: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00294c90: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00294ca0: 7273 796e 6364 2e73 6f63 6b65 740a 2020  rsyncd.socket.  
│ │ │ +00294cb0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00294cc0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00294cd0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00294ce0: 742d 6669 6c65 7320 7273 796e 6364 2e73  t-files rsyncd.s
│ │ │ +00294cf0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +00294d00: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +00294d10: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00294d20: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00294d30: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00294d40: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00294d50: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00294d60: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00294d70: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00294d80: 616d 653a 2045 6e73 7572 6520 7273 796e  ame: Ensure rsyn
│ │ │ +00294d90: 6364 2073 6572 7669 6365 2069 7320 6469  cd service is di
│ │ │ +00294da0: 7361 626c 6564 202d 2044 6973 6162 6c65  sabled - Disable
│ │ │ +00294db0: 2053 6f63 6b65 7420 7273 796e 6364 0a20   Socket rsyncd. 
│ │ │ +00294dc0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00294dd0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00294de0: 2020 6e61 6d65 3a20 7273 796e 6364 2e73    name: rsyncd.s
│ │ │ +00294df0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +00294e00: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00294e10: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00294e20: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00294e30: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +00294e40: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00294e50: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00294e60: 7365 6172 6368 2822 7273 796e 6364 2e73  search("rsyncd.s
│ │ │ +00294e70: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +00294e80: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +00294e90: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00294ea0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00294eb0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +00294ec0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00294ed0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00294ee0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00294ef0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00294f00: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00294f10: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00294f20: 7276 6963 655f 7273 796e 6364 5f64 6973  rvice_rsyncd_dis
│ │ │ +00294f30: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00294f40: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00294f50: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00294f60: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00294f70: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00294f80: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ku │ │ │ +00295040: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ +00295050: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002950d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00295110: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c < │ │ │ +00295120: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Strategy: │ │ │ +00295160: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +00295170: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ +00294880: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00294890: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002948d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002948e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ +002950e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00295100: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:medium
Rebo │ │ │ +00295130: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +00295140: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
apiVersi │ │ │ +00295190: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +002951a0: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +002951b0: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +002951c0: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +002951d0: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +002951e0: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +002951f0: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +00295200: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +00295210: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +00295220: 2d20 6e61 6d65 3a20 7273 796e 6364 2e73 - name: rsyncd.s │ │ │ +00295230: 6572 7669 6365 0a20 2020 2020 2020 2065 ervice. e │ │ │ +00295240: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +00295250: 2020 2020 2020 6d61 736b 3a20 7472 7565 mask: true │ │ │ +00295260: 0a20 2020 2020 202d 206e 616d 653a 2072 . - name: r │ │ │ +00295270: 7379 6e63 642e 736f 636b 6574 0a20 2020 syncd.socket. │ │ │ +00295280: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +00295290: 6c73 650a 2020 2020 2020 2020 6d61 736b lse. mask │ │ │ +002952a0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f : true.
Remediat │ │ │ +00295360: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00295370: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002953b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002953c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002953d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002953e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002953f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00295400: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00295410: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00295450: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00295460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00295480: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00295490: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ +002954b0: 6973 6162 6c65 5f72 7379 6e63 640a 0a63  isable_rsyncd..c
│ │ │ +002954c0: 6c61 7373 2064 6973 6162 6c65 5f72 7379  lass disable_rsy
│ │ │ +002954d0: 6e63 6420 7b0a 2020 7365 7276 6963 6520  ncd {.  service 
│ │ │ +002954e0: 7b27 7273 796e 6364 273a 0a20 2020 2065  {'rsyncd':.    e
│ │ │ +002954f0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +00295500: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +00295510: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +00295520: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ +002955e0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +002955f0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00295600: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ +00295650: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +00295660: 736b 6564 203d 205b 2272 7379 6e63 6422  sked = ["rsyncd"
│ │ │ +00295670: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00295680: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediatio │ │ │ -00296cf0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00296d00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00296d80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00296d90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00296db0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00296dc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00296de0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00296e00: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00296e30: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00296e40: 656d 6f76 655f 7371 7569 640a 0a63 6c61  emove_squid..cla
│ │ │ -00296e50: 7373 2072 656d 6f76 655f 7371 7569 6420  ss remove_squid 
│ │ │ -00296e60: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ -00296e70: 7175 6964 273a 0a20 2020 2065 6e73 7572  quid':.    ensur
│ │ │ -00296e80: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -00296e90: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00296ea0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00296f50: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00296f60: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00296f70: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00297010: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00297030: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00297060: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00296ff0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00297000: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00297020: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00297040: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00297050: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00297090: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002970a0: 3a20 2755 6e69 6e73 7461 6c6c 2073 7175 : 'Uninstall squ │ │ │ -002970b0: 6964 2050 6163 6b61 6765 3a20 456e 7375 id Package: Ensu │ │ │ -002970c0: 7265 2073 7175 6964 2069 7320 7265 6d6f re squid is remo │ │ │ -002970d0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -002970e0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -002970f0: 2020 2020 6e61 6d65 3a20 7371 7569 640a name: squid. │ │ │ -00297100: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -00297110: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ -00297120: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -00297130: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -00297140: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -00297150: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -00297160: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -00297170: 636b 6167 655f 7371 7569 645f 7265 6d6f ckage_squid_remo │ │ │ -00297180: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f ved. - unknown_ │ │ │ -00297190: 7365 7665 7269 7479 0a3c 2f63 6f64 653e severity. │ │ │ +00296cf0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00296d00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00296d80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00296d90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00296da0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00296de0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00296df0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00296e10: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00296e20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +00296e40: 556e 696e 7374 616c 6c20 7371 7569 6420  Uninstall squid 
│ │ │ +00296e50: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00296e60: 7371 7569 6420 6973 2072 656d 6f76 6564  squid is removed
│ │ │ +00296e70: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00296e80: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00296e90: 206e 616d 653a 2073 7175 6964 0a20 2020   name: squid.   
│ │ │ +00296ea0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00296eb0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00296ec0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00296ed0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00296ee0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00296ef0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00296f00: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00296f10: 6765 5f73 7175 6964 5f72 656d 6f76 6564  ge_squid_removed
│ │ │ +00296f20: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +00296f30: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediati │ │ │ +00296ff0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00297000: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00297080: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00297090: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002970a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002970e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002970f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00297110: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00297120: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00297140: 7265 6d6f 7665 5f73 7175 6964 0a0a 636c  remove_squid..cl
│ │ │ +00297150: 6173 7320 7265 6d6f 7665 5f73 7175 6964  ass remove_squid
│ │ │ +00297160: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00297170: 7371 7569 6427 3a0a 2020 2020 656e 7375  squid':.    ensu
│ │ │ +00297180: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00297190: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002971a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -00297fa0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00297fb0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00297fc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00297fd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -00298010: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -00298020: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -00298030: 5b22 7371 7569 6422 5d0a 3c2f 636f 6465  ["squid"].
Remed │ │ │ -002980f0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -00298100: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ -002981a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -00298250: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -00298260: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -00298270: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -00298280: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -00298290: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -002982a0: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -002982b0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -002982c0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -002982d0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -002982e0: 2073 7175 6964 2e73 6572 7669 6365 0a20   squid.service. 
│ │ │ -002982f0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -00298300: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -00298310: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -00298320: 206e 616d 653a 2073 7175 6964 2e73 6f63   name: squid.soc
│ │ │ -00298330: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ -00298340: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00298350: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ -00298410: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00298420: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -00298190: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002981c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -002981d0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -00298210: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00298220: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002984c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00298560: 636c 7564 6520 6469 7361 626c 655f 7371  clude disable_sq
│ │ │ -00298570: 7569 640a 0a63 6c61 7373 2064 6973 6162  uid..class disab
│ │ │ -00298580: 6c65 5f73 7175 6964 207b 0a20 2073 6572  le_squid {.  ser
│ │ │ -00298590: 7669 6365 207b 2773 7175 6964 273a 0a20  vice {'squid':. 
│ │ │ -002985a0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -002985b0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -002985c0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -002985d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -002985e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00298690: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002986a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002984b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002984e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002984f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00298530: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00298540: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -00298730: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00298740: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00298760: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00298780: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00298790: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002987d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002987e0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -002987f0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00298800: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00298810: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00298820: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00298830: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00298840: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00298850: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00298860: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00298870: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00298880: 6365 5f73 7175 6964 5f64 6973 6162 6c65  ce_squid_disable
│ │ │ -00298890: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -002988a0: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ -002988b0: 4469 7361 626c 6520 5371 7569 6420 2d20  Disable Squid - 
│ │ │ -002988c0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -002988d0: 7371 7569 640a 2020 626c 6f63 6b3a 0a0a  squid.  block:..
│ │ │ -002988e0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002988f0: 6520 5371 7569 6420 2d20 436f 6c6c 6563  e Squid - Collec
│ │ │ -00298900: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -00298910: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -00298920: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -00298930: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00298940: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00298950: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00298960: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -00298970: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -00298980: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -00298990: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -002989a0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -002989b0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -002989c0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -002989d0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -002989e0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -002989f0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00298a00: 2053 7175 6964 202d 2045 6e73 7572 6520   Squid - Ensure 
│ │ │ -00298a10: 7371 7569 642e 7365 7276 6963 6520 6973  squid.service is
│ │ │ -00298a20: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -00298a30: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00298a40: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00298a50: 2073 7175 6964 2e73 6572 7669 6365 0a20   squid.service. 
│ │ │ -00298a60: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00298a70: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -00298a80: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -00298a90: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00298aa0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00298ab0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00298ac0: 7320 6973 2073 6561 7263 6828 2273 7175  s is search("squ
│ │ │ -00298ad0: 6964 2e73 6572 7669 6365 222c 206d 756c  id.service", mul
│ │ │ -00298ae0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -00298af0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -00298b00: 6b65 7420 4578 6973 7473 202d 2073 7175  ket Exists - squ
│ │ │ -00298b10: 6964 2e73 6f63 6b65 740a 2020 2020 616e  id.socket.    an
│ │ │ -00298b20: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -00298b30: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -00298b40: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -00298b50: 6c65 7320 7371 7569 642e 736f 636b 6574  les squid.socket
│ │ │ -00298b60: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -00298b70: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00298b80: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00298b90: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00298ba0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -00298bb0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -00298bc0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00298bd0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00298be0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00298bf0: 4469 7361 626c 6520 5371 7569 6420 2d20  Disable Squid - 
│ │ │ -00298c00: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ -00298c10: 7175 6964 0a20 2020 2061 6e73 6962 6c65  quid.    ansible
│ │ │ -00298c20: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -00298c30: 3a0a 2020 2020 2020 6e61 6d65 3a20 7371  :.      name: sq
│ │ │ -00298c40: 7569 642e 736f 636b 6574 0a20 2020 2020  uid.socket.     
│ │ │ -00298c50: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00298c60: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00298c70: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -00298c80: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -00298c90: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00298ca0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00298cb0: 7320 6973 2073 6561 7263 6828 2273 7175  s is search("squ
│ │ │ -00298cc0: 6964 2e73 6f63 6b65 7422 2c20 6d75 6c74  id.socket", mult
│ │ │ -00298cd0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00298ce0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00298cf0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00298d00: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00298d10: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00298d20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00298d30: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00298d40: 7371 7569 645f 6469 7361 626c 6564 0a20  squid_disabled. 
│ │ │ -00298d50: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -00298d60: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ -00298d70: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ -00298d80: 7768 656e 3a20 2820 2273 7175 6964 2220  when: ( "squid" 
│ │ │ -00298d90: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00298da0: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ -00298db0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00298dc0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00298dd0: 6167 6573 0a20 2020 2029 0a3c 2f63 6f64  ages.    ).
< │ │ │ +00298090: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002980a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002980f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00298100: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00298110: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00298120: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00298130: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00298140: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00298150: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00298160: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00298170: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00298180: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00298190: 7365 7276 6963 655f 7371 7569 645f 6469  service_squid_di
│ │ │ +002981a0: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f  sabled.  - unkno
│ │ │ +002981b0: 776e 5f73 6576 6572 6974 790a 0a2d 206e  wn_severity..- n
│ │ │ +002981c0: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ +002981d0: 6964 202d 2044 6973 6162 6c65 2073 6572  id - Disable ser
│ │ │ +002981e0: 7669 6365 2073 7175 6964 0a20 2062 6c6f  vice squid.  blo
│ │ │ +002981f0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00298200: 6973 6162 6c65 2053 7175 6964 202d 2043  isable Squid - C
│ │ │ +00298210: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +00298220: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +00298230: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +00298240: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00298250: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00298260: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00298270: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +00298280: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +00298290: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +002982a0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +002982b0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +002982c0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +002982d0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +002982e0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +002982f0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00298300: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00298310: 7361 626c 6520 5371 7569 6420 2d20 456e  sable Squid - En
│ │ │ +00298320: 7375 7265 2073 7175 6964 2e73 6572 7669  sure squid.servi
│ │ │ +00298330: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +00298340: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00298350: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00298360: 6e61 6d65 3a20 7371 7569 642e 7365 7276  name: squid.serv
│ │ │ +00298370: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +00298380: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +00298390: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002983a0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +002983b0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +002983c0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +002983d0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002983e0: 2822 7371 7569 642e 7365 7276 6963 6522  ("squid.service"
│ │ │ +002983f0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +00298400: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +00298410: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +00298420: 2d20 7371 7569 642e 736f 636b 6574 0a20  - squid.socket. 
│ │ │ +00298430: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00298440: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00298450: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00298460: 6974 2d66 696c 6573 2073 7175 6964 2e73  it-files squid.s
│ │ │ +00298470: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +00298480: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +00298490: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002984a0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002984b0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002984c0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002984d0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002984e0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002984f0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00298500: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ +00298510: 6964 202d 2044 6973 6162 6c65 2053 6f63  id - Disable Soc
│ │ │ +00298520: 6b65 7420 7371 7569 640a 2020 2020 616e  ket squid.    an
│ │ │ +00298530: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00298540: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00298550: 653a 2073 7175 6964 2e73 6f63 6b65 740a  e: squid.socket.
│ │ │ +00298560: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00298570: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +00298580: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00298590: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002985a0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +002985b0: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +002985c0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002985d0: 2822 7371 7569 642e 736f 636b 6574 222c  ("squid.socket",
│ │ │ +002985e0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002985f0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00298600: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00298610: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00298620: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00298630: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00298640: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00298650: 7669 6365 5f73 7175 6964 5f64 6973 6162  vice_squid_disab
│ │ │ +00298660: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00298670: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00298680: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00298690: 7479 0a20 2077 6865 6e3a 2028 2022 7371  ty.  when: ( "sq
│ │ │ +002986a0: 7569 6422 2069 6e20 616e 7369 626c 655f  uid" in ansible_
│ │ │ +002986b0: 6661 6374 732e 7061 636b 6167 6573 2061  facts.packages a
│ │ │ +002986c0: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ +002986d0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002986e0: 2e70 6163 6b61 6765 730a 2020 2020 290a  .packages.    ).
│ │ │ +002986f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ +002987b0: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +002987c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +00298880: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>medium< │ │ │ +002988d0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002988e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +00298070: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00298080: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002980c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002980d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00298850: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00298870: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboo │ │ │ +002988a0: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ +002988b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
apiVersio
│ │ │ +00298900: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ +00298910: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ +00298920: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ +00298930: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ +00298940: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ +00298950: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ +00298960: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ +00298970: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ +00298980: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ +00298990: 206e 616d 653a 2073 7175 6964 2e73 6572   name: squid.ser
│ │ │ +002989a0: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ +002989b0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002989c0: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ +002989d0: 2020 2020 202d 206e 616d 653a 2073 7175       - name: squ
│ │ │ +002989e0: 6964 2e73 6f63 6b65 740a 2020 2020 2020  id.socket.      
│ │ │ +002989f0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00298a00: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +00298a10: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ +00298ad0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00298ae0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +00298b70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00298b90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00298ba0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00298bb0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00298bc0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00298be0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +00298c20: 626c 655f 7371 7569 640a 0a63 6c61 7373  ble_squid..class
│ │ │ +00298c30: 2064 6973 6162 6c65 5f73 7175 6964 207b   disable_squid {
│ │ │ +00298c40: 0a20 2073 6572 7669 6365 207b 2773 7175  .  service {'squ
│ │ │ +00298c50: 6964 273a 0a20 2020 2065 6e61 626c 6520  id':.    enable 
│ │ │ +00298c60: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +00298c70: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +00298c80: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +00298c90: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +00298d40: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00298d50: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00298d60: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +00298db0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00298dc0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00298dd0: 205b 2273 7175 6964 225d 0a3c 2f63 6f64   ["squid"].
Remediation Pup │ │ │ -0029a580: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0029a590: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -0029a660: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0029a670: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -0029a6d0: 5f73 616d 6261 0a0a 636c 6173 7320 7265  _samba..class re
│ │ │ -0029a6e0: 6d6f 7665 5f73 616d 6261 207b 0a20 2070  move_samba {.  p
│ │ │ -0029a6f0: 6163 6b61 6765 207b 2027 7361 6d62 6127  ackage { 'samba'
│ │ │ -0029a700: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0029a710: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0029a720: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0029a730: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -0029a7e0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0029a7f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -0029a8b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0029a8c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ -0029a640: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0029a650: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0029a690: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0029a6a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -0029a880: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0029a8a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0029a8d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0029a8f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0029a920: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0029a930: 696e 7374 616c 6c20 5361 6d62 6120 5061  install Samba Pa
│ │ │ -0029a940: 636b 6167 653a 2045 6e73 7572 6520 7361  ckage: Ensure sa
│ │ │ -0029a950: 6d62 6120 6973 2072 656d 6f76 6564 270a  mba is removed'.
│ │ │ -0029a960: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0029a970: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0029a980: 616d 653a 2073 616d 6261 0a20 2020 2073  ame: samba.    s
│ │ │ -0029a990: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0029a9a0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0029a9b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0029a9c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0029a9d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0029a9e0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0029a9f0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0029aa00: 5f73 616d 6261 5f72 656d 6f76 6564 0a20  _samba_removed. 
│ │ │ -0029aa10: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -0029aa20: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
Remediation Ans │ │ │ +0029a580: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0029a590: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +0029a610: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0029a630: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0029a680: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0029a6b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +0029a6d0: 7461 6c6c 2053 616d 6261 2050 6163 6b61  tall Samba Packa
│ │ │ +0029a6e0: 6765 3a20 456e 7375 7265 2073 616d 6261  ge: Ensure samba
│ │ │ +0029a6f0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +0029a700: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0029a710: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0029a720: 3a20 7361 6d62 610a 2020 2020 7374 6174  : samba.    stat
│ │ │ +0029a730: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +0029a740: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0029a750: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0029a760: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0029a770: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0029a780: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0029a790: 640a 2020 2d20 7061 636b 6167 655f 7361  d.  - package_sa
│ │ │ +0029a7a0: 6d62 615f 7265 6d6f 7665 640a 2020 2d20  mba_removed.  - 
│ │ │ +0029a7b0: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0029a7c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +0029a880: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0029a890: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +0029a640: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0029a650: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0029a690: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0029a6a0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0029a910: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0029a930: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0029a980: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0029a9b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0029a9d0: 655f 7361 6d62 610a 0a63 6c61 7373 2072  e_samba..class r
│ │ │ +0029a9e0: 656d 6f76 655f 7361 6d62 6120 7b0a 2020  emove_samba {.  
│ │ │ +0029a9f0: 7061 636b 6167 6520 7b20 2773 616d 6261  package { 'samba
│ │ │ +0029aa00: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0029aa10: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0029aa20: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -0029b7b0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0029b7c0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0029b7d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0029b7e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -0029b820: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0029b830: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0029b840: 5b22 736d 6264 225d 0a3c 2f63 6f64 653e  ["smbd"].
│ │ │ -0029b850: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0029b900: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ -0029b910: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0029b920: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +0029a940: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0029a950: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0029a990: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0029a9a0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -0029b9b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0029b9c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0029b9f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0029ba00: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -0029ba50: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -0029ba60: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -0029ba70: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -0029ba80: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -0029ba90: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -0029baa0: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -0029bab0: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -0029bac0: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -0029bad0: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -0029bae0: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -0029baf0: 736d 6264 2e73 6572 7669 6365 0a20 2020  smbd.service.   
│ │ │ -0029bb00: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0029bb10: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -0029bb20: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -0029bb30: 616d 653a 2073 6d62 642e 736f 636b 6574  ame: smbd.socket
│ │ │ -0029bb40: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -0029bb50: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -0029bb60: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64  mask: true.
Reme │ │ │ -0029bc20: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0029bc30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -0029b9a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0029b9d0: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -0029b9e0: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -0029ba20: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0029ba30: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0029bcc0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0029bcf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0029bd10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0029bd20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0029bd40: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0029bd60: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0029bd70: 6465 2064 6973 6162 6c65 5f73 6d62 640a  de disable_smbd.
│ │ │ -0029bd80: 0a63 6c61 7373 2064 6973 6162 6c65 5f73  .class disable_s
│ │ │ -0029bd90: 6d62 6420 7b0a 2020 7365 7276 6963 6520  mbd {.  service 
│ │ │ -0029bda0: 7b27 736d 6264 273a 0a20 2020 2065 6e61  {'smbd':.    ena
│ │ │ -0029bdb0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -0029bdc0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0029bdd0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -0029bde0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0029bdf0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -0029bea0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0029beb0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -0029bf40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0029bf60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0029bf70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0029bf80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0029bf90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0029bfb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0029bfe0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0029bff0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0029c000: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0029c010: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0029c020: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0029c030: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0029c040: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0029c050: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0029c060: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0029c070: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0029c080: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0029c090: 640a 2020 2d20 7365 7276 6963 655f 736d  d.  - service_sm
│ │ │ -0029c0a0: 625f 6469 7361 626c 6564 0a0a 2d20 6e61  b_disabled..- na
│ │ │ -0029c0b0: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ -0029c0c0: 6120 2d20 4469 7361 626c 6520 7365 7276  a - Disable serv
│ │ │ -0029c0d0: 6963 6520 736d 6264 0a20 2062 6c6f 636b  ice smbd.  block
│ │ │ -0029c0e0: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -0029c0f0: 6162 6c65 2053 616d 6261 202d 2043 6f6c  able Samba - Col
│ │ │ -0029c100: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -0029c110: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -0029c120: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -0029c130: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0029c140: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0029c150: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0029c160: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -0029c170: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -0029c180: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -0029c190: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0029c1a0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0029c1b0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -0029c1c0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -0029c1d0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0029c1e0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0029c1f0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0029c200: 626c 6520 5361 6d62 6120 2d20 456e 7375  ble Samba - Ensu
│ │ │ -0029c210: 7265 2073 6d62 642e 7365 7276 6963 6520  re smbd.service 
│ │ │ -0029c220: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -0029c230: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0029c240: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0029c250: 653a 2073 6d62 642e 7365 7276 6963 650a  e: smbd.service.
│ │ │ -0029c260: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0029c270: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -0029c280: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0029c290: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0029c2a0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -0029c2b0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0029c2c0: 6573 2069 7320 7365 6172 6368 2822 736d  es is search("sm
│ │ │ -0029c2d0: 6264 2e73 6572 7669 6365 222c 206d 756c  bd.service", mul
│ │ │ -0029c2e0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -0029c2f0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -0029c300: 6b65 7420 4578 6973 7473 202d 2073 6d62  ket Exists - smb
│ │ │ -0029c310: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -0029c320: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -0029c330: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -0029c340: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -0029c350: 6573 2073 6d62 642e 736f 636b 6574 0a20  es smbd.socket. 
│ │ │ -0029c360: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -0029c370: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -0029c380: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0029c390: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0029c3a0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -0029c3b0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -0029c3c0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0029c3d0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0029c3e0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -0029c3f0: 7361 626c 6520 5361 6d62 6120 2d20 4469  sable Samba - Di
│ │ │ -0029c400: 7361 626c 6520 536f 636b 6574 2073 6d62  sable Socket smb
│ │ │ -0029c410: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0029c420: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0029c430: 2020 2020 206e 616d 653a 2073 6d62 642e       name: smbd.
│ │ │ -0029c440: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -0029c450: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0029c460: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0029c470: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -0029c480: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -0029c490: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0029c4a0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0029c4b0: 2073 6561 7263 6828 2273 6d62 642e 736f   search("smbd.so
│ │ │ -0029c4c0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -0029c4d0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -0029c4e0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0029c4f0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0029c500: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0029c510: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -0029c520: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -0029c530: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0029c540: 2020 2d20 7365 7276 6963 655f 736d 625f    - service_smb_
│ │ │ -0029c550: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0029c560: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0029c570: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -0029c580: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0029c590: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0029c5a0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

< │ │ │ +0029b8a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0029b8b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0029b900: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0029b910: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0029b920: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0029b930: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0029b940: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0029b950: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0029b960: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0029b970: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0029b980: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +0029b990: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0029b9a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0029b9b0: 2073 6572 7669 6365 5f73 6d62 5f64 6973   service_smb_dis
│ │ │ +0029b9c0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +0029b9d0: 6973 6162 6c65 2053 616d 6261 202d 2044  isable Samba - D
│ │ │ +0029b9e0: 6973 6162 6c65 2073 6572 7669 6365 2073  isable service s
│ │ │ +0029b9f0: 6d62 640a 2020 626c 6f63 6b3a 0a0a 2020  mbd.  block:..  
│ │ │ +0029ba00: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0029ba10: 5361 6d62 6120 2d20 436f 6c6c 6563 7420  Samba - Collect 
│ │ │ +0029ba20: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +0029ba30: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +0029ba40: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +0029ba50: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0029ba60: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +0029ba70: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +0029ba80: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +0029ba90: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +0029baa0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +0029bab0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +0029bac0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +0029bad0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0029bae0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0029baf0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0029bb00: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0029bb10: 206e 616d 653a 2044 6973 6162 6c65 2053   name: Disable S
│ │ │ +0029bb20: 616d 6261 202d 2045 6e73 7572 6520 736d  amba - Ensure sm
│ │ │ +0029bb30: 6264 2e73 6572 7669 6365 2069 7320 4d61  bd.service is Ma
│ │ │ +0029bb40: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0029bb50: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0029bb60: 3a0a 2020 2020 2020 6e61 6d65 3a20 736d  :.      name: sm
│ │ │ +0029bb70: 6264 2e73 6572 7669 6365 0a20 2020 2020  bd.service.     
│ │ │ +0029bb80: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0029bb90: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0029bba0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +0029bbb0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0029bbc0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0029bbd0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0029bbe0: 2073 6561 7263 6828 2273 6d62 642e 7365   search("smbd.se
│ │ │ +0029bbf0: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +0029bc00: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +0029bc10: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +0029bc20: 7869 7374 7320 2d20 736d 6264 2e73 6f63  xists - smbd.soc
│ │ │ +0029bc30: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +0029bc40: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0029bc50: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0029bc60: 7374 2d75 6e69 742d 6669 6c65 7320 736d  st-unit-files sm
│ │ │ +0029bc70: 6264 2e73 6f63 6b65 740a 2020 2020 7265  bd.socket.    re
│ │ │ +0029bc80: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +0029bc90: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +0029bca0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0029bcb0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0029bcc0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0029bcd0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0029bce0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0029bcf0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0029bd00: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0029bd10: 2053 616d 6261 202d 2044 6973 6162 6c65   Samba - Disable
│ │ │ +0029bd20: 2053 6f63 6b65 7420 736d 6264 0a20 2020   Socket smbd.   
│ │ │ +0029bd30: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0029bd40: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0029bd50: 6e61 6d65 3a20 736d 6264 2e73 6f63 6b65  name: smbd.socke
│ │ │ +0029bd60: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +0029bd70: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +0029bd80: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +0029bd90: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0029bda0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +0029bdb0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +0029bdc0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0029bdd0: 6368 2822 736d 6264 2e73 6f63 6b65 7422  ch("smbd.socket"
│ │ │ +0029bde0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +0029bdf0: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ +0029be00: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0029be10: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0029be20: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0029be30: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +0029be40: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0029be50: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0029be60: 6572 7669 6365 5f73 6d62 5f64 6973 6162  ervice_smb_disab
│ │ │ +0029be70: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0029be80: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0029be90: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0029bea0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0029beb0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0029bec0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0029bf70: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ +0029bf80: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ +0029bf90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
mediumdisable
Complexity:low
Disrup │ │ │ +0029b880: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0029b890: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0029b8d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0029b8e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +0029c020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0029c040: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot │ │ │ +0029c070: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true
│ │ │ +0029c090: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0029c0c0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ +0029c0d0: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ +0029c0e0: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ +0029c0f0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ +0029c100: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ +0029c110: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ +0029c120: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ +0029c130: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ +0029c140: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ +0029c150: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ +0029c160: 6e61 6d65 3a20 736d 6264 2e73 6572 7669  name: smbd.servi
│ │ │ +0029c170: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +0029c180: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0029c190: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +0029c1a0: 2020 202d 206e 616d 653a 2073 6d62 642e     - name: smbd.
│ │ │ +0029c1b0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +0029c1c0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0029c1d0: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +0029c1e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +0029c2a0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0029c2b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +0029c330: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0029c350: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0029c3a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +0029c3f0: 5f73 6d62 640a 0a63 6c61 7373 2064 6973  _smbd..class dis
│ │ │ +0029c400: 6162 6c65 5f73 6d62 6420 7b0a 2020 7365  able_smbd {.  se
│ │ │ +0029c410: 7276 6963 6520 7b27 736d 6264 273a 0a20  rvice {'smbd':. 
│ │ │ +0029c420: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +0029c430: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +0029c440: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +0029c450: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0029c460: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +0029c510: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0029c520: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0029c530: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +0029c580: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0029c590: 5d0a 6d61 736b 6564 203d 205b 2273 6d62  ].masked = ["smb
│ │ │ +0029c5a0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation Pup │ │ │ -0029dca0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0029dcb0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +0029c360: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0029c370: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0029c3b0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0029c3c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -0029dd80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0029dd90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -0029ddf0: 5f73 6e6d 700a 0a63 6c61 7373 2072 656d  _snmp..class rem
│ │ │ -0029de00: 6f76 655f 736e 6d70 207b 0a20 2070 6163  ove_snmp {.  pac
│ │ │ -0029de10: 6b61 6765 207b 2027 736e 6d70 273a 0a20  kage { 'snmp':. 
│ │ │ -0029de20: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0029de30: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0029de40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -0029df00: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0029df10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -0029dd60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0029dd70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0029ddb0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0029ddc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0029df90: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0029dfb0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0029e000: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0029e030: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0029e050: 7461 6c6c 206e 6574 2d73 6e6d 7020 5061  tall net-snmp Pa
│ │ │ -0029e060: 636b 6167 653a 2045 6e73 7572 6520 736e  ckage: Ensure sn
│ │ │ -0029e070: 6d70 2069 7320 7265 6d6f 7665 6427 0a20  mp is removed'. 
│ │ │ -0029e080: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0029e090: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0029e0a0: 6d65 3a20 736e 6d70 0a20 2020 2073 7461  me: snmp.    sta
│ │ │ -0029e0b0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0029e0c0: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ -0029e0d0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0029e0e0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -0029e0f0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0029e100: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0029e110: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0029e120: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0029e130: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0029e140: 6b61 6765 5f6e 6574 2d73 6e6d 705f 7265  kage_net-snmp_re
│ │ │ -0029e150: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ -0029e160: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.Remediation Ans
│ │ │ +0029dca0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0029dcb0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
low
Disr │ │ │ -0029dfc0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0029dfd0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0029e010: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0029e020: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0029dd30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0029dd50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0029dda0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0029ddd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +0029ddf0: 7461 6c6c 206e 6574 2d73 6e6d 7020 5061  tall net-snmp Pa
│ │ │ +0029de00: 636b 6167 653a 2045 6e73 7572 6520 736e  ckage: Ensure sn
│ │ │ +0029de10: 6d70 2069 7320 7265 6d6f 7665 6427 0a20  mp is removed'. 
│ │ │ +0029de20: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0029de30: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0029de40: 6d65 3a20 736e 6d70 0a20 2020 2073 7461  me: snmp.    sta
│ │ │ +0029de50: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +0029de60: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +0029de70: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0029de80: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +0029de90: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0029dea0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0029deb0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0029dec0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0029ded0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0029dee0: 6b61 6765 5f6e 6574 2d73 6e6d 705f 7265  kage_net-snmp_re
│ │ │ +0029def0: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ +0029df00: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.
Reme │ │ │ +0029dfc0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0029dfd0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +0029dd60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0029dd70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0029ddb0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0029ddc0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +0029e060: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0029e090: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0029e0b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0029e0c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0029e0e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0029e0f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0029e110: 6c75 6465 2072 656d 6f76 655f 736e 6d70  lude remove_snmp
│ │ │ +0029e120: 0a0a 636c 6173 7320 7265 6d6f 7665 5f73  ..class remove_s
│ │ │ +0029e130: 6e6d 7020 7b0a 2020 7061 636b 6167 6520  nmp {.  package 
│ │ │ +0029e140: 7b20 2773 6e6d 7027 3a0a 2020 2020 656e  { 'snmp':.    en
│ │ │ +0029e150: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0029e160: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
R │ │ │ -0029ef70: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0029ef80: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0029ef90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0029efa0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -0029efe0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0029eff0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0029f000: 5b22 736e 6d70 6422 5d0a 3c2f 636f 6465  ["snmpd"].
Remed │ │ │ -0029f0c0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -0029f0d0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ -0029f170: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -0029f220: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -0029f230: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -0029f240: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -0029f250: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -0029f260: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -0029f270: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -0029f280: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -0029f290: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -0029f2a0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -0029f2b0: 2073 6e6d 7064 2e73 6572 7669 6365 0a20   snmpd.service. 
│ │ │ -0029f2c0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -0029f2d0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -0029f2e0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -0029f2f0: 206e 616d 653a 2073 6e6d 7064 2e73 6f63   name: snmpd.soc
│ │ │ -0029f300: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ -0029f310: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0029f320: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ -0029f3e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0029f3f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -0029f160: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0029f190: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -0029f1a0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -0029f1e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0029f1f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0029f490: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0029f530: 636c 7564 6520 6469 7361 626c 655f 736e  clude disable_sn
│ │ │ -0029f540: 6d70 640a 0a63 6c61 7373 2064 6973 6162  mpd..class disab
│ │ │ -0029f550: 6c65 5f73 6e6d 7064 207b 0a20 2073 6572  le_snmpd {.  ser
│ │ │ -0029f560: 7669 6365 207b 2773 6e6d 7064 273a 0a20  vice {'snmpd':. 
│ │ │ -0029f570: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0029f580: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0029f590: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0029f5a0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0029f5b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0029f660: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0029f670: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0029f480: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0029f4b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0029f4c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0029f500: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0029f510: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -0029f700: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0029f710: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0029f730: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0029f750: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0029f760: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0029f7a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0029f7b0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0029f7c0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0029f7d0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0029f7e0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0029f7f0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -0029f800: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0029f810: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0029f820: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0029f830: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -0029f840: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0029f850: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0029f860: 6963 655f 736e 6d70 645f 6469 7361 626c  ice_snmpd_disabl
│ │ │ -0029f870: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -0029f880: 626c 6520 736e 6d70 6420 5365 7276 6963  ble snmpd Servic
│ │ │ -0029f890: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -0029f8a0: 6963 6520 736e 6d70 640a 2020 626c 6f63  ice snmpd.  bloc
│ │ │ -0029f8b0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -0029f8c0: 7361 626c 6520 736e 6d70 6420 5365 7276  sable snmpd Serv
│ │ │ -0029f8d0: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -0029f8e0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -0029f8f0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -0029f900: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -0029f910: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0029f920: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0029f930: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -0029f940: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -0029f950: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -0029f960: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -0029f970: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0029f980: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0029f990: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0029f9a0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -0029f9b0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -0029f9c0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -0029f9d0: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ -0029f9e0: 7064 2053 6572 7669 6365 202d 2045 6e73  pd Service - Ens
│ │ │ -0029f9f0: 7572 6520 736e 6d70 642e 7365 7276 6963  ure snmpd.servic
│ │ │ -0029fa00: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -0029fa10: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0029fa20: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -0029fa30: 616d 653a 2073 6e6d 7064 2e73 6572 7669  ame: snmpd.servi
│ │ │ -0029fa40: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -0029fa50: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -0029fa60: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0029fa70: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0029fa80: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -0029fa90: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0029faa0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0029fab0: 2273 6e6d 7064 2e73 6572 7669 6365 222c  "snmpd.service",
│ │ │ -0029fac0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0029fad0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -0029fae0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -0029faf0: 2073 6e6d 7064 2e73 6f63 6b65 740a 2020   snmpd.socket.  
│ │ │ -0029fb00: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0029fb10: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0029fb20: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0029fb30: 742d 6669 6c65 7320 736e 6d70 642e 736f  t-files snmpd.so
│ │ │ -0029fb40: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -0029fb50: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -0029fb60: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -0029fb70: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -0029fb80: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -0029fb90: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0029fba0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0029fbb0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0029fbc0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0029fbd0: 6d65 3a20 4469 7361 626c 6520 736e 6d70  me: Disable snmp
│ │ │ -0029fbe0: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ -0029fbf0: 626c 6520 536f 636b 6574 2073 6e6d 7064  ble Socket snmpd
│ │ │ -0029fc00: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0029fc10: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0029fc20: 2020 2020 6e61 6d65 3a20 736e 6d70 642e      name: snmpd.
│ │ │ -0029fc30: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -0029fc40: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0029fc50: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0029fc60: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -0029fc70: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -0029fc80: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0029fc90: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0029fca0: 2073 6561 7263 6828 2273 6e6d 7064 2e73   search("snmpd.s
│ │ │ -0029fcb0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -0029fcc0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -0029fcd0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0029fce0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0029fcf0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0029fd00: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -0029fd10: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -0029fd20: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0029fd30: 0a20 202d 2073 6572 7669 6365 5f73 6e6d  .  - service_snm
│ │ │ -0029fd40: 7064 5f64 6973 6162 6c65 640a 2020 2d20  pd_disabled.  - 
│ │ │ -0029fd50: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -0029fd60: 626c 6f63 6b0a 2020 7768 656e 3a20 2820  block.  when: ( 
│ │ │ -0029fd70: 2273 6e6d 7022 2069 6e20 616e 7369 626c  "snmp" in ansibl
│ │ │ -0029fd80: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0029fd90: 2061 6e64 2022 6c69 6e75 782d 6261 7365   and "linux-base
│ │ │ -0029fda0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0029fdb0: 7473 2e70 6163 6b61 6765 730a 2020 2020  ts.packages.    
│ │ │ -0029fdc0: 290a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ).
< │ │ │ +0029ef70: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +0029ef80: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ +0029f060: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0029f070: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0029f0c0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0029f0d0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0029f0e0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0029f0f0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0029f100: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0029f110: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0029f120: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0029f130: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0029f140: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +0029f150: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0029f160: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0029f170: 2073 6572 7669 6365 5f73 6e6d 7064 5f64   service_snmpd_d
│ │ │ +0029f180: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ +0029f190: 2044 6973 6162 6c65 2073 6e6d 7064 2053   Disable snmpd S
│ │ │ +0029f1a0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0029f1b0: 2073 6572 7669 6365 2073 6e6d 7064 0a20   service snmpd. 
│ │ │ +0029f1c0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +0029f1d0: 653a 2044 6973 6162 6c65 2073 6e6d 7064  e: Disable snmpd
│ │ │ +0029f1e0: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +0029f1f0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +0029f200: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +0029f210: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +0029f220: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0029f230: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0029f240: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0029f250: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +0029f260: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +0029f270: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +0029f280: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0029f290: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0029f2a0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +0029f2b0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +0029f2c0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +0029f2d0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +0029f2e0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0029f2f0: 6520 736e 6d70 6420 5365 7276 6963 6520  e snmpd Service 
│ │ │ +0029f300: 2d20 456e 7375 7265 2073 6e6d 7064 2e73  - Ensure snmpd.s
│ │ │ +0029f310: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +0029f320: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0029f330: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +0029f340: 2020 2020 6e61 6d65 3a20 736e 6d70 642e      name: snmpd.
│ │ │ +0029f350: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +0029f360: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0029f370: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0029f380: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +0029f390: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0029f3a0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +0029f3b0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0029f3c0: 6172 6368 2822 736e 6d70 642e 7365 7276  arch("snmpd.serv
│ │ │ +0029f3d0: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +0029f3e0: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +0029f3f0: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +0029f400: 7374 7320 2d20 736e 6d70 642e 736f 636b  sts - snmpd.sock
│ │ │ +0029f410: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +0029f420: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0029f430: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0029f440: 742d 756e 6974 2d66 696c 6573 2073 6e6d  t-unit-files snm
│ │ │ +0029f450: 7064 2e73 6f63 6b65 740a 2020 2020 7265  pd.socket.    re
│ │ │ +0029f460: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +0029f470: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +0029f480: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0029f490: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0029f4a0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0029f4b0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0029f4c0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0029f4d0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0029f4e0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0029f4f0: 2073 6e6d 7064 2053 6572 7669 6365 202d   snmpd Service -
│ │ │ +0029f500: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +0029f510: 736e 6d70 640a 2020 2020 616e 7369 626c  snmpd.    ansibl
│ │ │ +0029f520: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0029f530: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +0029f540: 6e6d 7064 2e73 6f63 6b65 740a 2020 2020  nmpd.socket.    
│ │ │ +0029f550: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0029f560: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0029f570: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +0029f580: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0029f590: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0029f5a0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0029f5b0: 6573 2069 7320 7365 6172 6368 2822 736e  es is search("sn
│ │ │ +0029f5c0: 6d70 642e 736f 636b 6574 222c 206d 756c  mpd.socket", mul
│ │ │ +0029f5d0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +0029f5e0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +0029f5f0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0029f600: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0029f610: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0029f620: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +0029f630: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0029f640: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0029f650: 655f 736e 6d70 645f 6469 7361 626c 6564  e_snmpd_disabled
│ │ │ +0029f660: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +0029f670: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +0029f680: 6e3a 2028 2022 736e 6d70 2220 696e 2061  n: ( "snmp" in a
│ │ │ +0029f690: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0029f6a0: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ +0029f6b0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0029f6c0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0029f6d0: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).Remediat
│ │ │ +0029f790: 696f 6e20 4b75 6265 726e 6574 6573 2073  ion Kubernetes s
│ │ │ +0029f7a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Complexity:low
Disrup │ │ │ +0029f040: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0029f050: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0029f090: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0029f0a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Reboot:true │ │ │ +0029f8a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ +0029f8e0: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ +0029f8f0: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ +0029f900: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ +0029f910: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ +0029f920: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ +0029f930: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ +0029f940: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ +0029f950: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ +0029f960: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ +0029f970: 2020 2020 2020 2d20 6e61 6d65 3a20 736e        - name: sn
│ │ │ +0029f980: 6d70 642e 7365 7276 6963 650a 2020 2020  mpd.service.    
│ │ │ +0029f990: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0029f9a0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0029f9b0: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +0029f9c0: 6d65 3a20 736e 6d70 642e 736f 636b 6574  me: snmpd.socket
│ │ │ +0029f9d0: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +0029f9e0: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +0029f9f0: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64  mask: true.
Reme │ │ │ +0029fab0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0029fac0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +0029f830: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0029f860: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +0029f870: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ +0029f8b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0029f8c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +0029fb50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0029fb80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0029fba0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0029fbb0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0029fbd0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0029fbf0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0029fc00: 6465 2064 6973 6162 6c65 5f73 6e6d 7064  de disable_snmpd
│ │ │ +0029fc10: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +0029fc20: 736e 6d70 6420 7b0a 2020 7365 7276 6963  snmpd {.  servic
│ │ │ +0029fc30: 6520 7b27 736e 6d70 6427 3a0a 2020 2020  e {'snmpd':.    
│ │ │ +0029fc40: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +0029fc50: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +0029fc60: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +0029fc70: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +0029fd30: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0029fd40: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0029fd50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +0029fda0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +0029fdb0: 6173 6b65 6420 3d20 5b22 736e 6d70 6422  asked = ["snmpd"
│ │ │ +0029fdc0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 0029fdd0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Re │ │ │ -002e6c20: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002e6c30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002e6c40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -002e6c80: 0a0a 0a69 6e63 6c75 6465 2073 7368 5f70  ...include ssh_p
│ │ │ -002e6c90: 7269 7661 7465 5f6b 6579 5f70 6572 6d73  rivate_key_perms
│ │ │ -002e6ca0: 0a0a 636c 6173 7320 7373 685f 7072 6976  ..class ssh_priv
│ │ │ -002e6cb0: 6174 655f 6b65 795f 7065 726d 7320 7b0a  ate_key_perms {.
│ │ │ -002e6cc0: 2020 6578 6563 207b 2027 7373 6864 5f70    exec { 'sshd_p
│ │ │ -002e6cd0: 7269 765f 6b65 7927 3a0a 2020 2020 636f  riv_key':.    co
│ │ │ -002e6ce0: 6d6d 616e 6420 3d26 6774 3b20 2263 686d  mmand => "chm
│ │ │ -002e6cf0: 6f64 2030 3630 3020 2f65 7463 2f73 7368  od 0600 /etc/ssh
│ │ │ -002e6d00: 2f2a 5f6b 6579 222c 0a20 2020 2070 6174  /*_key",.    pat
│ │ │ -002e6d10: 6820 2020 203d 2667 743b 2027 2f62 696e  h    => '/bin
│ │ │ -002e6d20: 3a2f 7573 722f 6269 6e27 0a20 207d 0a7d  :/usr/bin'.  }.}
│ │ │ -002e6d30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -002e6df0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002e6e00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002e6e80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002e6ea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002e6ef0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472
Complexity:< │ │ │ -002e6e90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002e6eb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002e6f00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e63 ategy:c │ │ │ -002e6f10: 6f6e 6669 6775 7265 3c2f 7464 3e3c 2f74 onfigure
<
│ │ │ -002e6f30: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -002e6f40: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -002e6f50: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -002e6f60: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002e6f70: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002e6f80: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002e6f90: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -002e6fa0: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -002e6fb0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -002e6fc0: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -002e6fd0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -002e6fe0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -002e6ff0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -002e7000: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -002e7010: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002e7020: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002e7030: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -002e7040: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -002e7050: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -002e7060: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ -002e7070: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -002e7080: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002e7090: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002e70a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002e70b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002e70c0: 6564 0a0a 2d20 6e61 6d65 3a20 4669 6e64  ed..- name: Find
│ │ │ -002e70d0: 2072 6f6f 743a 726f 6f74 2d6f 776e 6564   root:root-owned
│ │ │ -002e70e0: 206b 6579 730a 2020 616e 7369 626c 652e   keys.  ansible.
│ │ │ -002e70f0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002e7100: 2066 696e 6420 2d48 202f 6574 632f 7373   find -H /etc/ss
│ │ │ -002e7110: 682f 202d 6d61 7864 6570 7468 2031 202d  h/ -maxdepth 1 -
│ │ │ -002e7120: 7573 6572 2072 6f6f 7420 2d72 6567 6578  user root -regex
│ │ │ -002e7130: 2022 2e2a 5f6b 6579 2422 0a20 2020 202d   ".*_key$".    -
│ │ │ -002e7140: 7479 7065 2066 202d 6772 6f75 7020 726f  type f -group ro
│ │ │ -002e7150: 6f74 202d 7065 726d 202f 752b 7873 2c67  ot -perm /u+xs,g
│ │ │ -002e7160: 2b78 7772 732c 6f2b 7877 7274 0a20 2072  +xwrs,o+xwrt.  r
│ │ │ -002e7170: 6567 6973 7465 723a 2072 6f6f 745f 6f77  egister: root_ow
│ │ │ -002e7180: 6e65 645f 6b65 7973 0a20 2063 6861 6e67  ned_keys.  chang
│ │ │ -002e7190: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002e71a0: 2066 6169 6c65 645f 7768 656e 3a20 6661   failed_when: fa
│ │ │ -002e71b0: 6c73 650a 2020 6368 6563 6b5f 6d6f 6465  lse.  check_mode
│ │ │ -002e71c0: 3a20 6661 6c73 650a 2020 7768 656e 3a20  : false.  when: 
│ │ │ -002e71d0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -002e71e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002e71f0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -002e7200: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002e7210: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -002e7220: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -002e7230: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -002e7240: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -002e7250: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -002e7260: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -002e7270: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -002e7280: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -002e7290: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002e72a0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002e72b0: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -002e72c0: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -002e72d0: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -002e72e0: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ -002e72f0: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -002e7300: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002e7310: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002e7320: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002e7330: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002e7340: 6564 0a0a 2d20 6e61 6d65 3a20 5365 7420  ed..- name: Set 
│ │ │ -002e7350: 7065 726d 6973 7369 6f6e 7320 666f 7220  permissions for 
│ │ │ -002e7360: 726f 6f74 3a72 6f6f 742d 6f77 6e65 6420  root:root-owned 
│ │ │ -002e7370: 6b65 7973 0a20 2061 6e73 6962 6c65 2e62  keys.  ansible.b
│ │ │ -002e7380: 7569 6c74 696e 2e66 696c 653a 0a20 2020  uiltin.file:.   
│ │ │ -002e7390: 2070 6174 683a 2027 7b7b 2069 7465 6d20   path: '{{ item 
│ │ │ -002e73a0: 7d7d 270a 2020 2020 6d6f 6465 3a20 752d  }}'.    mode: u-
│ │ │ -002e73b0: 7873 2c67 2d78 7772 732c 6f2d 7877 7274  xs,g-xwrs,o-xwrt
│ │ │ -002e73c0: 0a20 2020 2073 7461 7465 3a20 6669 6c65  .    state: file
│ │ │ -002e73d0: 0a20 2077 6974 685f 6974 656d 733a 0a20  .  with_items:. 
│ │ │ -002e73e0: 202d 2027 7b7b 2072 6f6f 745f 6f77 6e65   - '{{ root_owne
│ │ │ -002e73f0: 645f 6b65 7973 2e73 7464 6f75 745f 6c69  d_keys.stdout_li
│ │ │ -002e7400: 6e65 7320 7d7d 270a 2020 7768 656e 3a20  nes }}'.  when: 
│ │ │ -002e7410: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -002e7420: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002e7430: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -002e7440: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002e7450: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -002e7460: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -002e7470: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -002e7480: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -002e7490: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -002e74a0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -002e74b0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -002e74c0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -002e74d0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002e74e0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002e74f0: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -002e7500: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -002e7510: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -002e7520: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ -002e7530: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -002e7540: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002e7550: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002e7560: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002e7570: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002e7580: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002e6c20: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +002e6c30: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ +002e6cd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ +002e6d80: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002e6d90: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002e6da0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002e6db0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002e6dc0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +002e6dd0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +002e6de0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +002e6df0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +002e6e00: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +002e6e10: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +002e6e20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002e6e30: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002e6e40: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +002e6e50: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002e6e60: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002e6e70: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +002e6e80: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +002e6e90: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +002e6ea0: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +002e6eb0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002e6ec0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002e6ed0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002e6ee0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002e6ef0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ +002e6f00: 2d20 6e61 6d65 3a20 4669 6e64 2072 6f6f  - name: Find roo
│ │ │ +002e6f10: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ +002e6f20: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ +002e6f30: 7469 6e2e 636f 6d6d 616e 643a 2066 696e  tin.command: fin
│ │ │ +002e6f40: 6420 2d48 202f 6574 632f 7373 682f 202d  d -H /etc/ssh/ -
│ │ │ +002e6f50: 6d61 7864 6570 7468 2031 202d 7573 6572  maxdepth 1 -user
│ │ │ +002e6f60: 2072 6f6f 7420 2d72 6567 6578 2022 2e2a   root -regex ".*
│ │ │ +002e6f70: 5f6b 6579 2422 0a20 2020 202d 7479 7065  _key$".    -type
│ │ │ +002e6f80: 2066 202d 6772 6f75 7020 726f 6f74 202d   f -group root -
│ │ │ +002e6f90: 7065 726d 202f 752b 7873 2c67 2b78 7772  perm /u+xs,g+xwr
│ │ │ +002e6fa0: 732c 6f2b 7877 7274 0a20 2072 6567 6973  s,o+xwrt.  regis
│ │ │ +002e6fb0: 7465 723a 2072 6f6f 745f 6f77 6e65 645f  ter: root_owned_
│ │ │ +002e6fc0: 6b65 7973 0a20 2063 6861 6e67 6564 5f77  keys.  changed_w
│ │ │ +002e6fd0: 6865 6e3a 2066 616c 7365 0a20 2066 6169  hen: false.  fai
│ │ │ +002e6fe0: 6c65 645f 7768 656e 3a20 6661 6c73 650a  led_when: false.
│ │ │ +002e6ff0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002e7000: 6c73 650a 2020 7768 656e 3a20 2722 6c69  lse.  when: '"li
│ │ │ +002e7010: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +002e7020: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +002e7030: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +002e7040: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +002e7050: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +002e7060: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +002e7070: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +002e7080: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +002e7090: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +002e70a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002e70b0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002e70c0: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +002e70d0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002e70e0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002e70f0: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +002e7100: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +002e7110: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +002e7120: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +002e7130: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002e7140: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002e7150: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002e7160: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002e7170: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ +002e7180: 2d20 6e61 6d65 3a20 5365 7420 7065 726d  - name: Set perm
│ │ │ +002e7190: 6973 7369 6f6e 7320 666f 7220 726f 6f74  issions for root
│ │ │ +002e71a0: 3a72 6f6f 742d 6f77 6e65 6420 6b65 7973  :root-owned keys
│ │ │ +002e71b0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +002e71c0: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ +002e71d0: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ +002e71e0: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ +002e71f0: 2d78 7772 732c 6f2d 7877 7274 0a20 2020  -xwrs,o-xwrt.   
│ │ │ +002e7200: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ +002e7210: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ +002e7220: 7b7b 2072 6f6f 745f 6f77 6e65 645f 6b65  {{ root_owned_ke
│ │ │ +002e7230: 7973 2e73 7464 6f75 745f 6c69 6e65 7320  ys.stdout_lines 
│ │ │ +002e7240: 7d7d 270a 2020 7768 656e 3a20 2722 6c69  }}'.  when: '"li
│ │ │ +002e7250: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +002e7260: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +002e7270: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +002e7280: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +002e7290: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +002e72a0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +002e72b0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +002e72c0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +002e72d0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +002e72e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002e72f0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002e7300: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +002e7310: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002e7320: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002e7330: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +002e7340: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +002e7350: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +002e7360: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +002e7370: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002e7380: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002e7390: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002e73a0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002e73b0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a3c  _reboot_needed.<
│ │ │ +002e73c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002e7470: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002e7480: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
...include ssh
│ │ │ +002e74e0: 5f70 7269 7661 7465 5f6b 6579 5f70 6572  _private_key_per
│ │ │ +002e74f0: 6d73 0a0a 636c 6173 7320 7373 685f 7072  ms..class ssh_pr
│ │ │ +002e7500: 6976 6174 655f 6b65 795f 7065 726d 7320  ivate_key_perms 
│ │ │ +002e7510: 7b0a 2020 6578 6563 207b 2027 7373 6864  {.  exec { 'sshd
│ │ │ +002e7520: 5f70 7269 765f 6b65 7927 3a0a 2020 2020  _priv_key':.    
│ │ │ +002e7530: 636f 6d6d 616e 6420 3d26 6774 3b20 2263  command => "c
│ │ │ +002e7540: 686d 6f64 2030 3630 3020 2f65 7463 2f73  hmod 0600 /etc/s
│ │ │ +002e7550: 7368 2f2a 5f6b 6579 222c 0a20 2020 2070  sh/*_key",.    p
│ │ │ +002e7560: 6174 6820 2020 203d 2667 743b 2027 2f62  ath    => '/b
│ │ │ +002e7570: 696e 3a2f 7573 722f 6269 6e27 0a20 207d  in:/usr/bin'.  }
│ │ │ +002e7580: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 002e7590: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Reme │ │ │ -002e89e0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002e89f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
in
│ │ │ -002e8a40: 636c 7564 6520 7373 685f 7075 626c 6963  clude ssh_public
│ │ │ -002e8a50: 5f6b 6579 5f70 6572 6d73 0a0a 636c 6173  _key_perms..clas
│ │ │ -002e8a60: 7320 7373 685f 7075 626c 6963 5f6b 6579  s ssh_public_key
│ │ │ -002e8a70: 5f70 6572 6d73 207b 0a20 2065 7865 6320  _perms {.  exec 
│ │ │ -002e8a80: 7b20 2773 7368 645f 7075 625f 6b65 7927  { 'sshd_pub_key'
│ │ │ -002e8a90: 3a0a 2020 2020 636f 6d6d 616e 6420 3d26  :.    command =&
│ │ │ -002e8aa0: 6774 3b20 2263 686d 6f64 2030 3634 3420  gt; "chmod 0644 
│ │ │ -002e8ab0: 2f65 7463 2f73 7368 2f2a 2e70 7562 222c  /etc/ssh/*.pub",
│ │ │ -002e8ac0: 0a20 2020 2070 6174 6820 2020 203d 2667  .    path    =&g
│ │ │ -002e8ad0: 743b 2027 2f62 696e 3a2f 7573 722f 6269  t; '/bin:/usr/bi
│ │ │ -002e8ae0: 6e27 0a20 207d 0a7d 0a3c 2f63 6f64 653e  n'.  }.}.
│ │ │ -002e8af0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002e8ba0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002e8bb0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +002e6cc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002e6cf0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002e6d00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002e6d40: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ +002e6d50: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
- n
│ │ │ -002e8cf0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -002e8d00: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -002e8d10: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -002e8d20: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -002e8d30: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -002e8d40: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ -002e8d50: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002e8d60: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ -002e8d70: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ -002e8d80: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002e8d90: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ -002e8da0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -002e8db0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -002e8dc0: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ -002e8dd0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -002e8de0: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -002e8df0: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ -002e8e00: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ -002e8e10: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ -002e8e20: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ -002e8e30: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002e8e40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002e8e50: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -002e8e60: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002e8e70: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20  needed..- name: 
│ │ │ -002e8e80: 4669 6e64 202f 6574 632f 7373 682f 2066  Find /etc/ssh/ f
│ │ │ -002e8e90: 696c 6528 7329 0a20 2061 6e73 6962 6c65  ile(s).  ansible
│ │ │ -002e8ea0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002e8eb0: 3a20 6669 6e64 202d 5020 2f65 7463 2f73  : find -P /etc/s
│ │ │ -002e8ec0: 7368 2f20 2d6d 6178 6465 7074 6820 3120  sh/ -maxdepth 1 
│ │ │ -002e8ed0: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ -002e8ee0: 732c 6f2b 7877 7420 202d 7479 7065 0a20  s,o+xwt  -type. 
│ │ │ -002e8ef0: 2020 2066 202d 7265 6765 7874 7970 6520     f -regextype 
│ │ │ -002e8f00: 706f 7369 782d 6578 7465 6e64 6564 202d  posix-extended -
│ │ │ -002e8f10: 7265 6765 7820 225e 2e2a 5c2e 7075 6224  regex "^.*\.pub$
│ │ │ -002e8f20: 220a 2020 7265 6769 7374 6572 3a20 6669  ".  register: fi
│ │ │ -002e8f30: 6c65 735f 666f 756e 640a 2020 6368 616e  les_found.  chan
│ │ │ -002e8f40: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002e8f50: 2020 6661 696c 6564 5f77 6865 6e3a 2066    failed_when: f
│ │ │ -002e8f60: 616c 7365 0a20 2063 6865 636b 5f6d 6f64  alse.  check_mod
│ │ │ -002e8f70: 653a 2066 616c 7365 0a20 2077 6865 6e3a  e: false.  when:
│ │ │ -002e8f80: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -002e8f90: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -002e8fa0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -002e8fb0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -002e8fc0: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -002e8fd0: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -002e8fe0: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -002e8ff0: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -002e9000: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -002e9010: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -002e9020: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -002e9030: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -002e9040: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -002e9050: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -002e9060: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -002e9070: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -002e9080: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -002e9090: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579  ons_sshd_pub_key
│ │ │ -002e90a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002e90b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002e90c0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002e90d0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002e90e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002e90f0: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ -002e9100: 6d69 7373 696f 6e73 2066 6f72 202f 6574  missions for /et
│ │ │ -002e9110: 632f 7373 682f 2066 696c 6528 7329 0a20  c/ssh/ file(s). 
│ │ │ -002e9120: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002e9130: 2e66 696c 653a 0a20 2020 2070 6174 683a  .file:.    path:
│ │ │ -002e9140: 2027 7b7b 2069 7465 6d20 7d7d 270a 2020   '{{ item }}'.  
│ │ │ -002e9150: 2020 6d6f 6465 3a20 752d 7873 2c67 2d78    mode: u-xs,g-x
│ │ │ -002e9160: 7773 2c6f 2d78 7774 0a20 2020 2073 7461  ws,o-xwt.    sta
│ │ │ -002e9170: 7465 3a20 6669 6c65 0a20 2077 6974 685f  te: file.  with_
│ │ │ -002e9180: 6974 656d 733a 0a20 202d 2027 7b7b 2066  items:.  - '{{ f
│ │ │ -002e9190: 696c 6573 5f66 6f75 6e64 2e73 7464 6f75  iles_found.stdou
│ │ │ -002e91a0: 745f 6c69 6e65 7320 7d7d 270a 2020 7768  t_lines }}'.  wh
│ │ │ -002e91b0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -002e91c0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -002e91d0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -002e91e0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -002e91f0: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -002e9200: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -002e9210: 3133 2e31 300a 2020 2d20 4e49 5354 2d38  13.10.  - NIST-8
│ │ │ -002e9220: 3030 2d35 332d 4143 2d31 3728 6129 0a20  00-53-AC-17(a). 
│ │ │ -002e9230: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -002e9240: 432d 3628 3129 0a20 202d 204e 4953 542d  C-6(1).  - NIST-
│ │ │ -002e9250: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002e9260: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ -002e9270: 2e32 2e34 0a20 202d 2050 4349 2d44 5353  .2.4.  - PCI-DSS
│ │ │ -002e9280: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -002e9290: 5353 7634 2d32 2e32 2e36 0a20 202d 2063  SSv4-2.2.6.  - c
│ │ │ -002e92a0: 6f6e 6669 6775 7265 5f73 7472 6174 6567  onfigure_strateg
│ │ │ -002e92b0: 790a 2020 2d20 6669 6c65 5f70 6572 6d69  y.  - file_permi
│ │ │ -002e92c0: 7373 696f 6e73 5f73 7368 645f 7075 625f  ssions_sshd_pub_
│ │ │ -002e92d0: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -002e92e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002e92f0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002e9300: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002e9310: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002e9320: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002e89e0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +002e89f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002e8a00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -002e8c40: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002e8c50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002e8c70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002e8c90: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002e8ca0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:configure │ │ │ -002e8cd0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +002e8aa0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002e8af0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
-
│ │ │ +002e8b30: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002e8b40: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002e8b50: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002e8b60: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002e8b70: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +002e8b80: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ +002e8b90: 3133 0a20 202d 204e 4953 542d 3830 302d  13.  - NIST-800-
│ │ │ +002e8ba0: 3137 312d 332e 3133 2e31 300a 2020 2d20  171-3.13.10.  - 
│ │ │ +002e8bb0: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ +002e8bc0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002e8bd0: 302d 3533 2d41 432d 3628 3129 0a20 202d  0-53-AC-6(1).  -
│ │ │ +002e8be0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002e8bf0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +002e8c00: 2d52 6571 2d32 2e32 2e34 0a20 202d 2050  -Req-2.2.4.  - P
│ │ │ +002e8c10: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +002e8c20: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ +002e8c30: 0a20 202d 2063 6f6e 6669 6775 7265 5f73  .  - configure_s
│ │ │ +002e8c40: 7472 6174 6567 790a 2020 2d20 6669 6c65  trategy.  - file
│ │ │ +002e8c50: 5f70 6572 6d69 7373 696f 6e73 5f73 7368  _permissions_ssh
│ │ │ +002e8c60: 645f 7075 625f 6b65 790a 2020 2d20 6c6f  d_pub_key.  - lo
│ │ │ +002e8c70: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002e8c80: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002e8c90: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +002e8ca0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002e8cb0: 745f 6e65 6564 6564 0a0a 2d20 6e61 6d65  t_needed..- name
│ │ │ +002e8cc0: 3a20 4669 6e64 202f 6574 632f 7373 682f  : Find /etc/ssh/
│ │ │ +002e8cd0: 2066 696c 6528 7329 0a20 2061 6e73 6962   file(s).  ansib
│ │ │ +002e8ce0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +002e8cf0: 6e64 3a20 6669 6e64 202d 5020 2f65 7463  nd: find -P /etc
│ │ │ +002e8d00: 2f73 7368 2f20 2d6d 6178 6465 7074 6820  /ssh/ -maxdepth 
│ │ │ +002e8d10: 3120 2d70 6572 6d20 2f75 2b78 732c 672b  1 -perm /u+xs,g+
│ │ │ +002e8d20: 7877 732c 6f2b 7877 7420 202d 7479 7065  xws,o+xwt  -type
│ │ │ +002e8d30: 0a20 2020 2066 202d 7265 6765 7874 7970  .    f -regextyp
│ │ │ +002e8d40: 6520 706f 7369 782d 6578 7465 6e64 6564  e posix-extended
│ │ │ +002e8d50: 202d 7265 6765 7820 225e 2e2a 5c2e 7075   -regex "^.*\.pu
│ │ │ +002e8d60: 6224 220a 2020 7265 6769 7374 6572 3a20  b$".  register: 
│ │ │ +002e8d70: 6669 6c65 735f 666f 756e 640a 2020 6368  files_found.  ch
│ │ │ +002e8d80: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002e8d90: 650a 2020 6661 696c 6564 5f77 6865 6e3a  e.  failed_when:
│ │ │ +002e8da0: 2066 616c 7365 0a20 2063 6865 636b 5f6d   false.  check_m
│ │ │ +002e8db0: 6f64 653a 2066 616c 7365 0a20 2077 6865  ode: false.  whe
│ │ │ +002e8dc0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +002e8dd0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002e8de0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +002e8df0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +002e8e00: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20  -171-3.1.13.  - 
│ │ │ +002e8e10: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +002e8e20: 332e 3130 0a20 202d 204e 4953 542d 3830  3.10.  - NIST-80
│ │ │ +002e8e30: 302d 3533 2d41 432d 3137 2861 290a 2020  0-53-AC-17(a).  
│ │ │ +002e8e40: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +002e8e50: 2d36 2831 290a 2020 2d20 4e49 5354 2d38  -6(1).  - NIST-8
│ │ │ +002e8e60: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +002e8e70: 2d20 5043 492d 4453 532d 5265 712d 322e  - PCI-DSS-Req-2.
│ │ │ +002e8e80: 322e 340a 2020 2d20 5043 492d 4453 5376  2.4.  - PCI-DSSv
│ │ │ +002e8e90: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +002e8ea0: 5376 342d 322e 322e 360a 2020 2d20 636f  Sv4-2.2.6.  - co
│ │ │ +002e8eb0: 6e66 6967 7572 655f 7374 7261 7465 6779  nfigure_strategy
│ │ │ +002e8ec0: 0a20 202d 2066 696c 655f 7065 726d 6973  .  - file_permis
│ │ │ +002e8ed0: 7369 6f6e 735f 7373 6864 5f70 7562 5f6b  sions_sshd_pub_k
│ │ │ +002e8ee0: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ +002e8ef0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002e8f00: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +002e8f10: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +002e8f20: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002e8f30: 640a 0a2d 206e 616d 653a 2053 6574 2070  d..- name: Set p
│ │ │ +002e8f40: 6572 6d69 7373 696f 6e73 2066 6f72 202f  ermissions for /
│ │ │ +002e8f50: 6574 632f 7373 682f 2066 696c 6528 7329  etc/ssh/ file(s)
│ │ │ +002e8f60: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +002e8f70: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ +002e8f80: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ +002e8f90: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ +002e8fa0: 2d78 7773 2c6f 2d78 7774 0a20 2020 2073  -xws,o-xwt.    s
│ │ │ +002e8fb0: 7461 7465 3a20 6669 6c65 0a20 2077 6974  tate: file.  wit
│ │ │ +002e8fc0: 685f 6974 656d 733a 0a20 202d 2027 7b7b  h_items:.  - '{{
│ │ │ +002e8fd0: 2066 696c 6573 5f66 6f75 6e64 2e73 7464   files_found.std
│ │ │ +002e8fe0: 6f75 745f 6c69 6e65 7320 7d7d 270a 2020  out_lines }}'.  
│ │ │ +002e8ff0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +002e9000: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +002e9010: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +002e9020: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +002e9030: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +002e9040: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +002e9050: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +002e9060: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +002e9070: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002e9080: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +002e9090: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +002e90a0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +002e90b0: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +002e90c0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002e90d0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +002e90e0: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +002e90f0: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +002e9100: 6d69 7373 696f 6e73 5f73 7368 645f 7075  missions_sshd_pu
│ │ │ +002e9110: 625f 6b65 790a 2020 2d20 6c6f 775f 636f  b_key.  - low_co
│ │ │ +002e9120: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002e9130: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002e9140: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002e9150: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002e9160: 6564 6564 0a3c 2f63 6f64 653e 3c2f 7072  eded.Remediatio
│ │ │ +002e9220: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +002e9230: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
include │ │ │ +002e9280: 7373 685f 7075 626c 6963 5f6b 6579 5f70 ssh_public_key_p │ │ │ +002e9290: 6572 6d73 0a0a 636c 6173 7320 7373 685f erms..class ssh_ │ │ │ +002e92a0: 7075 626c 6963 5f6b 6579 5f70 6572 6d73 public_key_perms │ │ │ +002e92b0: 207b 0a20 2065 7865 6320 7b20 2773 7368 {. exec { 'ssh │ │ │ +002e92c0: 645f 7075 625f 6b65 7927 3a0a 2020 2020 d_pub_key':. │ │ │ +002e92d0: 636f 6d6d 616e 6420 3d26 6774 3b20 2263 command => "c │ │ │ +002e92e0: 686d 6f64 2030 3634 3420 2f65 7463 2f73 hmod 0644 /etc/s │ │ │ +002e92f0: 7368 2f2a 2e70 7562 222c 0a20 2020 2070 sh/*.pub",. p │ │ │ +002e9300: 6174 6820 2020 203d 2667 743b 2027 2f62 ath => '/b │ │ │ +002e9310: 696e 3a2f 7573 722f 6269 6e27 0a20 207d in:/usr/bin'. } │ │ │ +002e9320: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ 002e9330: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -179,14 +162,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -631,27 +631,14 @@ │ │ │ │ $ apt-get remove prelink │ │ │ │ The use of the prelink package can interfere with the operation of AIDE since it │ │ │ │ Rationale: binaries. Prelinking can also increase damage caused by vulnerability in a common library │ │ │ │ like libc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_prelink_removed │ │ │ │ References: _c_i_s 1.5.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_prelink │ │ │ │ - │ │ │ │ -class remove_prelink { │ │ │ │ - package { 'prelink': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Check If Prelinked Is Installed │ │ │ │ ansible.builtin.stat: │ │ │ │ @@ -685,14 +672,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_disruption │ │ │ │ - medium_complexity │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_prelink_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_prelink │ │ │ │ + │ │ │ │ +class remove_prelink { │ │ │ │ + package { 'prelink': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ if [[ -f /usr/sbin/prelink ]]; │ │ │ │ @@ -1563,31 +1563,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1614,14 +1597,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -7200,31 +7200,14 @@ │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -7245,14 +7228,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -7274,31 +7274,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215010 │ │ │ │ _s_t_i_g_r_e_f SV-260478r991587_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260478 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -7321,14 +7304,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-215010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -7343,31 +7343,14 @@ │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -7376,14 +7359,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -10222,31 +10222,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access │ │ │ │ Control system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -10256,14 +10239,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -10283,31 +10283,14 @@ │ │ │ │ _o_s_-_s_r_g 000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG-OS-000324-GPOS- │ │ │ │ 00125, SRG-OS-000370-GPOS-00155 │ │ │ │ References: _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ _s_t_i_g_i_d UBTU-22-431010 │ │ │ │ _s_t_i_g_r_e_f SV-260556r958702_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260556 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -10318,14 +10301,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-431010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -10876,31 +10876,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an │ │ │ │ Rationale: attacker gains root access on the local system, they could tamper with or remove log data │ │ │ │ that is stored on the local system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -10921,14 +10904,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -10956,31 +10956,14 @@ │ │ │ │ system is compromised. Additionally, centralized logs facilitate correlation of events │ │ │ │ across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11016,14 +10999,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -11049,31 +11049,14 @@ │ │ │ │ Rationale: determine cause of failure and any information necessary to return to operations with │ │ │ │ least disruption to system processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.2.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11108,14 +11091,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12398,27 +12398,14 @@ │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12439,14 +12426,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -19047,31 +19047,14 @@ │ │ │ │ nftables service The nftables service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable nftables.service │ │ │ │ Rationale: The nftables service restores the nftables rules from the rules files referenced in the / │ │ │ │ etc/sysconfig/nftables.conf file during boot or the starting of the nftables service │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_enabled │ │ │ │ References: _c_i_s 4.2.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_nftables │ │ │ │ - │ │ │ │ -class enable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -19105,14 +19088,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_enabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_nftables │ │ │ │ + │ │ │ │ +class enable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -19136,50 +19136,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: nftables should be disabled if another firewall service is used as it may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.3.1.2 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nftables.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nftables.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nftables │ │ │ │ - │ │ │ │ -class disable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -19235,14 +19199,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nftables.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nftables.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nftables │ │ │ │ + │ │ │ │ +class disable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -32511,50 +32511,14 @@ │ │ │ │ $ sudo systemctl mask --now apport.service │ │ │ │ The Apport service modifies the kernel fs.suid_dumpable configuration at runtime which │ │ │ │ Rationale: prevents other hardening from being persistent. Disabling the service prevents this │ │ │ │ behavior. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_apport_disabled │ │ │ │ References: _c_i_s 1.5.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apport"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apport.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apport.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apport │ │ │ │ - │ │ │ │ -class disable_apport { │ │ │ │ - service {'apport': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -32604,14 +32568,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_apport_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"apport" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apport.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apport.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apport │ │ │ │ + │ │ │ │ +class disable_apport { │ │ │ │ + service {'apport': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apport"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'apport' 2>/dev/null | grep - │ │ │ │ @@ -33703,31 +33703,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33754,14 +33737,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -33792,31 +33792,14 @@ │ │ │ │ SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33851,14 +33834,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -35699,27 +35699,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, more and more replaced │ │ │ │ Rationale: by LDAP. NIS does not support efficiently security constraints, ACL, etc. and should not │ │ │ │ be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35728,14 +35715,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -35792,27 +35792,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_isc-dhcp-server │ │ │ │ - │ │ │ │ -class remove_isc-dhcp-server { │ │ │ │ - package { 'isc-dhcp-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure isc-dhcp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35826,14 +35813,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_isc-dhcp-server │ │ │ │ + │ │ │ │ +class remove_isc-dhcp-server { │ │ │ │ + package { 'isc-dhcp-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove isc-dhcp-server │ │ │ │ @@ -35864,50 +35864,14 @@ │ │ │ │ dhcpd6 service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd6.service │ │ │ │ Rationale: Unmanaged or unintentionally activated DHCP servers may provide faulty information to │ │ │ │ clients, interfering with the operation of a legitimate site DHCP server if there is one. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd6.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd6.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd6 │ │ │ │ - │ │ │ │ -class disable_dhcpd6 { │ │ │ │ - service {'dhcpd6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35957,14 +35921,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd6.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd6.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd6 │ │ │ │ + │ │ │ │ +class disable_dhcpd6 { │ │ │ │ + service {'dhcpd6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -36008,50 +36008,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd │ │ │ │ - │ │ │ │ -class disable_dhcpd { │ │ │ │ - service {'dhcpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36107,14 +36071,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd │ │ │ │ + │ │ │ │ +class disable_dhcpd { │ │ │ │ + service {'dhcpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -36166,27 +36166,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind9 │ │ │ │ - │ │ │ │ -class remove_bind9 { │ │ │ │ - package { 'bind9': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind9 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36198,14 +36185,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind9 │ │ │ │ + │ │ │ │ +class remove_bind9 { │ │ │ │ + package { 'bind9': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind9 │ │ │ │ @@ -36238,27 +36238,14 @@ │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36267,14 +36254,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -36305,50 +36305,14 @@ │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dnsmasq.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dnsmasq.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36398,14 +36362,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dnsmasq.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dnsmasq.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -36460,27 +36460,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36496,14 +36483,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -36546,50 +36546,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: vsftpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: vsftpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36645,14 +36609,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: vsftpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: vsftpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -36689,27 +36689,14 @@ │ │ │ │ Rationale: recommended SFTP be used if file transfer is required. Unless there is a need to run the │ │ │ │ system as a FTP server (for example, to allow anonymous downloads), it is recommended │ │ │ │ that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36720,14 +36707,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -36782,27 +36782,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36814,14 +36801,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -36863,50 +36863,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apache2.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apache2.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36962,14 +36926,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apache2.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apache2.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37014,27 +37014,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37046,14 +37033,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -37083,50 +37083,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nginx.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nginx.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37176,14 +37140,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nginx.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nginx.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37220,27 +37220,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot-core │ │ │ │ - │ │ │ │ -class remove_dovecot-core { │ │ │ │ - package { 'dovecot-core': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot-core is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37249,14 +37236,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot-core │ │ │ │ + │ │ │ │ +class remove_dovecot-core { │ │ │ │ + package { 'dovecot-core': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot-core │ │ │ │ @@ -37286,50 +37286,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dovecot.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dovecot.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37379,14 +37343,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dovecot.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dovecot.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37433,27 +37433,14 @@ │ │ │ │ command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software │ │ │ │ is removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ldap-utils │ │ │ │ - │ │ │ │ -class remove_ldap-utils { │ │ │ │ - package { 'ldap-utils': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure ldap-utils is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37462,14 +37449,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ldap-utils │ │ │ │ + │ │ │ │ +class remove_ldap-utils { │ │ │ │ + package { 'ldap-utils': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ldap-utils │ │ │ │ @@ -37515,27 +37515,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_slapd │ │ │ │ - │ │ │ │ -class remove_slapd { │ │ │ │ - package { 'slapd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure slapd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37547,14 +37534,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_slapd │ │ │ │ + │ │ │ │ +class remove_slapd { │ │ │ │ + package { 'slapd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove slapd │ │ │ │ @@ -37584,50 +37584,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up │ │ │ │ information from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software │ │ │ │ be disabled to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: slapd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: slapd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37677,14 +37641,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: slapd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: slapd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37818,27 +37818,14 @@ │ │ │ │ then this service should be disabled. The rpcbind package can be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37859,14 +37846,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -37909,50 +37909,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rpcbind.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rpcbind.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38006,14 +37970,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rpcbind.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rpcbind.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38063,50 +38063,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nfs-server.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nfs-server.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38163,14 +38127,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nfs-server.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nfs-server.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38204,27 +38204,14 @@ │ │ │ │ these services be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ _c_i_s 2.1.9 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215040 │ │ │ │ _s_t_i_g_r_e_f SV-279937r1156364_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-279937 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38234,14 +38221,27 @@ │ │ │ │ - DISA-STIG-UBTU-22-215040 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -39365,27 +39365,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39417,14 +39404,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39481,50 +39481,14 @@ │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: xinetd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: xinetd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39582,14 +39546,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: xinetd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: xinetd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39648,27 +39648,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39684,14 +39671,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -39722,50 +39722,14 @@ │ │ │ │ disabled. The ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or │ │ │ │ NIS+ domain. This service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: ypserv.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: ypserv.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39815,14 +39779,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: ypserv.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: ypserv.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39864,27 +39864,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-client │ │ │ │ - │ │ │ │ -class remove_rsh-client { │ │ │ │ - package { 'rsh-client': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh-client is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39896,14 +39883,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-client │ │ │ │ + │ │ │ │ +class remove_rsh-client { │ │ │ │ + package { 'rsh-client': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-client │ │ │ │ @@ -39985,27 +39985,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40016,14 +40003,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -40064,27 +40064,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40096,14 +40083,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -40162,27 +40162,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40196,14 +40183,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -40249,50 +40249,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: tftpd-hpa.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: tftpd-hpa.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40348,14 +40312,50 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: tftpd-hpa.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: tftpd-hpa.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40387,27 +40387,14 @@ │ │ │ │ package can be removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40416,14 +40403,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -40454,50 +40454,14 @@ │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rsyncd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rsyncd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsyncd │ │ │ │ - │ │ │ │ -class disable_rsyncd { │ │ │ │ - service {'rsyncd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40552,14 +40516,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rsyncd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rsyncd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsyncd │ │ │ │ + │ │ │ │ +class disable_rsyncd { │ │ │ │ + service {'rsyncd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40600,27 +40600,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40629,14 +40616,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -40667,50 +40667,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be │ │ │ │ removed if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: squid.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: squid.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40761,14 +40725,50 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: squid.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: squid.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep - │ │ │ │ @@ -40811,27 +40811,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40840,14 +40827,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -40877,50 +40877,14 @@ │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smbd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: smbd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: smbd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smbd │ │ │ │ - │ │ │ │ -class disable_smbd { │ │ │ │ - service {'smbd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40970,14 +40934,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: smbd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: smbd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smbd │ │ │ │ + │ │ │ │ +class disable_smbd { │ │ │ │ + service {'smbd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smbd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -41019,27 +41019,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_snmp │ │ │ │ - │ │ │ │ -class remove_snmp { │ │ │ │ - package { 'snmp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41050,14 +41037,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_snmp │ │ │ │ + │ │ │ │ +class remove_snmp { │ │ │ │ + package { 'snmp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove snmp │ │ │ │ @@ -41088,50 +41088,14 @@ │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: snmpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: snmpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41182,14 +41146,50 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmp" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: snmpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: snmpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmp' 2>/dev/null | grep - │ │ │ │ @@ -47148,26 +47148,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -47231,14 +47219,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ @@ -47276,23 +47276,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -47356,14 +47347,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2204-guide-cis_level2_server.html │ │ │ @@ -15147,137 +15147,137 @@ │ │ │ 0003b2a0: 2d74 6172 6765 743d 2223 6964 3822 2074 -target="#id8" t │ │ │ 0003b2b0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0003b2c0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0003b2d0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0003b2e0: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0003b2f0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0003b300: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0003b310: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0003b320: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.
│ │ │ -0003b370: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -0003b380: 6520 3d20 2261 6964 6522 0a76 6572 7369  e = "aide".versi
│ │ │ -0003b390: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -0003b3a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediati │ │ │ -0003b450: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0003b460: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
low< │ │ │ -0003b530: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0003b580: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Co │ │ │ +002e8a80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002e8ab0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002e8ad0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002e8ae0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002e8b00: 3c2f 7468 3e3c 7464 3e63 6f6e 6669 6775 configu │ │ │ +002e8b10: 7265 3c2f 7464 3e3c 2f74 723e 3c2f 7461 re
Complexity: │ │ │ -0003b4f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0003b510: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0003b560: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0003b570: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include insta
│ │ │ -0003b5a0: 6c6c 5f61 6964 650a 0a63 6c61 7373 2069  ll_aide..class i
│ │ │ -0003b5b0: 6e73 7461 6c6c 5f61 6964 6520 7b0a 2020  nstall_aide {.  
│ │ │ -0003b5c0: 7061 636b 6167 6520 7b20 2761 6964 6527  package { 'aide'
│ │ │ -0003b5d0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0003b5e0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -0003b5f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ -0003b6b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0003b6c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -0003b750: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0003b770: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0003b790: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0003b7c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0003b7d0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -0003b7e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -0003b800: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0003b810: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0003b820: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0003b830: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0003b840: 202d 2043 4a49 532d 352e 3130 2e31 2e33   - CJIS-5.10.1.3
│ │ │ -0003b850: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ -0003b860: 4254 552d 3232 2d36 3531 3031 300a 2020  BTU-22-651010.  
│ │ │ -0003b870: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0003b880: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0003b890: 532d 5265 712d 3131 2e35 0a20 202d 2050  S-Req-11.5.  - P
│ │ │ -0003b8a0: 4349 2d44 5353 7634 2d31 312e 352e 320a  CI-DSSv4-11.5.2.
│ │ │ -0003b8b0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0003b8c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0003b8d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0003b8e0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0003b8f0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0003b900: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0003b910: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -0003b920: 6964 655f 696e 7374 616c 6c65 640a 0a2d  ide_installed..-
│ │ │ -0003b930: 206e 616d 653a 2045 6e73 7572 6520 6169   name: Ensure ai
│ │ │ -0003b940: 6465 2069 7320 696e 7374 616c 6c65 640a  de is installed.
│ │ │ -0003b950: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0003b960: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0003b970: 616d 653a 2061 6964 650a 2020 2020 7374  ame: aide.    st
│ │ │ -0003b980: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -0003b990: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0003b9a0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0003b9b0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0003b9c0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35  tags:.  - CJIS-5
│ │ │ -0003b9d0: 2e31 302e 312e 330a 2020 2d20 4449 5341  .10.1.3.  - DISA
│ │ │ -0003b9e0: 2d53 5449 472d 5542 5455 2d32 322d 3635  -STIG-UBTU-22-65
│ │ │ -0003b9f0: 3130 3130 0a20 202d 204e 4953 542d 3830  1010.  - NIST-80
│ │ │ -0003ba00: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0003ba10: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ -0003ba20: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ -0003ba30: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ -0003ba40: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0003ba50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0003ba60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0003ba70: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0003ba80: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0003ba90: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0003baa0: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ -0003bab0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
│ │ │ +0003b3a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0003b3c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0003b410: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0003b440: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0003b460: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0003b470: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0003b480: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0003b490: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0003b4a0: 2d20 434a 4953 2d35 2e31 302e 312e 330a  - CJIS-5.10.1.3.
│ │ │ +0003b4b0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ +0003b4c0: 5455 2d32 322d 3635 3130 3130 0a20 202d  TU-22-651010.  -
│ │ │ +0003b4d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0003b4e0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +0003b4f0: 2d52 6571 2d31 312e 350a 2020 2d20 5043  -Req-11.5.  - PC
│ │ │ +0003b500: 492d 4453 5376 342d 3131 2e35 2e32 0a20  I-DSSv4-11.5.2. 
│ │ │ +0003b510: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0003b520: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0003b530: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0003b540: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0003b550: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0003b560: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0003b570: 640a 2020 2d20 7061 636b 6167 655f 6169  d.  - package_ai
│ │ │ +0003b580: 6465 5f69 6e73 7461 6c6c 6564 0a0a 2d20  de_installed..- 
│ │ │ +0003b590: 6e61 6d65 3a20 456e 7375 7265 2061 6964  name: Ensure aid
│ │ │ +0003b5a0: 6520 6973 2069 6e73 7461 6c6c 6564 0a20  e is installed. 
│ │ │ +0003b5b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0003b5c0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0003b5d0: 6d65 3a20 6169 6465 0a20 2020 2073 7461  me: aide.    sta
│ │ │ +0003b5e0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +0003b5f0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0003b600: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0003b610: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +0003b620: 6167 733a 0a20 202d 2043 4a49 532d 352e  ags:.  - CJIS-5.
│ │ │ +0003b630: 3130 2e31 2e33 0a20 202d 2044 4953 412d  10.1.3.  - DISA-
│ │ │ +0003b640: 5354 4947 2d55 4254 552d 3232 2d36 3531  STIG-UBTU-22-651
│ │ │ +0003b650: 3031 300a 2020 2d20 4e49 5354 2d38 3030  010.  - NIST-800
│ │ │ +0003b660: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0003b670: 5043 492d 4453 532d 5265 712d 3131 2e35  PCI-DSS-Req-11.5
│ │ │ +0003b680: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0003b690: 312e 352e 320a 2020 2d20 656e 6162 6c65  1.5.2.  - enable
│ │ │ +0003b6a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0003b6b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0003b6c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0003b6d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0003b6e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0003b6f0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0003b700: 6b61 6765 5f61 6964 655f 696e 7374 616c  kage_aide_instal
│ │ │ +0003b710: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation Pu │ │ │ +0003b7d0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0003b7e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ +0003b3b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0003b3d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0003b420: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0003b430: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ +0003b870: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0003b910: 636c 7564 6520 696e 7374 616c 6c5f 6169  clude install_ai
│ │ │ +0003b920: 6465 0a0a 636c 6173 7320 696e 7374 616c  de..class instal
│ │ │ +0003b930: 6c5f 6169 6465 207b 0a20 2070 6163 6b61  l_aide {.  packa
│ │ │ +0003b940: 6765 207b 2027 6169 6465 273a 0a20 2020  ge { 'aide':.   
│ │ │ +0003b950: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +0003b960: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +0003b970: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +0003ba20: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +0003ba30: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +0003ba40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0003ba80: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +0003ba90: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +0003baa0: 2261 6964 6522 0a76 6572 7369 6f6e 203d  "aide".version =
│ │ │ +0003bab0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation P │ │ │ -00043f50: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00043f60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +0003b860: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0003b890: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0003b8a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0003b8e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0003b8f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -00044030: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00044040: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -000440a0: 5f70 7265 6c69 6e6b 0a0a 636c 6173 7320  _prelink..class 
│ │ │ -000440b0: 7265 6d6f 7665 5f70 7265 6c69 6e6b 207b  remove_prelink {
│ │ │ -000440c0: 0a20 2070 6163 6b61 6765 207b 2027 7072  .  package { 'pr
│ │ │ -000440d0: 656c 696e 6b27 3a0a 2020 2020 656e 7375  elink':.    ensu
│ │ │ -000440e0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -000440f0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00044100: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -000441b0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000441c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000441d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000441e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000441f0: 7365 2220 6964 3d22 6964 3233 223e 3c74 se" id="id23"> │ │ │ -00044240: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 │ │ │ -00044270: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00044290: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000442c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
low
Disru │ │ │ -00044010: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00044020: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00044060: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00044070: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ -00044250: 7479 3a3c 2f74 683e 3c74 643e 6d65 6469 ty:medi │ │ │ -00044260: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Disruption:< │ │ │ -00044280: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000442a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000442b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -000442f0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00044300: 3a20 4368 6563 6b20 4966 2050 7265 6c69 : Check If Preli │ │ │ -00044310: 6e6b 6564 2049 7320 496e 7374 616c 6c65 nked Is Installe │ │ │ -00044320: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -00044330: 7469 6e2e 7374 6174 3a0a 2020 2020 7061 tin.stat:. pa │ │ │ -00044340: 7468 3a20 2f75 7372 2f73 6269 6e2f 7072 th: /usr/sbin/pr │ │ │ -00044350: 656c 696e 6b0a 2020 2020 6765 745f 6368 elink. get_ch │ │ │ -00044360: 6563 6b73 756d 3a20 6661 6c73 650a 2020 ecksum: false. │ │ │ -00044370: 7265 6769 7374 6572 3a20 7072 656c 696e register: prelin │ │ │ -00044380: 6b0a 2020 7461 6773 3a0a 2020 2d20 6469 k. tags:. - di │ │ │ -00044390: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -000443a0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -000443b0: 6e0a 2020 2d20 6d65 6469 756d 5f63 6f6d n. - medium_com │ │ │ -000443c0: 706c 6578 6974 790a 2020 2d20 6d65 6469 plexity. - medi │ │ │ -000443d0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -000443e0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -000443f0: 0a20 202d 2070 6163 6b61 6765 5f70 7265 . - package_pre │ │ │ -00044400: 6c69 6e6b 5f72 656d 6f76 6564 0a0a 2d20 link_removed..- │ │ │ -00044410: 6e61 6d65 3a20 5265 7374 6f72 6520 5072 name: Restore Pr │ │ │ -00044420: 656c 696e 6b65 6420 4269 6e61 7269 6573 elinked Binaries │ │ │ -00044430: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -00044440: 696e 2e63 6f6d 6d61 6e64 3a0a 2020 2020 in.command:. │ │ │ -00044450: 636d 643a 2070 7265 6c69 6e6b 202d 7561 cmd: prelink -ua │ │ │ -00044460: 0a20 2077 6865 6e3a 2070 7265 6c69 6e6b . when: prelink │ │ │ -00044470: 2e73 7461 742e 6578 6973 7473 0a20 2074 .stat.exists. t │ │ │ -00044480: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -00044490: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -000444a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -000444b0: 206d 6564 6975 6d5f 636f 6d70 6c65 7869 medium_complexi │ │ │ -000444c0: 7479 0a20 202d 206d 6564 6975 6d5f 7365 ty. - medium_se │ │ │ -000444d0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -000444e0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -000444f0: 7061 636b 6167 655f 7072 656c 696e 6b5f package_prelink_ │ │ │ -00044500: 7265 6d6f 7665 640a 0a2d 206e 616d 653a removed..- name: │ │ │ -00044510: 2045 6e73 7572 6520 7072 656c 696e 6b20 Ensure prelink │ │ │ -00044520: 6973 2052 656d 6f76 6564 0a20 2061 6e73 is Removed. ans │ │ │ -00044530: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -00044540: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -00044550: 7072 656c 696e 6b0a 2020 2020 7374 6174 prelink. stat │ │ │ -00044560: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -00044570: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -00044580: 7261 7465 6779 0a20 202d 206c 6f77 5f64 rategy. - low_d │ │ │ -00044590: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -000445a0: 6469 756d 5f63 6f6d 706c 6578 6974 790a dium_complexity. │ │ │ -000445b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -000445c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -000445d0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -000445e0: 6b61 6765 5f70 7265 6c69 6e6b 5f72 656d kage_prelink_rem │ │ │ -000445f0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072 oved.Remediation A │ │ │ +00043f50: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00043f60: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ +00043fe0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00044020: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00044030: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
medium
D │ │ │ +00044010: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00044040: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00044060: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00044090: 636f 6465 3e2d 206e 616d 653a 2043 6865  code>- name: Che
│ │ │ +000440a0: 636b 2049 6620 5072 656c 696e 6b65 6420  ck If Prelinked 
│ │ │ +000440b0: 4973 2049 6e73 7461 6c6c 6564 0a20 2061  Is Installed.  a
│ │ │ +000440c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +000440d0: 7461 743a 0a20 2020 2070 6174 683a 202f  tat:.    path: /
│ │ │ +000440e0: 7573 722f 7362 696e 2f70 7265 6c69 6e6b  usr/sbin/prelink
│ │ │ +000440f0: 0a20 2020 2067 6574 5f63 6865 636b 7375  .    get_checksu
│ │ │ +00044100: 6d3a 2066 616c 7365 0a20 2072 6567 6973  m: false.  regis
│ │ │ +00044110: 7465 723a 2070 7265 6c69 6e6b 0a20 2074  ter: prelink.  t
│ │ │ +00044120: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +00044130: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00044140: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00044150: 206d 6564 6975 6d5f 636f 6d70 6c65 7869   medium_complexi
│ │ │ +00044160: 7479 0a20 202d 206d 6564 6975 6d5f 7365  ty.  - medium_se
│ │ │ +00044170: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00044180: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00044190: 7061 636b 6167 655f 7072 656c 696e 6b5f  package_prelink_
│ │ │ +000441a0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ +000441b0: 2052 6573 746f 7265 2050 7265 6c69 6e6b   Restore Prelink
│ │ │ +000441c0: 6564 2042 696e 6172 6965 730a 2020 616e  ed Binaries.  an
│ │ │ +000441d0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +000441e0: 6d6d 616e 643a 0a20 2020 2063 6d64 3a20  mmand:.    cmd: 
│ │ │ +000441f0: 7072 656c 696e 6b20 2d75 610a 2020 7768  prelink -ua.  wh
│ │ │ +00044200: 656e 3a20 7072 656c 696e 6b2e 7374 6174  en: prelink.stat
│ │ │ +00044210: 2e65 7869 7374 730a 2020 7461 6773 3a0a  .exists.  tags:.
│ │ │ +00044220: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00044230: 7465 6779 0a20 202d 206c 6f77 5f64 6973  tegy.  - low_dis
│ │ │ +00044240: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00044250: 756d 5f63 6f6d 706c 6578 6974 790a 2020  um_complexity.  
│ │ │ +00044260: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00044270: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00044280: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00044290: 6765 5f70 7265 6c69 6e6b 5f72 656d 6f76  ge_prelink_remov
│ │ │ +000442a0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +000442b0: 7265 2070 7265 6c69 6e6b 2069 7320 5265  re prelink is Re
│ │ │ +000442c0: 6d6f 7665 640a 2020 616e 7369 626c 652e  moved.  ansible.
│ │ │ +000442d0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +000442e0: 0a20 2020 206e 616d 653a 2070 7265 6c69  .    name: preli
│ │ │ +000442f0: 6e6b 0a20 2020 2073 7461 7465 3a20 6162  nk.    state: ab
│ │ │ +00044300: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +00044310: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00044320: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00044330: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00044340: 636f 6d70 6c65 7869 7479 0a20 202d 206d  complexity.  - m
│ │ │ +00044350: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00044360: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00044370: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00044380: 7072 656c 696e 6b5f 7265 6d6f 7665 640a  prelink_removed.
│ │ │ +00044390: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +00044440: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00044450: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ +00044500: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00044550: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00044590: 636c 7564 6520 7265 6d6f 7665 5f70 7265  clude remove_pre
│ │ │ +000445a0: 6c69 6e6b 0a0a 636c 6173 7320 7265 6d6f  link..class remo
│ │ │ +000445b0: 7665 5f70 7265 6c69 6e6b 207b 0a20 2070  ve_prelink {.  p
│ │ │ +000445c0: 6163 6b61 6765 207b 2027 7072 656c 696e  ackage { 'prelin
│ │ │ +000445d0: 6b27 3a0a 2020 2020 656e 7375 7265 203d  k':.    ensure =
│ │ │ +000445e0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +000445f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediat
│ │ │ -0005c4d0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ -0005c4e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ -0005c560: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0005c5a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ +000444e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00044510: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00044530: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00044540: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00044560: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00044570: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -0005c570: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0005c590: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0005c5c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0005c5e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0005c610: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0005c620: 656d 6f76 655f 6764 6d33 0a0a 636c 6173  emove_gdm3..clas
│ │ │ -0005c630: 7320 7265 6d6f 7665 5f67 646d 3320 7b0a  s remove_gdm3 {.
│ │ │ -0005c640: 2020 7061 636b 6167 6520 7b20 2767 646d    package { 'gdm
│ │ │ -0005c650: 3327 3a0a 2020 2020 656e 7375 7265 203d  3':.    ensure =
│ │ │ -0005c660: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0005c670: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -0005c730: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0005c740: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0005c7c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0005c7e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0005c830: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0005c860: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0005c7d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0005c7f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0005c840: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0005c850: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -0005c880: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0005c890: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0005c8a0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0005c8b0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0005c8c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0005c8d0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0005c8e0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0005c8f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0005c900: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0005c910: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0005c920: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0005c930: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0005c940: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0005c950: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0005c960: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0005c970: 6163 6b61 6765 5f67 646d 5f72 656d 6f76  ackage_gdm_remov
│ │ │ -0005c980: 6564 0a0a 2d20 6e61 6d65 3a20 2752 656d  ed..- name: 'Rem
│ │ │ -0005c990: 6f76 6520 7468 6520 4744 4d20 5061 636b  ove the GDM Pack
│ │ │ -0005c9a0: 6167 6520 4772 6f75 703a 2045 6e73 7572  age Group: Ensur
│ │ │ -0005c9b0: 6520 6764 6d33 2069 7320 7265 6d6f 7665  e gdm3 is remove
│ │ │ -0005c9c0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -0005c9d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0005c9e0: 2020 6e61 6d65 3a20 6764 6d33 0a20 2020    name: gdm3.   
│ │ │ -0005c9f0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0005ca00: 2077 6865 6e3a 2027 2267 646d 3322 2069   when: '"gdm3" i
│ │ │ -0005ca10: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0005ca20: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -0005ca30: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0005ca40: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0005ca50: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0005ca60: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0005ca70: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0005ca80: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0005ca90: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0005caa0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0005cab0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0005cac0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0005cad0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0005cae0: 2d20 7061 636b 6167 655f 6764 6d5f 7265  - package_gdm_re
│ │ │ -0005caf0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


< │ │ │ +0005c4f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0005c500: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0005c510: 7365 2220 6964 3d22 6964 3439 223e 3c74 se" id="id49"> │ │ │ +0005c560: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0005c570: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0005c580: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0005c5c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0005c5d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0005c5f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0005c600: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0005c620: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0005c630: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0005c640: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0005c650: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0005c660: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0005c670: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0005c680: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0005c690: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0005c6a0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0005c6b0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0005c6c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0005c6d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0005c6e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0005c6f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0005c700: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0005c710: 202d 2070 6163 6b61 6765 5f67 646d 5f72   - package_gdm_r
│ │ │ +0005c720: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ +0005c730: 2752 656d 6f76 6520 7468 6520 4744 4d20  'Remove the GDM 
│ │ │ +0005c740: 5061 636b 6167 6520 4772 6f75 703a 2045  Package Group: E
│ │ │ +0005c750: 6e73 7572 6520 6764 6d33 2069 7320 7265  nsure gdm3 is re
│ │ │ +0005c760: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0005c770: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0005c780: 3a0a 2020 2020 6e61 6d65 3a20 6764 6d33  :.    name: gdm3
│ │ │ +0005c790: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0005c7a0: 6e74 0a20 2077 6865 6e3a 2027 2267 646d  nt.  when: '"gdm
│ │ │ +0005c7b0: 3322 2069 6e20 616e 7369 626c 655f 6661  3" in ansible_fa
│ │ │ +0005c7c0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0005c7d0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0005c7e0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0005c7f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0005c800: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0005c810: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0005c820: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0005c830: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0005c840: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0005c850: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0005c860: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0005c870: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0005c880: 640a 2020 2d20 7061 636b 6167 655f 6764  d.  - package_gd
│ │ │ +0005c890: 6d5f 7265 6d6f 7665 640a 3c2f 636f 6465  m_removed.
Remedia │ │ │ +0005c950: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0005c960: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0005c970: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0005c980: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0005c990: 7365 2220 6964 3d22 6964 3530 223e 3c74 se" id="id50"> │ │ │ +0005c9e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0005c9f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0005ca00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0005ca40: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0005ca50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0005ca70: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0005ca80: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +0005caa0: 7265 6d6f 7665 5f67 646d 330a 0a63 6c61  remove_gdm3..cla
│ │ │ +0005cab0: 7373 2072 656d 6f76 655f 6764 6d33 207b  ss remove_gdm3 {
│ │ │ +0005cac0: 0a20 2070 6163 6b61 6765 207b 2027 6764  .  package { 'gd
│ │ │ +0005cad0: 6d33 273a 0a20 2020 2065 6e73 7572 6520  m3':.    ensure 
│ │ │ +0005cae0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0005caf0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remedi │ │ │ -0005e1d0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0005e1e0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0005e1f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -0005e230: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -0005e240: 5d5d 0a6e 616d 6520 3d20 2273 7564 6f22  ]].name = "sudo"
│ │ │ -0005e250: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -0005e260: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -0005e310: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0005e320: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0005e330: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0005e3b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0005e3e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0005e400: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0005e410: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0005e430: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0005e450: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0005e460: 6465 2069 6e73 7461 6c6c 5f73 7564 6f0a  de install_sudo.
│ │ │ -0005e470: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ -0005e480: 7564 6f20 7b0a 2020 7061 636b 6167 6520  udo {.  package 
│ │ │ -0005e490: 7b20 2773 7564 6f27 3a0a 2020 2020 656e  { 'sudo':.    en
│ │ │ -0005e4a0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -0005e4b0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ -0005e570: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0005e580: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0005e590: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0005e610: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0005e640: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0005e660: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0005e670: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0005e690: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0005e6b0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0005e6c0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0005e6d0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0005e6e0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0005e6f0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0005e700: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0005e710: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0005e720: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0005e730: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0005e740: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ -0005e750: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0005e760: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0005e770: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0005e780: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0005e790: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0005e7a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0005e7b0: 6167 655f 7375 646f 5f69 6e73 7461 6c6c  age_sudo_install
│ │ │ -0005e7c0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -0005e7d0: 7265 2073 7564 6f20 6973 2069 6e73 7461  re sudo is insta
│ │ │ -0005e7e0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -0005e7f0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -0005e800: 2020 2020 6e61 6d65 3a20 7375 646f 0a20      name: sudo. 
│ │ │ -0005e810: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -0005e820: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -0005e830: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0005e840: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0005e850: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -0005e860: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0005e870: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ -0005e880: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0005e890: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ -0005e8a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0005e8b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0005e8c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0005e8d0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -0005e8e0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0005e8f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0005e900: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ -0005e910: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +0005e220: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0005e290: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0005e2b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0005e2e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0005e300: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0005e270: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0005e280: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0005e2c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0005e2d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +0005e320: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0005e330: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0005e340: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0005e350: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0005e360: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +0005e370: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +0005e380: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ +0005e390: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ +0005e3a0: 360a 2020 2d20 656e 6162 6c65 5f73 7472 6. - enable_str │ │ │ +0005e3b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +0005e3c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +0005e3d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +0005e3e0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +0005e3f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +0005e400: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +0005e410: 5f73 7564 6f5f 696e 7374 616c 6c65 640a _sudo_installed. │ │ │ +0005e420: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ +0005e430: 7375 646f 2069 7320 696e 7374 616c 6c65 sudo is installe │ │ │ +0005e440: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ +0005e450: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +0005e460: 206e 616d 653a 2073 7564 6f0a 2020 2020 name: sudo. │ │ │ +0005e470: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +0005e480: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ +0005e490: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ +0005e4a0: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +0005e4b0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +0005e4c0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0005e4d0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +0005e4e0: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +0005e4f0: 322e 322e 360a 2020 2d20 656e 6162 6c65 2.2.6. - enable │ │ │ +0005e500: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0005e510: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0005e520: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0005e530: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +0005e540: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0005e550: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +0005e560: 6b61 6765 5f73 7564 6f5f 696e 7374 616c kage_sudo_instal │ │ │ +0005e570: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
Remediation P │ │ │ +0005e630: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0005e640: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ +0005e710: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0005e720: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0005e770: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +0005e780: 7375 646f 0a0a 636c 6173 7320 696e 7374  sudo..class inst
│ │ │ +0005e790: 616c 6c5f 7375 646f 207b 0a20 2070 6163  all_sudo {.  pac
│ │ │ +0005e7a0: 6b61 6765 207b 2027 7375 646f 273a 0a20  kage { 'sudo':. 
│ │ │ +0005e7b0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0005e7c0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +0005e7d0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0005e7e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation OS │ │ │ +0005e890: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0005e8a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0005e8b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[[
│ │ │ +0005e8f0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +0005e900: 3d20 2273 7564 6f22 0a76 6572 7369 6f6e  = "sudo".version
│ │ │ +0005e910: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Reme │ │ │ -000b3c00: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -000b3c10: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -000b3c20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -000b3c70: 6765 735d 5d0a 6e61 6d65 203d 2022 6c69 ges]].name = "li │ │ │ -000b3c80: 6270 616d 2d6d 6f64 756c 6573 220a 7665 bpam-modules".ve │ │ │ -000b3c90: 7273 696f 6e20 3d20 222a 220a 3c2f 636f rsion = "*".< │ │ │ -000b3cb0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000b3cc0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000b3cd0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000b3ce0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000b3cf0: 6431 3735 2220 7461 6269 6e64 6578 3d22 d175" tabindex=" │ │ │ -000b3d00: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000b3d10: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000b3d20: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000b3d30: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000b3d40: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -000b3d50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -000b3d60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +0005e6f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0005e700: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0005e740: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0005e750: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -000b3df0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000b3e00: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000b3e20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000b3e40: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000b3e50: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000b3e90: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -000b3ea0: 6520 696e 7374 616c 6c5f 6c69 6270 616d e install_libpam │ │ │ -000b3eb0: 2d6d 6f64 756c 6573 0a0a 636c 6173 7320 -modules..class │ │ │ -000b3ec0: 696e 7374 616c 6c5f 6c69 6270 616d 2d6d install_libpam-m │ │ │ -000b3ed0: 6f64 756c 6573 207b 0a20 2070 6163 6b61 odules {. packa │ │ │ -000b3ee0: 6765 207b 2027 6c69 6270 616d 2d6d 6f64 ge { 'libpam-mod │ │ │ -000b3ef0: 756c 6573 273a 0a20 2020 2065 6e73 7572 ules':. ensur │ │ │ -000b3f00: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ -000b3f10: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ -000b3fd0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000b3fe0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -000b4070: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000b4080: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000b40a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000b40c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000b40d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000b4110: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -000b4120: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -000b4130: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -000b4140: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -000b4150: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -000b4160: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -000b4170: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -000b4180: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -000b4190: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -000b41a0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -000b41b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -000b41c0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -000b41d0: 6b61 6765 5f70 616d 5f6d 6f64 756c 6573 kage_pam_modules │ │ │ -000b41e0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61 _installed..- na │ │ │ -000b41f0: 6d65 3a20 456e 7375 7265 206c 6962 7061 me: Ensure libpa │ │ │ -000b4200: 6d2d 6d6f 6475 6c65 7320 6973 2069 6e73 m-modules is ins │ │ │ -000b4210: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65 talled. ansible │ │ │ -000b4220: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -000b4230: 3a0a 2020 2020 6e61 6d65 3a20 6c69 6270 :. name: libp │ │ │ -000b4240: 616d 2d6d 6f64 756c 6573 0a20 2020 2073 am-modules. s │ │ │ -000b4250: 7461 7465 3a20 7072 6573 656e 740a 2020 tate: present. │ │ │ -000b4260: 7768 656e 3a20 2722 6c69 6270 616d 2d72 when: '"libpam-r │ │ │ -000b4270: 756e 7469 6d65 2220 696e 2061 6e73 6962 untime" in ansib │ │ │ -000b4280: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -000b4290: 7327 0a20 2074 6167 733a 0a20 202d 2065 s'. tags:. - e │ │ │ -000b42a0: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ -000b42b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -000b42c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -000b42d0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -000b42e0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -000b42f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -000b4300: 2d20 7061 636b 6167 655f 7061 6d5f 6d6f - package_pam_mo │ │ │ -000b4310: 6475 6c65 735f 696e 7374 616c 6c65 640a dules_installed. │ │ │ +000b3c00: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +000b3c10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000b3c20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +000b3ca0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000b3cd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000b3cf0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000b3d00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000b3d20: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000b3d40: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000b3d50: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +000b3d60: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +000b3d70: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +000b3d80: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +000b3d90: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000b3da0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000b3db0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000b3dc0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000b3dd0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000b3de0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000b3df0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000b3e00: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ +000b3e10: 735f 696e 7374 616c 6c65 640a 0a2d 206e  s_installed..- n
│ │ │ +000b3e20: 616d 653a 2045 6e73 7572 6520 6c69 6270  ame: Ensure libp
│ │ │ +000b3e30: 616d 2d6d 6f64 756c 6573 2069 7320 696e  am-modules is in
│ │ │ +000b3e40: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +000b3e50: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +000b3e60: 653a 0a20 2020 206e 616d 653a 206c 6962  e:.    name: lib
│ │ │ +000b3e70: 7061 6d2d 6d6f 6475 6c65 730a 2020 2020  pam-modules.    
│ │ │ +000b3e80: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +000b3e90: 2077 6865 6e3a 2027 226c 6962 7061 6d2d   when: '"libpam-
│ │ │ +000b3ea0: 7275 6e74 696d 6522 2069 6e20 616e 7369  runtime" in ansi
│ │ │ +000b3eb0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000b3ec0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000b3ed0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000b3ee0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000b3ef0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000b3f00: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000b3f10: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000b3f20: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000b3f30: 202d 2070 6163 6b61 6765 5f70 616d 5f6d   - package_pam_m
│ │ │ +000b3f40: 6f64 756c 6573 5f69 6e73 7461 6c6c 6564  odules_installed
│ │ │ +000b3f50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +000b4010: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000b4020: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +000b40f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000b4100: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +000b4150: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6c  nclude install_l
│ │ │ +000b4160: 6962 7061 6d2d 6d6f 6475 6c65 730a 0a63  ibpam-modules..c
│ │ │ +000b4170: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ +000b4180: 7061 6d2d 6d6f 6475 6c65 7320 7b0a 2020  pam-modules {.  
│ │ │ +000b4190: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ +000b41a0: 6d2d 6d6f 6475 6c65 7327 3a0a 2020 2020  m-modules':.    
│ │ │ +000b41b0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000b41c0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000b41d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000b4280: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000b4290: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000b42a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000b42f0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000b4300: 2022 6c69 6270 616d 2d6d 6f64 756c 6573   "libpam-modules
│ │ │ +000b4310: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  000b4320: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -000b51d0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000b51e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000b5230: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -000b5240: 6d65 203d 2022 6c69 6270 616d 2d70 7771  me = "libpam-pwq
│ │ │ -000b5250: 7561 6c69 7479 220a 7665 7273 696f 6e20  uality".version 
│ │ │ -000b5260: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediatio │ │ │ -000b5320: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000b5330: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -000b53f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000b5400: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +000b40d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000b40e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000b4120: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000b4130: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ -000b53c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -000b53e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -000b5410: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -000b5430: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -000b5470: 616c 6c5f 6c69 6270 616d 2d70 7771 7561  all_libpam-pwqua
│ │ │ -000b5480: 6c69 7479 0a0a 636c 6173 7320 696e 7374  lity..class inst
│ │ │ -000b5490: 616c 6c5f 6c69 6270 616d 2d70 7771 7561  all_libpam-pwqua
│ │ │ -000b54a0: 6c69 7479 207b 0a20 2070 6163 6b61 6765  lity {.  package
│ │ │ -000b54b0: 207b 2027 6c69 6270 616d 2d70 7771 7561   { 'libpam-pwqua
│ │ │ -000b54c0: 6c69 7479 273a 0a20 2020 2065 6e73 7572  lity':.    ensur
│ │ │ -000b54d0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -000b54e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -000b55a0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000b55b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -000b5640: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000b5650: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000b5670: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000b5690: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000b56a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000b56e0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -000b56f0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -000b5700: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -000b5710: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -000b5720: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -000b5730: 7461 6773 3a0a 2020 2d20 4449 5341 2d53 tags:. - DISA-S │ │ │ -000b5740: 5449 472d 5542 5455 2d32 322d 3231 3530 TIG-UBTU-22-2150 │ │ │ -000b5750: 3130 0a20 202d 2065 6e61 626c 655f 7374 10. - enable_st │ │ │ -000b5760: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -000b5770: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -000b5780: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -000b5790: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -000b57a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -000b57b0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -000b57c0: 655f 7061 6d5f 7077 7175 616c 6974 795f e_pam_pwquality_ │ │ │ -000b57d0: 696e 7374 616c 6c65 640a 0a2d 206e 616d installed..- nam │ │ │ -000b57e0: 653a 2045 6e73 7572 6520 6c69 6270 616d e: Ensure libpam │ │ │ -000b57f0: 2d70 7771 7561 6c69 7479 2069 7320 696e -pwquality is in │ │ │ -000b5800: 7374 616c 6c65 640a 2020 616e 7369 626c stalled. ansibl │ │ │ -000b5810: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -000b5820: 653a 0a20 2020 206e 616d 653a 206c 6962 e:. name: lib │ │ │ -000b5830: 7061 6d2d 7077 7175 616c 6974 790a 2020 pam-pwquality. │ │ │ -000b5840: 2020 7374 6174 653a 2070 7265 7365 6e74 state: present │ │ │ -000b5850: 0a20 2077 6865 6e3a 2027 226c 6962 7061 . when: '"libpa │ │ │ -000b5860: 6d2d 7275 6e74 696d 6522 2069 6e20 616e m-runtime" in an │ │ │ -000b5870: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -000b5880: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ -000b5890: 2d20 4449 5341 2d53 5449 472d 5542 5455 - DISA-STIG-UBTU │ │ │ -000b58a0: 2d32 322d 3231 3530 3130 0a20 202d 2065 -22-215010. - e │ │ │ -000b58b0: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ -000b58c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -000b58d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -000b58e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -000b58f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -000b5900: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -000b5910: 2d20 7061 636b 6167 655f 7061 6d5f 7077 - package_pam_pw │ │ │ -000b5920: 7175 616c 6974 795f 696e 7374 616c 6c65 quality_installe │ │ │ -000b5930: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.
< │ │ │ +000b51d0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +000b51e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000b5270: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000b5290: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000b52b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000b52e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000b52f0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000b5300: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +000b5320: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000b5330: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +000b5340: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +000b5350: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +000b5360: 202d 2044 4953 412d 5354 4947 2d55 4254   - DISA-STIG-UBT
│ │ │ +000b5370: 552d 3232 2d32 3135 3031 300a 2020 2d20  U-22-215010.  - 
│ │ │ +000b5380: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000b5390: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000b53a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000b53b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000b53c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000b53d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000b53e0: 202d 2070 6163 6b61 6765 5f70 616d 5f70   - package_pam_p
│ │ │ +000b53f0: 7771 7561 6c69 7479 5f69 6e73 7461 6c6c  wquality_install
│ │ │ +000b5400: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +000b5410: 7265 206c 6962 7061 6d2d 7077 7175 616c  re libpam-pwqual
│ │ │ +000b5420: 6974 7920 6973 2069 6e73 7461 6c6c 6564  ity is installed
│ │ │ +000b5430: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000b5440: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000b5450: 6e61 6d65 3a20 6c69 6270 616d 2d70 7771  name: libpam-pwq
│ │ │ +000b5460: 7561 6c69 7479 0a20 2020 2073 7461 7465  uality.    state
│ │ │ +000b5470: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000b5480: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +000b5490: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +000b54a0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000b54b0: 2074 6167 733a 0a20 202d 2044 4953 412d   tags:.  - DISA-
│ │ │ +000b54c0: 5354 4947 2d55 4254 552d 3232 2d32 3135  STIG-UBTU-22-215
│ │ │ +000b54d0: 3031 300a 2020 2d20 656e 6162 6c65 5f73  010.  - enable_s
│ │ │ +000b54e0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000b54f0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000b5500: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000b5510: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000b5520: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000b5530: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000b5540: 6765 5f70 616d 5f70 7771 7561 6c69 7479  ge_pam_pwquality
│ │ │ +000b5550: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000b5610: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000b5620: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000b56d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000b56f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000b5720: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000b56b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000b56c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000b56e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000b5700: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000b5710: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000b5760: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +000b5770: 7077 7175 616c 6974 790a 0a63 6c61 7373 pwquality..class │ │ │ +000b5780: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +000b5790: 7077 7175 616c 6974 7920 7b0a 2020 7061 pwquality {. pa │ │ │ +000b57a0: 636b 6167 6520 7b20 276c 6962 7061 6d2d ckage { 'libpam- │ │ │ +000b57b0: 7077 7175 616c 6974 7927 3a0a 2020 2020 pwquality':. │ │ │ +000b57c0: 656e 7375 7265 203d 2667 743b 2027 696e ensure => 'in │ │ │ +000b57d0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a stalled',. }.}. │ │ │ +000b57e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ +000b5890: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000b58a0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000b58b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...

.[[p
│ │ │ +000b5900: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000b5910: 2022 6c69 6270 616d 2d70 7771 7561 6c69   "libpam-pwquali
│ │ │ +000b5920: 7479 220a 7665 7273 696f 6e20 3d20 222a  ty".version = "*
│ │ │ +000b5930: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 000b5940: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -000b6490: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000b64a0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -000b6500: 616d 6520 3d20 226c 6962 7061 6d2d 7275  ame = "libpam-ru
│ │ │ -000b6510: 6e74 696d 6522 0a76 6572 7369 6f6e 203d  ntime".version =
│ │ │ -000b6520: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -000b65e0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000b65f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000b6680: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000b66a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000b66c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000b66f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000b6700: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000b6710: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -000b6730: 6c6c 5f6c 6962 7061 6d2d 7275 6e74 696d  ll_libpam-runtim
│ │ │ -000b6740: 650a 0a63 6c61 7373 2069 6e73 7461 6c6c  e..class install
│ │ │ -000b6750: 5f6c 6962 7061 6d2d 7275 6e74 696d 6520  _libpam-runtime 
│ │ │ -000b6760: 7b0a 2020 7061 636b 6167 6520 7b20 276c  {.  package { 'l
│ │ │ -000b6770: 6962 7061 6d2d 7275 6e74 696d 6527 3a0a  ibpam-runtime':.
│ │ │ -000b6780: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000b6790: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -000b67a0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -000b6860: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000b6870: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -000b6900: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000b6920: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000b6940: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -000b6970: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000b6980: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -000b6990: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Ensur
│ │ │ -000b69b0: 6520 6c69 6270 616d 2d72 756e 7469 6d65  e libpam-runtime
│ │ │ -000b69c0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000b69d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000b69e0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000b69f0: 653a 206c 6962 7061 6d2d 7275 6e74 696d  e: libpam-runtim
│ │ │ -000b6a00: 650a 2020 2020 7374 6174 653a 2070 7265  e.    state: pre
│ │ │ -000b6a10: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -000b6a20: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000b6a30: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000b6a40: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000b6a50: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000b6a60: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000b6a70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000b6a80: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ -000b6a90: 7275 6e74 696d 655f 696e 7374 616c 6c65  runtime_installe
│ │ │ -000b6aa0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000b6490: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +000b64a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +000b6530: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000b6550: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000b6560: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000b6570: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000b6580: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000b65a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ +000b65e0: 7265 206c 6962 7061 6d2d 7275 6e74 696d  re libpam-runtim
│ │ │ +000b65f0: 6520 6973 2069 6e73 7461 6c6c 6564 0a20  e is installed. 
│ │ │ +000b6600: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000b6610: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000b6620: 6d65 3a20 6c69 6270 616d 2d72 756e 7469  me: libpam-runti
│ │ │ +000b6630: 6d65 0a20 2020 2073 7461 7465 3a20 7072  me.    state: pr
│ │ │ +000b6640: 6573 656e 740a 2020 7461 6773 3a0a 2020  esent.  tags:.  
│ │ │ +000b6650: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000b6660: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000b6670: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000b6680: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000b6690: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000b66a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000b66b0: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ +000b66c0: 5f72 756e 7469 6d65 5f69 6e73 7461 6c6c  _runtime_install
│ │ │ +000b66d0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000b66e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000b6790: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000b67a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000b6820: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000b6840: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000b6890: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000b68e0: 5f6c 6962 7061 6d2d 7275 6e74 696d 650a  _libpam-runtime.
│ │ │ +000b68f0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6c  .class install_l
│ │ │ +000b6900: 6962 7061 6d2d 7275 6e74 696d 6520 7b0a  ibpam-runtime {.
│ │ │ +000b6910: 2020 7061 636b 6167 6520 7b20 276c 6962    package { 'lib
│ │ │ +000b6920: 7061 6d2d 7275 6e74 696d 6527 3a0a 2020  pam-runtime':.  
│ │ │ +000b6930: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000b6940: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000b6950: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000b6960: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000b6a10: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000b6a20: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000b6a30: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>< │ │ │ -000f2a20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f2a30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +000b6850: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000b6860: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000b68a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000b68b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -000f29f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -000f2a10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -000f2a40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -000f2a60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -000f2aa0: 616c 6c5f 6170 7061 726d 6f72 2d75 7469  all_apparmor-uti
│ │ │ -000f2ab0: 6c73 0a0a 636c 6173 7320 696e 7374 616c  ls..class instal
│ │ │ -000f2ac0: 6c5f 6170 7061 726d 6f72 2d75 7469 6c73  l_apparmor-utils
│ │ │ -000f2ad0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000f2ae0: 6170 7061 726d 6f72 2d75 7469 6c73 273a  apparmor-utils':
│ │ │ -000f2af0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000f2b00: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -000f2b10: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000f2bd0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000f2be0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000f2c70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000f2c90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000f2ca0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f2cb0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000f2cc0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000f2ce0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ -000f2d20: 7265 2061 7070 6172 6d6f 722d 7574 696c  re apparmor-util
│ │ │ -000f2d30: 7320 6973 2069 6e73 7461 6c6c 6564 0a20  s is installed. 
│ │ │ -000f2d40: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000f2d50: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -000f2d60: 6d65 3a20 6170 7061 726d 6f72 2d75 7469  me: apparmor-uti
│ │ │ -000f2d70: 6c73 0a20 2020 2073 7461 7465 3a20 7072  ls.    state: pr
│ │ │ -000f2d80: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ -000f2d90: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ -000f2da0: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ -000f2db0: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ -000f2dc0: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ -000f2dd0: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ -000f2de0: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ -000f2df0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000f2e00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000f2e10: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000f2e20: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000f2e30: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000f2e40: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000f2e50: 202d 2070 6163 6b61 6765 5f61 7070 6172   - package_appar
│ │ │ -000f2e60: 6d6f 722d 7574 696c 735f 696e 7374 616c  mor-utils_instal
│ │ │ -000f2e70: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

< │ │ │ +000f2890: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000f28a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000f28c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000f28d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000f28f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000f2910: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000f2940: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ +000f2950: 7572 6520 6170 7061 726d 6f72 2d75 7469  ure apparmor-uti
│ │ │ +000f2960: 6c73 2069 7320 696e 7374 616c 6c65 640a  ls is installed.
│ │ │ +000f2970: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000f2980: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +000f2990: 616d 653a 2061 7070 6172 6d6f 722d 7574  ame: apparmor-ut
│ │ │ +000f29a0: 696c 730a 2020 2020 7374 6174 653a 2070  ils.    state: p
│ │ │ +000f29b0: 7265 7365 6e74 0a20 2077 6865 6e3a 2061  resent.  when: a
│ │ │ +000f29c0: 6e73 6962 6c65 5f76 6972 7475 616c 697a  nsible_virtualiz
│ │ │ +000f29d0: 6174 696f 6e5f 7479 7065 206e 6f74 2069  ation_type not i
│ │ │ +000f29e0: 6e20 5b22 646f 636b 6572 222c 2022 6c78  n ["docker", "lx
│ │ │ +000f29f0: 6322 2c20 226f 7065 6e76 7a22 2c20 2270  c", "openvz", "p
│ │ │ +000f2a00: 6f64 6d61 6e22 2c20 2263 6f6e 7461 696e  odman", "contain
│ │ │ +000f2a10: 6572 225d 0a20 2074 6167 733a 0a20 202d  er"].  tags:.  -
│ │ │ +000f2a20: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000f2a30: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000f2a40: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000f2a50: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000f2a60: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000f2a70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000f2a80: 2020 2d20 7061 636b 6167 655f 6170 7061    - package_appa
│ │ │ +000f2a90: 726d 6f72 2d75 7469 6c73 5f69 6e73 7461  rmor-utils_insta
│ │ │ +000f2aa0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation │ │ │ +000f2b60: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000f2b70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000f2c00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000f2c20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000f2c40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000f2c70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000f2c80: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000f2c90: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +000f2cb0: 6c6c 5f61 7070 6172 6d6f 722d 7574 696c  ll_apparmor-util
│ │ │ +000f2cc0: 730a 0a63 6c61 7373 2069 6e73 7461 6c6c  s..class install
│ │ │ +000f2cd0: 5f61 7070 6172 6d6f 722d 7574 696c 7320  _apparmor-utils 
│ │ │ +000f2ce0: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ +000f2cf0: 7070 6172 6d6f 722d 7574 696c 7327 3a0a  pparmor-utils':.
│ │ │ +000f2d00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000f2d10: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000f2d20: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000f2de0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000f2df0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000f2e40: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000f2e50: 6d65 203d 2022 6170 7061 726d 6f72 2d75  me = "apparmor-u
│ │ │ +000f2e60: 7469 6c73 220a 7665 7273 696f 6e20 3d20  tils".version = 
│ │ │ +000f2e70: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
│ │ │ -000f3c70: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000f3c80: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000f3c90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000f3ce0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000f3cf0: 2022 6170 7061 726d 6f72 220a 7665 7273   "apparmor".vers
│ │ │ -000f3d00: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000f3dc0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000f3dd0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000f3de0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000f3e10: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000f3e80: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000f3ea0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000f3ed0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000f3ef0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000f3e60: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000f3e70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000f3eb0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000f3ec0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000f3f10: 696e 7374 616c 6c5f 6170 7061 726d 6f72 install_apparmor │ │ │ -000f3f20: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ -000f3f30: 6170 7061 726d 6f72 207b 0a20 2070 6163 apparmor {. pac │ │ │ -000f3f40: 6b61 6765 207b 2027 6170 7061 726d 6f72 kage { 'apparmor │ │ │ -000f3f50: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -000f3f60: 6774 3b20 2769 6e73 7461 6c6c 6564 272c gt; 'installed', │ │ │ -000f3f70: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediati │ │ │ -000f4030: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -000f4040: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000f40c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000f40d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000f40e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000f4120: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000f4130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000f4150: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000f4170: 3c63 6f64 653e 2d20 6e61 6d65 3a20 456e  - name: En
│ │ │ -000f4180: 7375 7265 2061 7070 6172 6d6f 7220 6973  sure apparmor is
│ │ │ -000f4190: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -000f41a0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -000f41b0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -000f41c0: 6170 7061 726d 6f72 0a20 2020 2073 7461  apparmor.    sta
│ │ │ -000f41d0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -000f41e0: 656e 3a20 616e 7369 626c 655f 7669 7274  en: ansible_virt
│ │ │ -000f41f0: 7561 6c69 7a61 7469 6f6e 5f74 7970 6520  ualization_type 
│ │ │ -000f4200: 6e6f 7420 696e 205b 2264 6f63 6b65 7222  not in ["docker"
│ │ │ -000f4210: 2c20 226c 7863 222c 2022 6f70 656e 767a  , "lxc", "openvz
│ │ │ -000f4220: 222c 2022 706f 646d 616e 222c 2022 636f  ", "podman", "co
│ │ │ -000f4230: 6e74 6169 6e65 7222 5d0a 2020 7461 6773  ntainer"].  tags
│ │ │ -000f4240: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -000f4250: 5542 5455 2d32 322d 3433 3130 3130 0a20  UBTU-22-431010. 
│ │ │ -000f4260: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000f4270: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000f4280: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000f4290: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000f42a0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000f42b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000f42c0: 640a 2020 2d20 7061 636b 6167 655f 6170  d.  - package_ap
│ │ │ -000f42d0: 7061 726d 6f72 5f69 6e73 7461 6c6c 6564  parmor_installed
│ │ │ +000f3c70: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +000f3c80: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +000f3c90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +000f3d60: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000f3d70: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000f3dc0: 206e 616d 653a 2045 6e73 7572 6520 6170   name: Ensure ap
│ │ │ +000f3dd0: 7061 726d 6f72 2069 7320 696e 7374 616c  parmor is instal
│ │ │ +000f3de0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +000f3df0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +000f3e00: 2020 206e 616d 653a 2061 7070 6172 6d6f     name: apparmo
│ │ │ +000f3e10: 720a 2020 2020 7374 6174 653a 2070 7265  r.    state: pre
│ │ │ +000f3e20: 7365 6e74 0a20 2077 6865 6e3a 2061 6e73  sent.  when: ans
│ │ │ +000f3e30: 6962 6c65 5f76 6972 7475 616c 697a 6174  ible_virtualizat
│ │ │ +000f3e40: 696f 6e5f 7479 7065 206e 6f74 2069 6e20  ion_type not in 
│ │ │ +000f3e50: 5b22 646f 636b 6572 222c 2022 6c78 6322  ["docker", "lxc"
│ │ │ +000f3e60: 2c20 226f 7065 6e76 7a22 2c20 2270 6f64  , "openvz", "pod
│ │ │ +000f3e70: 6d61 6e22 2c20 2263 6f6e 7461 696e 6572  man", "container
│ │ │ +000f3e80: 225d 0a20 2074 6167 733a 0a20 202d 2044  "].  tags:.  - D
│ │ │ +000f3e90: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ +000f3ea0: 2d34 3331 3031 300a 2020 2d20 656e 6162  -431010.  - enab
│ │ │ +000f3eb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000f3ec0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000f3ed0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000f3ee0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000f3ef0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000f3f00: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000f3f10: 6163 6b61 6765 5f61 7070 6172 6d6f 725f  ackage_apparmor_
│ │ │ +000f3f20: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
Remedi │ │ │ +000f3fe0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000f3ff0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000f4000: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000f4030: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +000f3d40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000f3d50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000f3d90: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000f3da0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +000f40a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000f40c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000f40f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000f4110: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000f4080: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000f4090: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000f40d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000f40e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +000f4130: 696e 7374 616c 6c5f 6170 7061 726d 6f72 install_apparmor │ │ │ +000f4140: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +000f4150: 6170 7061 726d 6f72 207b 0a20 2070 6163 apparmor {. pac │ │ │ +000f4160: 6b61 6765 207b 2027 6170 7061 726d 6f72 kage { 'apparmor │ │ │ +000f4170: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +000f4180: 6774 3b20 2769 6e73 7461 6c6c 6564 272c gt; 'installed', │ │ │ +000f4190: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediati │ │ │ +000f4250: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000f4260: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000f4270: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +000f42c0: 0a6e 616d 6520 3d20 2261 7070 6172 6d6f  .name = "apparmo
│ │ │ +000f42d0: 7222 0a76 6572 7369 6f6e 203d 2022 2a22  r".version = "*"
│ │ │  000f42e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedi │ │ │ -00101f70: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00101f80: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00101f90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00101fd0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -00101fe0: 735d 5d0a 6e61 6d65 203d 2022 7379 7374  s]].name = "syst
│ │ │ -00101ff0: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -00102000: 7465 220a 7665 7273 696f 6e20 3d20 222a  te".version = "*
│ │ │ -00102010: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -00102020: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -001020d0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -001020e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001021b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001021c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00102210: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -00102220: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ -00102230: 7265 6d6f 7465 0a0a 636c 6173 7320 696e  remote..class in
│ │ │ -00102240: 7374 616c 6c5f 7379 7374 656d 642d 6a6f  stall_systemd-jo
│ │ │ -00102250: 7572 6e61 6c2d 7265 6d6f 7465 207b 0a20  urnal-remote {. 
│ │ │ -00102260: 2070 6163 6b61 6765 207b 2027 7379 7374   package { 'syst
│ │ │ -00102270: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -00102280: 7465 273a 0a20 2020 2065 6e73 7572 6520  te':.    ensure 
│ │ │ -00102290: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -001022a0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -001022b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00102360: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00102370: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00102380: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001023b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ -00102190: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001021a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001021e0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -001021f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00102420: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00102440: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00102470: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00102490: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00102400: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00102410: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00102450: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00102460: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -001024b0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -001024c0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -001024d0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -001024e0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -001024f0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -00102500: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00102510: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00102520: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00102530: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00102540: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00102550: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -00102560: 6765 5f73 7973 7465 6d64 2d6a 6f75 726e ge_systemd-journ │ │ │ -00102570: 616c 2d72 656d 6f74 655f 696e 7374 616c al-remote_instal │ │ │ -00102580: 6c65 640a 0a2d 206e 616d 653a 2045 6e73 led..- name: Ens │ │ │ -00102590: 7572 6520 7379 7374 656d 642d 6a6f 7572 ure systemd-jour │ │ │ -001025a0: 6e61 6c2d 7265 6d6f 7465 2069 7320 696e nal-remote is in │ │ │ -001025b0: 7374 616c 6c65 640a 2020 616e 7369 626c stalled. ansibl │ │ │ -001025c0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -001025d0: 653a 0a20 2020 206e 616d 653a 2073 7973 e:. name: sys │ │ │ -001025e0: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d temd-journal-rem │ │ │ -001025f0: 6f74 650a 2020 2020 7374 6174 653a 2070 ote. state: p │ │ │ -00102600: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ -00102610: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -00102620: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -00102630: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -00102640: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ -00102650: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -00102660: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -00102670: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -00102680: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -00102690: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -001026a0: 6564 0a20 202d 2070 6163 6b61 6765 5f73 ed. - package_s │ │ │ -001026b0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72 ystemd-journal-r │ │ │ -001026c0: 656d 6f74 655f 696e 7374 616c 6c65 640a emote_installed. │ │ │ +00101f70: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +00101f80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00102030: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00102050: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00102080: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00102010: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00102020: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00102040: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00102060: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00102070: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +001020c0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +001020d0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +001020e0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +001020f0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00102100: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +00102110: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00102120: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00102130: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00102140: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00102150: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00102160: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +00102170: 6167 655f 7379 7374 656d 642d 6a6f 7572 age_systemd-jour │ │ │ +00102180: 6e61 6c2d 7265 6d6f 7465 5f69 6e73 7461 nal-remote_insta │ │ │ +00102190: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e lled..- name: En │ │ │ +001021a0: 7375 7265 2073 7973 7465 6d64 2d6a 6f75 sure systemd-jou │ │ │ +001021b0: 726e 616c 2d72 656d 6f74 6520 6973 2069 rnal-remote is i │ │ │ +001021c0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962 nstalled. ansib │ │ │ +001021d0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +001021e0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7379 ge:. name: sy │ │ │ +001021f0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265 stemd-journal-re │ │ │ +00102200: 6d6f 7465 0a20 2020 2073 7461 7465 3a20 mote. state: │ │ │ +00102210: 7072 6573 656e 740a 2020 7768 656e 3a20 present. when: │ │ │ +00102220: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +00102230: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00102240: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ +00102250: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +00102260: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +00102270: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00102280: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +00102290: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +001022a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +001022b0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +001022c0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +001022d0: 7265 6d6f 7465 5f69 6e73 7461 6c6c 6564 remote_installed │ │ │ +001022e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

Remediation Pup │ │ │ +001023a0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +001023b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00102480: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00102490: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +001024e0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f73  nclude install_s
│ │ │ +001024f0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72  ystemd-journal-r
│ │ │ +00102500: 656d 6f74 650a 0a63 6c61 7373 2069 6e73  emote..class ins
│ │ │ +00102510: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ +00102520: 726e 616c 2d72 656d 6f74 6520 7b0a 2020  rnal-remote {.  
│ │ │ +00102530: 7061 636b 6167 6520 7b20 2773 7973 7465  package { 'syste
│ │ │ +00102540: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +00102550: 6527 3a0a 2020 2020 656e 7375 7265 203d  e':.    ensure =
│ │ │ +00102560: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +00102570: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00102580: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00102630: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00102640: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00102650: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[[packages]
│ │ │ +001026a0: 5d0a 6e61 6d65 203d 2022 7379 7374 656d  ].name = "system
│ │ │ +001026b0: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +001026c0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  001026d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -00103840: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00103850: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
Complexity:low
Disrup │ │ │ +00102460: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00102470: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +001024b0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +001024c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00103a80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00103a90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00103ae0: 6e63 6c75 6465 2065 6e61 626c 655f 7379  nclude enable_sy
│ │ │ -00103af0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ -00103b00: 6c6f 6164 0a0a 636c 6173 7320 656e 6162  load..class enab
│ │ │ -00103b10: 6c65 5f73 7973 7465 6d64 2d6a 6f75 726e  le_systemd-journ
│ │ │ -00103b20: 616c 2d75 706c 6f61 6420 7b0a 2020 7365  al-upload {.  se
│ │ │ -00103b30: 7276 6963 6520 7b27 7379 7374 656d 642d  rvice {'systemd-
│ │ │ -00103b40: 6a6f 7572 6e61 6c2d 7570 6c6f 6164 273a  journal-upload':
│ │ │ -00103b50: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00103b60: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -00103b70: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -00103b80: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ -00103c40: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00103c50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ -00103a60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00103a70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00103ab0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00103ac0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00103d00: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00103d20: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00103d50: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00103ce0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00103cf0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00103d10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00103d30: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00103d40: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00103d90: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00103da0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00103db0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00103dc0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00103dd0: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ -00103de0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00103df0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -00103e00: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -00103e10: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00103e20: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00103e30: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -00103e40: 6963 655f 7379 7374 656d 642d 6a6f 7572 ice_systemd-jour │ │ │ -00103e50: 6e61 6c2d 7570 6c6f 6164 5f65 6e61 626c nal-upload_enabl │ │ │ -00103e60: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ -00103e70: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e le systemd-journ │ │ │ -00103e80: 616c 2d75 706c 6f61 6420 5365 7276 6963 al-upload Servic │ │ │ -00103e90: 6520 2d20 456e 6162 6c65 2073 6572 7669 e - Enable servi │ │ │ -00103ea0: 6365 2073 7973 7465 6d64 2d6a 6f75 726e ce systemd-journ │ │ │ -00103eb0: 616c 2d75 706c 6f61 640a 2020 626c 6f63 al-upload. bloc │ │ │ -00103ec0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761 k:.. - name: Ga │ │ │ -00103ed0: 7468 6572 2074 6865 2070 6163 6b61 6765 ther the package │ │ │ -00103ee0: 2066 6163 7473 0a20 2020 2061 6e73 6962 facts. ansib │ │ │ -00103ef0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -00103f00: 6765 5f66 6163 7473 3a0a 2020 2020 2020 ge_facts:. │ │ │ -00103f10: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20 manager: auto.. │ │ │ -00103f20: 202d 206e 616d 653a 2045 6e61 626c 6520 - name: Enable │ │ │ -00103f30: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ -00103f40: 7570 6c6f 6164 2053 6572 7669 6365 202d upload Service - │ │ │ -00103f50: 2045 6e61 626c 6520 5365 7276 6963 6520 Enable Service │ │ │ -00103f60: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ -00103f70: 7570 6c6f 6164 0a20 2020 2061 6e73 6962 upload. ansib │ │ │ -00103f80: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -00103f90: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -00103fa0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ -00103fb0: 7570 6c6f 6164 0a20 2020 2020 2065 6e61 upload. ena │ │ │ -00103fc0: 626c 6564 3a20 7472 7565 0a20 2020 2020 bled: true. │ │ │ -00103fd0: 2073 7461 7465 3a20 7374 6172 7465 640a state: started. │ │ │ -00103fe0: 2020 2020 2020 6d61 736b 6564 3a20 6661 masked: fa │ │ │ -00103ff0: 6c73 650a 2020 2020 7768 656e 3a0a 2020 lse. when:. │ │ │ -00104000: 2020 2d20 2722 7379 7374 656d 642d 6a6f - '"systemd-jo │ │ │ -00104010: 7572 6e61 6c2d 7265 6d6f 7465 2220 696e urnal-remote" in │ │ │ -00104020: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00104030: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ -00104040: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ -00104050: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -00104060: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00104070: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00104080: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00104090: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -001040a0: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ -001040b0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ -001040c0: 7570 6c6f 6164 5f65 6e61 626c 6564 0a20 upload_enabled. │ │ │ -001040d0: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -001040e0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ -001040f0: 0a20 202d 2027 226c 696e 7578 2d62 6173 . - '"linux-bas │ │ │ -00104100: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -00104110: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ -00104120: 2d20 2820 616e 7369 626c 655f 7669 7274 - ( ansible_virt │ │ │ -00104130: 7561 6c69 7a61 7469 6f6e 5f74 7970 6520 ualization_type │ │ │ -00104140: 6e6f 7420 696e 205b 2264 6f63 6b65 7222 not in ["docker" │ │ │ -00104150: 2c20 226c 7863 222c 2022 6f70 656e 767a , "lxc", "openvz │ │ │ -00104160: 222c 2022 706f 646d 616e 222c 2022 636f ", "podman", "co │ │ │ -00104170: 6e74 6169 6e65 7222 5d0a 2020 2020 616e ntainer"]. an │ │ │ -00104180: 6420 2273 7973 7465 6d64 2d6a 6f75 726e d "systemd-journ │ │ │ -00104190: 616c 2d72 656d 6f74 6522 2069 6e20 616e al-remote" in an │ │ │ -001041a0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -001041b0: 6167 6573 2029 0a3c 2f63 6f64 653e 3c2f ages ).

Complexity │ │ │ +001038e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00103900: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00103910: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00103920: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00103930: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00103950: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00103990: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +001039a0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +001039b0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +001039c0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +001039d0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +001039e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +001039f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00103a00: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00103a10: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00103a20: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00103a30: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +00103a40: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ +00103a50: 706c 6f61 645f 656e 6162 6c65 640a 0a2d  pload_enabled..-
│ │ │ +00103a60: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ +00103a70: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +00103a80: 6c6f 6164 2053 6572 7669 6365 202d 2045  load Service - E
│ │ │ +00103a90: 6e61 626c 6520 7365 7276 6963 6520 7379  nable service sy
│ │ │ +00103aa0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +00103ab0: 6c6f 6164 0a20 2062 6c6f 636b 3a0a 0a20  load.  block:.. 
│ │ │ +00103ac0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00103ad0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00103ae0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00103af0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +00103b00: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +00103b10: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00103b20: 6d65 3a20 456e 6162 6c65 2073 7973 7465  me: Enable syste
│ │ │ +00103b30: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +00103b40: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +00103b50: 6c65 2053 6572 7669 6365 2073 7973 7465  le Service syste
│ │ │ +00103b60: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +00103b70: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00103b80: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00103b90: 2020 2020 206e 616d 653a 2073 7973 7465       name: syste
│ │ │ +00103ba0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +00103bb0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +00103bc0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +00103bd0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +00103be0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +00103bf0: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +00103c00: 2273 7973 7465 6d64 2d6a 6f75 726e 616c  "systemd-journal
│ │ │ +00103c10: 2d72 656d 6f74 6522 2069 6e20 616e 7369  -remote" in ansi
│ │ │ +00103c20: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00103c30: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00103c40: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00103c50: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00103c60: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00103c70: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00103c80: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00103c90: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00103ca0: 202d 2073 6572 7669 6365 5f73 7973 7465   - service_syste
│ │ │ +00103cb0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +00103cc0: 645f 656e 6162 6c65 640a 2020 2d20 7370  d_enabled.  - sp
│ │ │ +00103cd0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +00103ce0: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20  ock.  when:.  - 
│ │ │ +00103cf0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00103d00: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00103d10: 6163 6b61 6765 7327 0a20 202d 2028 2061  ackages'.  - ( a
│ │ │ +00103d20: 6e73 6962 6c65 5f76 6972 7475 616c 697a  nsible_virtualiz
│ │ │ +00103d30: 6174 696f 6e5f 7479 7065 206e 6f74 2069  ation_type not i
│ │ │ +00103d40: 6e20 5b22 646f 636b 6572 222c 2022 6c78  n ["docker", "lx
│ │ │ +00103d50: 6322 2c20 226f 7065 6e76 7a22 2c20 2270  c", "openvz", "p
│ │ │ +00103d60: 6f64 6d61 6e22 2c20 2263 6f6e 7461 696e  odman", "contain
│ │ │ +00103d70: 6572 225d 0a20 2020 2061 6e64 2022 7379  er"].    and "sy
│ │ │ +00103d80: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265  stemd-journal-re
│ │ │ +00103d90: 6d6f 7465 2220 696e 2061 6e73 6962 6c65  mote" in ansible
│ │ │ +00103da0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +00103db0: 290a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ).
< │ │ │ +00103dc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00103e70: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00103e80: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00103f50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00103f60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00103fb0: 696e 636c 7564 6520 656e 6162 6c65 5f73  include enable_s
│ │ │ +00103fc0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ +00103fd0: 706c 6f61 640a 0a63 6c61 7373 2065 6e61  pload..class ena
│ │ │ +00103fe0: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ +00103ff0: 6e61 6c2d 7570 6c6f 6164 207b 0a20 2073  nal-upload {.  s
│ │ │ +00104000: 6572 7669 6365 207b 2773 7973 7465 6d64  ervice {'systemd
│ │ │ +00104010: 2d6a 6f75 726e 616c 2d75 706c 6f61 6427  -journal-upload'
│ │ │ +00104020: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +00104030: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +00104040: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +00104050: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ +00104110: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00104120: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00104130: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +00104180: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00104190: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ +001041a0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +001041b0: 6c6f 6164 225d 0a3c 2f63 6f64 653e 3c2f  load"].
Remedi │ │ │ -001050a0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -001050b0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -001050c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00105100: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -00105110: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00105120: 0a65 6e61 626c 6564 203d 205b 2273 7973  .enabled = ["sys
│ │ │ -00105130: 7465 6d64 2d6a 6f75 726e 616c 6422 5d0a  temd-journald"].
│ │ │ -00105140: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001051f0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00105200: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +00103f30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00103f40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00103f80: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00103f90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -001052a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00105340: 636c 7564 6520 656e 6162 6c65 5f73 7973  clude enable_sys
│ │ │ -00105350: 7465 6d64 2d6a 6f75 726e 616c 640a 0a63  temd-journald..c
│ │ │ -00105360: 6c61 7373 2065 6e61 626c 655f 7379 7374  lass enable_syst
│ │ │ -00105370: 656d 642d 6a6f 7572 6e61 6c64 207b 0a20  emd-journald {. 
│ │ │ -00105380: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ -00105390: 6d64 2d6a 6f75 726e 616c 6427 3a0a 2020  md-journald':.  
│ │ │ -001053a0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ -001053b0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ -001053c0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ -001053d0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -00105490: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -001054a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -00105520: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -001055b0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00105290: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001052c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -001052d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00105310: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00105320: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -00105530: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00105540: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00105580: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00105590: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -001055d0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -001055e0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -001055f0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00105600: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00105610: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00105620: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00105630: 332d 5343 2d32 340a 2020 2d20 656e 6162  3-SC-24.  - enab
│ │ │ -00105640: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00105650: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00105660: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00105670: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00105680: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00105690: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -001056a0: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ -001056b0: 6f75 726e 616c 645f 656e 6162 6c65 640a  ournald_enabled.
│ │ │ -001056c0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ -001056d0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ -001056e0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -001056f0: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ -00105700: 642d 6a6f 7572 6e61 6c64 0a20 2062 6c6f  d-journald.  blo
│ │ │ -00105710: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -00105720: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00105730: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -00105740: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00105750: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -00105760: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -00105770: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -00105780: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ -00105790: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ -001057a0: 6c65 2053 6572 7669 6365 2073 7973 7465  le Service syste
│ │ │ -001057b0: 6d64 2d6a 6f75 726e 616c 640a 2020 2020  md-journald.    
│ │ │ -001057c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001057d0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -001057e0: 616d 653a 2073 7973 7465 6d64 2d6a 6f75  ame: systemd-jou
│ │ │ -001057f0: 726e 616c 640a 2020 2020 2020 656e 6162  rnald.      enab
│ │ │ -00105800: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -00105810: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -00105820: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -00105830: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -00105840: 202d 2027 2273 7973 7465 6d64 2220 696e   - '"systemd" in
│ │ │ -00105850: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00105860: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00105870: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00105880: 2d53 432d 3234 0a20 202d 2065 6e61 626c  -SC-24.  - enabl
│ │ │ -00105890: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -001058a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001058b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001058c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -001058d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -001058e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -001058f0: 7276 6963 655f 7379 7374 656d 642d 6a6f  rvice_systemd-jo
│ │ │ -00105900: 7572 6e61 6c64 5f65 6e61 626c 6564 0a20  urnald_enabled. 
│ │ │ -00105910: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -00105920: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -00105930: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00105940: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00105950: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
│ │ │ +00105160: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00105180: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001051b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00105140: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00105150: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00105170: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00105190: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +001051a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +001051f0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00105200: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00105210: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00105220: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00105230: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00105240: 302d 3533 2d53 432d 3234 0a20 202d 2065 0-53-SC-24. - e │ │ │ +00105250: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ +00105260: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +00105270: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +00105280: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +00105290: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +001052a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +001052b0: 2d20 7365 7276 6963 655f 7379 7374 656d - service_system │ │ │ +001052c0: 642d 6a6f 7572 6e61 6c64 5f65 6e61 626c d-journald_enabl │ │ │ +001052d0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ +001052e0: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e le systemd-journ │ │ │ +001052f0: 616c 6420 5365 7276 6963 6520 2d20 456e ald Service - En │ │ │ +00105300: 6162 6c65 2073 6572 7669 6365 2073 7973 able service sys │ │ │ +00105310: 7465 6d64 2d6a 6f75 726e 616c 640a 2020 temd-journald. │ │ │ +00105320: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ +00105330: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00105340: 6b61 6765 2066 6163 7473 0a20 2020 2061 kage facts. a │ │ │ +00105350: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +00105360: 6163 6b61 6765 5f66 6163 7473 3a0a 2020 ackage_facts:. │ │ │ +00105370: 2020 2020 6d61 6e61 6765 723a 2061 7574 manager: aut │ │ │ +00105380: 6f0a 0a20 202d 206e 616d 653a 2045 6e61 o.. - name: Ena │ │ │ +00105390: 626c 6520 7379 7374 656d 642d 6a6f 7572 ble systemd-jour │ │ │ +001053a0: 6e61 6c64 2053 6572 7669 6365 202d 2045 nald Service - E │ │ │ +001053b0: 6e61 626c 6520 5365 7276 6963 6520 7379 nable Service sy │ │ │ +001053c0: 7374 656d 642d 6a6f 7572 6e61 6c64 0a20 stemd-journald. │ │ │ +001053d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +001053e0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +001053f0: 2020 6e61 6d65 3a20 7379 7374 656d 642d name: systemd- │ │ │ +00105400: 6a6f 7572 6e61 6c64 0a20 2020 2020 2065 journald. e │ │ │ +00105410: 6e61 626c 6564 3a20 7472 7565 0a20 2020 nabled: true. │ │ │ +00105420: 2020 2073 7461 7465 3a20 7374 6172 7465 state: starte │ │ │ +00105430: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +00105440: 6661 6c73 650a 2020 2020 7768 656e 3a0a false. when:. │ │ │ +00105450: 2020 2020 2d20 2722 7379 7374 656d 6422 - '"systemd" │ │ │ +00105460: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +00105470: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +00105480: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00105490: 2d35 332d 5343 2d32 340a 2020 2d20 656e -53-SC-24. - en │ │ │ +001054a0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +001054b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +001054c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +001054d0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +001054e0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +001054f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00105500: 2073 6572 7669 6365 5f73 7973 7465 6d64 service_systemd │ │ │ +00105510: 2d6a 6f75 726e 616c 645f 656e 6162 6c65 -journald_enable │ │ │ +00105520: 640a 2020 2d20 7370 6563 6961 6c5f 7365 d. - special_se │ │ │ +00105530: 7276 6963 655f 626c 6f63 6b0a 2020 7768 rvice_block. wh │ │ │ +00105540: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ +00105550: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +00105560: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63 ts.packages'.

│ │ │ +00105580: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00105620: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00105630: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00105640: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +001056c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001056f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00105710: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00105720: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00105740: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00105760: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00105770: 6465 2065 6e61 626c 655f 7379 7374 656d  de enable_system
│ │ │ +00105780: 642d 6a6f 7572 6e61 6c64 0a0a 636c 6173  d-journald..clas
│ │ │ +00105790: 7320 656e 6162 6c65 5f73 7973 7465 6d64  s enable_systemd
│ │ │ +001057a0: 2d6a 6f75 726e 616c 6420 7b0a 2020 7365  -journald {.  se
│ │ │ +001057b0: 7276 6963 6520 7b27 7379 7374 656d 642d  rvice {'systemd-
│ │ │ +001057c0: 6a6f 7572 6e61 6c64 273a 0a20 2020 2065  journald':.    e
│ │ │ +001057d0: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +001057e0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +001057f0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +00105800: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +001058c0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +001058d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00105920: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00105930: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +00105940: 6564 203d 205b 2273 7973 7465 6d64 2d6a  ed = ["systemd-j
│ │ │ +00105950: 6f75 726e 616c 6422 5d0a 3c2f 636f 6465  ournald"].
│ │ │ -00119bf0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00119c00: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00119ca0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00119d40: 696e 636c 7564 6520 7265 6d6f 7665 5f69  include remove_i
│ │ │ -00119d50: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -00119d60: 6e74 0a0a 636c 6173 7320 7265 6d6f 7665  nt..class remove
│ │ │ -00119d70: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ -00119d80: 7465 6e74 207b 0a20 2070 6163 6b61 6765  tent {.  package
│ │ │ -00119d90: 207b 2027 6970 7461 626c 6573 2d70 6572   { 'iptables-per
│ │ │ -00119da0: 7369 7374 656e 7427 3a0a 2020 2020 656e  sistent':.    en
│ │ │ -00119db0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00119dc0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00119e80: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00119e90: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00119c90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00119cc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00119cd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00119d10: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00119d20: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00119f20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00119f30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00119f50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00119f70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00119f80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00119fc0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00119fd0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00119fe0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00119ff0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0011a000: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0011a010: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -0011a020: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0011a030: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0011a040: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0011a050: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0011a060: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0011a070: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0011a080: 6163 6b61 6765 5f69 7074 6162 6c65 732d  ackage_iptables-
│ │ │ -0011a090: 7065 7273 6973 7465 6e74 5f72 656d 6f76  persistent_remov
│ │ │ -0011a0a0: 6564 0a0a 2d20 6e61 6d65 3a20 2752 656d  ed..- name: 'Rem
│ │ │ -0011a0b0: 6f76 6520 6970 7461 626c 6573 2d70 6572  ove iptables-per
│ │ │ -0011a0c0: 7369 7374 656e 7420 5061 636b 6167 653a  sistent Package:
│ │ │ -0011a0d0: 2045 6e73 7572 6520 6970 7461 626c 6573   Ensure iptables
│ │ │ -0011a0e0: 2d70 6572 7369 7374 656e 7420 6973 2072  -persistent is r
│ │ │ -0011a0f0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0011a100: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0011a110: 653a 0a20 2020 206e 616d 653a 2069 7074  e:.    name: ipt
│ │ │ -0011a120: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -0011a130: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -0011a140: 6e74 0a20 2077 6865 6e3a 2027 2275 6677  nt.  when: '"ufw
│ │ │ -0011a150: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0011a160: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0011a170: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0011a180: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0011a190: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0011a1a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0011a1b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0011a1c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0011a1d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0011a1e0: 6b61 6765 5f69 7074 6162 6c65 732d 7065  kage_iptables-pe
│ │ │ -0011a1f0: 7273 6973 7465 6e74 5f72 656d 6f76 6564  rsistent_removed
│ │ │ +00119bf0: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +00119c00: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +00119c10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +00119ce0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00119cf0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00119d40: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00119d50: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00119d60: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00119d70: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00119d80: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00119d90: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00119da0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00119db0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00119dc0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00119dd0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00119de0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00119df0: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ +00119e00: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ +00119e10: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ +00119e20: 2027 5265 6d6f 7665 2069 7074 6162 6c65   'Remove iptable
│ │ │ +00119e30: 732d 7065 7273 6973 7465 6e74 2050 6163  s-persistent Pac
│ │ │ +00119e40: 6b61 6765 3a20 456e 7375 7265 2069 7074  kage: Ensure ipt
│ │ │ +00119e50: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +00119e60: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00119e70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00119e80: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00119e90: 3a20 6970 7461 626c 6573 2d70 6572 7369  : iptables-persi
│ │ │ +00119ea0: 7374 656e 740a 2020 2020 7374 6174 653a  stent.    state:
│ │ │ +00119eb0: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ +00119ec0: 2722 7566 7722 2069 6e20 616e 7369 626c  '"ufw" in ansibl
│ │ │ +00119ed0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00119ee0: 270a 2020 7461 6773 3a0a 2020 2d20 6469  '.  tags:.  - di
│ │ │ +00119ef0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00119f00: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00119f10: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00119f20: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00119f30: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00119f40: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00119f50: 2d20 7061 636b 6167 655f 6970 7461 626c  - package_iptabl
│ │ │ +00119f60: 6573 2d70 6572 7369 7374 656e 745f 7265  es-persistent_re
│ │ │ +00119f70: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +0011a030: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0011a040: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0011a100: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0011a110: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +00119cc0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00119cd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00119d10: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00119d20: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +0011a0d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0011a0f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0011a120: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0011a140: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0011a170: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0011a180: 6d6f 7665 5f69 7074 6162 6c65 732d 7065  move_iptables-pe
│ │ │ +0011a190: 7273 6973 7465 6e74 0a0a 636c 6173 7320  rsistent..class 
│ │ │ +0011a1a0: 7265 6d6f 7665 5f69 7074 6162 6c65 732d  remove_iptables-
│ │ │ +0011a1b0: 7065 7273 6973 7465 6e74 207b 0a20 2070  persistent {.  p
│ │ │ +0011a1c0: 6163 6b61 6765 207b 2027 6970 7461 626c  ackage { 'iptabl
│ │ │ +0011a1d0: 6573 2d70 6572 7369 7374 656e 7427 3a0a  es-persistent':.
│ │ │ +0011a1e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0011a1f0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0011a200: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OS │ │ │ -0016a890: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0016a8a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0016a8b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0016a8f0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0016a900: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -0016a910: 203d 205b 226e 6674 6162 6c65 7322 5d0a   = ["nftables"].
│ │ │ -0016a920: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0016a9d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0016a9e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0016aa80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0016ab20: 636c 7564 6520 656e 6162 6c65 5f6e 6674  clude enable_nft
│ │ │ -0016ab30: 6162 6c65 730a 0a63 6c61 7373 2065 6e61  ables..class ena
│ │ │ -0016ab40: 626c 655f 6e66 7461 626c 6573 207b 0a20  ble_nftables {. 
│ │ │ -0016ab50: 2073 6572 7669 6365 207b 276e 6674 6162   service {'nftab
│ │ │ -0016ab60: 6c65 7327 3a0a 2020 2020 656e 6162 6c65  les':.    enable
│ │ │ -0016ab70: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ -0016ab80: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ -0016ab90: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ -0016aba0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0016ac50: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0016ac60: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0016aa70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0016aaa0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0016aab0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0016aaf0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0016ab00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0016ad00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0016ada0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0016adb0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0016adc0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0016add0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0016ade0: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -0016adf0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0016ae00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0016ae10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0016ae20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0016ae30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0016ae40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0016ae50: 2073 6572 7669 6365 5f6e 6674 6162 6c65   service_nftable
│ │ │ -0016ae60: 735f 656e 6162 6c65 640a 0a2d 206e 616d  s_enabled..- nam
│ │ │ -0016ae70: 653a 2056 6572 6966 7920 6e66 7461 626c  e: Verify nftabl
│ │ │ -0016ae80: 6573 2053 6572 7669 6365 2069 7320 456e  es Service is En
│ │ │ -0016ae90: 6162 6c65 6420 2d20 456e 6162 6c65 2073  abled - Enable s
│ │ │ -0016aea0: 6572 7669 6365 206e 6674 6162 6c65 730a  ervice nftables.
│ │ │ -0016aeb0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -0016aec0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0016aed0: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -0016aee0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0016aef0: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -0016af00: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -0016af10: 7574 6f0a 0a20 202d 206e 616d 653a 2056  uto..  - name: V
│ │ │ -0016af20: 6572 6966 7920 6e66 7461 626c 6573 2053  erify nftables S
│ │ │ -0016af30: 6572 7669 6365 2069 7320 456e 6162 6c65  ervice is Enable
│ │ │ -0016af40: 6420 2d20 456e 6162 6c65 2053 6572 7669  d - Enable Servi
│ │ │ -0016af50: 6365 206e 6674 6162 6c65 730a 2020 2020  ce nftables.    
│ │ │ -0016af60: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0016af70: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -0016af80: 616d 653a 206e 6674 6162 6c65 730a 2020  ame: nftables.  
│ │ │ -0016af90: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ -0016afa0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0016afb0: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ -0016afc0: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ -0016afd0: 6865 6e3a 0a20 2020 202d 2027 226e 6674  hen:.    - '"nft
│ │ │ -0016afe0: 6162 6c65 7322 2069 6e20 616e 7369 626c  ables" in ansibl
│ │ │ -0016aff0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0016b000: 270a 2020 7461 6773 3a0a 2020 2d20 656e  '.  tags:.  - en
│ │ │ -0016b010: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0016b020: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0016b030: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0016b040: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0016b050: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0016b060: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0016b070: 2073 6572 7669 6365 5f6e 6674 6162 6c65   service_nftable
│ │ │ -0016b080: 735f 656e 6162 6c65 640a 2020 2d20 7370  s_enabled.  - sp
│ │ │ -0016b090: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -0016b0a0: 6f63 6b0a 2020 7768 656e 3a20 2820 226e  ock.  when: ( "n
│ │ │ -0016b0b0: 6674 6162 6c65 7322 2069 6e20 616e 7369  ftables" in ansi
│ │ │ -0016b0c0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0016b0d0: 6573 2061 6e64 2022 6c69 6e75 782d 6261  es and "linux-ba
│ │ │ -0016b0e0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0016b0f0: 6163 7473 2e70 6163 6b61 6765 730a 2020  acts.packages.  
│ │ │ -0016b100: 2020 290a 3c2f 636f 6465 3e3c 2f70 7265    ).
Remediation An │ │ │ +0016a890: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0016a8a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0016acf0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0016ad20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0016ad30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0016ad70: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0016ad80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +0016a920: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0016a940: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0016a990: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +0016a9e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0016a9f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0016aa00: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0016aa10: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0016aa20: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0016aa30: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0016aa40: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0016aa50: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0016aa60: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0016aa70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0016aa80: 2020 2d20 7365 7276 6963 655f 6e66 7461    - service_nfta
│ │ │ +0016aa90: 626c 6573 5f65 6e61 626c 6564 0a0a 2d20  bles_enabled..- 
│ │ │ +0016aaa0: 6e61 6d65 3a20 5665 7269 6679 206e 6674  name: Verify nft
│ │ │ +0016aab0: 6162 6c65 7320 5365 7276 6963 6520 6973  ables Service is
│ │ │ +0016aac0: 2045 6e61 626c 6564 202d 2045 6e61 626c   Enabled - Enabl
│ │ │ +0016aad0: 6520 7365 7276 6963 6520 6e66 7461 626c  e service nftabl
│ │ │ +0016aae0: 6573 0a20 2062 6c6f 636b 3a0a 0a20 202d  es.  block:..  -
│ │ │ +0016aaf0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0016ab00: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0016ab10: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0016ab20: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ +0016ab30: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ +0016ab40: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ +0016ab50: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ +0016ab60: 7320 5365 7276 6963 6520 6973 2045 6e61  s Service is Ena
│ │ │ +0016ab70: 626c 6564 202d 2045 6e61 626c 6520 5365  bled - Enable Se
│ │ │ +0016ab80: 7276 6963 6520 6e66 7461 626c 6573 0a20  rvice nftables. 
│ │ │ +0016ab90: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0016aba0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0016abb0: 2020 6e61 6d65 3a20 6e66 7461 626c 6573    name: nftables
│ │ │ +0016abc0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0016abd0: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +0016abe0: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +0016abf0: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +0016ac00: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +0016ac10: 6e66 7461 626c 6573 2220 696e 2061 6e73  nftables" in ans
│ │ │ +0016ac20: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0016ac30: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +0016ac40: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0016ac50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0016ac60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0016ac70: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0016ac80: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0016ac90: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0016aca0: 2020 2d20 7365 7276 6963 655f 6e66 7461    - service_nfta
│ │ │ +0016acb0: 626c 6573 5f65 6e61 626c 6564 0a20 202d  bles_enabled.  -
│ │ │ +0016acc0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +0016acd0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2028  _block.  when: (
│ │ │ +0016ace0: 2022 6e66 7461 626c 6573 2220 696e 2061   "nftables" in a
│ │ │ +0016acf0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0016ad00: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ +0016ad10: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0016ad20: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0016ad30: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).Remediati
│ │ │ +0016adf0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0016ae00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0016ae80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0016aec0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disr │ │ │ +0016a950: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0016a960: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0016a9a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0016a9b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +0016ae90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0016aeb0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0016aee0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0016af00: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +0016af30: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +0016af40: 626c 655f 6e66 7461 626c 6573 0a0a 636c  ble_nftables..cl
│ │ │ +0016af50: 6173 7320 656e 6162 6c65 5f6e 6674 6162  ass enable_nftab
│ │ │ +0016af60: 6c65 7320 7b0a 2020 7365 7276 6963 6520  les {.  service 
│ │ │ +0016af70: 7b27 6e66 7461 626c 6573 273a 0a20 2020  {'nftables':.   
│ │ │ +0016af80: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ +0016af90: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ +0016afa0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ +0016afb0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +0016b070: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0016b080: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0016b090: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +0016b0e0: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ +0016b0f0: 626c 6564 203d 205b 226e 6674 6162 6c65  bled = ["nftable
│ │ │ +0016b100: 7322 5d0a 3c2f 636f 6465 3e3c 2f70 7265  s"].
Remediation OS │ │ │ -0016beb0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0016bec0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0016bed0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0016bf10: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0016bf20: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -0016bf30: 3d20 5b22 6e66 7461 626c 6573 225d 0a3c  = ["nftables"].<
│ │ │ -0016bf40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0016bff0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -0016c000: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -0016c010: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0016c090: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0016c0b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -0016c0e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -0016c0c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0016c0d0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -0016c0f0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -0016c110: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0016c120: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -0016c150: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -0016c160: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -0016c170: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -0016c180: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -0016c190: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -0016c1a0: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -0016c1b0: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -0016c1c0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -0016c1d0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -0016c1e0: 6d65 3a20 6e66 7461 626c 6573 2e73 6572  me: nftables.ser
│ │ │ -0016c1f0: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ -0016c200: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0016c210: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ -0016c220: 2020 2020 202d 206e 616d 653a 206e 6674       - name: nft
│ │ │ -0016c230: 6162 6c65 732e 736f 636b 6574 0a20 2020  ables.socket.   
│ │ │ -0016c240: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0016c250: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -0016c260: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ -0016c320: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0016c330: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0016c3b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0016c3c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0016c3e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0016c3f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0016c410: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0016c430: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0016c460: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -0016c470: 6162 6c65 5f6e 6674 6162 6c65 730a 0a63  able_nftables..c
│ │ │ -0016c480: 6c61 7373 2064 6973 6162 6c65 5f6e 6674  lass disable_nft
│ │ │ -0016c490: 6162 6c65 7320 7b0a 2020 7365 7276 6963  ables {.  servic
│ │ │ -0016c4a0: 6520 7b27 6e66 7461 626c 6573 273a 0a20  e {'nftables':. 
│ │ │ -0016c4b0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0016c4c0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0016c4d0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0016c4e0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0016c4f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0016c5a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0016c5b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0016c5c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0016c5f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0016c660: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0016c680: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0016c6b0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0016c640: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0016c650: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0016c690: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0016c6a0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0016c6f0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0016c700: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0016c710: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0016c720: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0016c730: 6167 733a 0a20 202d 2050 4349 2d44 5353 ags:. - PCI-DSS │ │ │ -0016c740: 7634 2d31 2e32 0a20 202d 2050 4349 2d44 v4-1.2. - PCI-D │ │ │ -0016c750: 5353 7634 2d31 2e32 2e31 0a20 202d 2064 SSv4-1.2.1. - d │ │ │ -0016c760: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -0016c770: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0016c780: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0016c790: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -0016c7a0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -0016c7b0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -0016c7c0: 202d 2073 6572 7669 6365 5f6e 6674 6162 - service_nftab │ │ │ -0016c7d0: 6c65 735f 6469 7361 626c 6564 0a0a 2d20 les_disabled..- │ │ │ -0016c7e0: 6e61 6d65 3a20 5665 7269 6679 206e 6674 name: Verify nft │ │ │ -0016c7f0: 6162 6c65 7320 5365 7276 6963 6520 6973 ables Service is │ │ │ -0016c800: 2044 6973 6162 6c65 6420 2d20 4469 7361 Disabled - Disa │ │ │ -0016c810: 626c 6520 7365 7276 6963 6520 6e66 7461 ble service nfta │ │ │ -0016c820: 626c 6573 0a20 2062 6c6f 636b 3a0a 0a20 bles. block:.. │ │ │ -0016c830: 202d 206e 616d 653a 2056 6572 6966 7920 - name: Verify │ │ │ -0016c840: 6e66 7461 626c 6573 2053 6572 7669 6365 nftables Service │ │ │ -0016c850: 2069 7320 4469 7361 626c 6564 202d 2043 is Disabled - C │ │ │ -0016c860: 6f6c 6c65 6374 2073 7973 7465 6d64 2053 ollect systemd S │ │ │ -0016c870: 6572 7669 6365 7320 5072 6573 656e 7420 ervices Present │ │ │ -0016c880: 696e 0a20 2020 2020 2074 6865 2053 7973 in. the Sys │ │ │ -0016c890: 7465 6d0a 2020 2020 616e 7369 626c 652e tem. ansible. │ │ │ -0016c8a0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a builtin.command: │ │ │ -0016c8b0: 2073 7973 7465 6d63 746c 202d 7120 6c69 systemctl -q li │ │ │ -0016c8c0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d st-unit-files -- │ │ │ -0016c8d0: 7479 7065 2073 6572 7669 6365 0a20 2020 type service. │ │ │ -0016c8e0: 2072 6567 6973 7465 723a 2073 6572 7669 register: servi │ │ │ -0016c8f0: 6365 5f65 7869 7374 730a 2020 2020 6368 ce_exists. ch │ │ │ -0016c900: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ -0016c910: 650a 2020 2020 6661 696c 6564 5f77 6865 e. failed_whe │ │ │ -0016c920: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -0016c930: 732e 7263 206e 6f74 2069 6e20 5b30 2c20 s.rc not in [0, │ │ │ -0016c940: 315d 0a20 2020 2063 6865 636b 5f6d 6f64 1]. check_mod │ │ │ -0016c950: 653a 2066 616c 7365 0a0a 2020 2d20 6e61 e: false.. - na │ │ │ -0016c960: 6d65 3a20 5665 7269 6679 206e 6674 6162 me: Verify nftab │ │ │ -0016c970: 6c65 7320 5365 7276 6963 6520 6973 2044 les Service is D │ │ │ -0016c980: 6973 6162 6c65 6420 2d20 456e 7375 7265 isabled - Ensure │ │ │ -0016c990: 206e 6674 6162 6c65 732e 7365 7276 6963 nftables.servic │ │ │ -0016c9a0: 6520 6973 204d 6173 6b65 640a 2020 2020 e is Masked. │ │ │ -0016c9b0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -0016c9c0: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -0016c9d0: 616d 653a 206e 6674 6162 6c65 732e 7365 ame: nftables.se │ │ │ -0016c9e0: 7276 6963 650a 2020 2020 2020 7374 6174 rvice. stat │ │ │ -0016c9f0: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ -0016ca00: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ -0016ca10: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ -0016ca20: 7565 0a20 2020 2077 6865 6e3a 2073 6572 ue. when: ser │ │ │ -0016ca30: 7669 6365 5f65 7869 7374 732e 7374 646f vice_exists.stdo │ │ │ -0016ca40: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ -0016ca50: 6368 2822 6e66 7461 626c 6573 2e73 6572 ch("nftables.ser │ │ │ -0016ca60: 7669 6365 222c 206d 756c 7469 6c69 6e65 vice", multiline │ │ │ -0016ca70: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65 =True).. - name │ │ │ -0016ca80: 3a20 556e 6974 2053 6f63 6b65 7420 4578 : Unit Socket Ex │ │ │ -0016ca90: 6973 7473 202d 206e 6674 6162 6c65 732e ists - nftables. │ │ │ -0016caa0: 736f 636b 6574 0a20 2020 2061 6e73 6962 socket. ansib │ │ │ -0016cab0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -0016cac0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -0016cad0: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -0016cae0: 206e 6674 6162 6c65 732e 736f 636b 6574 nftables.socket │ │ │ -0016caf0: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -0016cb00: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -0016cb10: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ -0016cb20: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ -0016cb30: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ -0016cb40: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ -0016cb50: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -0016cb60: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -0016cb70: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -0016cb80: 5665 7269 6679 206e 6674 6162 6c65 7320 Verify nftables │ │ │ -0016cb90: 5365 7276 6963 6520 6973 2044 6973 6162 Service is Disab │ │ │ -0016cba0: 6c65 6420 2d20 4469 7361 626c 6520 536f led - Disable So │ │ │ -0016cbb0: 636b 6574 206e 6674 6162 6c65 730a 2020 cket nftables. │ │ │ -0016cbc0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -0016cbd0: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -0016cbe0: 206e 616d 653a 206e 6674 6162 6c65 732e name: nftables. │ │ │ -0016cbf0: 736f 636b 6574 0a20 2020 2020 2065 6e61 socket. ena │ │ │ -0016cc00: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ -0016cc10: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -0016cc20: 0a20 2020 2020 206d 6173 6b65 643a 2074 . masked: t │ │ │ -0016cc30: 7275 650a 2020 2020 7768 656e 3a20 736f rue. when: so │ │ │ -0016cc40: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -0016cc50: 2e73 7464 6f75 745f 6c69 6e65 7320 6973 .stdout_lines is │ │ │ -0016cc60: 2073 6561 7263 6828 226e 6674 6162 6c65 search("nftable │ │ │ -0016cc70: 732e 736f 636b 6574 222c 206d 756c 7469 s.socket", multi │ │ │ -0016cc80: 6c69 6e65 3d54 7275 6529 0a20 2074 6167 line=True). tag │ │ │ -0016cc90: 733a 0a20 202d 2050 4349 2d44 5353 7634 s:. - PCI-DSSv4 │ │ │ -0016cca0: 2d31 2e32 0a20 202d 2050 4349 2d44 5353 -1.2. - PCI-DSS │ │ │ -0016ccb0: 7634 2d31 2e32 2e31 0a20 202d 2064 6973 v4-1.2.1. - dis │ │ │ -0016ccc0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0016ccd0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -0016cce0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -0016ccf0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -0016cd00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -0016cd10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -0016cd20: 2073 6572 7669 6365 5f6e 6674 6162 6c65 service_nftable │ │ │ -0016cd30: 735f 6469 7361 626c 6564 0a20 202d 2073 s_disabled. - s │ │ │ -0016cd40: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ -0016cd50: 6c6f 636b 0a20 2077 6865 6e3a 2028 2022 lock. when: ( " │ │ │ -0016cd60: 6e66 7461 626c 6573 2220 696e 2061 6e73 nftables" in ans │ │ │ -0016cd70: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -0016cd80: 6765 7320 616e 6420 226c 696e 7578 2d62 ges and "linux-b │ │ │ -0016cd90: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -0016cda0: 6661 6374 732e 7061 636b 6167 6573 0a20 facts.packages. │ │ │ -0016cdb0: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072 ).Remediation An │ │ │ +0016beb0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0016bec0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

< │ │ │ +0016bf40: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0016bf60: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0016bfb0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0016bfe0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0016c000: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0016c010: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0016c020: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0016c030: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0016c040: 2d20 5043 492d 4453 5376 342d 312e 320a  - PCI-DSSv4-1.2.
│ │ │ +0016c050: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ +0016c060: 322e 310a 2020 2d20 6469 7361 626c 655f  2.1.  - disable_
│ │ │ +0016c070: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0016c080: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0016c090: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0016c0a0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0016c0b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0016c0c0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0016c0d0: 6963 655f 6e66 7461 626c 6573 5f64 6973  ice_nftables_dis
│ │ │ +0016c0e0: 6162 6c65 640a 0a2d 206e 616d 653a 2056  abled..- name: V
│ │ │ +0016c0f0: 6572 6966 7920 6e66 7461 626c 6573 2053  erify nftables S
│ │ │ +0016c100: 6572 7669 6365 2069 7320 4469 7361 626c  ervice is Disabl
│ │ │ +0016c110: 6564 202d 2044 6973 6162 6c65 2073 6572  ed - Disable ser
│ │ │ +0016c120: 7669 6365 206e 6674 6162 6c65 730a 2020  vice nftables.  
│ │ │ +0016c130: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +0016c140: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ +0016c150: 7320 5365 7276 6963 6520 6973 2044 6973  s Service is Dis
│ │ │ +0016c160: 6162 6c65 6420 2d20 436f 6c6c 6563 7420  abled - Collect 
│ │ │ +0016c170: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +0016c180: 2050 7265 7365 6e74 2069 6e0a 2020 2020   Present in.    
│ │ │ +0016c190: 2020 7468 6520 5379 7374 656d 0a20 2020    the System.   
│ │ │ +0016c1a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0016c1b0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0016c1c0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0016c1d0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +0016c1e0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +0016c1f0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +0016c200: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0016c210: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0016c220: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +0016c230: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +0016c240: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +0016c250: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +0016c260: 650a 0a20 202d 206e 616d 653a 2056 6572  e..  - name: Ver
│ │ │ +0016c270: 6966 7920 6e66 7461 626c 6573 2053 6572  ify nftables Ser
│ │ │ +0016c280: 7669 6365 2069 7320 4469 7361 626c 6564  vice is Disabled
│ │ │ +0016c290: 202d 2045 6e73 7572 6520 6e66 7461 626c   - Ensure nftabl
│ │ │ +0016c2a0: 6573 2e73 6572 7669 6365 2069 7320 4d61  es.service is Ma
│ │ │ +0016c2b0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0016c2c0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0016c2d0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6e66  :.      name: nf
│ │ │ +0016c2e0: 7461 626c 6573 2e73 6572 7669 6365 0a20  tables.service. 
│ │ │ +0016c2f0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0016c300: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0016c310: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0016c320: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0016c330: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0016c340: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0016c350: 7320 6973 2073 6561 7263 6828 226e 6674  s is search("nft
│ │ │ +0016c360: 6162 6c65 732e 7365 7276 6963 6522 2c20  ables.service", 
│ │ │ +0016c370: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0016c380: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0016c390: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0016c3a0: 6e66 7461 626c 6573 2e73 6f63 6b65 740a  nftables.socket.
│ │ │ +0016c3b0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0016c3c0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0016c3d0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0016c3e0: 6e69 742d 6669 6c65 7320 6e66 7461 626c  nit-files nftabl
│ │ │ +0016c3f0: 6573 2e73 6f63 6b65 740a 2020 2020 7265  es.socket.    re
│ │ │ +0016c400: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +0016c410: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +0016c420: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0016c430: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0016c440: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0016c450: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0016c460: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0016c470: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0016c480: 202d 206e 616d 653a 2056 6572 6966 7920   - name: Verify 
│ │ │ +0016c490: 6e66 7461 626c 6573 2053 6572 7669 6365  nftables Service
│ │ │ +0016c4a0: 2069 7320 4469 7361 626c 6564 202d 2044   is Disabled - D
│ │ │ +0016c4b0: 6973 6162 6c65 2053 6f63 6b65 7420 6e66  isable Socket nf
│ │ │ +0016c4c0: 7461 626c 6573 0a20 2020 2061 6e73 6962  tables.    ansib
│ │ │ +0016c4d0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0016c4e0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0016c4f0: 6e66 7461 626c 6573 2e73 6f63 6b65 740a  nftables.socket.
│ │ │ +0016c500: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0016c510: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +0016c520: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +0016c530: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0016c540: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +0016c550: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +0016c560: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +0016c570: 2822 6e66 7461 626c 6573 2e73 6f63 6b65  ("nftables.socke
│ │ │ +0016c580: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +0016c590: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +0016c5a0: 5043 492d 4453 5376 342d 312e 320a 2020  PCI-DSSv4-1.2.  
│ │ │ +0016c5b0: 2d20 5043 492d 4453 5376 342d 312e 322e  - PCI-DSSv4-1.2.
│ │ │ +0016c5c0: 310a 2020 2d20 6469 7361 626c 655f 7374  1.  - disable_st
│ │ │ +0016c5d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0016c5e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0016c5f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0016c600: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0016c610: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0016c620: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0016c630: 655f 6e66 7461 626c 6573 5f64 6973 6162  e_nftables_disab
│ │ │ +0016c640: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0016c650: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0016c660: 7768 656e 3a20 2820 226e 6674 6162 6c65  when: ( "nftable
│ │ │ +0016c670: 7322 2069 6e20 616e 7369 626c 655f 6661  s" in ansible_fa
│ │ │ +0016c680: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ +0016c690: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ +0016c6a0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0016c6b0: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
Re │ │ │ +0016c770: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ +0016c780: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ +0016c790: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +0016bf70: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0016bf80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0016bfc0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0016bfd0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity:< │ │ │ +0016c860: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +0016c880: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0016c8b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +0016c840: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ +0016c850: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ +0016c890: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0016c8a0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ +0016c8d0: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ +0016c8e0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ +0016c8f0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ +0016c900: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ +0016c910: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ +0016c920: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ +0016c930: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ +0016c940: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ +0016c950: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ +0016c960: 653a 206e 6674 6162 6c65 732e 7365 7276  e: nftables.serv
│ │ │ +0016c970: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ +0016c980: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0016c990: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ +0016c9a0: 2020 2020 2d20 6e61 6d65 3a20 6e66 7461      - name: nfta
│ │ │ +0016c9b0: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ +0016c9c0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0016c9d0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0016c9e0: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ +0016caa0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0016cab0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0016cb40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0016cb60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0016cb70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0016cb80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0016cb90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0016cbb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0016cbf0: 626c 655f 6e66 7461 626c 6573 0a0a 636c  ble_nftables..cl
│ │ │ +0016cc00: 6173 7320 6469 7361 626c 655f 6e66 7461  ass disable_nfta
│ │ │ +0016cc10: 626c 6573 207b 0a20 2073 6572 7669 6365  bles {.  service
│ │ │ +0016cc20: 207b 276e 6674 6162 6c65 7327 3a0a 2020   {'nftables':.  
│ │ │ +0016cc30: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +0016cc40: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +0016cc50: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +0016cc60: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0016cc70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0016cd20: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0016cd30: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0016cd40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +0016cd90: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +0016cda0: 6173 6b65 6420 3d20 5b22 6e66 7461 626c  asked = ["nftabl
│ │ │ +0016cdb0: 6573 225d 0a3c 2f63 6f64 653e 3c2f 7072  es"].
Reme │ │ │ -00185110: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00185120: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00185130: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -00185180: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00185190: 735d 0a6d 6173 6b65 6420 3d20 5b22 626c s].masked = ["bl │ │ │ -001851a0: 7565 746f 6f74 6822 5d0a 3c2f 636f 6465 uetooth"].
Remedi │ │ │ -00185260: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ -00185270: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00185280: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00185320: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00185350: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00185360: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ -001853b0: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ -001853c0: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ -001853d0: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ -001853e0: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ -001853f0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ -00185400: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ -00185410: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ -00185420: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ -00185430: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ -00185440: 0a20 2020 2020 202d 206e 616d 653a 2062  .      - name: b
│ │ │ -00185450: 6c75 6574 6f6f 7468 2e73 6572 7669 6365  luetooth.service
│ │ │ -00185460: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -00185470: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -00185480: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -00185490: 202d 206e 616d 653a 2062 6c75 6574 6f6f   - name: bluetoo
│ │ │ -001854a0: 7468 2e73 6f63 6b65 740a 2020 2020 2020  th.socket.      
│ │ │ -001854b0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -001854c0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -001854d0: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ -00185590: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -001855a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ -00185300: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00185330: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ -00185340: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ -00185380: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00185390: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00185620: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00185640: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00185690: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -001856c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -001856e0: 655f 626c 7565 746f 6f74 680a 0a63 6c61  e_bluetooth..cla
│ │ │ -001856f0: 7373 2064 6973 6162 6c65 5f62 6c75 6574  ss disable_bluet
│ │ │ -00185700: 6f6f 7468 207b 0a20 2073 6572 7669 6365  ooth {.  service
│ │ │ -00185710: 207b 2762 6c75 6574 6f6f 7468 273a 0a20   {'bluetooth':. 
│ │ │ -00185720: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00185730: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -00185740: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -00185750: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00185760: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00185810: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00185820: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00185830: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00185860: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:< │ │ │ -00185630: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00185650: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -001856a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -001856b0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -001858d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001858f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00185920: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001858b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001858c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00185900: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00185910: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00185960: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00185970: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00185980: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00185990: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -001859a0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -001859b0: 302d 3137 312d 332e 312e 3136 0a20 202d 0-171-3.1.16. - │ │ │ -001859c0: 204e 4953 542d 3830 302d 3533 2d41 432d NIST-800-53-AC- │ │ │ -001859d0: 3138 2833 290a 2020 2d20 4e49 5354 2d38 18(3). - NIST-8 │ │ │ -001859e0: 3030 2d35 332d 4143 2d31 3828 6129 0a20 00-53-AC-18(a). │ │ │ -001859f0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -00185a00: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ -00185a10: 3830 302d 3533 2d43 4d2d 3728 6129 0a20 800-53-CM-7(a). │ │ │ -00185a20: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -00185a30: 4d2d 3728 6229 0a20 202d 204e 4953 542d M-7(b). - NIST- │ │ │ -00185a40: 3830 302d 3533 2d4d 502d 370a 2020 2d20 800-53-MP-7. - │ │ │ -00185a50: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -00185a60: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00185a70: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00185a80: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -00185a90: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -00185aa0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -00185ab0: 2020 2d20 7365 7276 6963 655f 626c 7565 - service_blue │ │ │ -00185ac0: 746f 6f74 685f 6469 7361 626c 6564 0a0a tooth_disabled.. │ │ │ -00185ad0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ -00185ae0: 426c 7565 746f 6f74 6820 5365 7276 6963 Bluetooth Servic │ │ │ -00185af0: 6520 2d20 4469 7361 626c 6520 7365 7276 e - Disable serv │ │ │ -00185b00: 6963 6520 626c 7565 746f 6f74 680a 2020 ice bluetooth. │ │ │ -00185b10: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ -00185b20: 3a20 4469 7361 626c 6520 426c 7565 746f : Disable Blueto │ │ │ -00185b30: 6f74 6820 5365 7276 6963 6520 2d20 436f oth Service - Co │ │ │ -00185b40: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ -00185b50: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ -00185b60: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ -00185b70: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00185b80: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ -00185b90: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ -00185ba0: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ -00185bb0: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ -00185bc0: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ -00185bd0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -00185be0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -00185bf0: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ -00185c00: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ -00185c10: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -00185c20: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -00185c30: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -00185c40: 6162 6c65 2042 6c75 6574 6f6f 7468 2053 able Bluetooth S │ │ │ -00185c50: 6572 7669 6365 202d 2045 6e73 7572 6520 ervice - Ensure │ │ │ -00185c60: 626c 7565 746f 6f74 682e 7365 7276 6963 bluetooth.servic │ │ │ -00185c70: 6520 6973 204d 6173 6b65 640a 2020 2020 e is Masked. │ │ │ -00185c80: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00185c90: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00185ca0: 616d 653a 2062 6c75 6574 6f6f 7468 2e73 ame: bluetooth.s │ │ │ -00185cb0: 6572 7669 6365 0a20 2020 2020 2073 7461 ervice. sta │ │ │ -00185cc0: 7465 3a20 7374 6f70 7065 640a 2020 2020 te: stopped. │ │ │ -00185cd0: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -00185ce0: 0a20 2020 2020 206d 6173 6b65 643a 2074 . masked: t │ │ │ -00185cf0: 7275 650a 2020 2020 7768 656e 3a20 7365 rue. when: se │ │ │ -00185d00: 7276 6963 655f 6578 6973 7473 2e73 7464 rvice_exists.std │ │ │ -00185d10: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ -00185d20: 7263 6828 2262 6c75 6574 6f6f 7468 2e73 rch("bluetooth.s │ │ │ -00185d30: 6572 7669 6365 222c 206d 756c 7469 6c69 ervice", multili │ │ │ -00185d40: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61 ne=True).. - na │ │ │ -00185d50: 6d65 3a20 556e 6974 2053 6f63 6b65 7420 me: Unit Socket │ │ │ -00185d60: 4578 6973 7473 202d 2062 6c75 6574 6f6f Exists - bluetoo │ │ │ -00185d70: 7468 2e73 6f63 6b65 740a 2020 2020 616e th.socket. an │ │ │ -00185d80: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ -00185d90: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ -00185da0: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ -00185db0: 6c65 7320 626c 7565 746f 6f74 682e 736f les bluetooth.so │ │ │ -00185dc0: 636b 6574 0a20 2020 2072 6567 6973 7465 cket. registe │ │ │ -00185dd0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65 r: socket_file_e │ │ │ -00185de0: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ -00185df0: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ -00185e00: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ -00185e10: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -00185e20: 732e 7263 206e 6f74 2069 6e20 5b30 2c20 s.rc not in [0, │ │ │ -00185e30: 315d 0a20 2020 2063 6865 636b 5f6d 6f64 1]. check_mod │ │ │ -00185e40: 653a 2066 616c 7365 0a0a 2020 2d20 6e61 e: false.. - na │ │ │ -00185e50: 6d65 3a20 4469 7361 626c 6520 426c 7565 me: Disable Blue │ │ │ -00185e60: 746f 6f74 6820 5365 7276 6963 6520 2d20 tooth Service - │ │ │ -00185e70: 4469 7361 626c 6520 536f 636b 6574 2062 Disable Socket b │ │ │ -00185e80: 6c75 6574 6f6f 7468 0a20 2020 2061 6e73 luetooth. ans │ │ │ -00185e90: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -00185ea0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -00185eb0: 3a20 626c 7565 746f 6f74 682e 736f 636b : bluetooth.sock │ │ │ -00185ec0: 6574 0a20 2020 2020 2065 6e61 626c 6564 et. enabled │ │ │ -00185ed0: 3a20 6661 6c73 650a 2020 2020 2020 7374 : false. st │ │ │ -00185ee0: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ -00185ef0: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -00185f00: 2020 2020 7768 656e 3a20 736f 636b 6574 when: socket │ │ │ -00185f10: 5f66 696c 655f 6578 6973 7473 2e73 7464 _file_exists.std │ │ │ -00185f20: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ -00185f30: 7263 6828 2262 6c75 6574 6f6f 7468 2e73 rch("bluetooth.s │ │ │ -00185f40: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ -00185f50: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ -00185f60: 2020 2d20 4e49 5354 2d38 3030 2d31 3731 - NIST-800-171 │ │ │ -00185f70: 2d33 2e31 2e31 360a 2020 2d20 4e49 5354 -3.1.16. - NIST │ │ │ -00185f80: 2d38 3030 2d35 332d 4143 2d31 3828 3329 -800-53-AC-18(3) │ │ │ -00185f90: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00185fa0: 2d41 432d 3138 2861 290a 2020 2d20 4e49 -AC-18(a). - NI │ │ │ -00185fb0: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -00185fc0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00185fd0: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ -00185fe0: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ -00185ff0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00186000: 332d 4d50 2d37 0a20 202d 2064 6973 6162 3-MP-7. - disab │ │ │ -00186010: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -00186020: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00186030: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -00186040: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -00186050: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -00186060: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ -00186070: 6572 7669 6365 5f62 6c75 6574 6f6f 7468 ervice_bluetooth │ │ │ -00186080: 5f64 6973 6162 6c65 640a 2020 2d20 7370 _disabled. - sp │ │ │ -00186090: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ -001860a0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69 ock. when: '"li │ │ │ -001860b0: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -001860c0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -001860d0: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072 ges'.< │ │ │ +00185130: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>

Com │ │ │ +001851b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001851e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00185200: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00185210: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00185230: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00185240: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00185260: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00185270: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00185280: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00185290: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +001852a0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +001852b0: 2d38 3030 2d31 3731 2d33 2e31 2e31 360a  -800-171-3.1.16.
│ │ │ +001852c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001852d0: 4143 2d31 3828 3329 0a20 202d 204e 4953  AC-18(3).  - NIS
│ │ │ +001852e0: 542d 3830 302d 3533 2d41 432d 3138 2861  T-800-53-AC-18(a
│ │ │ +001852f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00185300: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00185310: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00185320: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00185330: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ +00185340: 5354 2d38 3030 2d35 332d 4d50 2d37 0a20  ST-800-53-MP-7. 
│ │ │ +00185350: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00185360: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00185370: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00185380: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00185390: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +001853a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +001853b0: 6564 0a20 202d 2073 6572 7669 6365 5f62  ed.  - service_b
│ │ │ +001853c0: 6c75 6574 6f6f 7468 5f64 6973 6162 6c65  luetooth_disable
│ │ │ +001853d0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +001853e0: 6c65 2042 6c75 6574 6f6f 7468 2053 6572  le Bluetooth Ser
│ │ │ +001853f0: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +00185400: 6572 7669 6365 2062 6c75 6574 6f6f 7468  ervice bluetooth
│ │ │ +00185410: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +00185420: 616d 653a 2044 6973 6162 6c65 2042 6c75  ame: Disable Blu
│ │ │ +00185430: 6574 6f6f 7468 2053 6572 7669 6365 202d  etooth Service -
│ │ │ +00185440: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +00185450: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +00185460: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +00185470: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00185480: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00185490: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +001854a0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +001854b0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +001854c0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +001854d0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +001854e0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +001854f0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +00185500: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +00185510: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +00185520: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +00185530: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +00185540: 4469 7361 626c 6520 426c 7565 746f 6f74  Disable Bluetoot
│ │ │ +00185550: 6820 5365 7276 6963 6520 2d20 456e 7375  h Service - Ensu
│ │ │ +00185560: 7265 2062 6c75 6574 6f6f 7468 2e73 6572  re bluetooth.ser
│ │ │ +00185570: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +00185580: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00185590: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +001855a0: 2020 6e61 6d65 3a20 626c 7565 746f 6f74    name: bluetoot
│ │ │ +001855b0: 682e 7365 7276 6963 650a 2020 2020 2020  h.service.      
│ │ │ +001855c0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +001855d0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +001855e0: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +001855f0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +00185600: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +00185610: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00185620: 7365 6172 6368 2822 626c 7565 746f 6f74  search("bluetoot
│ │ │ +00185630: 682e 7365 7276 6963 6522 2c20 6d75 6c74  h.service", mult
│ │ │ +00185640: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00185650: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00185660: 6574 2045 7869 7374 7320 2d20 626c 7565  et Exists - blue
│ │ │ +00185670: 746f 6f74 682e 736f 636b 6574 0a20 2020  tooth.socket.   
│ │ │ +00185680: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00185690: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +001856a0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +001856b0: 2d66 696c 6573 2062 6c75 6574 6f6f 7468  -files bluetooth
│ │ │ +001856c0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +001856d0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +001856e0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +001856f0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00185700: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00185710: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00185720: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00185730: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00185740: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00185750: 206e 616d 653a 2044 6973 6162 6c65 2042   name: Disable B
│ │ │ +00185760: 6c75 6574 6f6f 7468 2053 6572 7669 6365  luetooth Service
│ │ │ +00185770: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +00185780: 7420 626c 7565 746f 6f74 680a 2020 2020  t bluetooth.    
│ │ │ +00185790: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +001857a0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +001857b0: 616d 653a 2062 6c75 6574 6f6f 7468 2e73  ame: bluetooth.s
│ │ │ +001857c0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +001857d0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +001857e0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +001857f0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00185800: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +00185810: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00185820: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00185830: 7365 6172 6368 2822 626c 7565 746f 6f74  search("bluetoot
│ │ │ +00185840: 682e 736f 636b 6574 222c 206d 756c 7469  h.socket", multi
│ │ │ +00185850: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +00185860: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00185870: 3137 312d 332e 312e 3136 0a20 202d 204e  171-3.1.16.  - N
│ │ │ +00185880: 4953 542d 3830 302d 3533 2d41 432d 3138  IST-800-53-AC-18
│ │ │ +00185890: 2833 290a 2020 2d20 4e49 5354 2d38 3030  (3).  - NIST-800
│ │ │ +001858a0: 2d35 332d 4143 2d31 3828 6129 0a20 202d  -53-AC-18(a).  -
│ │ │ +001858b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +001858c0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +001858d0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +001858e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +001858f0: 3728 6229 0a20 202d 204e 4953 542d 3830  7(b).  - NIST-80
│ │ │ +00185900: 302d 3533 2d4d 502d 370a 2020 2d20 6469  0-53-MP-7.  - di
│ │ │ +00185910: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00185920: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00185930: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00185940: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00185950: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00185960: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00185970: 2d20 7365 7276 6963 655f 626c 7565 746f  - service_blueto
│ │ │ +00185980: 6f74 685f 6469 7361 626c 6564 0a20 202d  oth_disabled.  -
│ │ │ +00185990: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +001859a0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +001859b0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +001859c0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +001859d0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +001859e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00185a90: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ +00185aa0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ +00185ba0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +00185be0: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +00185bf0: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +00185c00: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +00185c10: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +00185c20: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +00185c30: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +00185c40: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +00185c50: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +00185c60: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +00185c70: 2020 2020 202d 206e 616d 653a 2062 6c75       - name: blu
│ │ │ +00185c80: 6574 6f6f 7468 2e73 6572 7669 6365 0a20  etooth.service. 
│ │ │ +00185c90: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +00185ca0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +00185cb0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +00185cc0: 206e 616d 653a 2062 6c75 6574 6f6f 7468   name: bluetooth
│ │ │ +00185cd0: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +00185ce0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00185cf0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +00185d00: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +00185d10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00185dc0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00185dd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Comp │ │ │ +00185b30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00185b40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00185b60: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +00185b70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +00185bb0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00185bc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +00185ea0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00185eb0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00185f00: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +00185f10: 626c 7565 746f 6f74 680a 0a63 6c61 7373  bluetooth..class
│ │ │ +00185f20: 2064 6973 6162 6c65 5f62 6c75 6574 6f6f   disable_bluetoo
│ │ │ +00185f30: 7468 207b 0a20 2073 6572 7669 6365 207b  th {.  service {
│ │ │ +00185f40: 2762 6c75 6574 6f6f 7468 273a 0a20 2020  'bluetooth':.   
│ │ │ +00185f50: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +00185f60: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +00185f70: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +00185f80: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ +00186040: 6f6e 204f 5342 7569 6c64 2042 6c75 6570  on OSBuild Bluep
│ │ │ +00186050: 7269 6e74 2073 6e69 7070 6574 20e2 87b2  rint snippet ...
│ │ │ +00186060: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
.[customizati
│ │ │ +001860b0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +001860c0: 736b 6564 203d 205b 2262 6c75 6574 6f6f  sked = ["bluetoo
│ │ │ +001860d0: 7468 225d 0a3c 2f63 6f64 653e 3c2f 7072  th"].
Remediat │ │ │ -001f0450: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001f0460: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001f04e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -001f0570: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -001f0580: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00185e80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00185e90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00185ed0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00185ee0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -001f04f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001f0500: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -001f0540: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001f0550: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -001f05a0: 7265 6d6f 7665 5f61 7574 6f66 730a 0a63  remove_autofs..c
│ │ │ -001f05b0: 6c61 7373 2072 656d 6f76 655f 6175 746f  lass remove_auto
│ │ │ -001f05c0: 6673 207b 0a20 2070 6163 6b61 6765 207b  fs {.  package {
│ │ │ -001f05d0: 2027 6175 746f 6673 273a 0a20 2020 2065   'autofs':.    e
│ │ │ -001f05e0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -001f05f0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -001f0610: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001f0620: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001f0630: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001f0640: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001f0650: 6437 3334 2220 7461 6269 6e64 6578 3d22 d734" tabindex=" │ │ │ -001f0660: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001f0670: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001f0680: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -001f0690: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001f06a0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001f06b0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -001f06c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001f06d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -001f0750: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001f0780: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001f07a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001f07b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001f07d0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001f07e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -001f0800: 6d65 3a20 2752 656d 6f76 6520 6175 746f  me: 'Remove auto
│ │ │ -001f0810: 6673 2050 6163 6b61 6765 3a20 456e 7375  fs Package: Ensu
│ │ │ -001f0820: 7265 2061 7574 6f66 7320 6973 2072 656d  re autofs is rem
│ │ │ -001f0830: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -001f0840: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -001f0850: 0a20 2020 206e 616d 653a 2061 7574 6f66  .    name: autof
│ │ │ -001f0860: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ -001f0870: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -001f0880: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -001f0890: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001f08a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001f08b0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -001f08c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -001f08d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001f08e0: 2070 6163 6b61 6765 5f61 7574 6f66 735f   package_autofs_
│ │ │ -001f08f0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +001f0450: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +001f0460: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +001f0470: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001f0480: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001f0490: 7365 2220 6964 3d22 6964 3733 3322 3e3c se" id="id733">< │ │ │ +001f04a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001f04b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +001f04c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +001f04d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001f04e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +001f04f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +001f0500: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001f0540: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001f0550: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001f0570: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +001f0580: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +001f05a0: 2752 656d 6f76 6520 6175 746f 6673 2050 'Remove autofs P │ │ │ +001f05b0: 6163 6b61 6765 3a20 456e 7375 7265 2061 ackage: Ensure a │ │ │ +001f05c0: 7574 6f66 7320 6973 2072 656d 6f76 6564 utofs is removed │ │ │ +001f05d0: 270a 2020 616e 7369 626c 652e 6275 696c '. ansible.buil │ │ │ +001f05e0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +001f05f0: 206e 616d 653a 2061 7574 6f66 730a 2020 name: autofs. │ │ │ +001f0600: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +001f0610: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ +001f0620: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +001f0630: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +001f0640: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +001f0650: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ +001f0660: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +001f0670: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +001f0680: 6b61 6765 5f61 7574 6f66 735f 7265 6d6f kage_autofs_remo │ │ │ +001f0690: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
Remediation │ │ │ +001f0750: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +001f0760: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001f07e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001f0800: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001f0850: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +001f0880: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +001f07f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001f0810: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001f0860: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +001f0870: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +001f08a0: 7665 5f61 7574 6f66 730a 0a63 6c61 7373  ve_autofs..class
│ │ │ +001f08b0: 2072 656d 6f76 655f 6175 746f 6673 207b   remove_autofs {
│ │ │ +001f08c0: 0a20 2070 6163 6b61 6765 207b 2027 6175  .  package { 'au
│ │ │ +001f08d0: 746f 6673 273a 0a20 2020 2065 6e73 7572  tofs':.    ensur
│ │ │ +001f08e0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +001f08f0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  001f0900: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
│ │ │ -001f2120: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -001f2130: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -001f2140: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ -001f2190: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -001f21a0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -001f21b0: 5b22 6175 746f 6673 225d 0a3c 2f63 6f64  ["autofs"].
Remed │ │ │ -001f2270: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -001f2280: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
< │ │ │ -001f2320: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001f2330: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001f2360: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001f2370: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -001f23c0: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -001f23d0: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -001f23e0: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -001f23f0: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -001f2400: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -001f2410: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -001f2420: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -001f2430: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -001f2440: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -001f2450: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -001f2460: 6175 746f 6673 2e73 6572 7669 6365 0a20  autofs.service. 
│ │ │ -001f2470: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -001f2480: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -001f2490: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -001f24a0: 206e 616d 653a 2061 7574 6f66 732e 736f   name: autofs.so
│ │ │ -001f24b0: 636b 6574 0a20 2020 2020 2020 2065 6e61  cket.        ena
│ │ │ -001f24c0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -001f24d0: 2020 2020 6d61 736b 3a20 7472 7565 0a3c      mask: true.<
│ │ │ -001f24e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -001f2590: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -001f25a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ -001f2310: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001f2340: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -001f2350: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -001f2390: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001f23a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -001f2640: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001f2650: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001f26a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -001f26e0: 6c75 6465 2064 6973 6162 6c65 5f61 7574  lude disable_aut
│ │ │ -001f26f0: 6f66 730a 0a63 6c61 7373 2064 6973 6162  ofs..class disab
│ │ │ -001f2700: 6c65 5f61 7574 6f66 7320 7b0a 2020 7365  le_autofs {.  se
│ │ │ -001f2710: 7276 6963 6520 7b27 6175 746f 6673 273a  rvice {'autofs':
│ │ │ -001f2720: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -001f2730: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -001f2740: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -001f2750: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -001f2810: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -001f2820: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -001f2630: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001f2660: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001f2670: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001f26b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -001f26c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -001f28b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001f28c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001f28e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001f2900: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001f2910: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001f2950: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -001f2960: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -001f2970: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -001f2980: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -001f2990: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -001f29a0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -001f29b0: 3830 302d 3137 312d 332e 342e 360a 2020  800-171-3.4.6.  
│ │ │ -001f29c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -001f29d0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -001f29e0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -001f29f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -001f2a00: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ -001f2a10: 3030 2d35 332d 4d50 2d37 0a20 202d 2064  00-53-MP-7.  - d
│ │ │ -001f2a20: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -001f2a30: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -001f2a40: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -001f2a50: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -001f2a60: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -001f2a70: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -001f2a80: 202d 2073 6572 7669 6365 5f61 7574 6f66   - service_autof
│ │ │ -001f2a90: 735f 6469 7361 626c 6564 0a0a 2d20 6e61  s_disabled..- na
│ │ │ -001f2aa0: 6d65 3a20 4469 7361 626c 6520 7468 6520  me: Disable the 
│ │ │ -001f2ab0: 4175 746f 6d6f 756e 7465 7220 2d20 4469  Automounter - Di
│ │ │ -001f2ac0: 7361 626c 6520 7365 7276 6963 6520 6175  sable service au
│ │ │ -001f2ad0: 746f 6673 0a20 2062 6c6f 636b 3a0a 0a20  tofs.  block:.. 
│ │ │ -001f2ae0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -001f2af0: 2074 6865 2041 7574 6f6d 6f75 6e74 6572   the Automounter
│ │ │ -001f2b00: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -001f2b10: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -001f2b20: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -001f2b30: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -001f2b40: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -001f2b50: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -001f2b60: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -001f2b70: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -001f2b80: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -001f2b90: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -001f2ba0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -001f2bb0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -001f2bc0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -001f2bd0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -001f2be0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -001f2bf0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -001f2c00: 3a20 4469 7361 626c 6520 7468 6520 4175  : Disable the Au
│ │ │ -001f2c10: 746f 6d6f 756e 7465 7220 2d20 456e 7375  tomounter - Ensu
│ │ │ -001f2c20: 7265 2061 7574 6f66 732e 7365 7276 6963  re autofs.servic
│ │ │ -001f2c30: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -001f2c40: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001f2c50: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -001f2c60: 616d 653a 2061 7574 6f66 732e 7365 7276  ame: autofs.serv
│ │ │ -001f2c70: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -001f2c80: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -001f2c90: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -001f2ca0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -001f2cb0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -001f2cc0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -001f2cd0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -001f2ce0: 2822 6175 746f 6673 2e73 6572 7669 6365  ("autofs.service
│ │ │ -001f2cf0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -001f2d00: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -001f2d10: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -001f2d20: 202d 2061 7574 6f66 732e 736f 636b 6574   - autofs.socket
│ │ │ -001f2d30: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -001f2d40: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -001f2d50: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -001f2d60: 756e 6974 2d66 696c 6573 2061 7574 6f66  unit-files autof
│ │ │ -001f2d70: 732e 736f 636b 6574 0a20 2020 2072 6567  s.socket.    reg
│ │ │ -001f2d80: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -001f2d90: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -001f2da0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -001f2db0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -001f2dc0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -001f2dd0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -001f2de0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -001f2df0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -001f2e00: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -001f2e10: 7468 6520 4175 746f 6d6f 756e 7465 7220  the Automounter 
│ │ │ -001f2e20: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -001f2e30: 2061 7574 6f66 730a 2020 2020 616e 7369   autofs.    ansi
│ │ │ -001f2e40: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -001f2e50: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -001f2e60: 2061 7574 6f66 732e 736f 636b 6574 0a20   autofs.socket. 
│ │ │ -001f2e70: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -001f2e80: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -001f2e90: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -001f2ea0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -001f2eb0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -001f2ec0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -001f2ed0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -001f2ee0: 2261 7574 6f66 732e 736f 636b 6574 222c  "autofs.socket",
│ │ │ -001f2ef0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -001f2f00: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -001f2f10: 542d 3830 302d 3137 312d 332e 342e 360a  T-800-171-3.4.6.
│ │ │ -001f2f20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001f2f30: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -001f2f40: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -001f2f50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001f2f60: 434d 2d37 2862 290a 2020 2d20 4e49 5354  CM-7(b).  - NIST
│ │ │ -001f2f70: 2d38 3030 2d35 332d 4d50 2d37 0a20 202d  -800-53-MP-7.  -
│ │ │ -001f2f80: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -001f2f90: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -001f2fa0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -001f2fb0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -001f2fc0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -001f2fd0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -001f2fe0: 0a20 202d 2073 6572 7669 6365 5f61 7574  .  - service_aut
│ │ │ -001f2ff0: 6f66 735f 6469 7361 626c 6564 0a20 202d  ofs_disabled.  -
│ │ │ -001f3000: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -001f3010: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2028  _block.  when: (
│ │ │ -001f3020: 2022 6175 746f 6673 2220 696e 2061 6e73   "autofs" in ans
│ │ │ -001f3030: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -001f3040: 6765 7320 616e 6420 226c 696e 7578 2d62  ges and "linux-b
│ │ │ -001f3050: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -001f3060: 6661 6374 732e 7061 636b 6167 6573 0a20  facts.packages. 
│ │ │ -001f3070: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072     ).
< │ │ │ +001f2210: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +001f2220: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +001f2270: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +001f2280: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +001f2290: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +001f22a0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +001f22b0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +001f22c0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ +001f22d0: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ +001f22e0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +001f22f0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001f2300: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001f2310: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ +001f2320: 4953 542d 3830 302d 3533 2d4d 502d 370a  IST-800-53-MP-7.
│ │ │ +001f2330: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001f2340: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001f2350: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001f2360: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +001f2370: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +001f2380: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +001f2390: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +001f23a0: 6175 746f 6673 5f64 6973 6162 6c65 640a  autofs_disabled.
│ │ │ +001f23b0: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +001f23c0: 2074 6865 2041 7574 6f6d 6f75 6e74 6572   the Automounter
│ │ │ +001f23d0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +001f23e0: 6365 2061 7574 6f66 730a 2020 626c 6f63  ce autofs.  bloc
│ │ │ +001f23f0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +001f2400: 7361 626c 6520 7468 6520 4175 746f 6d6f  sable the Automo
│ │ │ +001f2410: 756e 7465 7220 2d20 436f 6c6c 6563 7420  unter - Collect 
│ │ │ +001f2420: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +001f2430: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +001f2440: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +001f2450: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +001f2460: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +001f2470: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +001f2480: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +001f2490: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +001f24a0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +001f24b0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +001f24c0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +001f24d0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +001f24e0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +001f24f0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +001f2500: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +001f2510: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +001f2520: 6865 2041 7574 6f6d 6f75 6e74 6572 202d  he Automounter -
│ │ │ +001f2530: 2045 6e73 7572 6520 6175 746f 6673 2e73   Ensure autofs.s
│ │ │ +001f2540: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +001f2550: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +001f2560: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +001f2570: 2020 2020 6e61 6d65 3a20 6175 746f 6673      name: autofs
│ │ │ +001f2580: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +001f2590: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +001f25a0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +001f25b0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +001f25c0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +001f25d0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +001f25e0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +001f25f0: 6561 7263 6828 2261 7574 6f66 732e 7365  earch("autofs.se
│ │ │ +001f2600: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +001f2610: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +001f2620: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +001f2630: 7869 7374 7320 2d20 6175 746f 6673 2e73  xists - autofs.s
│ │ │ +001f2640: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +001f2650: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +001f2660: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +001f2670: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +001f2680: 6175 746f 6673 2e73 6f63 6b65 740a 2020  autofs.socket.  
│ │ │ +001f2690: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +001f26a0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +001f26b0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +001f26c0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +001f26d0: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +001f26e0: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +001f26f0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +001f2700: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +001f2710: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +001f2720: 6162 6c65 2074 6865 2041 7574 6f6d 6f75  able the Automou
│ │ │ +001f2730: 6e74 6572 202d 2044 6973 6162 6c65 2053  nter - Disable S
│ │ │ +001f2740: 6f63 6b65 7420 6175 746f 6673 0a20 2020  ocket autofs.   
│ │ │ +001f2750: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +001f2760: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +001f2770: 6e61 6d65 3a20 6175 746f 6673 2e73 6f63  name: autofs.soc
│ │ │ +001f2780: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +001f2790: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +001f27a0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +001f27b0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +001f27c0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +001f27d0: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +001f27e0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +001f27f0: 6172 6368 2822 6175 746f 6673 2e73 6f63  arch("autofs.soc
│ │ │ +001f2800: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +001f2810: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +001f2820: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +001f2830: 2e34 2e36 0a20 202d 204e 4953 542d 3830  .4.6.  - NIST-80
│ │ │ +001f2840: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +001f2850: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +001f2860: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +001f2870: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +001f2880: 204e 4953 542d 3830 302d 3533 2d4d 502d   NIST-800-53-MP-
│ │ │ +001f2890: 370a 2020 2d20 6469 7361 626c 655f 7374  7.  - disable_st
│ │ │ +001f28a0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +001f28b0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +001f28c0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +001f28d0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +001f28e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +001f28f0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +001f2900: 655f 6175 746f 6673 5f64 6973 6162 6c65  e_autofs_disable
│ │ │ +001f2910: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +001f2920: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +001f2930: 656e 3a20 2820 2261 7574 6f66 7322 2069  en: ( "autofs" i
│ │ │ +001f2940: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +001f2950: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ +001f2960: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +001f2970: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +001f2980: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
Remedi │ │ │ +001f2a40: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ +001f2a50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001f2a60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +001f21f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +001f2200: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +001f2240: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +001f2250: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +001f2b00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001f2b30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +001f2b40: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ +001f2b90: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ +001f2ba0: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ +001f2bb0: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ +001f2bc0: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ +001f2bd0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ +001f2be0: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ +001f2bf0: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ +001f2c00: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ +001f2c10: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ +001f2c20: 0a20 2020 2020 202d 206e 616d 653a 2061  .      - name: a
│ │ │ +001f2c30: 7574 6f66 732e 7365 7276 6963 650a 2020  utofs.service.  
│ │ │ +001f2c40: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +001f2c50: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ +001f2c60: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ +001f2c70: 6e61 6d65 3a20 6175 746f 6673 2e73 6f63  name: autofs.soc
│ │ │ +001f2c80: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +001f2c90: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +001f2ca0: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
Re │ │ │ +001f2d60: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001f2d70: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001f2d80: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ +001f2ae0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001f2b10: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ +001f2b20: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ +001f2b60: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +001f2b70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +001f2e20: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001f2e70: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +001f2e00: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001f2e30: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001f2e50: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001f2e60: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001f2e80: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +001f2e90: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +001f2eb0: 7564 6520 6469 7361 626c 655f 6175 746f  ude disable_auto
│ │ │ +001f2ec0: 6673 0a0a 636c 6173 7320 6469 7361 626c  fs..class disabl
│ │ │ +001f2ed0: 655f 6175 746f 6673 207b 0a20 2073 6572  e_autofs {.  ser
│ │ │ +001f2ee0: 7669 6365 207b 2761 7574 6f66 7327 3a0a  vice {'autofs':.
│ │ │ +001f2ef0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +001f2f00: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +001f2f10: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +001f2f20: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +001f2fe0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +001f2ff0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +001f3000: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +001f3040: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +001f3050: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +001f3060: 0a6d 6173 6b65 6420 3d20 5b22 6175 746f  .masked = ["auto
│ │ │ +001f3070: 6673 225d 0a3c 2f63 6f64 653e 3c2f 7072  fs"].
Remediation │ │ │ -002409f0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00240a00: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -00240a60: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -00240a70: 6564 203d 205b 2261 7070 6f72 7422 5d0a  ed = ["apport"].
│ │ │ -00240a80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00240b30: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ -00240b40: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ -00240b50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00240bd0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00240bf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ -00240be0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00240c00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ -00240c30: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ -00240c50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00240c80: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ -00240c90: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ -00240ca0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ -00240cb0: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ -00240cc0: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ -00240cd0: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ -00240ce0: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ -00240cf0: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ -00240d00: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ -00240d10: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ -00240d20: 616d 653a 2061 7070 6f72 742e 7365 7276  ame: apport.serv
│ │ │ -00240d30: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ -00240d40: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00240d50: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ -00240d60: 2020 2020 2d20 6e61 6d65 3a20 6170 706f      - name: appo
│ │ │ -00240d70: 7274 2e73 6f63 6b65 740a 2020 2020 2020  rt.socket.      
│ │ │ -00240d80: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -00240d90: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -00240da0: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ -00240e60: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00240e70: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00240ef0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00240f10: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00240f60: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00240f90: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -00240fb0: 655f 6170 706f 7274 0a0a 636c 6173 7320  e_apport..class 
│ │ │ -00240fc0: 6469 7361 626c 655f 6170 706f 7274 207b  disable_apport {
│ │ │ -00240fd0: 0a20 2073 6572 7669 6365 207b 2761 7070  .  service {'app
│ │ │ -00240fe0: 6f72 7427 3a0a 2020 2020 656e 6162 6c65  ort':.    enable
│ │ │ -00240ff0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -00241000: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00241010: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -00241020: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -002410d0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002410e0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002410f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ -00240f00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00240f20: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00240f70: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00240f80: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -002411c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002411d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00241220: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00241230: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00241240: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00241250: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00241260: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00241270: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00241280: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00241290: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002412a0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002412b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002412c0: 7365 7276 6963 655f 6170 706f 7274 5f64  service_apport_d
│ │ │ -002412d0: 6973 6162 6c65 640a 2020 2d20 756e 6b6e  isabled.  - unkn
│ │ │ -002412e0: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20  own_severity..- 
│ │ │ -002412f0: 6e61 6d65 3a20 4469 7361 626c 6520 4170  name: Disable Ap
│ │ │ -00241300: 706f 7274 2053 6572 7669 6365 202d 2044  port Service - D
│ │ │ -00241310: 6973 6162 6c65 2073 6572 7669 6365 2061  isable service a
│ │ │ -00241320: 7070 6f72 740a 2020 626c 6f63 6b3a 0a0a  pport.  block:..
│ │ │ -00241330: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00241340: 6520 4170 706f 7274 2053 6572 7669 6365  e Apport Service
│ │ │ -00241350: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -00241360: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -00241370: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -00241380: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -00241390: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002413a0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002413b0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -002413c0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -002413d0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -002413e0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002413f0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00241400: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00241410: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00241420: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00241430: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00241440: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00241450: 3a20 4469 7361 626c 6520 4170 706f 7274  : Disable Apport
│ │ │ -00241460: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ -00241470: 6520 6170 706f 7274 2e73 6572 7669 6365  e apport.service
│ │ │ -00241480: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -00241490: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002414a0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002414b0: 6d65 3a20 6170 706f 7274 2e73 6572 7669  me: apport.servi
│ │ │ -002414c0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -002414d0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -002414e0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002414f0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00241500: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -00241510: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00241520: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00241530: 2261 7070 6f72 742e 7365 7276 6963 6522  "apport.service"
│ │ │ -00241540: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00241550: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ -00241560: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ -00241570: 2d20 6170 706f 7274 2e73 6f63 6b65 740a  - apport.socket.
│ │ │ -00241580: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00241590: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002415a0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002415b0: 6e69 742d 6669 6c65 7320 6170 706f 7274  nit-files apport
│ │ │ -002415c0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -002415d0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -002415e0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002415f0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00241600: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00241610: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00241620: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00241630: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00241640: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00241650: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ -00241660: 7070 6f72 7420 5365 7276 6963 6520 2d20  pport Service - 
│ │ │ -00241670: 4469 7361 626c 6520 536f 636b 6574 2061  Disable Socket a
│ │ │ -00241680: 7070 6f72 740a 2020 2020 616e 7369 626c  pport.    ansibl
│ │ │ -00241690: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -002416a0: 643a 0a20 2020 2020 206e 616d 653a 2061  d:.      name: a
│ │ │ -002416b0: 7070 6f72 742e 736f 636b 6574 0a20 2020  pport.socket.   
│ │ │ -002416c0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002416d0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -002416e0: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -002416f0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -00241700: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -00241710: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00241720: 6e65 7320 6973 2073 6561 7263 6828 2261  nes is search("a
│ │ │ -00241730: 7070 6f72 742e 736f 636b 6574 222c 206d  pport.socket", m
│ │ │ -00241740: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -00241750: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00241760: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00241770: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00241780: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00241790: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -002417a0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -002417b0: 6365 5f61 7070 6f72 745f 6469 7361 626c  ce_apport_disabl
│ │ │ -002417c0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -002417d0: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ -002417e0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -002417f0: 790a 2020 7768 656e 3a20 2722 6170 706f  y.  when: '"appo
│ │ │ -00241800: 7274 2220 696e 2061 6e73 6962 6c65 5f66  rt" in ansible_f
│ │ │ -00241810: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002409f0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00240a00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +00240ac0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00240ad0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -002411a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002411b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002411f0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00241200: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00240a90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00240ab0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00240ae0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00240b00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00240b30: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00240b40: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00240b50: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00240b60: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00240b70: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00240b80: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00240b90: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00240ba0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00240bb0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00240bc0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00240bd0: 0a20 202d 2073 6572 7669 6365 5f61 7070  .  - service_app
│ │ │ +00240be0: 6f72 745f 6469 7361 626c 6564 0a20 202d  ort_disabled.  -
│ │ │ +00240bf0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +00240c00: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ +00240c10: 6c65 2041 7070 6f72 7420 5365 7276 6963  le Apport Servic
│ │ │ +00240c20: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +00240c30: 6963 6520 6170 706f 7274 0a20 2062 6c6f  ice apport.  blo
│ │ │ +00240c40: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00240c50: 6973 6162 6c65 2041 7070 6f72 7420 5365  isable Apport Se
│ │ │ +00240c60: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ +00240c70: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +00240c80: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +00240c90: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +00240ca0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00240cb0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00240cc0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00240cd0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +00240ce0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +00240cf0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +00240d00: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00240d10: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00240d20: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00240d30: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00240d40: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00240d50: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00240d60: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ +00240d70: 7070 6f72 7420 5365 7276 6963 6520 2d20  pport Service - 
│ │ │ +00240d80: 456e 7375 7265 2061 7070 6f72 742e 7365  Ensure apport.se
│ │ │ +00240d90: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +00240da0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00240db0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00240dc0: 2020 206e 616d 653a 2061 7070 6f72 742e     name: apport.
│ │ │ +00240dd0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +00240de0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00240df0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +00240e00: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +00240e10: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +00240e20: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +00240e30: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +00240e40: 6172 6368 2822 6170 706f 7274 2e73 6572  arch("apport.ser
│ │ │ +00240e50: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +00240e60: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +00240e70: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +00240e80: 6973 7473 202d 2061 7070 6f72 742e 736f  ists - apport.so
│ │ │ +00240e90: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +00240ea0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00240eb0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00240ec0: 6973 742d 756e 6974 2d66 696c 6573 2061  ist-unit-files a
│ │ │ +00240ed0: 7070 6f72 742e 736f 636b 6574 0a20 2020  pport.socket.   
│ │ │ +00240ee0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +00240ef0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +00240f00: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00240f10: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00240f20: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +00240f30: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +00240f40: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00240f50: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00240f60: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00240f70: 626c 6520 4170 706f 7274 2053 6572 7669  ble Apport Servi
│ │ │ +00240f80: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ +00240f90: 6b65 7420 6170 706f 7274 0a20 2020 2061  ket apport.    a
│ │ │ +00240fa0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00240fb0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00240fc0: 6d65 3a20 6170 706f 7274 2e73 6f63 6b65  me: apport.socke
│ │ │ +00240fd0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +00240fe0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +00240ff0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00241000: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00241010: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +00241020: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +00241030: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00241040: 6368 2822 6170 706f 7274 2e73 6f63 6b65  ch("apport.socke
│ │ │ +00241050: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +00241060: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +00241070: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00241080: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00241090: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002410a0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +002410b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002410c0: 7365 7276 6963 655f 6170 706f 7274 5f64  service_apport_d
│ │ │ +002410d0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +002410e0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +002410f0: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365  k.  - unknown_se
│ │ │ +00241100: 7665 7269 7479 0a20 2077 6865 6e3a 2027  verity.  when: '
│ │ │ +00241110: 2261 7070 6f72 7422 2069 6e20 616e 7369  "apport" in ansi
│ │ │ +00241120: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00241130: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +002411f0: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ +00241200: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00241280: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00241290: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002412a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ +002412d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ +002412e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +002412f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ +00241300: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ +00241340: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +00241350: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +00241360: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +00241370: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +00241380: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +00241390: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +002413a0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +002413b0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +002413c0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +002413d0: 202d 206e 616d 653a 2061 7070 6f72 742e - name: apport. │ │ │ +002413e0: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +002413f0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +00241400: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +00241410: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +00241420: 6170 706f 7274 2e73 6f63 6b65 740a 2020 apport.socket. │ │ │ +00241430: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ +00241440: 616c 7365 0a20 2020 2020 2020 206d 6173 alse. mas │ │ │ +00241450: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c k: true.< │ │ │ +00241460: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +00241510: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00241520: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +002415a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002415b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002415c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00241600: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00241610: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00241630: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00241650: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +00241660: 7361 626c 655f 6170 706f 7274 0a0a 636c  sable_apport..cl
│ │ │ +00241670: 6173 7320 6469 7361 626c 655f 6170 706f  ass disable_appo
│ │ │ +00241680: 7274 207b 0a20 2073 6572 7669 6365 207b  rt {.  service {
│ │ │ +00241690: 2761 7070 6f72 7427 3a0a 2020 2020 656e  'apport':.    en
│ │ │ +002416a0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +002416b0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +002416c0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +002416d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00241790: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +002417a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +002417f0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00241800: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +00241810: 6420 3d20 5b22 6170 706f 7274 225d 0a3c  d = ["apport"].<
│ │ │  00241820: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00243400: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00243410: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -002434b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002434c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00243510: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00243550: 6e63 6c75 6465 2072 656d 6f76 655f 6176  nclude remove_av
│ │ │ -00243560: 6168 692d 6461 656d 6f6e 0a0a 636c 6173  ahi-daemon..clas
│ │ │ -00243570: 7320 7265 6d6f 7665 5f61 7661 6869 2d64  s remove_avahi-d
│ │ │ -00243580: 6165 6d6f 6e20 7b0a 2020 7061 636b 6167  aemon {.  packag
│ │ │ -00243590: 6520 7b20 2761 7661 6869 2d64 6165 6d6f  e { 'avahi-daemo
│ │ │ -002435a0: 6e27 3a0a 2020 2020 656e 7375 7265 203d  n':.    ensure =
│ │ │ -002435b0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -002435c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -00243680: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -00243690: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -00243750: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00243760: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -002434a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002434d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002434e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00243520: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00243530: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -00243720: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00243740: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00243770: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00243790: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002437c0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -002437d0: 696e 7374 616c 6c20 6176 6168 6920 5365  install avahi Se
│ │ │ -002437e0: 7276 6572 2050 6163 6b61 6765 3a20 456e  rver Package: En
│ │ │ -002437f0: 7375 7265 2061 7661 6869 2d64 6165 6d6f  sure avahi-daemo
│ │ │ -00243800: 6e20 6973 2072 656d 6f76 6564 270a 2020  n is removed'.  
│ │ │ -00243810: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00243820: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00243830: 653a 2061 7661 6869 2d64 6165 6d6f 6e0a  e: avahi-daemon.
│ │ │ -00243840: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00243850: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -00243860: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00243870: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00243880: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00243890: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002438a0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002438b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002438c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002438d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002438e0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -002438f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00243900: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00243910: 655f 6176 6168 695f 7265 6d6f 7665 640a  e_avahi_removed.
│ │ │ +00243400: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00243410: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +002434b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00243550: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00243560: 6c20 6176 6168 6920 5365 7276 6572 2050  l avahi Server P
│ │ │ +00243570: 6163 6b61 6765 3a20 456e 7375 7265 2061  ackage: Ensure a
│ │ │ +00243580: 7661 6869 2d64 6165 6d6f 6e20 6973 2072  vahi-daemon is r
│ │ │ +00243590: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +002435a0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +002435b0: 653a 0a20 2020 206e 616d 653a 2061 7661  e:.    name: ava
│ │ │ +002435c0: 6869 2d64 6165 6d6f 6e0a 2020 2020 7374  hi-daemon.    st
│ │ │ +002435d0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +002435e0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +002435f0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00243600: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00243610: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00243620: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +00243630: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00243640: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00243650: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00243660: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00243670: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00243680: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00243690: 2020 2d20 7061 636b 6167 655f 6176 6168    - package_avah
│ │ │ +002436a0: 695f 7265 6d6f 7665 640a 3c2f 636f 6465  i_removed.
Remedi │ │ │ +00243760: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00243770: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00243780: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002437b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +002434a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002434d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002434e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00243520: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00243530: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00243820: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00243840: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00243870: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00243800: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00243810: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00243850: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00243860: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002438b0: 6520 7265 6d6f 7665 5f61 7661 6869 2d64 e remove_avahi-d │ │ │ +002438c0: 6165 6d6f 6e0a 0a63 6c61 7373 2072 656d aemon..class rem │ │ │ +002438d0: 6f76 655f 6176 6168 692d 6461 656d 6f6e ove_avahi-daemon │ │ │ +002438e0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +002438f0: 6176 6168 692d 6461 656d 6f6e 273a 0a20 avahi-daemon':. │ │ │ +00243900: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +00243910: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 00243920: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

Remediatio │ │ │ -00244de0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00244df0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00244e00: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -00244e50: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -00244e60: 6b65 6420 3d20 5b22 6176 6168 692d 6461  ked = ["avahi-da
│ │ │ -00244e70: 656d 6f6e 225d 0a3c 2f63 6f64 653e 3c2f  emon"].
Remediati │ │ │ -00244f30: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -00244f40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00244ff0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ -00244fd0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00244fe0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00245000: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ -00245020: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00245030: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ -00245050: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00245060: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ -00245080: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ -00245090: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ -002450a0: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ -002450b0: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ -002450c0: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ -002450d0: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ -002450e0: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ -002450f0: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ -00245100: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ -00245110: 2020 2020 2d20 6e61 6d65 3a20 6176 6168      - name: avah
│ │ │ -00245120: 692d 6461 656d 6f6e 2e73 6572 7669 6365  i-daemon.service
│ │ │ -00245130: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -00245140: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -00245150: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -00245160: 202d 206e 616d 653a 2061 7661 6869 2d64   - name: avahi-d
│ │ │ -00245170: 6165 6d6f 6e2e 736f 636b 6574 0a20 2020  aemon.socket.   
│ │ │ -00245180: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00245190: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -002451a0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ -00245260: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00245270: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002452f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00245300: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00245320: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00245330: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00245350: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00245370: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -002453a0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -002453b0: 6162 6c65 5f61 7661 6869 2d64 6165 6d6f  able_avahi-daemo
│ │ │ -002453c0: 6e0a 0a63 6c61 7373 2064 6973 6162 6c65  n..class disable
│ │ │ -002453d0: 5f61 7661 6869 2d64 6165 6d6f 6e20 7b0a  _avahi-daemon {.
│ │ │ -002453e0: 2020 7365 7276 6963 6520 7b27 6176 6168    service {'avah
│ │ │ -002453f0: 692d 6461 656d 6f6e 273a 0a20 2020 2065  i-daemon':.    e
│ │ │ -00245400: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -00245410: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00245420: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -00245430: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -002454f0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00245500: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00245590: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002455b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002455c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002455d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002455e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00245600: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00245630: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00245640: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00245650: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00245660: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00245670: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00245680: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00245690: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002456a0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002456b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002456c0: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ -002456d0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -002456e0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -002456f0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00245700: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00245710: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00245720: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00245730: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00245740: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00245750: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ -00245760: 7661 6869 2d64 6165 6d6f 6e5f 6469 7361  vahi-daemon_disa
│ │ │ -00245770: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -00245780: 7361 626c 6520 4176 6168 6920 5365 7276  sable Avahi Serv
│ │ │ -00245790: 6572 2053 6f66 7477 6172 6520 2d20 4469  er Software - Di
│ │ │ -002457a0: 7361 626c 6520 7365 7276 6963 6520 6176  sable service av
│ │ │ -002457b0: 6168 692d 6461 656d 6f6e 0a20 2062 6c6f  ahi-daemon.  blo
│ │ │ -002457c0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -002457d0: 6973 6162 6c65 2041 7661 6869 2053 6572  isable Avahi Ser
│ │ │ -002457e0: 7665 7220 536f 6674 7761 7265 202d 2043  ver Software - C
│ │ │ -002457f0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ -00245800: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ -00245810: 696e 2074 6865 0a20 2020 2020 2053 7973  in the.      Sys
│ │ │ -00245820: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -00245830: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -00245840: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -00245850: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -00245860: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -00245870: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -00245880: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -00245890: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -002458a0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -002458b0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002458c0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -002458d0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -002458e0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -002458f0: 6d65 3a20 4469 7361 626c 6520 4176 6168  me: Disable Avah
│ │ │ -00245900: 6920 5365 7276 6572 2053 6f66 7477 6172  i Server Softwar
│ │ │ -00245910: 6520 2d20 456e 7375 7265 2061 7661 6869  e - Ensure avahi
│ │ │ -00245920: 2d64 6165 6d6f 6e2e 7365 7276 6963 6520  -daemon.service 
│ │ │ -00245930: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -00245940: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00245950: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00245960: 653a 2061 7661 6869 2d64 6165 6d6f 6e2e  e: avahi-daemon.
│ │ │ -00245970: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -00245980: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -00245990: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002459a0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -002459b0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -002459c0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -002459d0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -002459e0: 6172 6368 2822 6176 6168 692d 6461 656d  arch("avahi-daem
│ │ │ -002459f0: 6f6e 2e73 6572 7669 6365 222c 206d 756c  on.service", mul
│ │ │ -00245a00: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -00245a10: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -00245a20: 6b65 7420 4578 6973 7473 202d 2061 7661  ket Exists - ava
│ │ │ -00245a30: 6869 2d64 6165 6d6f 6e2e 736f 636b 6574  hi-daemon.socket
│ │ │ -00245a40: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00245a50: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00245a60: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00245a70: 756e 6974 2d66 696c 6573 2061 7661 6869  unit-files avahi
│ │ │ -00245a80: 2d64 6165 6d6f 6e2e 736f 636b 6574 0a20  -daemon.socket. 
│ │ │ -00245a90: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -00245aa0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -00245ab0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00245ac0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00245ad0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -00245ae0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00245af0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00245b00: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00245b10: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00245b20: 7361 626c 6520 4176 6168 6920 5365 7276  sable Avahi Serv
│ │ │ -00245b30: 6572 2053 6f66 7477 6172 6520 2d20 4469  er Software - Di
│ │ │ -00245b40: 7361 626c 6520 536f 636b 6574 2061 7661  sable Socket ava
│ │ │ -00245b50: 6869 2d64 6165 6d6f 6e0a 2020 2020 616e  hi-daemon.    an
│ │ │ -00245b60: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00245b70: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00245b80: 653a 2061 7661 6869 2d64 6165 6d6f 6e2e  e: avahi-daemon.
│ │ │ -00245b90: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -00245ba0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00245bb0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00245bc0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00245bd0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00245be0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00245bf0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00245c00: 2073 6561 7263 6828 2261 7661 6869 2d64   search("avahi-d
│ │ │ -00245c10: 6165 6d6f 6e2e 736f 636b 6574 222c 206d  aemon.socket", m
│ │ │ -00245c20: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -00245c30: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00245c40: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00245c50: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00245c60: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -00245c70: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -00245c80: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00245c90: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00245ca0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -00245cb0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00245cc0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00245cd0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00245ce0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00245cf0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00245d00: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00245d10: 7669 6365 5f61 7661 6869 2d64 6165 6d6f  vice_avahi-daemo
│ │ │ -00245d20: 6e5f 6469 7361 626c 6564 0a20 202d 2073  n_disabled.  - s
│ │ │ -00245d30: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00245d40: 6c6f 636b 0a20 2077 6865 6e3a 2028 2022  lock.  when: ( "
│ │ │ -00245d50: 6176 6168 692d 6461 656d 6f6e 2220 696e  avahi-daemon" in
│ │ │ -00245d60: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00245d70: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ -00245d80: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00245d90: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00245da0: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +00244de0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +00244df0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00244e70: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00244e80: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00244ea0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00244eb0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00244ed0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00244ef0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00244f20: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00244f30: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00244f40: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00244f50: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00244f60: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00244f70: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00244f80: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00244f90: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00244fa0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00244fb0: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ +00244fc0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +00244fd0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +00244fe0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00244ff0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00245000: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00245010: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00245020: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00245030: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00245040: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00245050: 6176 6168 692d 6461 656d 6f6e 5f64 6973  avahi-daemon_dis
│ │ │ +00245060: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +00245070: 6973 6162 6c65 2041 7661 6869 2053 6572  isable Avahi Ser
│ │ │ +00245080: 7665 7220 536f 6674 7761 7265 202d 2044  ver Software - D
│ │ │ +00245090: 6973 6162 6c65 2073 6572 7669 6365 2061  isable service a
│ │ │ +002450a0: 7661 6869 2d64 6165 6d6f 6e0a 2020 626c  vahi-daemon.  bl
│ │ │ +002450b0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +002450c0: 4469 7361 626c 6520 4176 6168 6920 5365  Disable Avahi Se
│ │ │ +002450d0: 7276 6572 2053 6f66 7477 6172 6520 2d20  rver Software - 
│ │ │ +002450e0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +002450f0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +00245100: 2069 6e20 7468 650a 2020 2020 2020 5379   in the.      Sy
│ │ │ +00245110: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +00245120: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00245130: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00245140: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +00245150: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +00245160: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +00245170: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +00245180: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +00245190: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002451a0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002451b0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002451c0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002451d0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002451e0: 616d 653a 2044 6973 6162 6c65 2041 7661  ame: Disable Ava
│ │ │ +002451f0: 6869 2053 6572 7665 7220 536f 6674 7761  hi Server Softwa
│ │ │ +00245200: 7265 202d 2045 6e73 7572 6520 6176 6168  re - Ensure avah
│ │ │ +00245210: 692d 6461 656d 6f6e 2e73 6572 7669 6365  i-daemon.service
│ │ │ +00245220: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00245230: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00245240: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00245250: 6d65 3a20 6176 6168 692d 6461 656d 6f6e  me: avahi-daemon
│ │ │ +00245260: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +00245270: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00245280: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00245290: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +002452a0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +002452b0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +002452c0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +002452d0: 6561 7263 6828 2261 7661 6869 2d64 6165  earch("avahi-dae
│ │ │ +002452e0: 6d6f 6e2e 7365 7276 6963 6522 2c20 6d75  mon.service", mu
│ │ │ +002452f0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +00245300: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +00245310: 636b 6574 2045 7869 7374 7320 2d20 6176  cket Exists - av
│ │ │ +00245320: 6168 692d 6461 656d 6f6e 2e73 6f63 6b65  ahi-daemon.socke
│ │ │ +00245330: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +00245340: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00245350: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00245360: 2d75 6e69 742d 6669 6c65 7320 6176 6168  -unit-files avah
│ │ │ +00245370: 692d 6461 656d 6f6e 2e73 6f63 6b65 740a  i-daemon.socket.
│ │ │ +00245380: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +00245390: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002453a0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +002453b0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +002453c0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +002453d0: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +002453e0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002453f0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00245400: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00245410: 6973 6162 6c65 2041 7661 6869 2053 6572  isable Avahi Ser
│ │ │ +00245420: 7665 7220 536f 6674 7761 7265 202d 2044  ver Software - D
│ │ │ +00245430: 6973 6162 6c65 2053 6f63 6b65 7420 6176  isable Socket av
│ │ │ +00245440: 6168 692d 6461 656d 6f6e 0a20 2020 2061  ahi-daemon.    a
│ │ │ +00245450: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00245460: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00245470: 6d65 3a20 6176 6168 692d 6461 656d 6f6e  me: avahi-daemon
│ │ │ +00245480: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +00245490: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002454a0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002454b0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +002454c0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +002454d0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002454e0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002454f0: 7320 7365 6172 6368 2822 6176 6168 692d  s search("avahi-
│ │ │ +00245500: 6461 656d 6f6e 2e73 6f63 6b65 7422 2c20  daemon.socket", 
│ │ │ +00245510: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00245520: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00245530: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00245540: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00245550: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00245560: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +00245570: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00245580: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00245590: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +002455a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002455b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002455c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002455d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002455e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002455f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00245600: 7276 6963 655f 6176 6168 692d 6461 656d  rvice_avahi-daem
│ │ │ +00245610: 6f6e 5f64 6973 6162 6c65 640a 2020 2d20  on_disabled.  - 
│ │ │ +00245620: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +00245630: 626c 6f63 6b0a 2020 7768 656e 3a20 2820  block.  when: ( 
│ │ │ +00245640: 2261 7661 6869 2d64 6165 6d6f 6e22 2069  "avahi-daemon" i
│ │ │ +00245650: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00245660: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ +00245670: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00245680: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00245690: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
Remedi │ │ │ +00245750: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ +00245760: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00245770: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00245810: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00245840: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00245850: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ +002458a0: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ +002458b0: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ +002458c0: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ +002458d0: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ +002458e0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ +002458f0: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ +00245900: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ +00245910: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ +00245920: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ +00245930: 0a20 2020 2020 202d 206e 616d 653a 2061  .      - name: a
│ │ │ +00245940: 7661 6869 2d64 6165 6d6f 6e2e 7365 7276  vahi-daemon.serv
│ │ │ +00245950: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ +00245960: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00245970: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ +00245980: 2020 2020 2d20 6e61 6d65 3a20 6176 6168      - name: avah
│ │ │ +00245990: 692d 6461 656d 6f6e 2e73 6f63 6b65 740a  i-daemon.socket.
│ │ │ +002459a0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +002459b0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +002459c0: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remedi │ │ │ +00245a80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00245a90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00245aa0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00245ad0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Co │ │ │ +002457f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00245820: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ +00245830: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ +00245870: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00245880: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00245b40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00245b60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00245b90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00245bb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00245b20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00245b30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00245b70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00245b80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00245bd0: 6469 7361 626c 655f 6176 6168 692d 6461 disable_avahi-da │ │ │ +00245be0: 656d 6f6e 0a0a 636c 6173 7320 6469 7361 emon..class disa │ │ │ +00245bf0: 626c 655f 6176 6168 692d 6461 656d 6f6e ble_avahi-daemon │ │ │ +00245c00: 207b 0a20 2073 6572 7669 6365 207b 2761 {. service {'a │ │ │ +00245c10: 7661 6869 2d64 6165 6d6f 6e27 3a0a 2020 vahi-daemon':. │ │ │ +00245c20: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +00245c30: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +00245c40: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +00245c50: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +00245c60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00245d10: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +00245d20: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +00245d30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +00245d80: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00245d90: 6173 6b65 6420 3d20 5b22 6176 6168 692d  asked = ["avahi-
│ │ │ +00245da0: 6461 656d 6f6e 225d 0a3c 2f63 6f64 653e  daemon"].
│ │ │  00245db0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediatio │ │ │ -00256530: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00256540: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00256550: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -002565a0: 6e61 6d65 203d 2022 6372 6f6e 220a 7665  name = "cron".ve
│ │ │ -002565b0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -002565d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002565e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002565f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00256600: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00256610: 6438 3839 2220 7461 6269 6e64 6578 3d22 d889" tabindex=" │ │ │ -00256620: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00256630: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00256640: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00256650: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00256660: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00256670: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00256680: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00256710: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00256720: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00256740: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00256760: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00256770: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002567b0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002567c0: 6520 696e 7374 616c 6c5f 6372 6f6e 0a0a e install_cron.. │ │ │ -002567d0: 636c 6173 7320 696e 7374 616c 6c5f 6372 class install_cr │ │ │ -002567e0: 6f6e 207b 0a20 2070 6163 6b61 6765 207b on {. package { │ │ │ -002567f0: 2027 6372 6f6e 273a 0a20 2020 2065 6e73 'cron':. ens │ │ │ -00256800: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ -00256810: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ -00256830: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002568d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002568e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002568f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00256990: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002569e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00256970: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002569a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002569c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002569d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002569f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00256a00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00256a20: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00256a30: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00256a40: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00256a50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00256a60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00256a70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00256a80: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00256a90: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00256aa0: 322e 322e 360a 2020 2d20 656e 6162 6c65  2.2.6.  - enable
│ │ │ -00256ab0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00256ac0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00256ad0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00256ae0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00256af0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00256b00: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00256b10: 6b61 6765 5f63 726f 6e5f 696e 7374 616c  kage_cron_instal
│ │ │ -00256b20: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -00256b30: 7572 6520 6372 6f6e 2069 7320 696e 7374  ure cron is inst
│ │ │ -00256b40: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -00256b50: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00256b60: 0a20 2020 206e 616d 653a 2063 726f 6e0a  .    name: cron.
│ │ │ -00256b70: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -00256b80: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00256b90: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00256ba0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00256bb0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00256bc0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00256bd0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ -00256be0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00256bf0: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ -00256c00: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00256c10: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00256c20: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00256c30: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00256c40: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00256c50: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00256c60: 2070 6163 6b61 6765 5f63 726f 6e5f 696e   package_cron_in
│ │ │ -00256c70: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00256530: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +00256540: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +002565c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002565d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002565f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00256600: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00256620: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00256640: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00256670: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00256680: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00256690: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002566a0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002566b0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002566c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002566d0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +002566e0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +002566f0: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +00256700: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00256710: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00256720: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00256730: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00256740: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00256750: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00256760: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ +00256770: 6f6e 5f69 6e73 7461 6c6c 6564 0a0a 2d20  on_installed..- 
│ │ │ +00256780: 6e61 6d65 3a20 456e 7375 7265 2063 726f  name: Ensure cro
│ │ │ +00256790: 6e20 6973 2069 6e73 7461 6c6c 6564 0a20  n is installed. 
│ │ │ +002567a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002567b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +002567c0: 6d65 3a20 6372 6f6e 0a20 2020 2073 7461  me: cron.    sta
│ │ │ +002567d0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +002567e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +002567f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00256800: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +00256810: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00256820: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00256830: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +00256840: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00256850: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ +00256860: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00256870: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00256880: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00256890: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +002568a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002568b0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +002568c0: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564  e_cron_installed
│ │ │ +002568d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00256990: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002569a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00256a70: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00256a80: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00256ad0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f63  nclude install_c
│ │ │ +00256ae0: 726f 6e0a 0a63 6c61 7373 2069 6e73 7461  ron..class insta
│ │ │ +00256af0: 6c6c 5f63 726f 6e20 7b0a 2020 7061 636b  ll_cron {.  pack
│ │ │ +00256b00: 6167 6520 7b20 2763 726f 6e27 3a0a 2020  age { 'cron':.  
│ │ │ +00256b10: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00256b20: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +00256b30: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00256b40: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00256bf0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00256c00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00256c10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00256c50: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00256c60: 203d 2022 6372 6f6e 220a 7665 7273 696f   = "cron".versio
│ │ │ +00256c70: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  00256c80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediatio │ │ │ -00257ea0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00257eb0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00257ec0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +00256a50: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00256a60: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00256aa0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00256ab0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00258090: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00258130: 636c 7564 6520 656e 6162 6c65 5f63 726f  clude enable_cro
│ │ │ -00258140: 6e0a 0a63 6c61 7373 2065 6e61 626c 655f  n..class enable_
│ │ │ -00258150: 6372 6f6e 207b 0a20 2073 6572 7669 6365  cron {.  service
│ │ │ -00258160: 207b 2763 726f 6e27 3a0a 2020 2020 656e   {'cron':.    en
│ │ │ -00258170: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ -00258180: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00258190: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ -002581a0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002581b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -00258260: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00258270: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00258080: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002580b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002580c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00258100: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00258110: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -002582f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00258310: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00258360: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00258390: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -002583b0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -002583c0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002583d0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002583e0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002583f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00258400: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -00258410: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00258420: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00258430: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00258440: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00258450: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00258460: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00258470: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ -00258480: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ -00258490: 6520 6372 6f6e 2053 6572 7669 6365 202d  e cron Service -
│ │ │ -002584a0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ -002584b0: 6372 6f6e 0a20 2062 6c6f 636b 3a0a 0a20  cron.  block:.. 
│ │ │ -002584c0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -002584d0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002584e0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -002584f0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -00258500: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -00258510: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -00258520: 6d65 3a20 456e 6162 6c65 2063 726f 6e20  me: Enable cron 
│ │ │ -00258530: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -00258540: 2053 6572 7669 6365 2063 726f 6e0a 2020   Service cron.  
│ │ │ -00258550: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00258560: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00258570: 206e 616d 653a 2063 726f 6e0a 2020 2020   name: cron.    
│ │ │ -00258580: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ -00258590: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ -002585a0: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ -002585b0: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ -002585c0: 6e3a 0a20 2020 202d 2027 2263 726f 6e22  n:.    - '"cron"
│ │ │ -002585d0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002585e0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -002585f0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00258600: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00258610: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00258620: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00258630: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00258640: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00258650: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00258660: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00258670: 202d 2073 6572 7669 6365 5f63 726f 6e5f   - service_cron_
│ │ │ -00258680: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ -00258690: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002586a0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -002586b0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -002586c0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -002586d0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00257ea0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00257eb0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00257f30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ +00257f70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ -00258300: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00258320: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00258370: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00258380: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ +00257f40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00257f60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00257f90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00257fb0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00257fe0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00257ff0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00258000: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00258010: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00258020: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00258030: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00258040: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +00258050: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00258060: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00258070: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00258080: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00258090: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +002580a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002580b0: 7365 7276 6963 655f 6372 6f6e 5f65 6e61  service_cron_ena
│ │ │ +002580c0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ +002580d0: 6162 6c65 2063 726f 6e20 5365 7276 6963  able cron Servic
│ │ │ +002580e0: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ +002580f0: 6365 2063 726f 6e0a 2020 626c 6f63 6b3a  ce cron.  block:
│ │ │ +00258100: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +00258110: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00258120: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +00258130: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00258140: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +00258150: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +00258160: 206e 616d 653a 2045 6e61 626c 6520 6372   name: Enable cr
│ │ │ +00258170: 6f6e 2053 6572 7669 6365 202d 2045 6e61  on Service - Ena
│ │ │ +00258180: 626c 6520 5365 7276 6963 6520 6372 6f6e  ble Service cron
│ │ │ +00258190: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002581a0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002581b0: 2020 2020 6e61 6d65 3a20 6372 6f6e 0a20      name: cron. 
│ │ │ +002581c0: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ +002581d0: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ +002581e0: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ +002581f0: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ +00258200: 7768 656e 3a0a 2020 2020 2d20 2722 6372  when:.    - '"cr
│ │ │ +00258210: 6f6e 2220 696e 2061 6e73 6962 6c65 5f66  on" in ansible_f
│ │ │ +00258220: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00258230: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00258240: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00258250: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00258260: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00258270: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00258280: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00258290: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +002582a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002582b0: 640a 2020 2d20 7365 7276 6963 655f 6372  d.  - service_cr
│ │ │ +002582c0: 6f6e 5f65 6e61 626c 6564 0a20 202d 2073  on_enabled.  - s
│ │ │ +002582d0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +002582e0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +002582f0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00258300: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00258310: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediatio │ │ │ +002583d0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002583e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00258470: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00258490: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002584a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002584b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002584c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002584e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +00258520: 6c65 5f63 726f 6e0a 0a63 6c61 7373 2065  le_cron..class e
│ │ │ +00258530: 6e61 626c 655f 6372 6f6e 207b 0a20 2073  nable_cron {.  s
│ │ │ +00258540: 6572 7669 6365 207b 2763 726f 6e27 3a0a  ervice {'cron':.
│ │ │ +00258550: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +00258560: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ +00258570: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ +00258580: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00258590: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00258640: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00258650: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00258660: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +002586a0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +002586b0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +002586c0: 656e 6162 6c65 6420 3d20 5b22 6372 6f6e  enabled = ["cron
│ │ │ +002586d0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 002586e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediatio │ │ │ -00274940: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00274950: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -002749e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00274a00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00274a10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00274a20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00274a30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00274a50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00274a80: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00274a90: 6d6f 7665 5f6e 6973 0a0a 636c 6173 7320  move_nis..class 
│ │ │ -00274aa0: 7265 6d6f 7665 5f6e 6973 207b 0a20 2070  remove_nis {.  p
│ │ │ -00274ab0: 6163 6b61 6765 207b 2027 6e69 7327 3a0a  ackage { 'nis':.
│ │ │ -00274ac0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00274ad0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -00274ae0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00274ba0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00274bb0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00274c80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00274c90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00274cf0: 616c 6c20 7468 6520 6e69 7320 7061 636b  all the nis pack
│ │ │ -00274d00: 6167 653a 2045 6e73 7572 6520 6e69 7320  age: Ensure nis 
│ │ │ -00274d10: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00274d20: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00274d30: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00274d40: 206e 6973 0a20 2020 2073 7461 7465 3a20   nis.    state: 
│ │ │ -00274d50: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -00274d60: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00274d70: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00274d80: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00274d90: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00274da0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00274db0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00274dc0: 2020 2d20 7061 636b 6167 655f 6e69 735f    - package_nis_
│ │ │ -00274dd0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00274940: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +00274950: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +002749d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00274a10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -00274c60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00274c70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00274cb0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00274cc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +002749e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00274a00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00274a30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00274a50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00274a80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00274a90: 6e69 6e73 7461 6c6c 2074 6865 206e 6973  ninstall the nis
│ │ │ +00274aa0: 2070 6163 6b61 6765 3a20 456e 7375 7265   package: Ensure
│ │ │ +00274ab0: 206e 6973 2069 7320 7265 6d6f 7665 6427   nis is removed'
│ │ │ +00274ac0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00274ad0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00274ae0: 6e61 6d65 3a20 6e69 730a 2020 2020 7374  name: nis.    st
│ │ │ +00274af0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00274b00: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +00274b10: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00274b20: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00274b30: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00274b40: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +00274b50: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00274b60: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00274b70: 5f6e 6973 5f72 656d 6f76 6564 0a3c 2f63  _nis_removed.
│ │ │ +00274b90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00274c30: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00274c40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00274c50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00274cd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00274d00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00274d20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00274d30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00274d50: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00274d60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00274d80: 6c75 6465 2072 656d 6f76 655f 6e69 730a  lude remove_nis.
│ │ │ +00274d90: 0a63 6c61 7373 2072 656d 6f76 655f 6e69  .class remove_ni
│ │ │ +00274da0: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ +00274db0: 276e 6973 273a 0a20 2020 2065 6e73 7572  'nis':.    ensur
│ │ │ +00274dc0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00274dd0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00274de0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Reme │ │ │ -00276b80: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00276b90: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00276c20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00276c30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00276c50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00276c70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00276c80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00276cc0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00276cd0: 7564 6520 7265 6d6f 7665 5f69 7363 2d64  ude remove_isc-d
│ │ │ -00276ce0: 6863 702d 7365 7276 6572 0a0a 636c 6173  hcp-server..clas
│ │ │ -00276cf0: 7320 7265 6d6f 7665 5f69 7363 2d64 6863  s remove_isc-dhc
│ │ │ -00276d00: 702d 7365 7276 6572 207b 0a20 2070 6163  p-server {.  pac
│ │ │ -00276d10: 6b61 6765 207b 2027 6973 632d 6468 6370  kage { 'isc-dhcp
│ │ │ -00276d20: 2d73 6572 7665 7227 3a0a 2020 2020 656e  -server':.    en
│ │ │ -00276d30: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00276d40: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00276e00: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00276e10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00276ea0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00276eb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00276ed0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00276ef0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00276f00: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00276f40: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00276f50: 653a 2027 556e 696e 7374 616c 6c20 4448  e: 'Uninstall DH
│ │ │ -00276f60: 4350 2053 6572 7665 7220 5061 636b 6167  CP Server Packag
│ │ │ -00276f70: 653a 2045 6e73 7572 6520 6973 632d 6468  e: Ensure isc-dh
│ │ │ -00276f80: 6370 2d73 6572 7665 7220 6973 2072 656d  cp-server is rem
│ │ │ -00276f90: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -00276fa0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00276fb0: 0a20 2020 206e 616d 653a 2069 7363 2d64  .    name: isc-d
│ │ │ -00276fc0: 6863 702d 7365 7276 6572 0a20 2020 2073  hcp-server.    s
│ │ │ -00276fd0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00276fe0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00276ff0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00277000: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00277010: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -00277020: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -00277030: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00277040: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00277050: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00277060: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00277070: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00277080: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00277090: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -002770a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002770b0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -002770c0: 6765 5f64 6863 705f 7265 6d6f 7665 640a  ge_dhcp_removed.
│ │ │ +00276b80: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00276b90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00276ba0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +00276c20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00276c50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00276c70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00276c80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00276ca0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00276cb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00276cd0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2044  me: 'Uninstall D
│ │ │ +00276ce0: 4843 5020 5365 7276 6572 2050 6163 6b61  HCP Server Packa
│ │ │ +00276cf0: 6765 3a20 456e 7375 7265 2069 7363 2d64  ge: Ensure isc-d
│ │ │ +00276d00: 6863 702d 7365 7276 6572 2069 7320 7265  hcp-server is re
│ │ │ +00276d10: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +00276d20: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00276d30: 3a0a 2020 2020 6e61 6d65 3a20 6973 632d  :.    name: isc-
│ │ │ +00276d40: 6468 6370 2d73 6572 7665 720a 2020 2020  dhcp-server.    
│ │ │ +00276d50: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00276d60: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00276d70: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00276d80: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00276d90: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +00276da0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +00276db0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00276dc0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00276dd0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +00276de0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00276df0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00276e00: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00276e10: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00276e20: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00276e30: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00276e40: 6167 655f 6468 6370 5f72 656d 6f76 6564  age_dhcp_removed
│ │ │ +00276e50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00276f10: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00276f20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00276ff0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00277000: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00277050: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00277060: 6973 632d 6468 6370 2d73 6572 7665 720a  isc-dhcp-server.
│ │ │ +00277070: 0a63 6c61 7373 2072 656d 6f76 655f 6973  .class remove_is
│ │ │ +00277080: 632d 6468 6370 2d73 6572 7665 7220 7b0a  c-dhcp-server {.
│ │ │ +00277090: 2020 7061 636b 6167 6520 7b20 2769 7363    package { 'isc
│ │ │ +002770a0: 2d64 6863 702d 7365 7276 6572 273a 0a20  -dhcp-server':. 
│ │ │ +002770b0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002770c0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002770d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Re │ │ │ -00277f70: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00277f80: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00277f90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00277fa0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00277fb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00277fc0: 7365 2220 6964 3d22 6964 3936 3022 3e3c se" id="id960">< │ │ │ -00277fd0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00277fe0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00277ff0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -00278000: 6468 6370 6436 225d 0a3c 2f63 6f64 653e dhcpd6"]. │ │ │ -00278010: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remedia │ │ │ -002780c0: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ -002780d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002780e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +00276fd0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00276fe0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00277020: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00277030: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Reboot:true │ │ │ -002781d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -00278210: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -00278220: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -00278230: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -00278240: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -00278250: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -00278260: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -00278270: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -00278280: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -00278290: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -002782a0: 2020 2020 2020 2d20 6e61 6d65 3a20 6468        - name: dh
│ │ │ -002782b0: 6370 6436 2e73 6572 7669 6365 0a20 2020  cpd6.service.   
│ │ │ -002782c0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002782d0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -002782e0: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -002782f0: 616d 653a 2064 6863 7064 362e 736f 636b  ame: dhcpd6.sock
│ │ │ -00278300: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -00278310: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00278320: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -00278340: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002783e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002783f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00278400: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00278160: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00278190: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -002781a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -002781e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002781f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -00278480: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002784b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002784d0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002784e0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00278500: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00278520: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00278530: 6465 2064 6973 6162 6c65 5f64 6863 7064  de disable_dhcpd
│ │ │ -00278540: 360a 0a63 6c61 7373 2064 6973 6162 6c65  6..class disable
│ │ │ -00278550: 5f64 6863 7064 3620 7b0a 2020 7365 7276  _dhcpd6 {.  serv
│ │ │ -00278560: 6963 6520 7b27 6468 6370 6436 273a 0a20  ice {'dhcpd6':. 
│ │ │ -00278570: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00278580: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -00278590: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -002785a0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -002785b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00278660: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00278670: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00278680: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002786b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00278720: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00278740: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00278770: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00278700: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00278710: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00278750: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00278760: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -002787b0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -002787c0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -002787d0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -002787e0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -002787f0: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -00278800: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -00278810: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -00278820: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00278830: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -00278840: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00278850: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ -00278860: 7669 6365 5f64 6863 7064 365f 6469 7361 vice_dhcpd6_disa │ │ │ -00278870: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469 bled..- name: Di │ │ │ -00278880: 7361 626c 6520 4448 4350 4436 2053 6572 sable DHCPD6 Ser │ │ │ -00278890: 7669 6365 202d 2044 6973 6162 6c65 2073 vice - Disable s │ │ │ -002788a0: 6572 7669 6365 2064 6863 7064 360a 2020 ervice dhcpd6. │ │ │ -002788b0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ -002788c0: 3a20 4469 7361 626c 6520 4448 4350 4436 : Disable DHCPD6 │ │ │ -002788d0: 2053 6572 7669 6365 202d 2043 6f6c 6c65 Service - Colle │ │ │ -002788e0: 6374 2073 7973 7465 6d64 2053 6572 7669 ct systemd Servi │ │ │ -002788f0: 6365 7320 5072 6573 656e 7420 696e 2074 ces Present in t │ │ │ -00278900: 6865 2053 7973 7465 6d0a 2020 2020 616e he System. an │ │ │ -00278910: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ -00278920: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ -00278930: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ -00278940: 6c65 7320 2d2d 7479 7065 2073 6572 7669 les --type servi │ │ │ -00278950: 6365 0a20 2020 2072 6567 6973 7465 723a ce. register: │ │ │ -00278960: 2073 6572 7669 6365 5f65 7869 7374 730a service_exists. │ │ │ -00278970: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ -00278980: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ -00278990: 6564 5f77 6865 6e3a 2073 6572 7669 6365 ed_when: service │ │ │ -002789a0: 5f65 7869 7374 732e 7263 206e 6f74 2069 _exists.rc not i │ │ │ -002789b0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865 n [0, 1]. che │ │ │ -002789c0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a ck_mode: false.. │ │ │ -002789d0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -002789e0: 6520 4448 4350 4436 2053 6572 7669 6365 e DHCPD6 Service │ │ │ -002789f0: 202d 2045 6e73 7572 6520 6468 6370 6436 - Ensure dhcpd6 │ │ │ -00278a00: 2e73 6572 7669 6365 2069 7320 4d61 736b .service is Mask │ │ │ -00278a10: 6564 0a20 2020 2061 6e73 6962 6c65 2e62 ed. ansible.b │ │ │ -00278a20: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -00278a30: 2020 2020 2020 6e61 6d65 3a20 6468 6370 name: dhcp │ │ │ -00278a40: 6436 2e73 6572 7669 6365 0a20 2020 2020 d6.service. │ │ │ -00278a50: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -00278a60: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ -00278a70: 616c 7365 0a20 2020 2020 206d 6173 6b65 alse. maske │ │ │ -00278a80: 643a 2074 7275 650a 2020 2020 7768 656e d: true. when │ │ │ -00278a90: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -00278aa0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973 .stdout_lines is │ │ │ -00278ab0: 2073 6561 7263 6828 2264 6863 7064 362e search("dhcpd6. │ │ │ -00278ac0: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ -00278ad0: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ -00278ae0: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ -00278af0: 2045 7869 7374 7320 2d20 6468 6370 6436 Exists - dhcpd6 │ │ │ -00278b00: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ -00278b10: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -00278b20: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -00278b30: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -00278b40: 7320 6468 6370 6436 2e73 6f63 6b65 740a s dhcpd6.socket. │ │ │ -00278b50: 2020 2020 7265 6769 7374 6572 3a20 736f register: so │ │ │ -00278b60: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -00278b70: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -00278b80: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -00278b90: 6c65 645f 7768 656e 3a20 736f 636b 6574 led_when: socket │ │ │ -00278ba0: 5f66 696c 655f 6578 6973 7473 2e72 6320 _file_exists.rc │ │ │ -00278bb0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -00278bc0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -00278bd0: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -00278be0: 6973 6162 6c65 2044 4843 5044 3620 5365 isable DHCPD6 Se │ │ │ -00278bf0: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -00278c00: 536f 636b 6574 2064 6863 7064 360a 2020 Socket dhcpd6. │ │ │ -00278c10: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00278c20: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -00278c30: 206e 616d 653a 2064 6863 7064 362e 736f name: dhcpd6.so │ │ │ -00278c40: 636b 6574 0a20 2020 2020 2065 6e61 626c cket. enabl │ │ │ -00278c50: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ -00278c60: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -00278c70: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ -00278c80: 650a 2020 2020 7768 656e 3a20 736f 636b e. when: sock │ │ │ -00278c90: 6574 5f66 696c 655f 6578 6973 7473 2e73 et_file_exists.s │ │ │ -00278ca0: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ -00278cb0: 6561 7263 6828 2264 6863 7064 362e 736f earch("dhcpd6.so │ │ │ -00278cc0: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ -00278cd0: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ -00278ce0: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ -00278cf0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -00278d00: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -00278d10: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -00278d20: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -00278d30: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -00278d40: 6564 0a20 202d 2073 6572 7669 6365 5f64 ed. - service_d │ │ │ -00278d50: 6863 7064 365f 6469 7361 626c 6564 0a20 hcpd6_disabled. │ │ │ -00278d60: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -00278d70: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ -00278d80: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -00278d90: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -00278da0: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'.

< │ │ │ +00278020: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00278030: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00278080: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002780c0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +002780d0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002780e0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002780f0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00278100: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +00278110: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00278120: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00278130: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00278140: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00278150: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00278160: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00278170: 2d20 7365 7276 6963 655f 6468 6370 6436  - service_dhcpd6
│ │ │ +00278180: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ +00278190: 653a 2044 6973 6162 6c65 2044 4843 5044  e: Disable DHCPD
│ │ │ +002781a0: 3620 5365 7276 6963 6520 2d20 4469 7361  6 Service - Disa
│ │ │ +002781b0: 626c 6520 7365 7276 6963 6520 6468 6370  ble service dhcp
│ │ │ +002781c0: 6436 0a20 2062 6c6f 636b 3a0a 0a20 202d  d6.  block:..  -
│ │ │ +002781d0: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ +002781e0: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ +002781f0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +00278200: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +00278210: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +00278220: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00278230: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00278240: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00278250: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +00278260: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +00278270: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +00278280: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00278290: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002782a0: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +002782b0: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +002782c0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002782d0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002782e0: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +002782f0: 6973 6162 6c65 2044 4843 5044 3620 5365  isable DHCPD6 Se
│ │ │ +00278300: 7276 6963 6520 2d20 456e 7375 7265 2064  rvice - Ensure d
│ │ │ +00278310: 6863 7064 362e 7365 7276 6963 6520 6973  hcpd6.service is
│ │ │ +00278320: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +00278330: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00278340: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00278350: 2064 6863 7064 362e 7365 7276 6963 650a   dhcpd6.service.
│ │ │ +00278360: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00278370: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +00278380: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00278390: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002783a0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +002783b0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002783c0: 6573 2069 7320 7365 6172 6368 2822 6468  es is search("dh
│ │ │ +002783d0: 6370 6436 2e73 6572 7669 6365 222c 206d  cpd6.service", m
│ │ │ +002783e0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +002783f0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +00278400: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ +00278410: 6863 7064 362e 736f 636b 6574 0a20 2020  hcpd6.socket.   
│ │ │ +00278420: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00278430: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00278440: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00278450: 2d66 696c 6573 2064 6863 7064 362e 736f  -files dhcpd6.so
│ │ │ +00278460: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +00278470: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +00278480: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +00278490: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002784a0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002784b0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002784c0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002784d0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002784e0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002784f0: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +00278500: 4436 2053 6572 7669 6365 202d 2044 6973  D6 Service - Dis
│ │ │ +00278510: 6162 6c65 2053 6f63 6b65 7420 6468 6370  able Socket dhcp
│ │ │ +00278520: 6436 0a20 2020 2061 6e73 6962 6c65 2e62  d6.    ansible.b
│ │ │ +00278530: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00278540: 2020 2020 2020 6e61 6d65 3a20 6468 6370        name: dhcp
│ │ │ +00278550: 6436 2e73 6f63 6b65 740a 2020 2020 2020  d6.socket.      
│ │ │ +00278560: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00278570: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00278580: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +00278590: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002785a0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +002785b0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +002785c0: 2069 7320 7365 6172 6368 2822 6468 6370   is search("dhcp
│ │ │ +002785d0: 6436 2e73 6f63 6b65 7422 2c20 6d75 6c74  d6.socket", mult
│ │ │ +002785e0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +002785f0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +00278600: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00278610: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00278620: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00278630: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00278640: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00278650: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00278660: 6963 655f 6468 6370 6436 5f64 6973 6162  ice_dhcpd6_disab
│ │ │ +00278670: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00278680: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00278690: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +002786a0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +002786b0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002786c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00278770: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +00278780: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +00278790: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +00278010: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00278040: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00278050: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00278090: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002780a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00278810: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00278830: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ +00278860: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +00278840: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00278850: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ +00278870: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ +00278890: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002788a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ +002788d0: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ +002788e0: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ +002788f0: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ +00278900: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ +00278910: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ +00278920: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ +00278930: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ +00278940: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ +00278950: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ +00278960: 6d65 3a20 6468 6370 6436 2e73 6572 7669  me: dhcpd6.servi
│ │ │ +00278970: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +00278980: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00278990: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +002789a0: 2020 202d 206e 616d 653a 2064 6863 7064     - name: dhcpd
│ │ │ +002789b0: 362e 736f 636b 6574 0a20 2020 2020 2020  6.socket.       
│ │ │ +002789c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002789d0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ +002789e0: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ +002789f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00278aa0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00278ab0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00278b30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00278b50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00278ba0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +00278bf0: 5f64 6863 7064 360a 0a63 6c61 7373 2064  _dhcpd6..class d
│ │ │ +00278c00: 6973 6162 6c65 5f64 6863 7064 3620 7b0a  isable_dhcpd6 {.
│ │ │ +00278c10: 2020 7365 7276 6963 6520 7b27 6468 6370    service {'dhcp
│ │ │ +00278c20: 6436 273a 0a20 2020 2065 6e61 626c 6520  d6':.    enable 
│ │ │ +00278c30: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +00278c40: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +00278c50: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +00278c60: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00278d10: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00278d20: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00278d30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00278d40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00278d70: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00278d80: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00278d90: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +00278da0: 2264 6863 7064 3622 5d0a 3c2f 636f 6465  "dhcpd6"].
Reme │ │ │ -0027a1a0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0027a1b0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0027a1c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -0027a210: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -0027a220: 735d 0a6d 6173 6b65 6420 3d20 5b22 6468 s].masked = ["dh │ │ │ -0027a230: 6370 6422 5d0a 3c2f 636f 6465 3e3c 2f70 cpd"].

Remediatio │ │ │ -0027a2f0: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ -0027a300: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0027a310: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0027a340: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ +00278b60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00278b70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00278bb0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00278bc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0027a3b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ -0027a390: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0027a3a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ -0027a3e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ -0027a3f0: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ -0027a430: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ -0027a440: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ -0027a450: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ -0027a460: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ -0027a470: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ -0027a480: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ -0027a490: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ -0027a4a0: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ -0027a4b0: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ -0027a4c0: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ -0027a4d0: 2020 202d 206e 616d 653a 2064 6863 7064     - name: dhcpd
│ │ │ -0027a4e0: 2e73 6572 7669 6365 0a20 2020 2020 2020  .service.       
│ │ │ -0027a4f0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0027a500: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -0027a510: 7565 0a20 2020 2020 202d 206e 616d 653a  ue.      - name:
│ │ │ -0027a520: 2064 6863 7064 2e73 6f63 6b65 740a 2020   dhcpd.socket.  
│ │ │ -0027a530: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0027a540: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -0027a550: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c  k: true.<
│ │ │ -0027a560: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0027a610: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0027a620: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0027a6a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0027a6b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027a6c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0027a700: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027a710: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0027a730: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0027a750: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -0027a760: 7361 626c 655f 6468 6370 640a 0a63 6c61  sable_dhcpd..cla
│ │ │ -0027a770: 7373 2064 6973 6162 6c65 5f64 6863 7064  ss disable_dhcpd
│ │ │ -0027a780: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ -0027a790: 6863 7064 273a 0a20 2020 2065 6e61 626c  hcpd':.    enabl
│ │ │ -0027a7a0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -0027a7b0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0027a7c0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -0027a7d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0027a890: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0027a8a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0027a970: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0027a980: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -0027a9e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0027a9f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0027aa00: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0027aa10: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0027aa20: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0027aa30: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0027aa40: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -0027aa50: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0027aa60: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -0027aa70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0027aa80: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0027aa90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0027aaa0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0027aab0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0027aac0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0027aad0: 7669 6365 5f64 6863 7064 5f64 6973 6162  vice_dhcpd_disab
│ │ │ -0027aae0: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ -0027aaf0: 6162 6c65 2044 4843 5020 5365 7276 6963  able DHCP Servic
│ │ │ -0027ab00: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -0027ab10: 6963 6520 6468 6370 640a 2020 626c 6f63  ice dhcpd.  bloc
│ │ │ -0027ab20: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -0027ab30: 7361 626c 6520 4448 4350 2053 6572 7669  sable DHCP Servi
│ │ │ -0027ab40: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -0027ab50: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -0027ab60: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -0027ab70: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -0027ab80: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0027ab90: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0027aba0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -0027abb0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -0027abc0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -0027abd0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -0027abe0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -0027abf0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -0027ac00: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0027ac10: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0027ac20: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0027ac30: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0027ac40: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ -0027ac50: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ -0027ac60: 6520 6468 6370 642e 7365 7276 6963 6520  e dhcpd.service 
│ │ │ -0027ac70: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -0027ac80: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0027ac90: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0027aca0: 653a 2064 6863 7064 2e73 6572 7669 6365  e: dhcpd.service
│ │ │ -0027acb0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -0027acc0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -0027acd0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0027ace0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -0027acf0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -0027ad00: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -0027ad10: 6e65 7320 6973 2073 6561 7263 6828 2264  nes is search("d
│ │ │ -0027ad20: 6863 7064 2e73 6572 7669 6365 222c 206d  hcpd.service", m
│ │ │ -0027ad30: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -0027ad40: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -0027ad50: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ -0027ad60: 6863 7064 2e73 6f63 6b65 740a 2020 2020  hcpd.socket.    
│ │ │ -0027ad70: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0027ad80: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0027ad90: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0027ada0: 6669 6c65 7320 6468 6370 642e 736f 636b  files dhcpd.sock
│ │ │ -0027adb0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -0027adc0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0027add0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0027ade0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0027adf0: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -0027ae00: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0027ae10: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0027ae20: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0027ae30: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0027ae40: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ -0027ae50: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0027ae60: 2053 6f63 6b65 7420 6468 6370 640a 2020   Socket dhcpd.  
│ │ │ -0027ae70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0027ae80: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -0027ae90: 206e 616d 653a 2064 6863 7064 2e73 6f63   name: dhcpd.soc
│ │ │ -0027aea0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ -0027aeb0: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ -0027aec0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -0027aed0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -0027aee0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ -0027aef0: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ -0027af00: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0027af10: 6172 6368 2822 6468 6370 642e 736f 636b  arch("dhcpd.sock
│ │ │ -0027af20: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -0027af30: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -0027af40: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0027af50: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0027af60: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -0027af70: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0027af80: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -0027af90: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0027afa0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0027afb0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0027afc0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0027afd0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0027afe0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0027aff0: 7669 6365 5f64 6863 7064 5f64 6973 6162  vice_dhcpd_disab
│ │ │ -0027b000: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -0027b010: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -0027b020: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0027b030: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0027b040: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0027a1a0: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +0027a1b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +0027a1c0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low
Disru │ │ │ -0027a950: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0027a960: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0027a9a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0027a9b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +0027a240: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027a270: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027a290: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027a2a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027a2c0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0027a2d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0027a2f0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0027a300: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0027a310: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0027a320: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0027a330: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0027a340: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0027a350: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0027a360: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0027a370: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0027a380: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0027a390: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0027a3a0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0027a3b0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0027a3c0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0027a3d0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0027a3e0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0027a3f0: 6468 6370 645f 6469 7361 626c 6564 0a0a  dhcpd_disabled..
│ │ │ +0027a400: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0027a410: 4448 4350 2053 6572 7669 6365 202d 2044  DHCP Service - D
│ │ │ +0027a420: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ +0027a430: 6863 7064 0a20 2062 6c6f 636b 3a0a 0a20  hcpd.  block:.. 
│ │ │ +0027a440: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0027a450: 2044 4843 5020 5365 7276 6963 6520 2d20   DHCP Service - 
│ │ │ +0027a460: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +0027a470: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +0027a480: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +0027a490: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0027a4a0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0027a4b0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0027a4c0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +0027a4d0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +0027a4e0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +0027a4f0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0027a500: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0027a510: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +0027a520: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +0027a530: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +0027a540: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0027a550: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +0027a560: 6973 6162 6c65 2044 4843 5020 5365 7276  isable DHCP Serv
│ │ │ +0027a570: 6963 6520 2d20 456e 7375 7265 2064 6863  ice - Ensure dhc
│ │ │ +0027a580: 7064 2e73 6572 7669 6365 2069 7320 4d61  pd.service is Ma
│ │ │ +0027a590: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0027a5a0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0027a5b0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6468  :.      name: dh
│ │ │ +0027a5c0: 6370 642e 7365 7276 6963 650a 2020 2020  cpd.service.    
│ │ │ +0027a5d0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0027a5e0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0027a5f0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +0027a600: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0027a610: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0027a620: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +0027a630: 7320 7365 6172 6368 2822 6468 6370 642e  s search("dhcpd.
│ │ │ +0027a640: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +0027a650: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +0027a660: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +0027a670: 2045 7869 7374 7320 2d20 6468 6370 642e   Exists - dhcpd.
│ │ │ +0027a680: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +0027a690: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0027a6a0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +0027a6b0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +0027a6c0: 2064 6863 7064 2e73 6f63 6b65 740a 2020   dhcpd.socket.  
│ │ │ +0027a6d0: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +0027a6e0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +0027a6f0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +0027a700: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +0027a710: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +0027a720: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +0027a730: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +0027a740: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +0027a750: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +0027a760: 6162 6c65 2044 4843 5020 5365 7276 6963  able DHCP Servic
│ │ │ +0027a770: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +0027a780: 6574 2064 6863 7064 0a20 2020 2061 6e73  et dhcpd.    ans
│ │ │ +0027a790: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0027a7a0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0027a7b0: 3a20 6468 6370 642e 736f 636b 6574 0a20  : dhcpd.socket. 
│ │ │ +0027a7c0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0027a7d0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +0027a7e0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +0027a7f0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0027a800: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0027a810: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0027a820: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0027a830: 2264 6863 7064 2e73 6f63 6b65 7422 2c20  "dhcpd.socket", 
│ │ │ +0027a840: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0027a850: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0027a860: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0027a870: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0027a880: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0027a890: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0027a8a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0027a8b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0027a8c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0027a8d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0027a8e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0027a8f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0027a900: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0027a910: 6468 6370 645f 6469 7361 626c 6564 0a20  dhcpd_disabled. 
│ │ │ +0027a920: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +0027a930: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +0027a940: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0027a950: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0027a960: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedi │ │ │ +0027aa20: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ +0027aa30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0027aa40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0027aae0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0027ab10: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0027ab20: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ +0027ab70: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ +0027ab80: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ +0027ab90: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ +0027aba0: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ +0027abb0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ +0027abc0: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ +0027abd0: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ +0027abe0: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ +0027abf0: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ +0027ac00: 0a20 2020 2020 202d 206e 616d 653a 2064  .      - name: d
│ │ │ +0027ac10: 6863 7064 2e73 6572 7669 6365 0a20 2020  hcpd.service.   
│ │ │ +0027ac20: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0027ac30: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +0027ac40: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ +0027ac50: 616d 653a 2064 6863 7064 2e73 6f63 6b65  ame: dhcpd.socke
│ │ │ +0027ac60: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ +0027ac70: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +0027ac80: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ +0027aca0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0027acb0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0027acc0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0027acd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0027ace0: 6439 3638 2220 7461 6269 6e64 6578 3d22 d968" tabindex=" │ │ │ +0027acf0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0027ad00: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0027ad10: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0027ad20: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0027ad30: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0027ad40: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0027ad50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Co │ │ │ +0027aac0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0027aaf0: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ +0027ab00: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ +0027ab40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0027ab50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +0027ade0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0027adf0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0027ae10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0027ae30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0027ae40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0027ae80: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0027ae90: 6520 6469 7361 626c 655f 6468 6370 640a e disable_dhcpd. │ │ │ +0027aea0: 0a63 6c61 7373 2064 6973 6162 6c65 5f64 .class disable_d │ │ │ +0027aeb0: 6863 7064 207b 0a20 2073 6572 7669 6365 hcpd {. service │ │ │ +0027aec0: 207b 2764 6863 7064 273a 0a20 2020 2065 {'dhcpd':. e │ │ │ +0027aed0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ +0027aee0: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ +0027aef0: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ +0027af00: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediation │ │ │ +0027afc0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0027afd0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +0027b030: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +0027b040: 6564 203d 205b 2264 6863 7064 225d 0a3c  ed = ["dhcpd"].<
│ │ │  0027b050: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Reme │ │ │ -0027cbe0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0027cbf0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0027cc80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0027cc90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0027ccb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0027ccd0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0027cce0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0027cd20: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0027cd30: 7564 6520 7265 6d6f 7665 5f62 696e 6439  ude remove_bind9
│ │ │ -0027cd40: 0a0a 636c 6173 7320 7265 6d6f 7665 5f62  ..class remove_b
│ │ │ -0027cd50: 696e 6439 207b 0a20 2070 6163 6b61 6765  ind9 {.  package
│ │ │ -0027cd60: 207b 2027 6269 6e64 3927 3a0a 2020 2020   { 'bind9':.    
│ │ │ -0027cd70: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -0027cd80: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -0027cda0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0027ce40: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0027ce50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027ce60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0027cf00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0027cf50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0027cf90: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0027cfa0: 6269 6e64 2050 6163 6b61 6765 3a20 456e  bind Package: En
│ │ │ -0027cfb0: 7375 7265 2062 696e 6439 2069 7320 7265  sure bind9 is re
│ │ │ -0027cfc0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0027cfd0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0027cfe0: 3a0a 2020 2020 6e61 6d65 3a20 6269 6e64  :.    name: bind
│ │ │ -0027cff0: 390a 2020 2020 7374 6174 653a 2061 6273  9.    state: abs
│ │ │ -0027d000: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0027d010: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0027d020: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0027d030: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0027d040: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0027d050: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -0027d060: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0027d070: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0027d080: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0027d090: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -0027d0a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0027d0b0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0027d0c0: 5f62 696e 645f 7265 6d6f 7665 640a 3c2f  _bind_removed.<
│ │ │ +0027cc00: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Co │ │ │ -0027cee0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0027cf10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0027cf30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0027cf40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0027cf60: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0027cf70: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +0027cc80: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027ccb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027ccd0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027cce0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027cd00: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0027cd10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0027cd30: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2062  me: 'Uninstall b
│ │ │ +0027cd40: 696e 6420 5061 636b 6167 653a 2045 6e73  ind Package: Ens
│ │ │ +0027cd50: 7572 6520 6269 6e64 3920 6973 2072 656d  ure bind9 is rem
│ │ │ +0027cd60: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0027cd70: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0027cd80: 0a20 2020 206e 616d 653a 2062 696e 6439  .    name: bind9
│ │ │ +0027cd90: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0027cda0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +0027cdb0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0027cdc0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0027cdd0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0027cde0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0027cdf0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0027ce00: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0027ce10: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0027ce20: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0027ce30: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +0027ce40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0027ce50: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0027ce60: 6269 6e64 5f72 656d 6f76 6564 0a3c 2f63  bind_removed.
│ │ │ +0027ce80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0027cf20: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0027cf30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0027cf40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0027cfc0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027cff0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027d010: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027d020: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027d040: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0027d050: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0027d070: 6c75 6465 2072 656d 6f76 655f 6269 6e64  lude remove_bind
│ │ │ +0027d080: 390a 0a63 6c61 7373 2072 656d 6f76 655f  9..class remove_
│ │ │ +0027d090: 6269 6e64 3920 7b0a 2020 7061 636b 6167  bind9 {.  packag
│ │ │ +0027d0a0: 6520 7b20 2762 696e 6439 273a 0a20 2020  e { 'bind9':.   
│ │ │ +0027d0b0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +0027d0c0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediation Pup │ │ │ -0027df40: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0027df50: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0027e020: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0027e030: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0027e080: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0027e090: 646e 736d 6173 710a 0a63 6c61 7373 2072  dnsmasq..class r
│ │ │ -0027e0a0: 656d 6f76 655f 646e 736d 6173 7120 7b0a  emove_dnsmasq {.
│ │ │ -0027e0b0: 2020 7061 636b 6167 6520 7b20 2764 6e73    package { 'dns
│ │ │ -0027e0c0: 6d61 7371 273a 0a20 2020 2065 6e73 7572  masq':.    ensur
│ │ │ -0027e0d0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0027e0e0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0027e0f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -0027e1a0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -0027e1b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0027e1c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027e1d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027e1e0: 7365 2220 6964 3d22 6964 3937 3722 3e3c se" id="id977">< │ │ │ -0027e1f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0027e200: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0027e210: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0027e220: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0027e230: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0027e2c0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0027e2d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ -0027e000: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0027e010: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0027e050: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0027e060: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -0027e240: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0027e250: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0027e290: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0027e2a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -0027e2f0: 2755 6e69 6e73 7461 6c6c 2064 6e73 6d61 'Uninstall dnsma │ │ │ -0027e300: 7371 2050 6163 6b61 6765 3a20 456e 7375 sq Package: Ensu │ │ │ -0027e310: 7265 2064 6e73 6d61 7371 2069 7320 7265 re dnsmasq is re │ │ │ -0027e320: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ -0027e330: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -0027e340: 3a0a 2020 2020 6e61 6d65 3a20 646e 736d :. name: dnsm │ │ │ -0027e350: 6173 710a 2020 2020 7374 6174 653a 2061 asq. state: a │ │ │ -0027e360: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ -0027e370: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -0027e380: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -0027e390: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -0027e3a0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77 sruption. - low │ │ │ -0027e3b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -0027e3c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -0027e3d0: 202d 2070 6163 6b61 6765 5f64 6e73 6d61 - package_dnsma │ │ │ -0027e3e0: 7371 5f72 656d 6f76 6564 0a3c 2f63 6f64 sq_removed.Remediation Ans │ │ │ +0027df40: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0027df50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0027e020: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0027e030: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +0027e090: 616c 6c20 646e 736d 6173 7120 5061 636b  all dnsmasq Pack
│ │ │ +0027e0a0: 6167 653a 2045 6e73 7572 6520 646e 736d  age: Ensure dnsm
│ │ │ +0027e0b0: 6173 7120 6973 2072 656d 6f76 6564 270a  asq is removed'.
│ │ │ +0027e0c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0027e0d0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0027e0e0: 616d 653a 2064 6e73 6d61 7371 0a20 2020  ame: dnsmasq.   
│ │ │ +0027e0f0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0027e100: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +0027e110: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0027e120: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0027e130: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0027e140: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +0027e150: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0027e160: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0027e170: 6167 655f 646e 736d 6173 715f 7265 6d6f  age_dnsmasq_remo
│ │ │ +0027e180: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0027e240: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0027e250: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +0027e000: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0027e010: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0027e050: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0027e060: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0027e2d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0027e2f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0027e340: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0027e370: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0027e2e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0027e300: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0027e350: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0027e360: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0027e390: 7665 5f64 6e73 6d61 7371 0a0a 636c 6173  ve_dnsmasq..clas
│ │ │ +0027e3a0: 7320 7265 6d6f 7665 5f64 6e73 6d61 7371  s remove_dnsmasq
│ │ │ +0027e3b0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0027e3c0: 646e 736d 6173 7127 3a0a 2020 2020 656e  dnsmasq':.    en
│ │ │ +0027e3d0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0027e3e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Re │ │ │ -0027f1f0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0027f200: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0027f210: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0027f220: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027f230: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027f240: 7365 2220 6964 3d22 6964 3938 3022 3e3c se" id="id980">< │ │ │ -0027f250: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0027f260: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0027f270: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0027f280: 646e 736d 6173 7122 5d0a 3c2f 636f 6465 dnsmasq"].
Remedi │ │ │ -0027f340: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ -0027f350: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027f360: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0027f400: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0027f430: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0027f440: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ -0027f490: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ -0027f4a0: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ -0027f4b0: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ -0027f4c0: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ -0027f4d0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ -0027f4e0: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ -0027f4f0: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ -0027f500: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ -0027f510: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ -0027f520: 0a20 2020 2020 202d 206e 616d 653a 2064  .      - name: d
│ │ │ -0027f530: 6e73 6d61 7371 2e73 6572 7669 6365 0a20  nsmasq.service. 
│ │ │ -0027f540: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -0027f550: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -0027f560: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -0027f570: 206e 616d 653a 2064 6e73 6d61 7371 2e73   name: dnsmasq.s
│ │ │ -0027f580: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -0027f590: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0027f5a0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -0027f5b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0027f660: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0027f670: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Co │ │ │ -0027f3e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0027f410: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ -0027f420: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ -0027f460: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0027f470: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0027f710: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0027f7b0: 636c 7564 6520 6469 7361 626c 655f 646e  clude disable_dn
│ │ │ -0027f7c0: 736d 6173 710a 0a63 6c61 7373 2064 6973  smasq..class dis
│ │ │ -0027f7d0: 6162 6c65 5f64 6e73 6d61 7371 207b 0a20  able_dnsmasq {. 
│ │ │ -0027f7e0: 2073 6572 7669 6365 207b 2764 6e73 6d61   service {'dnsma
│ │ │ -0027f7f0: 7371 273a 0a20 2020 2065 6e61 626c 6520  sq':.    enable 
│ │ │ -0027f800: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -0027f810: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -0027f820: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -0027f830: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0027f8e0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0027f8f0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0027f700: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0027f730: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0027f740: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0027f780: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0027f790: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0027f990: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0027fa30: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0027fa40: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0027fa50: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0027fa60: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0027fa70: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -0027fa80: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0027fa90: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0027faa0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0027fab0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0027fac0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0027fad0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0027fae0: 202d 2073 6572 7669 6365 5f64 6e73 6d61   - service_dnsma
│ │ │ -0027faf0: 7371 5f64 6973 6162 6c65 640a 0a2d 206e  sq_disabled..- n
│ │ │ -0027fb00: 616d 653a 2044 6973 6162 6c65 2064 6e73  ame: Disable dns
│ │ │ -0027fb10: 6d61 7371 2053 6572 7669 6365 202d 2044  masq Service - D
│ │ │ -0027fb20: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ -0027fb30: 6e73 6d61 7371 0a20 2062 6c6f 636b 3a0a  nsmasq.  block:.
│ │ │ -0027fb40: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0027fb50: 6c65 2064 6e73 6d61 7371 2053 6572 7669  le dnsmasq Servi
│ │ │ -0027fb60: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -0027fb70: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -0027fb80: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -0027fb90: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -0027fba0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0027fbb0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0027fbc0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -0027fbd0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -0027fbe0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -0027fbf0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -0027fc00: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -0027fc10: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -0027fc20: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0027fc30: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0027fc40: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0027fc50: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0027fc60: 6d65 3a20 4469 7361 626c 6520 646e 736d  me: Disable dnsm
│ │ │ -0027fc70: 6173 7120 5365 7276 6963 6520 2d20 456e  asq Service - En
│ │ │ -0027fc80: 7375 7265 2064 6e73 6d61 7371 2e73 6572  sure dnsmasq.ser
│ │ │ -0027fc90: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -0027fca0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0027fcb0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0027fcc0: 2020 6e61 6d65 3a20 646e 736d 6173 712e    name: dnsmasq.
│ │ │ -0027fcd0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0027fce0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0027fcf0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0027fd00: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0027fd10: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0027fd20: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0027fd30: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0027fd40: 6172 6368 2822 646e 736d 6173 712e 7365  arch("dnsmasq.se
│ │ │ -0027fd50: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ -0027fd60: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ -0027fd70: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ -0027fd80: 7869 7374 7320 2d20 646e 736d 6173 712e  xists - dnsmasq.
│ │ │ -0027fd90: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -0027fda0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0027fdb0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0027fdc0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0027fdd0: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a   dnsmasq.socket.
│ │ │ -0027fde0: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -0027fdf0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0027fe00: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0027fe10: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0027fe20: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -0027fe30: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -0027fe40: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0027fe50: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0027fe60: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0027fe70: 6973 6162 6c65 2064 6e73 6d61 7371 2053  isable dnsmasq S
│ │ │ -0027fe80: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0027fe90: 2053 6f63 6b65 7420 646e 736d 6173 710a   Socket dnsmasq.
│ │ │ -0027fea0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0027feb0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0027fec0: 2020 206e 616d 653a 2064 6e73 6d61 7371     name: dnsmasq
│ │ │ -0027fed0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -0027fee0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0027fef0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0027ff00: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -0027ff10: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0027ff20: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0027ff30: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0027ff40: 7320 7365 6172 6368 2822 646e 736d 6173  s search("dnsmas
│ │ │ -0027ff50: 712e 736f 636b 6574 222c 206d 756c 7469  q.socket", multi
│ │ │ -0027ff60: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -0027ff70: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -0027ff80: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0027ff90: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0027ffa0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0027ffb0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0027ffc0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0027ffd0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0027ffe0: 6365 5f64 6e73 6d61 7371 5f64 6973 6162  ce_dnsmasq_disab
│ │ │ -0027fff0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -00280000: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -00280010: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00280020: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00280030: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0027f1f0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0027f200: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
│ │ │ -0027f980: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0027f9b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0027f9c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0027fa00: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0027fa10: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0027f2a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027f2b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0027f300: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0027f340: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0027f350: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0027f360: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0027f370: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0027f380: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +0027f390: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0027f3a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0027f3b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0027f3c0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0027f3d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0027f3e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0027f3f0: 2d20 7365 7276 6963 655f 646e 736d 6173  - service_dnsmas
│ │ │ +0027f400: 715f 6469 7361 626c 6564 0a0a 2d20 6e61  q_disabled..- na
│ │ │ +0027f410: 6d65 3a20 4469 7361 626c 6520 646e 736d  me: Disable dnsm
│ │ │ +0027f420: 6173 7120 5365 7276 6963 6520 2d20 4469  asq Service - Di
│ │ │ +0027f430: 7361 626c 6520 7365 7276 6963 6520 646e  sable service dn
│ │ │ +0027f440: 736d 6173 710a 2020 626c 6f63 6b3a 0a0a  smasq.  block:..
│ │ │ +0027f450: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0027f460: 6520 646e 736d 6173 7120 5365 7276 6963  e dnsmasq Servic
│ │ │ +0027f470: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +0027f480: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +0027f490: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +0027f4a0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +0027f4b0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0027f4c0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0027f4d0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +0027f4e0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +0027f4f0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +0027f500: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0027f510: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0027f520: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0027f530: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0027f540: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0027f550: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0027f560: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0027f570: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ +0027f580: 7371 2053 6572 7669 6365 202d 2045 6e73  sq Service - Ens
│ │ │ +0027f590: 7572 6520 646e 736d 6173 712e 7365 7276  ure dnsmasq.serv
│ │ │ +0027f5a0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +0027f5b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0027f5c0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0027f5d0: 206e 616d 653a 2064 6e73 6d61 7371 2e73   name: dnsmasq.s
│ │ │ +0027f5e0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +0027f5f0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +0027f600: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0027f610: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027f620: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +0027f630: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +0027f640: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +0027f650: 7263 6828 2264 6e73 6d61 7371 2e73 6572  rch("dnsmasq.ser
│ │ │ +0027f660: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +0027f670: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +0027f680: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +0027f690: 6973 7473 202d 2064 6e73 6d61 7371 2e73  ists - dnsmasq.s
│ │ │ +0027f6a0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +0027f6b0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +0027f6c0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +0027f6d0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +0027f6e0: 646e 736d 6173 712e 736f 636b 6574 0a20  dnsmasq.socket. 
│ │ │ +0027f6f0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +0027f700: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +0027f710: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0027f720: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0027f730: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +0027f740: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +0027f750: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0027f760: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0027f770: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0027f780: 7361 626c 6520 646e 736d 6173 7120 5365  sable dnsmasq Se
│ │ │ +0027f790: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +0027f7a0: 536f 636b 6574 2064 6e73 6d61 7371 0a20  Socket dnsmasq. 
│ │ │ +0027f7b0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0027f7c0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0027f7d0: 2020 6e61 6d65 3a20 646e 736d 6173 712e    name: dnsmasq.
│ │ │ +0027f7e0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0027f7f0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027f800: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0027f810: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027f820: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0027f830: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0027f840: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0027f850: 2073 6561 7263 6828 2264 6e73 6d61 7371   search("dnsmasq
│ │ │ +0027f860: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +0027f870: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +0027f880: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0027f890: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0027f8a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0027f8b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0027f8c0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0027f8d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0027f8e0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0027f8f0: 655f 646e 736d 6173 715f 6469 7361 626c  e_dnsmasq_disabl
│ │ │ +0027f900: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0027f910: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +0027f920: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0027f930: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0027f940: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +0027fa00: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ +0027fa10: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ +0027fa20: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ +0027f290: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0027f2c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0027f2d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0027f310: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0027f320: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity:< │ │ │ +0027faf0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +0027fb10: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0027fb40: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +0027fad0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ +0027fae0: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ +0027fb20: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0027fb30: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ +0027fb60: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ +0027fb70: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ +0027fb80: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ +0027fb90: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ +0027fba0: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ +0027fbb0: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ +0027fbc0: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ +0027fbd0: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ +0027fbe0: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ +0027fbf0: 653a 2064 6e73 6d61 7371 2e73 6572 7669  e: dnsmasq.servi
│ │ │ +0027fc00: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +0027fc10: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0027fc20: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +0027fc30: 2020 202d 206e 616d 653a 2064 6e73 6d61     - name: dnsma
│ │ │ +0027fc40: 7371 2e73 6f63 6b65 740a 2020 2020 2020  sq.socket.      
│ │ │ +0027fc50: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0027fc60: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +0027fc70: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ +0027fd30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0027fd40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0027fdc0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0027fde0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0027fe30: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0027fe60: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0027fe80: 655f 646e 736d 6173 710a 0a63 6c61 7373  e_dnsmasq..class
│ │ │ +0027fe90: 2064 6973 6162 6c65 5f64 6e73 6d61 7371   disable_dnsmasq
│ │ │ +0027fea0: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ +0027feb0: 6e73 6d61 7371 273a 0a20 2020 2065 6e61  nsmasq':.    ena
│ │ │ +0027fec0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +0027fed0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0027fee0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +0027fef0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0027ff00: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +0027ffb0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0027ffc0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0027ffd0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00280010: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00280020: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00280030: 203d 205b 2264 6e73 6d61 7371 225d 0a3c   = ["dnsmasq"].<
│ │ │  00280040: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00281ce0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00281cf0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +0027fdd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0027fdf0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0027fe40: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0027fe50: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00281d90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00281da0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00281df0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00281e30: 6e63 6c75 6465 2072 656d 6f76 655f 7673  nclude remove_vs
│ │ │ -00281e40: 6674 7064 0a0a 636c 6173 7320 7265 6d6f  ftpd..class remo
│ │ │ -00281e50: 7665 5f76 7366 7470 6420 7b0a 2020 7061  ve_vsftpd {.  pa
│ │ │ -00281e60: 636b 6167 6520 7b20 2776 7366 7470 6427  ckage { 'vsftpd'
│ │ │ -00281e70: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00281e80: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00281e90: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00281ea0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -00281f50: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00281f60: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ -00281d80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00281db0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00281dc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00281e00: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00281e10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00281fe0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00282000: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00282050: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00282080: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00281ff0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00282010: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00282060: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00282070: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -002820a0: 7374 616c 6c20 7673 6674 7064 2050 6163  stall vsftpd Pac
│ │ │ -002820b0: 6b61 6765 3a20 456e 7375 7265 2076 7366  kage: Ensure vsf
│ │ │ -002820c0: 7470 6420 6973 2072 656d 6f76 6564 270a  tpd is removed'.
│ │ │ -002820d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002820e0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -002820f0: 616d 653a 2076 7366 7470 640a 2020 2020  ame: vsftpd.    
│ │ │ -00282100: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00282110: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00282120: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00282130: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00282140: 2d37 0a20 202d 204e 4953 542d 3830 302d  -7.  - NIST-800-
│ │ │ -00282150: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -00282160: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00282170: 6229 0a20 202d 204e 4953 542d 3830 302d  b).  - NIST-800-
│ │ │ -00282180: 3533 2d43 4d2d 372e 3128 6969 290a 2020  53-CM-7.1(ii).  
│ │ │ -00282190: 2d20 4e49 5354 2d38 3030 2d35 332d 4941  - NIST-800-53-IA
│ │ │ -002821a0: 2d35 2831 2928 6329 0a20 202d 204e 4953  -5(1)(c).  - NIS
│ │ │ -002821b0: 542d 3830 302d 3533 2d49 412d 3528 3129  T-800-53-IA-5(1)
│ │ │ -002821c0: 2e31 2876 290a 2020 2d20 6469 7361 626c  .1(v).  - disabl
│ │ │ -002821d0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -002821e0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -002821f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00282200: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00282210: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00282220: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00282230: 6167 655f 7673 6674 7064 5f72 656d 6f76  age_vsftpd_remov
│ │ │ -00282240: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00281ce0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00281cf0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +00281d90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00281e30: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00281e40: 6c20 7673 6674 7064 2050 6163 6b61 6765  l vsftpd Package
│ │ │ +00281e50: 3a20 456e 7375 7265 2076 7366 7470 6420  : Ensure vsftpd 
│ │ │ +00281e60: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00281e70: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00281e80: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00281e90: 2076 7366 7470 640a 2020 2020 7374 6174   vsftpd.    stat
│ │ │ +00281ea0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00281eb0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00281ec0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00281ed0: 5354 2d38 3030 2d35 332d 434d 2d37 0a20  ST-800-53-CM-7. 
│ │ │ +00281ee0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00281ef0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00281f00: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00281f10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00281f20: 4d2d 372e 3128 6969 290a 2020 2d20 4e49  M-7.1(ii).  - NI
│ │ │ +00281f30: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ +00281f40: 2928 6329 0a20 202d 204e 4953 542d 3830  )(c).  - NIST-80
│ │ │ +00281f50: 302d 3533 2d49 412d 3528 3129 2e31 2876  0-53-IA-5(1).1(v
│ │ │ +00281f60: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +00281f70: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +00281f80: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +00281f90: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00281fa0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00281fb0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00281fc0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00281fd0: 7673 6674 7064 5f72 656d 6f76 6564 0a3c  vsftpd_removed.<
│ │ │ +00281fe0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00282090: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002820a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00281d80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00281db0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00281dc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00281e00: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00281e10: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00282140: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00282150: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002821a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002821e0: 6e63 6c75 6465 2072 656d 6f76 655f 7673  nclude remove_vs
│ │ │ +002821f0: 6674 7064 0a0a 636c 6173 7320 7265 6d6f  ftpd..class remo
│ │ │ +00282200: 7665 5f76 7366 7470 6420 7b0a 2020 7061  ve_vsftpd {.  pa
│ │ │ +00282210: 636b 6167 6520 7b20 2776 7366 7470 6427  ckage { 'vsftpd'
│ │ │ +00282220: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00282230: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00282240: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00282250: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Re │ │ │ -002835d0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002835e0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002835f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00283600: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00283610: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00283620: 7365 2220 6964 3d22 6964 3939 3022 3e3c se" id="id990">< │ │ │ -00283630: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00283640: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00283650: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -00283660: 7673 6674 7064 225d 0a3c 2f63 6f64 653e vsftpd"]. │ │ │ -00283670: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remedia │ │ │ -00283720: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ -00283730: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00283740: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +00282130: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00282160: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00282170: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002821b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002821c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Reboot:true │ │ │ -00283830: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -00283870: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -00283880: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -00283890: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -002838a0: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -002838b0: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -002838c0: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -002838d0: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -002838e0: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -002838f0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -00283900: 2020 2020 2020 2d20 6e61 6d65 3a20 7673        - name: vs
│ │ │ -00283910: 6674 7064 2e73 6572 7669 6365 0a20 2020  ftpd.service.   
│ │ │ -00283920: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00283930: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -00283940: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -00283950: 616d 653a 2076 7366 7470 642e 736f 636b  ame: vsftpd.sock
│ │ │ -00283960: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -00283970: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00283980: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -002839a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00283a40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00283a50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00283a60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -002837c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002837f0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -00283800: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -00283840: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00283850: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -00283ae0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00283b10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00283b30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00283b40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00283b60: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00283b80: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00283b90: 6465 2064 6973 6162 6c65 5f76 7366 7470  de disable_vsftp
│ │ │ -00283ba0: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ -00283bb0: 5f76 7366 7470 6420 7b0a 2020 7365 7276  _vsftpd {.  serv
│ │ │ -00283bc0: 6963 6520 7b27 7673 6674 7064 273a 0a20  ice {'vsftpd':. 
│ │ │ -00283bd0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00283be0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -00283bf0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -00283c00: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00283c10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00283cc0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00283cd0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00283ce0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00283d10: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00283d80: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00283da0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00283dd0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00283d60: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00283d70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00283db0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00283dc0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00283e10: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00283e20: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00283e30: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00283e40: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00283e50: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00283e60: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00283e70: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00283e80: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -00283e90: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -00283ea0: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -00283eb0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -00283ec0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00283ed0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00283ee0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -00283ef0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00283f00: 0a20 202d 2073 6572 7669 6365 5f76 7366 . - service_vsf │ │ │ -00283f10: 7470 645f 6469 7361 626c 6564 0a0a 2d20 tpd_disabled..- │ │ │ -00283f20: 6e61 6d65 3a20 4469 7361 626c 6520 7673 name: Disable vs │ │ │ -00283f30: 6674 7064 2053 6572 7669 6365 202d 2044 ftpd Service - D │ │ │ -00283f40: 6973 6162 6c65 2073 6572 7669 6365 2076 isable service v │ │ │ -00283f50: 7366 7470 640a 2020 626c 6f63 6b3a 0a0a sftpd. block:.. │ │ │ -00283f60: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -00283f70: 6520 7673 6674 7064 2053 6572 7669 6365 e vsftpd Service │ │ │ -00283f80: 202d 2043 6f6c 6c65 6374 2073 7973 7465 - Collect syste │ │ │ -00283f90: 6d64 2053 6572 7669 6365 7320 5072 6573 md Services Pres │ │ │ -00283fa0: 656e 7420 696e 2074 6865 2053 7973 7465 ent in the Syste │ │ │ -00283fb0: 6d0a 2020 2020 616e 7369 626c 652e 6275 m. ansible.bu │ │ │ -00283fc0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073 iltin.command: s │ │ │ -00283fd0: 7973 7465 6d63 746c 202d 7120 6c69 7374 ystemctl -q list │ │ │ -00283fe0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479 -unit-files --ty │ │ │ -00283ff0: 7065 2073 6572 7669 6365 0a20 2020 2072 pe service. r │ │ │ -00284000: 6567 6973 7465 723a 2073 6572 7669 6365 egister: service │ │ │ -00284010: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ -00284020: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ -00284030: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ -00284040: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ -00284050: 7263 206e 6f74 2069 6e20 5b30 2c20 315d rc not in [0, 1] │ │ │ -00284060: 0a20 2020 2063 6865 636b 5f6d 6f64 653a . check_mode: │ │ │ -00284070: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65 false.. - name │ │ │ -00284080: 3a20 4469 7361 626c 6520 7673 6674 7064 : Disable vsftpd │ │ │ -00284090: 2053 6572 7669 6365 202d 2045 6e73 7572 Service - Ensur │ │ │ -002840a0: 6520 7673 6674 7064 2e73 6572 7669 6365 e vsftpd.service │ │ │ -002840b0: 2069 7320 4d61 736b 6564 0a20 2020 2061 is Masked. a │ │ │ -002840c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ -002840d0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ -002840e0: 6d65 3a20 7673 6674 7064 2e73 6572 7669 me: vsftpd.servi │ │ │ -002840f0: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -00284100: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -00284110: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -00284120: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -00284130: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -00284140: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -00284150: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -00284160: 2276 7366 7470 642e 7365 7276 6963 6522 "vsftpd.service" │ │ │ -00284170: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -00284180: 290a 0a20 202d 206e 616d 653a 2055 6e69 ).. - name: Uni │ │ │ -00284190: 7420 536f 636b 6574 2045 7869 7374 7320 t Socket Exists │ │ │ -002841a0: 2d20 7673 6674 7064 2e73 6f63 6b65 740a - vsftpd.socket. │ │ │ -002841b0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -002841c0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -002841d0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -002841e0: 6e69 742d 6669 6c65 7320 7673 6674 7064 nit-files vsftpd │ │ │ -002841f0: 2e73 6f63 6b65 740a 2020 2020 7265 6769 .socket. regi │ │ │ -00284200: 7374 6572 3a20 736f 636b 6574 5f66 696c ster: socket_fil │ │ │ -00284210: 655f 6578 6973 7473 0a20 2020 2063 6861 e_exists. cha │ │ │ -00284220: 6e67 6564 5f77 6865 6e3a 2066 616c 7365 nged_when: false │ │ │ -00284230: 0a20 2020 2066 6169 6c65 645f 7768 656e . failed_when │ │ │ -00284240: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ -00284250: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ -00284260: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ -00284270: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ -00284280: 206e 616d 653a 2044 6973 6162 6c65 2076 name: Disable v │ │ │ -00284290: 7366 7470 6420 5365 7276 6963 6520 2d20 sftpd Service - │ │ │ -002842a0: 4469 7361 626c 6520 536f 636b 6574 2076 Disable Socket v │ │ │ -002842b0: 7366 7470 640a 2020 2020 616e 7369 626c sftpd. ansibl │ │ │ -002842c0: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ -002842d0: 643a 0a20 2020 2020 206e 616d 653a 2076 d:. name: v │ │ │ -002842e0: 7366 7470 642e 736f 636b 6574 0a20 2020 sftpd.socket. │ │ │ -002842f0: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ -00284300: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ -00284310: 746f 7070 6564 0a20 2020 2020 206d 6173 topped. mas │ │ │ -00284320: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ -00284330: 656e 3a20 736f 636b 6574 5f66 696c 655f en: socket_file_ │ │ │ -00284340: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ -00284350: 6e65 7320 6973 2073 6561 7263 6828 2276 nes is search("v │ │ │ -00284360: 7366 7470 642e 736f 636b 6574 222c 206d sftpd.socket", m │ │ │ -00284370: 756c 7469 6c69 6e65 3d54 7275 6529 0a20 ultiline=True). │ │ │ -00284380: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ -00284390: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002843a0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ -002843b0: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ -002843c0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ -002843d0: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ -002843e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -002843f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -00284400: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -00284410: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -00284420: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -00284430: 6564 0a20 202d 2073 6572 7669 6365 5f76 ed. - service_v │ │ │ -00284440: 7366 7470 645f 6469 7361 626c 6564 0a20 sftpd_disabled. │ │ │ -00284450: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -00284460: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ -00284470: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -00284480: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -00284490: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'.

< │ │ │ +00283680: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00283690: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002836e0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00283720: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00283730: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00283740: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00283750: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00283760: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00283770: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00283780: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00283790: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +002837a0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +002837b0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +002837c0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002837d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002837e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002837f0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00283800: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00283810: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00283820: 655f 7673 6674 7064 5f64 6973 6162 6c65  e_vsftpd_disable
│ │ │ +00283830: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +00283840: 6c65 2076 7366 7470 6420 5365 7276 6963  le vsftpd Servic
│ │ │ +00283850: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +00283860: 6963 6520 7673 6674 7064 0a20 2062 6c6f  ice vsftpd.  blo
│ │ │ +00283870: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00283880: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ +00283890: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ +002838a0: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +002838b0: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +002838c0: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +002838d0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +002838e0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +002838f0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00283900: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +00283910: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +00283920: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +00283930: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00283940: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00283950: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00283960: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00283970: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00283980: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00283990: 206e 616d 653a 2044 6973 6162 6c65 2076   name: Disable v
│ │ │ +002839a0: 7366 7470 6420 5365 7276 6963 6520 2d20  sftpd Service - 
│ │ │ +002839b0: 456e 7375 7265 2076 7366 7470 642e 7365  Ensure vsftpd.se
│ │ │ +002839c0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +002839d0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002839e0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002839f0: 2020 206e 616d 653a 2076 7366 7470 642e     name: vsftpd.
│ │ │ +00283a00: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +00283a10: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00283a20: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +00283a30: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +00283a40: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +00283a50: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +00283a60: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +00283a70: 6172 6368 2822 7673 6674 7064 2e73 6572  arch("vsftpd.ser
│ │ │ +00283a80: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +00283a90: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +00283aa0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +00283ab0: 6973 7473 202d 2076 7366 7470 642e 736f  ists - vsftpd.so
│ │ │ +00283ac0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +00283ad0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00283ae0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00283af0: 6973 742d 756e 6974 2d66 696c 6573 2076  ist-unit-files v
│ │ │ +00283b00: 7366 7470 642e 736f 636b 6574 0a20 2020  sftpd.socket.   
│ │ │ +00283b10: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +00283b20: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +00283b30: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00283b40: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00283b50: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +00283b60: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +00283b70: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00283b80: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00283b90: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00283ba0: 626c 6520 7673 6674 7064 2053 6572 7669  ble vsftpd Servi
│ │ │ +00283bb0: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ +00283bc0: 6b65 7420 7673 6674 7064 0a20 2020 2061  ket vsftpd.    a
│ │ │ +00283bd0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00283be0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00283bf0: 6d65 3a20 7673 6674 7064 2e73 6f63 6b65  me: vsftpd.socke
│ │ │ +00283c00: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +00283c10: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +00283c20: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00283c30: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00283c40: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +00283c50: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +00283c60: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00283c70: 6368 2822 7673 6674 7064 2e73 6f63 6b65  ch("vsftpd.socke
│ │ │ +00283c80: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +00283c90: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +00283ca0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00283cb0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00283cc0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00283cd0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00283ce0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +00283cf0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00283d00: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00283d10: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00283d20: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00283d30: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00283d40: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00283d50: 6963 655f 7673 6674 7064 5f64 6973 6162  ice_vsftpd_disab
│ │ │ +00283d60: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00283d70: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00283d80: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00283d90: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00283da0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00283db0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00283e60: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +00283e70: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +00283e80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +00283670: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002836a0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002836b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002836f0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00283700: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00283f00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00283f20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ +00283f50: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +00283f30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00283f40: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ +00283f60: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ +00283f80: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00283f90: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ +00283fc0: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ +00283fd0: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ +00283fe0: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ +00283ff0: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ +00284000: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ +00284010: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ +00284020: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ +00284030: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ +00284040: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ +00284050: 6d65 3a20 7673 6674 7064 2e73 6572 7669  me: vsftpd.servi
│ │ │ +00284060: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +00284070: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00284080: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +00284090: 2020 202d 206e 616d 653a 2076 7366 7470     - name: vsftp
│ │ │ +002840a0: 642e 736f 636b 6574 0a20 2020 2020 2020  d.socket.       
│ │ │ +002840b0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002840c0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ +002840d0: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ +002840e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00284190: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002841a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00284220: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00284240: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00284290: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +002842e0: 5f76 7366 7470 640a 0a63 6c61 7373 2064  _vsftpd..class d
│ │ │ +002842f0: 6973 6162 6c65 5f76 7366 7470 6420 7b0a  isable_vsftpd {.
│ │ │ +00284300: 2020 7365 7276 6963 6520 7b27 7673 6674    service {'vsft
│ │ │ +00284310: 7064 273a 0a20 2020 2065 6e61 626c 6520  pd':.    enable 
│ │ │ +00284320: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +00284330: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +00284340: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +00284350: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00284400: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00284410: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00284420: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00284430: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00284460: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00284470: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00284480: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +00284490: 2276 7366 7470 6422 5d0a 3c2f 636f 6465  "vsftpd"].
Remediati │ │ │ -00285490: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002854a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00285520: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00285560: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ +00284250: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00284260: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002842a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +002842b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -00285530: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00285550: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00285580: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002855a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002855d0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -002855e0: 656d 6f76 655f 6674 700a 0a63 6c61 7373  emove_ftp..class
│ │ │ -002855f0: 2072 656d 6f76 655f 6674 7020 7b0a 2020   remove_ftp {.  
│ │ │ -00285600: 7061 636b 6167 6520 7b20 2766 7470 273a  package { 'ftp':
│ │ │ -00285610: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00285620: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00285630: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00285640: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -002856f0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00285700: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00285780: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002857a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002857f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00285820: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Remov
│ │ │ -00285840: 6520 6674 7020 5061 636b 6167 653a 2045  e ftp Package: E
│ │ │ -00285850: 6e73 7572 6520 6674 7020 6973 2072 656d  nsure ftp is rem
│ │ │ -00285860: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -00285870: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00285880: 0a20 2020 206e 616d 653a 2066 7470 0a20  .    name: ftp. 
│ │ │ -00285890: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -002858a0: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -002858b0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -002858c0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -002858d0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002858e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002858f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00285900: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00285910: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00285920: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00285930: 2020 2d20 7061 636b 6167 655f 6674 705f    - package_ftp_
│ │ │ -00285940: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00285490: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +002854a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00285520: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +002855b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002855c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -002857b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002857c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00285800: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00285810: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +00285530: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00285540: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00285580: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00285590: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ +002855e0: 5265 6d6f 7665 2066 7470 2050 6163 6b61  Remove ftp Packa
│ │ │ +002855f0: 6765 3a20 456e 7375 7265 2066 7470 2069  ge: Ensure ftp i
│ │ │ +00285600: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +00285610: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00285620: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00285630: 6674 700a 2020 2020 7374 6174 653a 2061  ftp.    state: a
│ │ │ +00285640: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00285650: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00285660: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00285670: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +00285680: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00285690: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002856a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002856b0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +002856c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002856d0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +002856e0: 5f66 7470 5f72 656d 6f76 6564 0a3c 2f63  _ftp_removed.
│ │ │ +00285700: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +002857a0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002857b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002857c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00285840: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00285870: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00285890: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002858a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002858c0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002858d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002858f0: 6c75 6465 2072 656d 6f76 655f 6674 700a  lude remove_ftp.
│ │ │ +00285900: 0a63 6c61 7373 2072 656d 6f76 655f 6674  .class remove_ft
│ │ │ +00285910: 7020 7b0a 2020 7061 636b 6167 6520 7b20  p {.  package { 
│ │ │ +00285920: 2766 7470 273a 0a20 2020 2065 6e73 7572  'ftp':.    ensur
│ │ │ +00285930: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00285940: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00285950: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Re │ │ │ -00287520: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00287530: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00287540: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002875d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002875e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00287630: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00287670: 6e63 6c75 6465 2072 656d 6f76 655f 6170  nclude remove_ap
│ │ │ -00287680: 6163 6865 320a 0a63 6c61 7373 2072 656d  ache2..class rem
│ │ │ -00287690: 6f76 655f 6170 6163 6865 3220 7b0a 2020  ove_apache2 {.  
│ │ │ -002876a0: 7061 636b 6167 6520 7b20 2761 7061 6368  package { 'apach
│ │ │ -002876b0: 6532 273a 0a20 2020 2065 6e73 7572 6520  e2':.    ensure 
│ │ │ -002876c0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -002876d0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -00287790: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002877a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002877e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002877f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00287800: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00287810: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00287820: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -002878b0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002878c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ -002875c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002875f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00287600: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00287640: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00287650: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -00287830: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00287840: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00287880: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00287890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -002878e0: 2755 6e69 6e73 7461 6c6c 2061 7061 6368 'Uninstall apach │ │ │ -002878f0: 6532 2050 6163 6b61 6765 3a20 456e 7375 e2 Package: Ensu │ │ │ -00287900: 7265 2061 7061 6368 6532 2069 7320 7265 re apache2 is re │ │ │ -00287910: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ -00287920: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -00287930: 3a0a 2020 2020 6e61 6d65 3a20 6170 6163 :. name: apac │ │ │ -00287940: 6865 320a 2020 2020 7374 6174 653a 2061 he2. state: a │ │ │ -00287950: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ -00287960: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00287970: 2d36 2861 290a 2020 2d20 4e49 5354 2d38 -6(a). - NIST-8 │ │ │ -00287980: 3030 2d35 332d 434d 2d37 2861 290a 2020 00-53-CM-7(a). │ │ │ -00287990: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -002879a0: 2d37 2862 290a 2020 2d20 6469 7361 626c -7(b). - disabl │ │ │ -002879b0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -002879c0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -002879d0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -002879e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -002879f0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00287a00: 655f 6874 7470 645f 7265 6d6f 7665 640a e_httpd_removed. │ │ │ -00287a10: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665 - unknown_seve │ │ │ -00287a20: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072 rity.
│ │ │ +002875d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00287670: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00287680: 6c20 6170 6163 6865 3220 5061 636b 6167  l apache2 Packag
│ │ │ +00287690: 653a 2045 6e73 7572 6520 6170 6163 6865  e: Ensure apache
│ │ │ +002876a0: 3220 6973 2072 656d 6f76 6564 270a 2020  2 is removed'.  
│ │ │ +002876b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002876c0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +002876d0: 653a 2061 7061 6368 6532 0a20 2020 2073  e: apache2.    s
│ │ │ +002876e0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +002876f0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00287700: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00287710: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00287720: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00287730: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +00287740: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00287750: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00287760: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00287770: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00287780: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00287790: 2070 6163 6b61 6765 5f68 7474 7064 5f72   package_httpd_r
│ │ │ +002877a0: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ +002877b0: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
< │ │ │ +002877d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002877e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002877f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00287800: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00287810: 6431 3030 3122 2074 6162 696e 6465 783d d1001" tabindex= │ │ │ +00287820: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +00287830: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00287840: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00287850: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00287860: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00287870: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00287880: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00287890: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +002875c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002875f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00287600: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00287640: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00287650: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +00287930: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00287980: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +002879c0: 636c 7564 6520 7265 6d6f 7665 5f61 7061  clude remove_apa
│ │ │ +002879d0: 6368 6532 0a0a 636c 6173 7320 7265 6d6f  che2..class remo
│ │ │ +002879e0: 7665 5f61 7061 6368 6532 207b 0a20 2070  ve_apache2 {.  p
│ │ │ +002879f0: 6163 6b61 6765 207b 2027 6170 6163 6865  ackage { 'apache
│ │ │ +00287a00: 3227 3a0a 2020 2020 656e 7375 7265 203d  2':.    ensure =
│ │ │ +00287a10: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +00287a20: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation OS
│ │ │ -00288d60: 4275 696c 6420 426c 7565 7072 696e 7420  Build Blueprint 
│ │ │ -00288d70: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ -00288d80: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
.
│ │ │ -00288dc0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00288dd0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00288de0: 203d 205b 2261 7061 6368 6532 225d 0a3c   = ["apache2"].<
│ │ │ -00288df0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -00288ea0: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ -00288eb0: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ -00288ec0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
mediumdisable
Co │ │ │ +00287910: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00287940: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00287960: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00287970: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00287990: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002879a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00288f50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00288f70: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot │ │ │ -00288fa0: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true
│ │ │ -00288fc0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00288ff0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ -00289000: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ -00289010: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ -00289020: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ -00289030: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ -00289040: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ -00289050: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ -00289060: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ -00289070: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ -00289080: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ -00289090: 6e61 6d65 3a20 6170 6163 6865 322e 7365  name: apache2.se
│ │ │ -002890a0: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -002890b0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002890c0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -002890d0: 2020 2020 2020 2d20 6e61 6d65 3a20 6170        - name: ap
│ │ │ -002890e0: 6163 6865 322e 736f 636b 6574 0a20 2020  ache2.socket.   
│ │ │ -002890f0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00289100: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -00289110: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediat │ │ │ -002891d0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002891e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00289220: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00289230: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00289240: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00289250: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00289260: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00289270: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00289280: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002892c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002892d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002892f0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00289300: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -00289320: 6973 6162 6c65 5f61 7061 6368 6532 0a0a  isable_apache2..
│ │ │ -00289330: 636c 6173 7320 6469 7361 626c 655f 6170  class disable_ap
│ │ │ -00289340: 6163 6865 3220 7b0a 2020 7365 7276 6963  ache2 {.  servic
│ │ │ -00289350: 6520 7b27 6170 6163 6865 3227 3a0a 2020  e {'apache2':.  
│ │ │ -00289360: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -00289370: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -00289380: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -00289390: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002893a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00289450: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00289460: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00289470: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00289510: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00289530: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00289560: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002894f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00289500: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00289520: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00289540: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00289550: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00289590: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002895a0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -002895b0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -002895c0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -002895d0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -002895e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -002895f0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00289600: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00289610: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -00289620: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -00289630: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00289640: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00289650: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00289660: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ -00289670: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -00289680: 2d20 7365 7276 6963 655f 6874 7470 645f - service_httpd_ │ │ │ -00289690: 6469 7361 626c 6564 0a20 202d 2075 6e6b disabled. - unk │ │ │ -002896a0: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d nown_severity..- │ │ │ -002896b0: 206e 616d 653a 2044 6973 6162 6c65 2061 name: Disable a │ │ │ -002896c0: 7061 6368 6532 2053 6572 7669 6365 202d pache2 Service - │ │ │ -002896d0: 2044 6973 6162 6c65 2073 6572 7669 6365 Disable service │ │ │ -002896e0: 2061 7061 6368 6532 0a20 2062 6c6f 636b apache2. block │ │ │ -002896f0: 3a0a 0a20 202d 206e 616d 653a 2044 6973 :.. - name: Dis │ │ │ -00289700: 6162 6c65 2061 7061 6368 6532 2053 6572 able apache2 Ser │ │ │ -00289710: 7669 6365 202d 2043 6f6c 6c65 6374 2073 vice - Collect s │ │ │ -00289720: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ -00289730: 5072 6573 656e 7420 696e 2074 6865 2053 Present in the S │ │ │ -00289740: 7973 7465 6d0a 2020 2020 616e 7369 626c ystem. ansibl │ │ │ -00289750: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ -00289760: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ -00289770: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ -00289780: 2d2d 7479 7065 2073 6572 7669 6365 0a20 --type service. │ │ │ -00289790: 2020 2072 6567 6973 7465 723a 2073 6572 register: ser │ │ │ -002897a0: 7669 6365 5f65 7869 7374 730a 2020 2020 vice_exists. │ │ │ -002897b0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -002897c0: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ -002897d0: 6865 6e3a 2073 6572 7669 6365 5f65 7869 hen: service_exi │ │ │ -002897e0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -002897f0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -00289800: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -00289810: 6e61 6d65 3a20 4469 7361 626c 6520 6170 name: Disable ap │ │ │ -00289820: 6163 6865 3220 5365 7276 6963 6520 2d20 ache2 Service - │ │ │ -00289830: 456e 7375 7265 2061 7061 6368 6532 2e73 Ensure apache2.s │ │ │ -00289840: 6572 7669 6365 2069 7320 4d61 736b 6564 ervice is Masked │ │ │ -00289850: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -00289860: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ -00289870: 2020 2020 6e61 6d65 3a20 6170 6163 6865 name: apache │ │ │ -00289880: 322e 7365 7276 6963 650a 2020 2020 2020 2.service. │ │ │ -00289890: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -002898a0: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ -002898b0: 6c73 650a 2020 2020 2020 6d61 736b 6564 lse. masked │ │ │ -002898c0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -002898d0: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ -002898e0: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -002898f0: 7365 6172 6368 2822 6170 6163 6865 322e search("apache2. │ │ │ -00289900: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ -00289910: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ -00289920: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ -00289930: 2045 7869 7374 7320 2d20 6170 6163 6865 Exists - apache │ │ │ -00289940: 322e 736f 636b 6574 0a20 2020 2061 6e73 2.socket. ans │ │ │ -00289950: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -00289960: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -00289970: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -00289980: 6573 2061 7061 6368 6532 2e73 6f63 6b65 es apache2.socke │ │ │ -00289990: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ -002899a0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -002899b0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -002899c0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -002899d0: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ -002899e0: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ -002899f0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ -00289a00: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ -00289a10: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ -00289a20: 2044 6973 6162 6c65 2061 7061 6368 6532 Disable apache2 │ │ │ -00289a30: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ -00289a40: 6c65 2053 6f63 6b65 7420 6170 6163 6865 le Socket apache │ │ │ -00289a50: 320a 2020 2020 616e 7369 626c 652e 6275 2. ansible.bu │ │ │ -00289a60: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ -00289a70: 2020 2020 206e 616d 653a 2061 7061 6368 name: apach │ │ │ -00289a80: 6532 2e73 6f63 6b65 740a 2020 2020 2020 e2.socket. │ │ │ -00289a90: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -00289aa0: 2020 2020 2073 7461 7465 3a20 7374 6f70 state: stop │ │ │ -00289ab0: 7065 640a 2020 2020 2020 6d61 736b 6564 ped. masked │ │ │ -00289ac0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -00289ad0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -00289ae0: 7374 732e 7374 646f 7574 5f6c 696e 6573 sts.stdout_lines │ │ │ -00289af0: 2069 7320 7365 6172 6368 2822 6170 6163 is search("apac │ │ │ -00289b00: 6865 322e 736f 636b 6574 222c 206d 756c he2.socket", mul │ │ │ -00289b10: 7469 6c69 6e65 3d54 7275 6529 0a20 2074 tiline=True). t │ │ │ -00289b20: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00289b30: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00289b40: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00289b50: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -00289b60: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -00289b70: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -00289b80: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -00289b90: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00289ba0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ -00289bb0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -00289bc0: 2073 6572 7669 6365 5f68 7474 7064 5f64 service_httpd_d │ │ │ -00289bd0: 6973 6162 6c65 640a 2020 2d20 7370 6563 isabled. - spec │ │ │ -00289be0: 6961 6c5f 7365 7276 6963 655f 626c 6f63 ial_service_bloc │ │ │ -00289bf0: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365 k. - unknown_se │ │ │ -00289c00: 7665 7269 7479 0a20 2077 6865 6e3a 2027 verity. when: ' │ │ │ -00289c10: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -00289c20: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -00289c30: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +00288d50: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +00288d60: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00288d70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +00288df0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00288e10: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00288e60: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00288e90: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00288e00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00288e20: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00288e70: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00288e80: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00288eb0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00288ec0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00288ed0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00288ee0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00288ef0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00288f00: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00288f10: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00288f20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00288f30: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00288f40: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00288f50: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00288f60: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00288f70: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00288f80: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00288f90: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ +00288fa0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +00288fb0: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ +00288fc0: 4469 7361 626c 6520 6170 6163 6865 3220  Disable apache2 
│ │ │ +00288fd0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00288fe0: 6520 7365 7276 6963 6520 6170 6163 6865  e service apache
│ │ │ +00288ff0: 320a 2020 626c 6f63 6b3a 0a0a 2020 2d20  2.  block:..  - 
│ │ │ +00289000: 6e61 6d65 3a20 4469 7361 626c 6520 6170  name: Disable ap
│ │ │ +00289010: 6163 6865 3220 5365 7276 6963 6520 2d20  ache2 Service - 
│ │ │ +00289020: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +00289030: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +00289040: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +00289050: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00289060: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00289070: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00289080: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +00289090: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +002890a0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +002890b0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002890c0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002890d0: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +002890e0: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +002890f0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +00289100: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00289110: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00289120: 6973 6162 6c65 2061 7061 6368 6532 2053  isable apache2 S
│ │ │ +00289130: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +00289140: 6170 6163 6865 322e 7365 7276 6963 6520  apache2.service 
│ │ │ +00289150: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +00289160: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00289170: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00289180: 653a 2061 7061 6368 6532 2e73 6572 7669  e: apache2.servi
│ │ │ +00289190: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +002891a0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +002891b0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002891c0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002891d0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +002891e0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002891f0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00289200: 2261 7061 6368 6532 2e73 6572 7669 6365  "apache2.service
│ │ │ +00289210: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00289220: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +00289230: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +00289240: 202d 2061 7061 6368 6532 2e73 6f63 6b65   - apache2.socke
│ │ │ +00289250: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +00289260: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00289270: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00289280: 2d75 6e69 742d 6669 6c65 7320 6170 6163  -unit-files apac
│ │ │ +00289290: 6865 322e 736f 636b 6574 0a20 2020 2072  he2.socket.    r
│ │ │ +002892a0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +002892b0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +002892c0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +002892d0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002892e0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002892f0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00289300: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00289310: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00289320: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00289330: 6520 6170 6163 6865 3220 5365 7276 6963  e apache2 Servic
│ │ │ +00289340: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00289350: 6574 2061 7061 6368 6532 0a20 2020 2061  et apache2.    a
│ │ │ +00289360: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00289370: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00289380: 6d65 3a20 6170 6163 6865 322e 736f 636b  me: apache2.sock
│ │ │ +00289390: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +002893a0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +002893b0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +002893c0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002893d0: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +002893e0: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +002893f0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00289400: 7263 6828 2261 7061 6368 6532 2e73 6f63  rch("apache2.soc
│ │ │ +00289410: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +00289420: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +00289430: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00289440: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00289450: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00289460: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00289470: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +00289480: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00289490: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002894a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002894b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002894c0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +002894d0: 655f 6874 7470 645f 6469 7361 626c 6564  e_httpd_disabled
│ │ │ +002894e0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +002894f0: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ +00289500: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00289510: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00289520: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00289530: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00289540: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ku │ │ │ +00289600: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ +00289610: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00289690: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002896a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002896c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002896d0: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +002896e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +002896f0: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +00289700: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00289720: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00289730: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +00289750: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +00289760: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +00289770: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +00289780: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +00289790: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +002897a0: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +002897b0: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +002897c0: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +002897d0: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +002897e0: 2d20 6e61 6d65 3a20 6170 6163 6865 322e - name: apache2. │ │ │ +002897f0: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +00289800: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +00289810: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +00289820: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +00289830: 6170 6163 6865 322e 736f 636b 6574 0a20 apache2.socket. │ │ │ +00289840: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ +00289850: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ +00289860: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ +00289870: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +00289920: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00289930: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00289940: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002899e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00289a00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00289a30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002899c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002899d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002899f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00289a10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00289a20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00289a70: 2064 6973 6162 6c65 5f61 7061 6368 6532 disable_apache2 │ │ │ +00289a80: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +00289a90: 6170 6163 6865 3220 7b0a 2020 7365 7276 apache2 {. serv │ │ │ +00289aa0: 6963 6520 7b27 6170 6163 6865 3227 3a0a ice {'apache2':. │ │ │ +00289ab0: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ +00289ac0: 2066 616c 7365 2c0a 2020 2020 656e 7375 false,. ensu │ │ │ +00289ad0: 7265 203d 2667 743b 2027 7374 6f70 7065 re => 'stoppe │ │ │ +00289ae0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remed │ │ │ +00289ba0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00289bb0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00289bc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +00289c10: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00289c20: 735d 0a6d 6173 6b65 6420 3d20 5b22 6170 s].masked = ["ap │ │ │ +00289c30: 6163 6865 3222 5d0a 3c2f 636f 6465 3e3c ache2"].< │ │ │ 00289c40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediation │ │ │ -0028b2d0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0028b2e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0028b370: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0028b390: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0028b3b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0028b3e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0028b3f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0028b420: 6f76 655f 6e67 696e 780a 0a63 6c61 7373  ove_nginx..class
│ │ │ -0028b430: 2072 656d 6f76 655f 6e67 696e 7820 7b0a   remove_nginx {.
│ │ │ -0028b440: 2020 7061 636b 6167 6520 7b20 276e 6769    package { 'ngi
│ │ │ -0028b450: 6e78 273a 0a20 2020 2065 6e73 7572 6520  nx':.    ensure 
│ │ │ -0028b460: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0028b470: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -0028b530: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0028b540: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0028b580: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0028b590: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0028b5a0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0028b5b0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0028b5c0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0028b5d0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0028b5e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0028b620: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0028b630: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0028b650: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0028b660: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0028b680: 2755 6e69 6e73 7461 6c6c 206e 6769 6e78 'Uninstall nginx │ │ │ -0028b690: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ -0028b6a0: 206e 6769 6e78 2069 7320 7265 6d6f 7665 nginx is remove │ │ │ -0028b6b0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -0028b6c0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -0028b6d0: 2020 6e61 6d65 3a20 6e67 696e 780a 2020 name: nginx. │ │ │ -0028b6e0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -0028b6f0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -0028b700: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -0028b710: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0028b720: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ -0028b730: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ -0028b740: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -0028b750: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -0028b760: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -0028b770: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ -0028b780: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0028b790: 2020 2d20 7061 636b 6167 655f 6e67 696e - package_ngin │ │ │ -0028b7a0: 785f 7265 6d6f 7665 640a 2020 2d20 756e x_removed. - un │ │ │ -0028b7b0: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c known_severity.< │ │ │ +0028b2d0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +0028b2e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +0028b370: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0028b390: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0028b3a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028b3b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0028b3c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0028b3e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0028b410: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0028b420: 696e 7374 616c 6c20 6e67 696e 7820 5061  install nginx Pa
│ │ │ +0028b430: 636b 6167 653a 2045 6e73 7572 6520 6e67  ckage: Ensure ng
│ │ │ +0028b440: 696e 7820 6973 2072 656d 6f76 6564 270a  inx is removed'.
│ │ │ +0028b450: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0028b460: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0028b470: 616d 653a 206e 6769 6e78 0a20 2020 2073  ame: nginx.    s
│ │ │ +0028b480: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +0028b490: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0028b4a0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0028b4b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0028b4c0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +0028b4d0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +0028b4e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0028b4f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0028b500: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0028b510: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0028b520: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0028b530: 2070 6163 6b61 6765 5f6e 6769 6e78 5f72   package_nginx_r
│ │ │ +0028b540: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ +0028b550: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
< │ │ │ +0028b570: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0028b580: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0028b590: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0028b5a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0028b5b0: 6431 3031 3122 2074 6162 696e 6465 783d d1011" tabindex= │ │ │ +0028b5c0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +0028b5d0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +0028b5e0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +0028b5f0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +0028b600: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +0028b610: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0028b620: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0028b630: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +0028b6d0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0028b720: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0028b760: 636c 7564 6520 7265 6d6f 7665 5f6e 6769  clude remove_ngi
│ │ │ +0028b770: 6e78 0a0a 636c 6173 7320 7265 6d6f 7665  nx..class remove
│ │ │ +0028b780: 5f6e 6769 6e78 207b 0a20 2070 6163 6b61  _nginx {.  packa
│ │ │ +0028b790: 6765 207b 2027 6e67 696e 7827 3a0a 2020  ge { 'nginx':.  
│ │ │ +0028b7a0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0028b7b0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0028b7c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remedia │ │ │ -0028c570: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0028c580: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0028c590: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0028c5d0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -0028c5e0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -0028c5f0: 0a6d 6173 6b65 6420 3d20 5b22 6e67 696e  .masked = ["ngin
│ │ │ -0028c600: 7822 5d0a 3c2f 636f 6465 3e3c 2f70 7265  x"].
Remediation │ │ │ -0028c6c0: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ -0028c6d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0028c6e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0028c6f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0028c700: 7365 2220 6964 3d22 6964 3130 3135 223e se" id="id1015"> │ │ │ -0028c710: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Co │ │ │ +0028b6b0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0028b6e0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0028b700: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0028b710: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0028b730: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0028b740: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0028c780: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ -0028c760: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0028c770: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ -0028c7b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ -0028c7c0: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ -0028c800: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ -0028c810: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ -0028c820: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ -0028c830: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ -0028c840: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ -0028c850: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ -0028c860: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ -0028c870: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ -0028c880: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ -0028c890: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ -0028c8a0: 2020 202d 206e 616d 653a 206e 6769 6e78     - name: nginx
│ │ │ -0028c8b0: 2e73 6572 7669 6365 0a20 2020 2020 2020  .service.       
│ │ │ -0028c8c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0028c8d0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -0028c8e0: 7565 0a20 2020 2020 202d 206e 616d 653a  ue.      - name:
│ │ │ -0028c8f0: 206e 6769 6e78 2e73 6f63 6b65 740a 2020   nginx.socket.  
│ │ │ -0028c900: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0028c910: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -0028c920: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c  k: true.<
│ │ │ -0028c930: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -0028c9e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0028c9f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0028ca00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0028ca10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0028ca20: 7365 2220 6964 3d22 6964 3130 3136 223e se" id="id1016"> │ │ │ -0028ca30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0028caa0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0028cac0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0028caf0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0028cb10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0028ca80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0028ca90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0028cad0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0028cae0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0028cb30: 6469 7361 626c 655f 6e67 696e 780a 0a63 disable_nginx..c │ │ │ -0028cb40: 6c61 7373 2064 6973 6162 6c65 5f6e 6769 lass disable_ngi │ │ │ -0028cb50: 6e78 207b 0a20 2073 6572 7669 6365 207b nx {. service { │ │ │ -0028cb60: 276e 6769 6e78 273a 0a20 2020 2065 6e61 'nginx':. ena │ │ │ -0028cb70: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ -0028cb80: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -0028cb90: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ -0028cba0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ -0028cbb0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -0028cc60: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0028cc70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -0028cd00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0028cd20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0028cd30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0028cd40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0028cd50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0028cd70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0028cda0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0028cdb0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0028cdc0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0028cdd0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0028cde0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0028cdf0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0028ce00: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0028ce10: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0028ce20: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0028ce30: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0028ce40: 0a20 202d 2073 6572 7669 6365 5f6e 6769  .  - service_ngi
│ │ │ -0028ce50: 6e78 5f64 6973 6162 6c65 640a 2020 2d20  nx_disabled.  - 
│ │ │ -0028ce60: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -0028ce70: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -0028ce80: 6520 6e67 696e 7820 5365 7276 6963 6520  e nginx Service 
│ │ │ -0028ce90: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -0028cea0: 6520 6e67 696e 780a 2020 626c 6f63 6b3a  e nginx.  block:
│ │ │ -0028ceb0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0028cec0: 626c 6520 6e67 696e 7820 5365 7276 6963  ble nginx Servic
│ │ │ -0028ced0: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ -0028cee0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -0028cef0: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -0028cf00: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -0028cf10: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -0028cf20: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -0028cf30: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -0028cf40: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -0028cf50: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -0028cf60: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0028cf70: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0028cf80: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0028cf90: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0028cfa0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -0028cfb0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -0028cfc0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -0028cfd0: 653a 2044 6973 6162 6c65 206e 6769 6e78  e: Disable nginx
│ │ │ -0028cfe0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ -0028cff0: 6520 6e67 696e 782e 7365 7276 6963 6520  e nginx.service 
│ │ │ -0028d000: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -0028d010: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0028d020: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0028d030: 653a 206e 6769 6e78 2e73 6572 7669 6365  e: nginx.service
│ │ │ -0028d040: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -0028d050: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -0028d060: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0028d070: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -0028d080: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -0028d090: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -0028d0a0: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ -0028d0b0: 6769 6e78 2e73 6572 7669 6365 222c 206d  ginx.service", m
│ │ │ -0028d0c0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -0028d0d0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -0028d0e0: 6f63 6b65 7420 4578 6973 7473 202d 206e  ocket Exists - n
│ │ │ -0028d0f0: 6769 6e78 2e73 6f63 6b65 740a 2020 2020  ginx.socket.    
│ │ │ -0028d100: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0028d110: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0028d120: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0028d130: 6669 6c65 7320 6e67 696e 782e 736f 636b  files nginx.sock
│ │ │ -0028d140: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -0028d150: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0028d160: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0028d170: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0028d180: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -0028d190: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0028d1a0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0028d1b0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0028d1c0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0028d1d0: 3a20 4469 7361 626c 6520 6e67 696e 7820  : Disable nginx 
│ │ │ -0028d1e0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0028d1f0: 6520 536f 636b 6574 206e 6769 6e78 0a20  e Socket nginx. 
│ │ │ -0028d200: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0028d210: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0028d220: 2020 6e61 6d65 3a20 6e67 696e 782e 736f    name: nginx.so
│ │ │ -0028d230: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -0028d240: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0028d250: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0028d260: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -0028d270: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -0028d280: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -0028d290: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -0028d2a0: 6561 7263 6828 226e 6769 6e78 2e73 6f63  earch("nginx.soc
│ │ │ -0028d2b0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -0028d2c0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -0028d2d0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0028d2e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0028d2f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0028d300: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -0028d310: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0028d320: 2d20 7365 7276 6963 655f 6e67 696e 785f  - service_nginx_
│ │ │ -0028d330: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0028d340: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0028d350: 636b 0a20 202d 2075 6e6b 6e6f 776e 5f73  ck.  - unknown_s
│ │ │ -0028d360: 6576 6572 6974 790a 2020 7768 656e 3a20  everity.  when: 
│ │ │ -0028d370: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0028d380: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0028d390: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +0028c570: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +0028c580: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +0028c590: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0028c630: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0028c650: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0028c680: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0028c610: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0028c620: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0028c640: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0028c660: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0028c670: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0028c6b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0028c6c0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0028c6d0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0028c6e0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0028c6f0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0028c700: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ +0028c710: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +0028c720: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +0028c730: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +0028c740: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +0028c750: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ +0028c760: 655f 6e67 696e 785f 6469 7361 626c 6564 e_nginx_disabled │ │ │ +0028c770: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576 . - unknown_sev │ │ │ +0028c780: 6572 6974 790a 0a2d 206e 616d 653a 2044 erity..- name: D │ │ │ +0028c790: 6973 6162 6c65 206e 6769 6e78 2053 6572 isable nginx Ser │ │ │ +0028c7a0: 7669 6365 202d 2044 6973 6162 6c65 2073 vice - Disable s │ │ │ +0028c7b0: 6572 7669 6365 206e 6769 6e78 0a20 2062 ervice nginx. b │ │ │ +0028c7c0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ +0028c7d0: 2044 6973 6162 6c65 206e 6769 6e78 2053 Disable nginx S │ │ │ +0028c7e0: 6572 7669 6365 202d 2043 6f6c 6c65 6374 ervice - Collect │ │ │ +0028c7f0: 2073 7973 7465 6d64 2053 6572 7669 6365 systemd Service │ │ │ +0028c800: 7320 5072 6573 656e 7420 696e 2074 6865 s Present in the │ │ │ +0028c810: 2053 7973 7465 6d0a 2020 2020 616e 7369 System. ansi │ │ │ +0028c820: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ +0028c830: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ +0028c840: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ +0028c850: 7320 2d2d 7479 7065 2073 6572 7669 6365 s --type service │ │ │ +0028c860: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ +0028c870: 6572 7669 6365 5f65 7869 7374 730a 2020 ervice_exists. │ │ │ +0028c880: 2020 6368 616e 6765 645f 7768 656e 3a20 changed_when: │ │ │ +0028c890: 6661 6c73 650a 2020 2020 6661 696c 6564 false. failed │ │ │ +0028c8a0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65 _when: service_e │ │ │ +0028c8b0: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ +0028c8c0: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ +0028c8d0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ +0028c8e0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +0028c8f0: 6e67 696e 7820 5365 7276 6963 6520 2d20 nginx Service - │ │ │ +0028c900: 456e 7375 7265 206e 6769 6e78 2e73 6572 Ensure nginx.ser │ │ │ +0028c910: 7669 6365 2069 7320 4d61 736b 6564 0a20 vice is Masked. │ │ │ +0028c920: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +0028c930: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +0028c940: 2020 6e61 6d65 3a20 6e67 696e 782e 7365 name: nginx.se │ │ │ +0028c950: 7276 6963 650a 2020 2020 2020 7374 6174 rvice. stat │ │ │ +0028c960: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ +0028c970: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +0028c980: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ +0028c990: 7565 0a20 2020 2077 6865 6e3a 2073 6572 ue. when: ser │ │ │ +0028c9a0: 7669 6365 5f65 7869 7374 732e 7374 646f vice_exists.stdo │ │ │ +0028c9b0: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ +0028c9c0: 6368 2822 6e67 696e 782e 7365 7276 6963 ch("nginx.servic │ │ │ +0028c9d0: 6522 2c20 6d75 6c74 696c 696e 653d 5472 e", multiline=Tr │ │ │ +0028c9e0: 7565 290a 0a20 202d 206e 616d 653a 2055 ue).. - name: U │ │ │ +0028c9f0: 6e69 7420 536f 636b 6574 2045 7869 7374 nit Socket Exist │ │ │ +0028ca00: 7320 2d20 6e67 696e 782e 736f 636b 6574 s - nginx.socket │ │ │ +0028ca10: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +0028ca20: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379 ltin.command: sy │ │ │ +0028ca30: 7374 656d 6374 6c20 2d71 206c 6973 742d stemctl -q list- │ │ │ +0028ca40: 756e 6974 2d66 696c 6573 206e 6769 6e78 unit-files nginx │ │ │ +0028ca50: 2e73 6f63 6b65 740a 2020 2020 7265 6769 .socket. regi │ │ │ +0028ca60: 7374 6572 3a20 736f 636b 6574 5f66 696c ster: socket_fil │ │ │ +0028ca70: 655f 6578 6973 7473 0a20 2020 2063 6861 e_exists. cha │ │ │ +0028ca80: 6e67 6564 5f77 6865 6e3a 2066 616c 7365 nged_when: false │ │ │ +0028ca90: 0a20 2020 2066 6169 6c65 645f 7768 656e . failed_when │ │ │ +0028caa0: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ +0028cab0: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ +0028cac0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ +0028cad0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ +0028cae0: 206e 616d 653a 2044 6973 6162 6c65 206e name: Disable n │ │ │ +0028caf0: 6769 6e78 2053 6572 7669 6365 202d 2044 ginx Service - D │ │ │ +0028cb00: 6973 6162 6c65 2053 6f63 6b65 7420 6e67 isable Socket ng │ │ │ +0028cb10: 696e 780a 2020 2020 616e 7369 626c 652e inx. ansible. │ │ │ +0028cb20: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ +0028cb30: 0a20 2020 2020 206e 616d 653a 206e 6769 . name: ngi │ │ │ +0028cb40: 6e78 2e73 6f63 6b65 740a 2020 2020 2020 nx.socket. │ │ │ +0028cb50: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +0028cb60: 2020 2020 2073 7461 7465 3a20 7374 6f70 state: stop │ │ │ +0028cb70: 7065 640a 2020 2020 2020 6d61 736b 6564 ped. masked │ │ │ +0028cb80: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ +0028cb90: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ +0028cba0: 7374 732e 7374 646f 7574 5f6c 696e 6573 sts.stdout_lines │ │ │ +0028cbb0: 2069 7320 7365 6172 6368 2822 6e67 696e is search("ngin │ │ │ +0028cbc0: 782e 736f 636b 6574 222c 206d 756c 7469 x.socket", multi │ │ │ +0028cbd0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167 line=True). tag │ │ │ +0028cbe0: 733a 0a20 202d 2064 6973 6162 6c65 5f73 s:. - disable_s │ │ │ +0028cbf0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0028cc00: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0028cc10: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0028cc20: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ +0028cc30: 6564 0a20 202d 2073 6572 7669 6365 5f6e ed. - service_n │ │ │ +0028cc40: 6769 6e78 5f64 6973 6162 6c65 640a 2020 ginx_disabled. │ │ │ +0028cc50: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ +0028cc60: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e e_block. - unkn │ │ │ +0028cc70: 6f77 6e5f 7365 7665 7269 7479 0a20 2077 own_severity. w │ │ │ +0028cc80: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ +0028cc90: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +0028cca0: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.
R │ │ │ +0028cd60: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +0028cd70: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +0028cd80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +0028ce00: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0028ce20: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +0028ce10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0028ce30: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +0028ce60: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +0028ce80: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0028ceb0: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +0028cec0: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +0028ced0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +0028cee0: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +0028cef0: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +0028cf00: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +0028cf10: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +0028cf20: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +0028cf30: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +0028cf40: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +0028cf50: 616d 653a 206e 6769 6e78 2e73 6572 7669  ame: nginx.servi
│ │ │ +0028cf60: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +0028cf70: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0028cf80: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +0028cf90: 2020 202d 206e 616d 653a 206e 6769 6e78     - name: nginx
│ │ │ +0028cfa0: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +0028cfb0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0028cfc0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +0028cfd0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +0028cfe0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +0028d090: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0028d0a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +0028d120: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0028d140: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0028d190: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0028d1c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0028d1e0: 655f 6e67 696e 780a 0a63 6c61 7373 2064  e_nginx..class d
│ │ │ +0028d1f0: 6973 6162 6c65 5f6e 6769 6e78 207b 0a20  isable_nginx {. 
│ │ │ +0028d200: 2073 6572 7669 6365 207b 276e 6769 6e78   service {'nginx
│ │ │ +0028d210: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +0028d220: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +0028d230: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +0028d240: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +0028d260: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0028d300: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0028d310: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0028d320: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0028d330: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028d340: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028d350: 7365 2220 6964 3d22 6964 3130 3137 223e se" id="id1017"> │ │ │ +0028d360: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0028d370: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0028d380: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +0028d390: 226e 6769 6e78 225d 0a3c 2f63 6f64 653e  "nginx"].
│ │ │  0028d3a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -0028e8f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0028e900: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +0028d130: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0028d150: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0028d1a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0028d1b0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0028e9a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0028ea40: 696e 636c 7564 6520 7265 6d6f 7665 5f64  include remove_d
│ │ │ -0028ea50: 6f76 6563 6f74 2d63 6f72 650a 0a63 6c61  ovecot-core..cla
│ │ │ -0028ea60: 7373 2072 656d 6f76 655f 646f 7665 636f  ss remove_doveco
│ │ │ -0028ea70: 742d 636f 7265 207b 0a20 2070 6163 6b61  t-core {.  packa
│ │ │ -0028ea80: 6765 207b 2027 646f 7665 636f 742d 636f  ge { 'dovecot-co
│ │ │ -0028ea90: 7265 273a 0a20 2020 2065 6e73 7572 6520  re':.    ensure 
│ │ │ -0028eaa0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0028eab0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -0028eb70: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0028eb80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0028ebc0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0028ebd0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0028ebe0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0028ebf0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0028ec00: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0028ec90: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0028eca0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -0028e990: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0028e9c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0028e9d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0028ea10: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0028ea20: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -0028ec10: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0028ec20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0028ec60: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0028ec70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -0028ecc0: 2755 6e69 6e73 7461 6c6c 2064 6f76 6563 'Uninstall dovec │ │ │ -0028ecd0: 6f74 2050 6163 6b61 6765 3a20 456e 7375 ot Package: Ensu │ │ │ -0028ece0: 7265 2064 6f76 6563 6f74 2d63 6f72 6520 re dovecot-core │ │ │ -0028ecf0: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ -0028ed00: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -0028ed10: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -0028ed20: 2064 6f76 6563 6f74 2d63 6f72 650a 2020 dovecot-core. │ │ │ -0028ed30: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -0028ed40: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -0028ed50: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0028ed60: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -0028ed70: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -0028ed80: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74 on. - no_reboot │ │ │ -0028ed90: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -0028eda0: 6167 655f 646f 7665 636f 745f 7265 6d6f age_dovecot_remo │ │ │ -0028edb0: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f ved. - unknown_ │ │ │ -0028edc0: 7365 7665 7269 7479 0a3c 2f63 6f64 653e severity. │ │ │ +0028e8f0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +0028e900: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ +0028e9e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028e9f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0028ea40: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0028ea50: 6c6c 2064 6f76 6563 6f74 2050 6163 6b61  ll dovecot Packa
│ │ │ +0028ea60: 6765 3a20 456e 7375 7265 2064 6f76 6563  ge: Ensure dovec
│ │ │ +0028ea70: 6f74 2d63 6f72 6520 6973 2072 656d 6f76  ot-core is remov
│ │ │ +0028ea80: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0028ea90: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0028eaa0: 2020 206e 616d 653a 2064 6f76 6563 6f74     name: dovecot
│ │ │ +0028eab0: 2d63 6f72 650a 2020 2020 7374 6174 653a  -core.    state:
│ │ │ +0028eac0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +0028ead0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0028eae0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0028eaf0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0028eb00: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0028eb10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0028eb20: 2020 2d20 7061 636b 6167 655f 646f 7665    - package_dove
│ │ │ +0028eb30: 636f 745f 7265 6d6f 7665 640a 2020 2d20  cot_removed.  - 
│ │ │ +0028eb40: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0028eb50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +0028ec10: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0028ec20: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +0028e9c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028e9d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028ea10: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0028ea20: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0028eca0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0028ecc0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0028ed10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0028ed40: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0028ed60: 655f 646f 7665 636f 742d 636f 7265 0a0a  e_dovecot-core..
│ │ │ +0028ed70: 636c 6173 7320 7265 6d6f 7665 5f64 6f76  class remove_dov
│ │ │ +0028ed80: 6563 6f74 2d63 6f72 6520 7b0a 2020 7061  ecot-core {.  pa
│ │ │ +0028ed90: 636b 6167 6520 7b20 2764 6f76 6563 6f74  ckage { 'dovecot
│ │ │ +0028eda0: 2d63 6f72 6527 3a0a 2020 2020 656e 7375  -core':.    ensu
│ │ │ +0028edb0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +0028edc0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  0028edd0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation OSB │ │ │ -0028fbc0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0028fbd0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -0028fc20: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0028fc30: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -0028fc40: 3d20 5b22 646f 7665 636f 7422 5d0a 3c2f  = ["dovecot"].
R │ │ │ -0028fd00: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -0028fd10: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -0028fd20: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ +0028ecd0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0028ece0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0028ed20: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0028ed30: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -0028fda0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0028fdc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ -0028fdb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0028fdd0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ -0028fe00: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ -0028fe20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0028fe50: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ -0028fe60: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ -0028fe70: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ -0028fe80: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ -0028fe90: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ -0028fea0: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ -0028feb0: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ -0028fec0: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ -0028fed0: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ -0028fee0: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ -0028fef0: 616d 653a 2064 6f76 6563 6f74 2e73 6572  ame: dovecot.ser
│ │ │ -0028ff00: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ -0028ff10: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0028ff20: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ -0028ff30: 2020 2020 202d 206e 616d 653a 2064 6f76       - name: dov
│ │ │ -0028ff40: 6563 6f74 2e73 6f63 6b65 740a 2020 2020  ecot.socket.    
│ │ │ -0028ff50: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0028ff60: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -0028ff70: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediati │ │ │ -00290030: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00290040: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002900c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002900d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002900e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00290120: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00290130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00290150: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00290170: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00290180: 7361 626c 655f 646f 7665 636f 740a 0a63  sable_dovecot..c
│ │ │ -00290190: 6c61 7373 2064 6973 6162 6c65 5f64 6f76  lass disable_dov
│ │ │ -002901a0: 6563 6f74 207b 0a20 2073 6572 7669 6365  ecot {.  service
│ │ │ -002901b0: 207b 2764 6f76 6563 6f74 273a 0a20 2020   {'dovecot':.   
│ │ │ -002901c0: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ -002901d0: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ -002901e0: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ -002901f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ -002902b0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -002902c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002902d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002902e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002902f0: 7365 2220 6964 3d22 6964 3130 3237 223e se" id="id1027"> │ │ │ -00290300: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00290370: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00290390: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002903c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00290350: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00290360: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002903a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002903b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00290400: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00290410: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00290420: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00290430: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00290440: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -00290450: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -00290460: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -00290470: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00290480: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -00290490: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -002904a0: 5f64 6f76 6563 6f74 5f64 6973 6162 6c65 _dovecot_disable │ │ │ -002904b0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365 d. - unknown_se │ │ │ -002904c0: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20 verity..- name: │ │ │ -002904d0: 4469 7361 626c 6520 446f 7665 636f 7420 Disable Dovecot │ │ │ -002904e0: 5365 7276 6963 6520 2d20 4469 7361 626c Service - Disabl │ │ │ -002904f0: 6520 7365 7276 6963 6520 646f 7665 636f e service doveco │ │ │ -00290500: 740a 2020 626c 6f63 6b3a 0a0a 2020 2d20 t. block:.. - │ │ │ -00290510: 6e61 6d65 3a20 4469 7361 626c 6520 446f name: Disable Do │ │ │ -00290520: 7665 636f 7420 5365 7276 6963 6520 2d20 vecot Service - │ │ │ -00290530: 436f 6c6c 6563 7420 7379 7374 656d 6420 Collect systemd │ │ │ -00290540: 5365 7276 6963 6573 2050 7265 7365 6e74 Services Present │ │ │ -00290550: 2069 6e20 7468 6520 5379 7374 656d 0a20 in the System. │ │ │ -00290560: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00290570: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -00290580: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -00290590: 6974 2d66 696c 6573 202d 2d74 7970 6520 it-files --type │ │ │ -002905a0: 7365 7276 6963 650a 2020 2020 7265 6769 service. regi │ │ │ -002905b0: 7374 6572 3a20 7365 7276 6963 655f 6578 ster: service_ex │ │ │ -002905c0: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -002905d0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -002905e0: 2066 6169 6c65 645f 7768 656e 3a20 7365 failed_when: se │ │ │ -002905f0: 7276 6963 655f 6578 6973 7473 2e72 6320 rvice_exists.rc │ │ │ -00290600: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -00290610: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -00290620: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -00290630: 6973 6162 6c65 2044 6f76 6563 6f74 2053 isable Dovecot S │ │ │ -00290640: 6572 7669 6365 202d 2045 6e73 7572 6520 ervice - Ensure │ │ │ -00290650: 646f 7665 636f 742e 7365 7276 6963 6520 dovecot.service │ │ │ -00290660: 6973 204d 6173 6b65 640a 2020 2020 616e is Masked. an │ │ │ -00290670: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ -00290680: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ -00290690: 653a 2064 6f76 6563 6f74 2e73 6572 7669 e: dovecot.servi │ │ │ -002906a0: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -002906b0: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -002906c0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -002906d0: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -002906e0: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -002906f0: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -00290700: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -00290710: 2264 6f76 6563 6f74 2e73 6572 7669 6365 "dovecot.service │ │ │ -00290720: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -00290730: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e e).. - name: Un │ │ │ -00290740: 6974 2053 6f63 6b65 7420 4578 6973 7473 it Socket Exists │ │ │ -00290750: 202d 2064 6f76 6563 6f74 2e73 6f63 6b65 - dovecot.socke │ │ │ -00290760: 740a 2020 2020 616e 7369 626c 652e 6275 t. ansible.bu │ │ │ -00290770: 696c 7469 6e2e 636f 6d6d 616e 643a 2073 iltin.command: s │ │ │ -00290780: 7973 7465 6d63 746c 202d 7120 6c69 7374 ystemctl -q list │ │ │ -00290790: 2d75 6e69 742d 6669 6c65 7320 646f 7665 -unit-files dove │ │ │ -002907a0: 636f 742e 736f 636b 6574 0a20 2020 2072 cot.socket. r │ │ │ -002907b0: 6567 6973 7465 723a 2073 6f63 6b65 745f egister: socket_ │ │ │ -002907c0: 6669 6c65 5f65 7869 7374 730a 2020 2020 file_exists. │ │ │ -002907d0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -002907e0: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ -002907f0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ -00290800: 5f65 7869 7374 732e 7263 206e 6f74 2069 _exists.rc not i │ │ │ -00290810: 6e20 5b30 2c20 315d 0a20 2020 2063 6865 n [0, 1]. che │ │ │ -00290820: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a ck_mode: false.. │ │ │ -00290830: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -00290840: 6520 446f 7665 636f 7420 5365 7276 6963 e Dovecot Servic │ │ │ -00290850: 6520 2d20 4469 7361 626c 6520 536f 636b e - Disable Sock │ │ │ -00290860: 6574 2064 6f76 6563 6f74 0a20 2020 2061 et dovecot. a │ │ │ -00290870: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ -00290880: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ -00290890: 6d65 3a20 646f 7665 636f 742e 736f 636b me: dovecot.sock │ │ │ -002908a0: 6574 0a20 2020 2020 2065 6e61 626c 6564 et. enabled │ │ │ -002908b0: 3a20 6661 6c73 650a 2020 2020 2020 7374 : false. st │ │ │ -002908c0: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ -002908d0: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -002908e0: 2020 2020 7768 656e 3a20 736f 636b 6574 when: socket │ │ │ -002908f0: 5f66 696c 655f 6578 6973 7473 2e73 7464 _file_exists.std │ │ │ -00290900: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ -00290910: 7263 6828 2264 6f76 6563 6f74 2e73 6f63 rch("dovecot.soc │ │ │ -00290920: 6b65 7422 2c20 6d75 6c74 696c 696e 653d ket", multiline= │ │ │ -00290930: 5472 7565 290a 2020 7461 6773 3a0a 2020 True). tags:. │ │ │ -00290940: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00290950: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00290960: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00290970: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ -00290980: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -00290990: 2d20 7365 7276 6963 655f 646f 7665 636f - service_doveco │ │ │ -002909a0: 745f 6469 7361 626c 6564 0a20 202d 2073 t_disabled. - s │ │ │ -002909b0: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ -002909c0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e lock. - unknown │ │ │ -002909d0: 5f73 6576 6572 6974 790a 2020 7768 656e _severity. when │ │ │ -002909e0: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -002909f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00290a00: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.Remediation Ans │ │ │ +0028fbc0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0028fbd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

< │ │ │ +0028fc50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0028fc70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0028fcc0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0028fcf0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0028fd10: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0028fd20: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0028fd30: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0028fd40: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0028fd50: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0028fd60: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0028fd70: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0028fd80: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0028fd90: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0028fda0: 2d20 7365 7276 6963 655f 646f 7665 636f  - service_doveco
│ │ │ +0028fdb0: 745f 6469 7361 626c 6564 0a20 202d 2075  t_disabled.  - u
│ │ │ +0028fdc0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +0028fdd0: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +0028fde0: 2044 6f76 6563 6f74 2053 6572 7669 6365   Dovecot Service
│ │ │ +0028fdf0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +0028fe00: 6365 2064 6f76 6563 6f74 0a20 2062 6c6f  ce dovecot.  blo
│ │ │ +0028fe10: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +0028fe20: 6973 6162 6c65 2044 6f76 6563 6f74 2053  isable Dovecot S
│ │ │ +0028fe30: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +0028fe40: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +0028fe50: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +0028fe60: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +0028fe70: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +0028fe80: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +0028fe90: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +0028fea0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +0028feb0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0028fec0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +0028fed0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0028fee0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0028fef0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +0028ff00: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0028ff10: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0028ff20: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0028ff30: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0028ff40: 446f 7665 636f 7420 5365 7276 6963 6520  Dovecot Service 
│ │ │ +0028ff50: 2d20 456e 7375 7265 2064 6f76 6563 6f74  - Ensure dovecot
│ │ │ +0028ff60: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +0028ff70: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +0028ff80: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0028ff90: 2020 2020 2020 6e61 6d65 3a20 646f 7665        name: dove
│ │ │ +0028ffa0: 636f 742e 7365 7276 6963 650a 2020 2020  cot.service.    
│ │ │ +0028ffb0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0028ffc0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0028ffd0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +0028ffe0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0028fff0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00290000: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00290010: 7320 7365 6172 6368 2822 646f 7665 636f  s search("doveco
│ │ │ +00290020: 742e 7365 7276 6963 6522 2c20 6d75 6c74  t.service", mult
│ │ │ +00290030: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00290040: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00290050: 6574 2045 7869 7374 7320 2d20 646f 7665  et Exists - dove
│ │ │ +00290060: 636f 742e 736f 636b 6574 0a20 2020 2061  cot.socket.    a
│ │ │ +00290070: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00290080: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00290090: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002900a0: 696c 6573 2064 6f76 6563 6f74 2e73 6f63  iles dovecot.soc
│ │ │ +002900b0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +002900c0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002900d0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002900e0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002900f0: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +00290100: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00290110: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00290120: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00290130: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00290140: 653a 2044 6973 6162 6c65 2044 6f76 6563  e: Disable Dovec
│ │ │ +00290150: 6f74 2053 6572 7669 6365 202d 2044 6973  ot Service - Dis
│ │ │ +00290160: 6162 6c65 2053 6f63 6b65 7420 646f 7665  able Socket dove
│ │ │ +00290170: 636f 740a 2020 2020 616e 7369 626c 652e  cot.    ansible.
│ │ │ +00290180: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00290190: 0a20 2020 2020 206e 616d 653a 2064 6f76  .      name: dov
│ │ │ +002901a0: 6563 6f74 2e73 6f63 6b65 740a 2020 2020  ecot.socket.    
│ │ │ +002901b0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002901c0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002901d0: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +002901e0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002901f0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +00290200: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00290210: 6573 2069 7320 7365 6172 6368 2822 646f  es is search("do
│ │ │ +00290220: 7665 636f 742e 736f 636b 6574 222c 206d  vecot.socket", m
│ │ │ +00290230: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +00290240: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00290250: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00290260: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00290270: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00290280: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00290290: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002902a0: 6365 5f64 6f76 6563 6f74 5f64 6973 6162  ce_dovecot_disab
│ │ │ +002902b0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002902c0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002902d0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +002902e0: 7479 0a20 2077 6865 6e3a 2027 226c 696e  ty.  when: '"lin
│ │ │ +002902f0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00290300: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00290310: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +002903d0: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ +002903e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002903f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00290400: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00290410: 7365 2220 6964 3d22 6964 3130 3235 223e se" id="id1025"> │ │ │ +00290420: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ +0028fc80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0028fc90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0028fcd0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0028fce0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00290490: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ +00290470: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00290480: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ +002904c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ +002904d0: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ +00290510: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ +00290520: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ +00290530: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ +00290540: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ +00290550: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ +00290560: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ +00290570: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ +00290580: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ +00290590: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ +002905a0: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ +002905b0: 2020 202d 206e 616d 653a 2064 6f76 6563     - name: dovec
│ │ │ +002905c0: 6f74 2e73 6572 7669 6365 0a20 2020 2020  ot.service.     
│ │ │ +002905d0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002905e0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ +002905f0: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ +00290600: 653a 2064 6f76 6563 6f74 2e73 6f63 6b65  e: dovecot.socke
│ │ │ +00290610: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ +00290620: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +00290630: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ +00290650: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00290660: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00290670: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00290680: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00290690: 6431 3032 3622 2074 6162 696e 6465 783d d1026" tabindex= │ │ │ +002906a0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002906b0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002906c0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002906d0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002906e0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002906f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00290700: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00290710: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +002907b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00290800: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00290790: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002907c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002907e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002907f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00290810: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00290820: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00290840: 7564 6520 6469 7361 626c 655f 646f 7665  ude disable_dove
│ │ │ +00290850: 636f 740a 0a63 6c61 7373 2064 6973 6162  cot..class disab
│ │ │ +00290860: 6c65 5f64 6f76 6563 6f74 207b 0a20 2073  le_dovecot {.  s
│ │ │ +00290870: 6572 7669 6365 207b 2764 6f76 6563 6f74  ervice {'dovecot
│ │ │ +00290880: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +00290890: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +002908a0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +002908b0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +002908d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00290970: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00290980: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00290990: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002909a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002909b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002909c0: 7365 2220 6964 3d22 6964 3130 3237 223e se" id="id1027"> │ │ │ +002909d0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +002909e0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +002909f0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +00290a00: 2264 6f76 6563 6f74 225d 0a3c 2f63 6f64  "dovecot"].
Remedi │ │ │ -00292360: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00292370: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00292380: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00292420: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00292440: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00292470: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00292400: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00292410: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00292430: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00292450: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00292460: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002924a0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -002924b0: 6465 2072 656d 6f76 655f 6c64 6170 2d75 de remove_ldap-u │ │ │ -002924c0: 7469 6c73 0a0a 636c 6173 7320 7265 6d6f tils..class remo │ │ │ -002924d0: 7665 5f6c 6461 702d 7574 696c 7320 7b0a ve_ldap-utils {. │ │ │ -002924e0: 2020 7061 636b 6167 6520 7b20 276c 6461 package { 'lda │ │ │ -002924f0: 702d 7574 696c 7327 3a0a 2020 2020 656e p-utils':. en │ │ │ -00292500: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ -00292510: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Reme │ │ │ -002925d0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002925e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002925f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00292690: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002926e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00292720: 616d 653a 2027 456e 7375 7265 204c 4441  ame: 'Ensure LDA
│ │ │ -00292730: 5020 636c 6965 6e74 2069 7320 6e6f 7420  P client is not 
│ │ │ -00292740: 696e 7374 616c 6c65 643a 2045 6e73 7572  installed: Ensur
│ │ │ -00292750: 6520 6c64 6170 2d75 7469 6c73 2069 7320  e ldap-utils is 
│ │ │ -00292760: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00292770: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00292780: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c64  ge:.    name: ld
│ │ │ -00292790: 6170 2d75 7469 6c73 0a20 2020 2073 7461  ap-utils.    sta
│ │ │ -002927a0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -002927b0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002927c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002927d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002927e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002927f0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00292800: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00292810: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00292820: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ -00292830: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00292360: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +00292370: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
Co │ │ │ -00292670: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002926a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002926c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002926d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002926f0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00292700: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +00292400: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00292410: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00292430: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00292450: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00292460: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002924a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002924b0: 653a 2027 456e 7375 7265 204c 4441 5020  e: 'Ensure LDAP 
│ │ │ +002924c0: 636c 6965 6e74 2069 7320 6e6f 7420 696e  client is not in
│ │ │ +002924d0: 7374 616c 6c65 643a 2045 6e73 7572 6520  stalled: Ensure 
│ │ │ +002924e0: 6c64 6170 2d75 7469 6c73 2069 7320 7265  ldap-utils is re
│ │ │ +002924f0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +00292500: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00292510: 3a0a 2020 2020 6e61 6d65 3a20 6c64 6170  :.    name: ldap
│ │ │ +00292520: 2d75 7469 6c73 0a20 2020 2073 7461 7465  -utils.    state
│ │ │ +00292530: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00292540: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00292550: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00292560: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00292570: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00292580: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +00292590: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002925a0: 640a 2020 2d20 7061 636b 6167 655f 6f70  d.  - package_op
│ │ │ +002925b0: 656e 6c64 6170 2d63 6c69 656e 7473 5f72  enldap-clients_r
│ │ │ +002925c0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediat │ │ │ +00292680: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00292690: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002926d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002926e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002926f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00292700: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00292710: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00292720: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00292730: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00292770: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00292780: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002927a0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002927b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +002927d0: 2072 656d 6f76 655f 6c64 6170 2d75 7469 remove_ldap-uti │ │ │ +002927e0: 6c73 0a0a 636c 6173 7320 7265 6d6f 7665 ls..class remove │ │ │ +002927f0: 5f6c 6461 702d 7574 696c 7320 7b0a 2020 _ldap-utils {. │ │ │ +00292800: 7061 636b 6167 6520 7b20 276c 6461 702d package { 'ldap- │ │ │ +00292810: 7574 696c 7327 3a0a 2020 2020 656e 7375 utils':. ensu │ │ │ +00292820: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ +00292830: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ 00292840: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Re │ │ │ -00293ff0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00294000: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00294010: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002940a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002940b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00294100: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00294140: 6e63 6c75 6465 2072 656d 6f76 655f 736c  nclude remove_sl
│ │ │ -00294150: 6170 640a 0a63 6c61 7373 2072 656d 6f76  apd..class remov
│ │ │ -00294160: 655f 736c 6170 6420 7b0a 2020 7061 636b  e_slapd {.  pack
│ │ │ -00294170: 6167 6520 7b20 2773 6c61 7064 273a 0a20  age { 'slapd':. 
│ │ │ -00294180: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00294190: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -002941a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -00294260: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00294270: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -00294090: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002940c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002940d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00294110: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00294120: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002942f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00294310: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00294360: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00294390: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -002943b0: 7461 6c6c 2073 6c61 7064 2050 6163 6b61  tall slapd Packa
│ │ │ -002943c0: 6765 3a20 456e 7375 7265 2073 6c61 7064  ge: Ensure slapd
│ │ │ -002943d0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -002943e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -002943f0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00294400: 3a20 736c 6170 640a 2020 2020 7374 6174  : slapd.    stat
│ │ │ -00294410: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00294420: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00294430: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00294440: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00294450: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00294460: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -00294470: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00294480: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00294490: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002944a0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -002944b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002944c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002944d0: 6163 6b61 6765 5f6f 7065 6e6c 6461 702d  ackage_openldap-
│ │ │ -002944e0: 7365 7276 6572 735f 7265 6d6f 7665 640a  servers_removed.
│ │ │ +00293ff0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +00294000: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -00294320: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00294330: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00294370: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00294380: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +002940a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00294140: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00294150: 6c20 736c 6170 6420 5061 636b 6167 653a  l slapd Package:
│ │ │ +00294160: 2045 6e73 7572 6520 736c 6170 6420 6973   Ensure slapd is
│ │ │ +00294170: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00294180: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00294190: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ +002941a0: 6c61 7064 0a20 2020 2073 7461 7465 3a20  lapd.    state: 
│ │ │ +002941b0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +002941c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002941d0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +002941e0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002941f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00294200: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00294210: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00294220: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00294230: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00294240: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +00294250: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00294260: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00294270: 6167 655f 6f70 656e 6c64 6170 2d73 6572  age_openldap-ser
│ │ │ +00294280: 7665 7273 5f72 656d 6f76 6564 0a3c 2f63  vers_removed.
│ │ │ +002942a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00294340: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00294350: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00294360: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +00294090: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002940c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002940d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00294110: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00294120: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002943f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00294400: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00294450: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00294490: 6e63 6c75 6465 2072 656d 6f76 655f 736c  nclude remove_sl
│ │ │ +002944a0: 6170 640a 0a63 6c61 7373 2072 656d 6f76  apd..class remov
│ │ │ +002944b0: 655f 736c 6170 6420 7b0a 2020 7061 636b  e_slapd {.  pack
│ │ │ +002944c0: 6167 6520 7b20 2773 6c61 7064 273a 0a20  age { 'slapd':. 
│ │ │ +002944d0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002944e0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002944f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -002952c0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002952d0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002952e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002952f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -00295330: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -00295340: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -00295350: 5b22 736c 6170 6422 5d0a 3c2f 636f 6465  ["slapd"].
Remed │ │ │ -00295410: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -00295420: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
C │ │ │ +002943e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00294410: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00294420: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00294460: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00294470: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -002954c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -00295570: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -00295580: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -00295590: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -002955a0: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -002955b0: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -002955c0: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -002955d0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -002955e0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -002955f0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -00295600: 2073 6c61 7064 2e73 6572 7669 6365 0a20   slapd.service. 
│ │ │ -00295610: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -00295620: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -00295630: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -00295640: 206e 616d 653a 2073 6c61 7064 2e73 6f63   name: slapd.soc
│ │ │ -00295650: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ -00295660: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00295670: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ -00295730: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00295740: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002954b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002954e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -002954f0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -00295530: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00295540: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002957e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00295880: 636c 7564 6520 6469 7361 626c 655f 736c  clude disable_sl
│ │ │ -00295890: 6170 640a 0a63 6c61 7373 2064 6973 6162  apd..class disab
│ │ │ -002958a0: 6c65 5f73 6c61 7064 207b 0a20 2073 6572  le_slapd {.  ser
│ │ │ -002958b0: 7669 6365 207b 2773 6c61 7064 273a 0a20  vice {'slapd':. 
│ │ │ -002958c0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -002958d0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -002958e0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -002958f0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00295900: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002959b0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002959c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002957d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00295800: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00295810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00295850: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00295860: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -00295a50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00295a60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00295a80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00295aa0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00295ab0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00295af0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00295b00: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00295b10: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00295b20: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00295b30: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00295b40: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00295b50: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00295b60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00295b70: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00295b80: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00295b90: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00295ba0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00295bb0: 6572 7669 6365 5f73 6c61 7064 5f64 6973  ervice_slapd_dis
│ │ │ -00295bc0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -00295bd0: 6973 6162 6c65 204c 4441 5020 5365 7276  isable LDAP Serv
│ │ │ -00295be0: 6572 2028 736c 6170 6429 202d 2044 6973  er (slapd) - Dis
│ │ │ -00295bf0: 6162 6c65 2073 6572 7669 6365 2073 6c61  able service sla
│ │ │ -00295c00: 7064 0a20 2062 6c6f 636b 3a0a 0a20 202d  pd.  block:..  -
│ │ │ -00295c10: 206e 616d 653a 2044 6973 6162 6c65 204c   name: Disable L
│ │ │ -00295c20: 4441 5020 5365 7276 6572 2028 736c 6170  DAP Server (slap
│ │ │ -00295c30: 6429 202d 2043 6f6c 6c65 6374 2073 7973  d) - Collect sys
│ │ │ -00295c40: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -00295c50: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -00295c60: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -00295c70: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -00295c80: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -00295c90: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -00295ca0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -00295cb0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -00295cc0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -00295cd0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -00295ce0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -00295cf0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -00295d00: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00295d10: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00295d20: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00295d30: 6d65 3a20 4469 7361 626c 6520 4c44 4150  me: Disable LDAP
│ │ │ -00295d40: 2053 6572 7665 7220 2873 6c61 7064 2920   Server (slapd) 
│ │ │ -00295d50: 2d20 456e 7375 7265 2073 6c61 7064 2e73  - Ensure slapd.s
│ │ │ -00295d60: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -00295d70: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00295d80: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00295d90: 2020 2020 6e61 6d65 3a20 736c 6170 642e      name: slapd.
│ │ │ -00295da0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -00295db0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -00295dc0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00295dd0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -00295de0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00295df0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -00295e00: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00295e10: 6172 6368 2822 736c 6170 642e 7365 7276  arch("slapd.serv
│ │ │ -00295e20: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -00295e30: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -00295e40: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -00295e50: 7374 7320 2d20 736c 6170 642e 736f 636b  sts - slapd.sock
│ │ │ -00295e60: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ -00295e70: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -00295e80: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -00295e90: 742d 756e 6974 2d66 696c 6573 2073 6c61  t-unit-files sla
│ │ │ -00295ea0: 7064 2e73 6f63 6b65 740a 2020 2020 7265  pd.socket.    re
│ │ │ -00295eb0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -00295ec0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -00295ed0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00295ee0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00295ef0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -00295f00: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -00295f10: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -00295f20: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -00295f30: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00295f40: 204c 4441 5020 5365 7276 6572 2028 736c   LDAP Server (sl
│ │ │ -00295f50: 6170 6429 202d 2044 6973 6162 6c65 2053  apd) - Disable S
│ │ │ -00295f60: 6f63 6b65 7420 736c 6170 640a 2020 2020  ocket slapd.    
│ │ │ -00295f70: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00295f80: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00295f90: 616d 653a 2073 6c61 7064 2e73 6f63 6b65  ame: slapd.socke
│ │ │ -00295fa0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -00295fb0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -00295fc0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00295fd0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00295fe0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -00295ff0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -00296000: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00296010: 6368 2822 736c 6170 642e 736f 636b 6574  ch("slapd.socket
│ │ │ -00296020: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00296030: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -00296040: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00296050: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00296060: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00296070: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00296080: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00296090: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002960a0: 202d 2073 6572 7669 6365 5f73 6c61 7064   - service_slapd
│ │ │ -002960b0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -002960c0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -002960d0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -002960e0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -002960f0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00296100: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
< │ │ │ +002953b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002953c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00295410: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00295420: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00295430: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00295440: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00295450: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00295460: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00295470: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00295480: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00295490: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +002954a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +002954b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002954c0: 2020 2d20 7365 7276 6963 655f 736c 6170    - service_slap
│ │ │ +002954d0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ +002954e0: 6d65 3a20 4469 7361 626c 6520 4c44 4150  me: Disable LDAP
│ │ │ +002954f0: 2053 6572 7665 7220 2873 6c61 7064 2920   Server (slapd) 
│ │ │ +00295500: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +00295510: 6520 736c 6170 640a 2020 626c 6f63 6b3a  e slapd.  block:
│ │ │ +00295520: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00295530: 626c 6520 4c44 4150 2053 6572 7665 7220  ble LDAP Server 
│ │ │ +00295540: 2873 6c61 7064 2920 2d20 436f 6c6c 6563  (slapd) - Collec
│ │ │ +00295550: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ +00295560: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ +00295570: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ +00295580: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00295590: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +002955a0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +002955b0: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ +002955c0: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ +002955d0: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ +002955e0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +002955f0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00295600: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ +00295610: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +00295620: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +00295630: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +00295640: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +00295650: 204c 4441 5020 5365 7276 6572 2028 736c   LDAP Server (sl
│ │ │ +00295660: 6170 6429 202d 2045 6e73 7572 6520 736c  apd) - Ensure sl
│ │ │ +00295670: 6170 642e 7365 7276 6963 6520 6973 204d  apd.service is M
│ │ │ +00295680: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ +00295690: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +002956a0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +002956b0: 6c61 7064 2e73 6572 7669 6365 0a20 2020  lapd.service.   
│ │ │ +002956c0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002956d0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +002956e0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +002956f0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +00295700: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +00295710: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +00295720: 6973 2073 6561 7263 6828 2273 6c61 7064  is search("slapd
│ │ │ +00295730: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +00295740: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +00295750: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +00295760: 7420 4578 6973 7473 202d 2073 6c61 7064  t Exists - slapd
│ │ │ +00295770: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ +00295780: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00295790: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +002957a0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +002957b0: 7320 736c 6170 642e 736f 636b 6574 0a20  s slapd.socket. 
│ │ │ +002957c0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +002957d0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +002957e0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002957f0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00295800: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +00295810: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +00295820: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00295830: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00295840: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00295850: 7361 626c 6520 4c44 4150 2053 6572 7665  sable LDAP Serve
│ │ │ +00295860: 7220 2873 6c61 7064 2920 2d20 4469 7361  r (slapd) - Disa
│ │ │ +00295870: 626c 6520 536f 636b 6574 2073 6c61 7064  ble Socket slapd
│ │ │ +00295880: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00295890: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002958a0: 2020 2020 6e61 6d65 3a20 736c 6170 642e      name: slapd.
│ │ │ +002958b0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +002958c0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002958d0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002958e0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002958f0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +00295900: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00295910: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00295920: 2073 6561 7263 6828 2273 6c61 7064 2e73   search("slapd.s
│ │ │ +00295930: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +00295940: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +00295950: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00295960: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00295970: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00295980: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00295990: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002959a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002959b0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +002959c0: 736c 6170 645f 6469 7361 626c 6564 0a20  slapd_disabled. 
│ │ │ +002959d0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +002959e0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +002959f0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00295a00: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00295a10: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +00295ad0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ +00295ae0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
Complexity:low
Disrup │ │ │ +00295390: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002953a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002953e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002953f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +00295b80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ +00295c30: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ +00295c40: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ +00295c50: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ +00295c60: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ +00295c70: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ +00295c80: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ +00295c90: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ +00295ca0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ +00295cb0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ +00295cc0: 2073 6c61 7064 2e73 6572 7669 6365 0a20   slapd.service. 
│ │ │ +00295cd0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +00295ce0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +00295cf0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +00295d00: 206e 616d 653a 2073 6c61 7064 2e73 6f63   name: slapd.soc
│ │ │ +00295d10: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +00295d20: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00295d30: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ +00295df0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00295e00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00295b70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00295ba0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ +00295bb0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ +00295bf0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00295c00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00295ea0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00295f40: 636c 7564 6520 6469 7361 626c 655f 736c  clude disable_sl
│ │ │ +00295f50: 6170 640a 0a63 6c61 7373 2064 6973 6162  apd..class disab
│ │ │ +00295f60: 6c65 5f73 6c61 7064 207b 0a20 2073 6572  le_slapd {.  ser
│ │ │ +00295f70: 7669 6365 207b 2773 6c61 7064 273a 0a20  vice {'slapd':. 
│ │ │ +00295f80: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00295f90: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +00295fa0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +00295fb0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00295fc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00296070: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00296080: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00296090: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +002960e0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +002960f0: 5d0a 6d61 736b 6564 203d 205b 2273 6c61  ].masked = ["sla
│ │ │ +00296100: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
Remedi │ │ │ -0029a7b0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0029a7c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0029a7d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00295e90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00295ec0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00295ed0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00295f10: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00295f20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0029a870: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0029a890: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0029a8c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0029a850: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0029a860: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0029a880: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0029a8a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0029a8b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0029a8f0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0029a900: 6465 2072 656d 6f76 655f 7270 6362 696e de remove_rpcbin │ │ │ -0029a910: 640a 0a63 6c61 7373 2072 656d 6f76 655f d..class remove_ │ │ │ -0029a920: 7270 6362 696e 6420 7b0a 2020 7061 636b rpcbind {. pack │ │ │ -0029a930: 6167 6520 7b20 2772 7063 6269 6e64 273a age { 'rpcbind': │ │ │ -0029a940: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -0029a950: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ -0029a960: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.
< │ │ │ -0029a970: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -0029aa20: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0029aa30: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0029aac0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0029aae0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0029ab00: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0029ab30: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0029ab40: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -0029ab70: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0029ab80: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -0029ab90: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -0029aba0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -0029abb0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0029abc0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0029abd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0029abe0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -0029abf0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -0029ac00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0029ac10: 0a20 202d 2070 6163 6b61 6765 5f72 7063  .  - package_rpc
│ │ │ -0029ac20: 6269 6e64 5f72 656d 6f76 6564 0a0a 2d20  bind_removed..- 
│ │ │ -0029ac30: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -0029ac40: 2072 7063 6269 6e64 2050 6163 6b61 6765   rpcbind Package
│ │ │ -0029ac50: 3a20 456e 7375 7265 2072 7063 6269 6e64  : Ensure rpcbind
│ │ │ -0029ac60: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0029ac70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0029ac80: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0029ac90: 3a20 7270 6362 696e 640a 2020 2020 7374  : rpcbind.    st
│ │ │ -0029aca0: 6174 653a 2061 6273 656e 740a 2020 7768  ate: absent.  wh
│ │ │ -0029acb0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0029acc0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0029acd0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0029ace0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0029acf0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0029ad00: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0029ad10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0029ad20: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -0029ad30: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0029ad40: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0029ad50: 655f 7270 6362 696e 645f 7265 6d6f 7665  e_rpcbind_remove
│ │ │ -0029ad60: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0029a7b0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +0029a7c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +0029a850: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0029a860: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0029a880: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0029a8a0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0029a8b0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0029a8f0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0029a900: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0029a910: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0029a920: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0029a930: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0029a940: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +0029a950: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0029a960: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0029a970: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0029a980: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +0029a990: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0029a9a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0029a9b0: 6167 655f 7270 6362 696e 645f 7265 6d6f  age_rpcbind_remo
│ │ │ +0029a9c0: 7665 640a 0a2d 206e 616d 653a 2027 556e  ved..- name: 'Un
│ │ │ +0029a9d0: 696e 7374 616c 6c20 7270 6362 696e 6420  install rpcbind 
│ │ │ +0029a9e0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +0029a9f0: 7270 6362 696e 6420 6973 2072 656d 6f76  rpcbind is remov
│ │ │ +0029aa00: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0029aa10: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0029aa20: 2020 206e 616d 653a 2072 7063 6269 6e64     name: rpcbind
│ │ │ +0029aa30: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0029aa40: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +0029aa50: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0029aa60: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0029aa70: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0029aa80: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0029aa90: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0029aaa0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0029aab0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +0029aac0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0029aad0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0029aae0: 2070 6163 6b61 6765 5f72 7063 6269 6e64   package_rpcbind
│ │ │ +0029aaf0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0029ab00: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +0029abb0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0029abc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0029abd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0029ac70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0029ac90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0029acc0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0029ac50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0029ac60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0029ac80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0029aca0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0029acb0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0029acf0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +0029ad00: 6465 2072 656d 6f76 655f 7270 6362 696e de remove_rpcbin │ │ │ +0029ad10: 640a 0a63 6c61 7373 2072 656d 6f76 655f d..class remove_ │ │ │ +0029ad20: 7270 6362 696e 6420 7b0a 2020 7061 636b rpcbind {. pack │ │ │ +0029ad30: 6167 6520 7b20 2772 7063 6269 6e64 273a age { 'rpcbind': │ │ │ +0029ad40: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +0029ad50: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ +0029ad60: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ 0029ad70: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediati │ │ │ -0029be70: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0029be80: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0029be90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ -0029bee0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -0029bef0: 6173 6b65 6420 3d20 5b22 7270 6362 696e  asked = ["rpcbin
│ │ │ -0029bf00: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation │ │ │ -0029bfc0: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ -0029bfd0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0029bfe0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0029bff0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0029c000: 7365 2220 6964 3d22 6964 3130 3532 223e se" id="id1052"> │ │ │ -0029c010: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0029c080: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ -0029c060: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0029c070: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ -0029c0b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ -0029c0c0: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ -0029c100: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ -0029c110: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ -0029c120: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ -0029c130: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ -0029c140: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ -0029c150: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ -0029c160: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ -0029c170: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ -0029c180: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ -0029c190: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ -0029c1a0: 2020 202d 206e 616d 653a 2072 7063 6269     - name: rpcbi
│ │ │ -0029c1b0: 6e64 2e73 6572 7669 6365 0a20 2020 2020  nd.service.     
│ │ │ -0029c1c0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0029c1d0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -0029c1e0: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ -0029c1f0: 653a 2072 7063 6269 6e64 2e73 6f63 6b65  e: rpcbind.socke
│ │ │ -0029c200: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ -0029c210: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -0029c220: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ -0029c240: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0029c250: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0029c260: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0029c270: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0029c280: 6431 3035 3322 2074 6162 696e 6465 783d d1053" tabindex= │ │ │ -0029c290: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0029c2a0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0029c2b0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0029c2c0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0029c2d0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0029c2e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0029c2f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0029c300: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0029c3a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0029c3f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0029c380: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0029c3b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0029c3d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0029c3e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0029c400: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0029c410: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0029c430: 7564 6520 6469 7361 626c 655f 7270 6362  ude disable_rpcb
│ │ │ -0029c440: 696e 640a 0a63 6c61 7373 2064 6973 6162  ind..class disab
│ │ │ -0029c450: 6c65 5f72 7063 6269 6e64 207b 0a20 2073  le_rpcbind {.  s
│ │ │ -0029c460: 6572 7669 6365 207b 2772 7063 6269 6e64  ervice {'rpcbind
│ │ │ -0029c470: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -0029c480: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -0029c490: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -0029c4a0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -0029c4c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -0029c560: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0029c570: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -0029c610: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0029c6b0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0029c6c0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0029c6d0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0029c6e0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0029c6f0: 746f 0a20 2074 6167 733a 0a20 202d 2050  to.  tags:.  - P
│ │ │ -0029c700: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -0029c710: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -0029c720: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0029c730: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0029c740: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0029c750: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0029c760: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0029c770: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0029c780: 640a 2020 2d20 7365 7276 6963 655f 7270  d.  - service_rp
│ │ │ -0029c790: 6362 696e 645f 6469 7361 626c 6564 0a0a  cbind_disabled..
│ │ │ -0029c7a0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -0029c7b0: 7270 6362 696e 6420 5365 7276 6963 6520  rpcbind Service 
│ │ │ -0029c7c0: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -0029c7d0: 6520 7270 6362 696e 640a 2020 626c 6f63  e rpcbind.  bloc
│ │ │ -0029c7e0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -0029c7f0: 7361 626c 6520 7270 6362 696e 6420 5365  sable rpcbind Se
│ │ │ -0029c800: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -0029c810: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -0029c820: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -0029c830: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -0029c840: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0029c850: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0029c860: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0029c870: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -0029c880: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -0029c890: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -0029c8a0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0029c8b0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0029c8c0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0029c8d0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0029c8e0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0029c8f0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0029c900: 206e 616d 653a 2044 6973 6162 6c65 2072   name: Disable r
│ │ │ -0029c910: 7063 6269 6e64 2053 6572 7669 6365 202d  pcbind Service -
│ │ │ -0029c920: 2045 6e73 7572 6520 7270 6362 696e 642e   Ensure rpcbind.
│ │ │ -0029c930: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -0029c940: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0029c950: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0029c960: 2020 2020 206e 616d 653a 2072 7063 6269       name: rpcbi
│ │ │ -0029c970: 6e64 2e73 6572 7669 6365 0a20 2020 2020  nd.service.     
│ │ │ -0029c980: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0029c990: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0029c9a0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -0029c9b0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0029c9c0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0029c9d0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0029c9e0: 2073 6561 7263 6828 2272 7063 6269 6e64   search("rpcbind
│ │ │ -0029c9f0: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -0029ca00: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -0029ca10: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -0029ca20: 7420 4578 6973 7473 202d 2072 7063 6269  t Exists - rpcbi
│ │ │ -0029ca30: 6e64 2e73 6f63 6b65 740a 2020 2020 616e  nd.socket.    an
│ │ │ -0029ca40: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0029ca50: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0029ca60: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0029ca70: 6c65 7320 7270 6362 696e 642e 736f 636b  les rpcbind.sock
│ │ │ -0029ca80: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -0029ca90: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0029caa0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0029cab0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0029cac0: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -0029cad0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0029cae0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0029caf0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0029cb00: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0029cb10: 3a20 4469 7361 626c 6520 7270 6362 696e  : Disable rpcbin
│ │ │ -0029cb20: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ -0029cb30: 626c 6520 536f 636b 6574 2072 7063 6269  ble Socket rpcbi
│ │ │ -0029cb40: 6e64 0a20 2020 2061 6e73 6962 6c65 2e62  nd.    ansible.b
│ │ │ -0029cb50: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0029cb60: 2020 2020 2020 6e61 6d65 3a20 7270 6362        name: rpcb
│ │ │ -0029cb70: 696e 642e 736f 636b 6574 0a20 2020 2020  ind.socket.     
│ │ │ -0029cb80: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0029cb90: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0029cba0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -0029cbb0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0029cbc0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0029cbd0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0029cbe0: 7320 6973 2073 6561 7263 6828 2272 7063  s is search("rpc
│ │ │ -0029cbf0: 6269 6e64 2e73 6f63 6b65 7422 2c20 6d75  bind.socket", mu
│ │ │ -0029cc00: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -0029cc10: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -0029cc20: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -0029cc30: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -0029cc40: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0029cc50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0029cc60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0029cc70: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -0029cc80: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0029cc90: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0029cca0: 2073 6572 7669 6365 5f72 7063 6269 6e64   service_rpcbind
│ │ │ -0029ccb0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -0029ccc0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -0029ccd0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -0029cce0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0029ccf0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0029cd00: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
< │ │ │ +0029bec0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0029bed0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0029bee0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0029bef0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0029bf00: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0029bf90: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0029bfa0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -0029c600: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0029c630: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0029c640: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0029c680: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0029c690: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0029bf10: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0029bf20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0029bf60: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0029bf70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0029bfc0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0029bfd0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0029bfe0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0029bff0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0029c000: 6773 3a0a 2020 2d20 5043 492d 4453 5376 gs:. - PCI-DSSv │ │ │ +0029c010: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +0029c020: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ +0029c030: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +0029c040: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +0029c050: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +0029c060: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576 tion. - low_sev │ │ │ +0029c070: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0029c080: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ +0029c090: 6572 7669 6365 5f72 7063 6269 6e64 5f64 ervice_rpcbind_d │ │ │ +0029c0a0: 6973 6162 6c65 640a 0a2d 206e 616d 653a isabled..- name: │ │ │ +0029c0b0: 2044 6973 6162 6c65 2072 7063 6269 6e64 Disable rpcbind │ │ │ +0029c0c0: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ +0029c0d0: 6c65 2073 6572 7669 6365 2072 7063 6269 le service rpcbi │ │ │ +0029c0e0: 6e64 0a20 2062 6c6f 636b 3a0a 0a20 202d nd. block:.. - │ │ │ +0029c0f0: 206e 616d 653a 2044 6973 6162 6c65 2072 name: Disable r │ │ │ +0029c100: 7063 6269 6e64 2053 6572 7669 6365 202d pcbind Service - │ │ │ +0029c110: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ +0029c120: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ +0029c130: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ +0029c140: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +0029c150: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ +0029c160: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ +0029c170: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ +0029c180: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ +0029c190: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ +0029c1a0: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ +0029c1b0: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ +0029c1c0: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ +0029c1d0: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ +0029c1e0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +0029c1f0: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +0029c200: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +0029c210: 4469 7361 626c 6520 7270 6362 696e 6420 Disable rpcbind │ │ │ +0029c220: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ +0029c230: 2072 7063 6269 6e64 2e73 6572 7669 6365 rpcbind.service │ │ │ +0029c240: 2069 7320 4d61 736b 6564 0a20 2020 2061 is Masked. a │ │ │ +0029c250: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ +0029c260: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ +0029c270: 6d65 3a20 7270 6362 696e 642e 7365 7276 me: rpcbind.serv │ │ │ +0029c280: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ +0029c290: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ +0029c2a0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +0029c2b0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +0029c2c0: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ +0029c2d0: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ +0029c2e0: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ +0029c2f0: 2822 7270 6362 696e 642e 7365 7276 6963 ("rpcbind.servic │ │ │ +0029c300: 6522 2c20 6d75 6c74 696c 696e 653d 5472 e", multiline=Tr │ │ │ +0029c310: 7565 290a 0a20 202d 206e 616d 653a 2055 ue).. - name: U │ │ │ +0029c320: 6e69 7420 536f 636b 6574 2045 7869 7374 nit Socket Exist │ │ │ +0029c330: 7320 2d20 7270 6362 696e 642e 736f 636b s - rpcbind.sock │ │ │ +0029c340: 6574 0a20 2020 2061 6e73 6962 6c65 2e62 et. ansible.b │ │ │ +0029c350: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +0029c360: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +0029c370: 742d 756e 6974 2d66 696c 6573 2072 7063 t-unit-files rpc │ │ │ +0029c380: 6269 6e64 2e73 6f63 6b65 740a 2020 2020 bind.socket. │ │ │ +0029c390: 7265 6769 7374 6572 3a20 736f 636b 6574 register: socket │ │ │ +0029c3a0: 5f66 696c 655f 6578 6973 7473 0a20 2020 _file_exists. │ │ │ +0029c3b0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ +0029c3c0: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ +0029c3d0: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ +0029c3e0: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ +0029c3f0: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ +0029c400: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ +0029c410: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ +0029c420: 6c65 2072 7063 6269 6e64 2053 6572 7669 le rpcbind Servi │ │ │ +0029c430: 6365 202d 2044 6973 6162 6c65 2053 6f63 ce - Disable Soc │ │ │ +0029c440: 6b65 7420 7270 6362 696e 640a 2020 2020 ket rpcbind. │ │ │ +0029c450: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0029c460: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +0029c470: 616d 653a 2072 7063 6269 6e64 2e73 6f63 ame: rpcbind.soc │ │ │ +0029c480: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ +0029c490: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ +0029c4a0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +0029c4b0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +0029c4c0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ +0029c4d0: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ +0029c4e0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +0029c4f0: 6172 6368 2822 7270 6362 696e 642e 736f arch("rpcbind.so │ │ │ +0029c500: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ +0029c510: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ +0029c520: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +0029c530: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +0029c540: 2e32 2e34 0a20 202d 2064 6973 6162 6c65 .2.4. - disable │ │ │ +0029c550: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0029c560: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0029c570: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0029c580: 2020 2d20 6c6f 775f 7365 7665 7269 7479 - low_severity │ │ │ +0029c590: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +0029c5a0: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ +0029c5b0: 655f 7270 6362 696e 645f 6469 7361 626c e_rpcbind_disabl │ │ │ +0029c5c0: 6564 0a20 202d 2073 7065 6369 616c 5f73 ed. - special_s │ │ │ +0029c5d0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077 ervice_block. w │ │ │ +0029c5e0: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ +0029c5f0: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +0029c600: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.
R │ │ │ +0029c6c0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +0029c6d0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +0029c6e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +0029c760: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0029c780: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +0029c770: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0029c790: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +0029c7c0: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +0029c7e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0029c810: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +0029c820: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +0029c830: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +0029c840: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +0029c850: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +0029c860: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +0029c870: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +0029c880: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +0029c890: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +0029c8a0: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +0029c8b0: 616d 653a 2072 7063 6269 6e64 2e73 6572  ame: rpcbind.ser
│ │ │ +0029c8c0: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ +0029c8d0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0029c8e0: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ +0029c8f0: 2020 2020 202d 206e 616d 653a 2072 7063       - name: rpc
│ │ │ +0029c900: 6269 6e64 2e73 6f63 6b65 740a 2020 2020  bind.socket.    
│ │ │ +0029c910: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0029c920: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0029c930: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediati │ │ │ +0029c9f0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0029ca00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0029ca80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0029ca90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0029caa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0029cae0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0029caf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0029cb10: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0029cb30: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +0029cb40: 7361 626c 655f 7270 6362 696e 640a 0a63  sable_rpcbind..c
│ │ │ +0029cb50: 6c61 7373 2064 6973 6162 6c65 5f72 7063  lass disable_rpc
│ │ │ +0029cb60: 6269 6e64 207b 0a20 2073 6572 7669 6365  bind {.  service
│ │ │ +0029cb70: 207b 2772 7063 6269 6e64 273a 0a20 2020   {'rpcbind':.   
│ │ │ +0029cb80: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +0029cb90: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +0029cba0: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +0029cbb0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ +0029cc70: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0029cc80: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0029cc90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ +0029ccd0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +0029cce0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +0029ccf0: 6d61 736b 6564 203d 205b 2272 7063 6269  masked = ["rpcbi
│ │ │ +0029cd00: 6e64 225d 0a3c 2f63 6f64 653e 3c2f 7072  nd"].
Remediation OS │ │ │ -0029e910: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0029e920: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0029e930: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ -0029e970: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -0029e980: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -0029e990: 203d 205b 226e 6673 2d73 6572 7665 7222   = ["nfs-server"
│ │ │ -0029e9a0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0029e9b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation K │ │ │ -0029ea60: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ -0029ea70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0029eaf0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0029eb00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0029eb10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ -0029eb40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ -0029eb50: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -0029eb60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ -0029eb70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ -0029ebb0: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -0029ebc0: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -0029ebd0: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -0029ebe0: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -0029ebf0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -0029ec00: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -0029ec10: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -0029ec20: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -0029ec30: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -0029ec40: 202d 206e 616d 653a 206e 6673 2d73 6572 - name: nfs-ser │ │ │ -0029ec50: 7665 722e 7365 7276 6963 650a 2020 2020 ver.service. │ │ │ -0029ec60: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ -0029ec70: 7365 0a20 2020 2020 2020 206d 6173 6b3a se. mask: │ │ │ -0029ec80: 2074 7275 650a 2020 2020 2020 2d20 6e61 true. - na │ │ │ -0029ec90: 6d65 3a20 6e66 732d 7365 7276 6572 2e73 me: nfs-server.s │ │ │ -0029eca0: 6f63 6b65 740a 2020 2020 2020 2020 656e ocket. en │ │ │ -0029ecb0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -0029ecc0: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ -0029ecd0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 Remediation Pup │ │ │ -0029ed90: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0029eda0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

Complexity: │ │ │ -0029ee70: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0029ee80: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0029eed0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -0029eee0: 6e66 732d 7365 7276 6572 0a0a 636c 6173  nfs-server..clas
│ │ │ -0029eef0: 7320 6469 7361 626c 655f 6e66 732d 7365  s disable_nfs-se
│ │ │ -0029ef00: 7276 6572 207b 0a20 2073 6572 7669 6365  rver {.  service
│ │ │ -0029ef10: 207b 276e 6673 2d73 6572 7665 7227 3a0a   {'nfs-server':.
│ │ │ -0029ef20: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -0029ef30: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -0029ef40: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -0029ef50: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -0029f010: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0029f020: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ -0029ee50: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0029ee60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0029eea0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0029eeb0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0029f0b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0029f0e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0029f100: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0029f110: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0029f130: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0029f140: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0029f160: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0029f170: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0029f180: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0029f190: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0029f1a0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0029f1b0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0029f1c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0029f1d0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -0029f1e0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -0029f1f0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0029f200: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0029f210: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0029f220: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -0029f230: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0029f240: 2020 2d20 7365 7276 6963 655f 6e66 735f    - service_nfs_
│ │ │ -0029f250: 6469 7361 626c 6564 0a20 202d 2075 6e6b  disabled.  - unk
│ │ │ -0029f260: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d  nown_severity..-
│ │ │ -0029f270: 206e 616d 653a 2044 6973 6162 6c65 204e   name: Disable N
│ │ │ -0029f280: 6574 776f 726b 2046 696c 6520 5379 7374  etwork File Syst
│ │ │ -0029f290: 656d 2028 6e66 7329 202d 2044 6973 6162  em (nfs) - Disab
│ │ │ -0029f2a0: 6c65 2073 6572 7669 6365 206e 6673 2d73  le service nfs-s
│ │ │ -0029f2b0: 6572 7665 720a 2020 626c 6f63 6b3a 0a0a  erver.  block:..
│ │ │ -0029f2c0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0029f2d0: 6520 4e65 7477 6f72 6b20 4669 6c65 2053  e Network File S
│ │ │ -0029f2e0: 7973 7465 6d20 286e 6673 2920 2d20 436f  ystem (nfs) - Co
│ │ │ -0029f2f0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -0029f300: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -0029f310: 6e0a 2020 2020 2020 7468 6520 5379 7374  n.      the Syst
│ │ │ -0029f320: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -0029f330: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -0029f340: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -0029f350: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -0029f360: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -0029f370: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -0029f380: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0029f390: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0029f3a0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0029f3b0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0029f3c0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -0029f3d0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -0029f3e0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -0029f3f0: 653a 2044 6973 6162 6c65 204e 6574 776f  e: Disable Netwo
│ │ │ -0029f400: 726b 2046 696c 6520 5379 7374 656d 2028  rk File System (
│ │ │ -0029f410: 6e66 7329 202d 2045 6e73 7572 6520 6e66  nfs) - Ensure nf
│ │ │ -0029f420: 732d 7365 7276 6572 2e73 6572 7669 6365  s-server.service
│ │ │ -0029f430: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -0029f440: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0029f450: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0029f460: 6d65 3a20 6e66 732d 7365 7276 6572 2e73  me: nfs-server.s
│ │ │ -0029f470: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -0029f480: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0029f490: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0029f4a0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -0029f4b0: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -0029f4c0: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -0029f4d0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0029f4e0: 7263 6828 226e 6673 2d73 6572 7665 722e  rch("nfs-server.
│ │ │ -0029f4f0: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -0029f500: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -0029f510: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -0029f520: 2045 7869 7374 7320 2d20 6e66 732d 7365   Exists - nfs-se
│ │ │ -0029f530: 7276 6572 2e73 6f63 6b65 740a 2020 2020  rver.socket.    
│ │ │ -0029f540: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0029f550: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0029f560: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0029f570: 6669 6c65 7320 6e66 732d 7365 7276 6572  files nfs-server
│ │ │ -0029f580: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0029f590: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0029f5a0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0029f5b0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0029f5c0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0029f5d0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0029f5e0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0029f5f0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0029f600: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0029f610: 206e 616d 653a 2044 6973 6162 6c65 204e   name: Disable N
│ │ │ -0029f620: 6574 776f 726b 2046 696c 6520 5379 7374  etwork File Syst
│ │ │ -0029f630: 656d 2028 6e66 7329 202d 2044 6973 6162  em (nfs) - Disab
│ │ │ -0029f640: 6c65 2053 6f63 6b65 7420 6e66 732d 7365  le Socket nfs-se
│ │ │ -0029f650: 7276 6572 0a20 2020 2061 6e73 6962 6c65  rver.    ansible
│ │ │ -0029f660: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0029f670: 3a0a 2020 2020 2020 6e61 6d65 3a20 6e66  :.      name: nf
│ │ │ -0029f680: 732d 7365 7276 6572 2e73 6f63 6b65 740a  s-server.socket.
│ │ │ -0029f690: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0029f6a0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -0029f6b0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -0029f6c0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0029f6d0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -0029f6e0: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -0029f6f0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -0029f700: 2822 6e66 732d 7365 7276 6572 2e73 6f63  ("nfs-server.soc
│ │ │ -0029f710: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -0029f720: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -0029f730: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0029f740: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0029f750: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0029f760: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0029f770: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0029f780: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0029f790: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0029f7a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0029f7b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0029f7c0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0029f7d0: 655f 6e66 735f 6469 7361 626c 6564 0a20  e_nfs_disabled. 
│ │ │ -0029f7e0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0029f7f0: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ -0029f800: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ -0029f810: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0029f820: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0029f830: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0029e900: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +0029e910: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +0029e920: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
│ │ │ +0029e9a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0029e9c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0029ea10: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0029ea40: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0029e9b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0029e9d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0029ea20: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0029ea30: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +0029ea60: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0029ea70: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0029ea80: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0029ea90: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0029eaa0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0029eab0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0029eac0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0029ead0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0029eae0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0029eaf0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0029eb00: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0029eb10: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0029eb20: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +0029eb30: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0029eb40: 6365 5f6e 6673 5f64 6973 6162 6c65 640a  ce_nfs_disabled.
│ │ │ +0029eb50: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +0029eb60: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469  rity..- name: Di
│ │ │ +0029eb70: 7361 626c 6520 4e65 7477 6f72 6b20 4669  sable Network Fi
│ │ │ +0029eb80: 6c65 2053 7973 7465 6d20 286e 6673 2920  le System (nfs) 
│ │ │ +0029eb90: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +0029eba0: 6520 6e66 732d 7365 7276 6572 0a20 2062  e nfs-server.  b
│ │ │ +0029ebb0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +0029ebc0: 2044 6973 6162 6c65 204e 6574 776f 726b   Disable Network
│ │ │ +0029ebd0: 2046 696c 6520 5379 7374 656d 2028 6e66   File System (nf
│ │ │ +0029ebe0: 7329 202d 2043 6f6c 6c65 6374 2073 7973  s) - Collect sys
│ │ │ +0029ebf0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0029ec00: 6573 656e 7420 696e 0a20 2020 2020 2074  esent in.      t
│ │ │ +0029ec10: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +0029ec20: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0029ec30: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0029ec40: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0029ec50: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +0029ec60: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +0029ec70: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +0029ec80: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0029ec90: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0029eca0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +0029ecb0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +0029ecc0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +0029ecd0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +0029ece0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0029ecf0: 6520 4e65 7477 6f72 6b20 4669 6c65 2053  e Network File S
│ │ │ +0029ed00: 7973 7465 6d20 286e 6673 2920 2d20 456e  ystem (nfs) - En
│ │ │ +0029ed10: 7375 7265 206e 6673 2d73 6572 7665 722e  sure nfs-server.
│ │ │ +0029ed20: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +0029ed30: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +0029ed40: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0029ed50: 2020 2020 206e 616d 653a 206e 6673 2d73       name: nfs-s
│ │ │ +0029ed60: 6572 7665 722e 7365 7276 6963 650a 2020  erver.service.  
│ │ │ +0029ed70: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +0029ed80: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +0029ed90: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +0029eda0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +0029edb0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +0029edc0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +0029edd0: 2069 7320 7365 6172 6368 2822 6e66 732d   is search("nfs-
│ │ │ +0029ede0: 7365 7276 6572 2e73 6572 7669 6365 222c  server.service",
│ │ │ +0029edf0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0029ee00: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +0029ee10: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +0029ee20: 206e 6673 2d73 6572 7665 722e 736f 636b   nfs-server.sock
│ │ │ +0029ee30: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +0029ee40: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0029ee50: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0029ee60: 742d 756e 6974 2d66 696c 6573 206e 6673  t-unit-files nfs
│ │ │ +0029ee70: 2d73 6572 7665 722e 736f 636b 6574 0a20  -server.socket. 
│ │ │ +0029ee80: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +0029ee90: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +0029eea0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0029eeb0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0029eec0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +0029eed0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +0029eee0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0029eef0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0029ef00: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0029ef10: 7361 626c 6520 4e65 7477 6f72 6b20 4669  sable Network Fi
│ │ │ +0029ef20: 6c65 2053 7973 7465 6d20 286e 6673 2920  le System (nfs) 
│ │ │ +0029ef30: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +0029ef40: 206e 6673 2d73 6572 7665 720a 2020 2020   nfs-server.    
│ │ │ +0029ef50: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0029ef60: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0029ef70: 616d 653a 206e 6673 2d73 6572 7665 722e  ame: nfs-server.
│ │ │ +0029ef80: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0029ef90: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0029efa0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0029efb0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0029efc0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0029efd0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0029efe0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0029eff0: 2073 6561 7263 6828 226e 6673 2d73 6572   search("nfs-ser
│ │ │ +0029f000: 7665 722e 736f 636b 6574 222c 206d 756c  ver.socket", mul
│ │ │ +0029f010: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +0029f020: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0029f030: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0029f040: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0029f050: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +0029f060: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +0029f070: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0029f080: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0029f090: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0029f0a0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0029f0b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0029f0c0: 2073 6572 7669 6365 5f6e 6673 5f64 6973   service_nfs_dis
│ │ │ +0029f0d0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0029f0e0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0029f0f0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +0029f100: 7269 7479 0a20 2077 6865 6e3a 2027 226c  rity.  when: '"l
│ │ │ +0029f110: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0029f120: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0029f130: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediati │ │ │ +0029f1f0: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ +0029f200: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ +0029f300: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +0029f340: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +0029f350: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +0029f360: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +0029f370: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +0029f380: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +0029f390: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +0029f3a0: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +0029f3b0: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +0029f3c0: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +0029f3d0: 2020 2020 202d 206e 616d 653a 206e 6673       - name: nfs
│ │ │ +0029f3e0: 2d73 6572 7665 722e 7365 7276 6963 650a  -server.service.
│ │ │ +0029f3f0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +0029f400: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +0029f410: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ +0029f420: 2d20 6e61 6d65 3a20 6e66 732d 7365 7276  - name: nfs-serv
│ │ │ +0029f430: 6572 2e73 6f63 6b65 740a 2020 2020 2020  er.socket.      
│ │ │ +0029f440: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0029f450: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +0029f460: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ +0029f520: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0029f530: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +0029f5f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0029f600: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Comp │ │ │ +0029f290: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0029f2a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0029f2c0: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +0029f2d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +0029f310: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0029f320: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +0029f5c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0029f5e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0029f610: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0029f630: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0029f670: 626c 655f 6e66 732d 7365 7276 6572 0a0a  ble_nfs-server..
│ │ │ +0029f680: 636c 6173 7320 6469 7361 626c 655f 6e66  class disable_nf
│ │ │ +0029f690: 732d 7365 7276 6572 207b 0a20 2073 6572  s-server {.  ser
│ │ │ +0029f6a0: 7669 6365 207b 276e 6673 2d73 6572 7665  vice {'nfs-serve
│ │ │ +0029f6b0: 7227 3a0a 2020 2020 656e 6162 6c65 203d  r':.    enable =
│ │ │ +0029f6c0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +0029f6d0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +0029f6e0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +0029f7a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0029f7b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0029f7c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0029f7d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +0029f810: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +0029f820: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +0029f830: 5b22 6e66 732d 7365 7276 6572 225d 0a3c  ["nfs-server"].<
│ │ │  0029f840: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation Pup │ │ │ -002a0830: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002a0840: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002a0910: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002a0920: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -002a0980: 5f6e 6673 2d6b 6572 6e65 6c2d 7365 7276  _nfs-kernel-serv
│ │ │ -002a0990: 6572 0a0a 636c 6173 7320 7265 6d6f 7665  er..class remove
│ │ │ -002a09a0: 5f6e 6673 2d6b 6572 6e65 6c2d 7365 7276  _nfs-kernel-serv
│ │ │ -002a09b0: 6572 207b 0a20 2070 6163 6b61 6765 207b  er {.  package {
│ │ │ -002a09c0: 2027 6e66 732d 6b65 726e 656c 2d73 6572   'nfs-kernel-ser
│ │ │ -002a09d0: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ -002a09e0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -002a09f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ -002a0ab0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -002a0ac0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -002a0ad0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002a0ae0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002a0af0: 7365 2220 6964 3d22 6964 3130 3634 223e se" id="id1064"> │ │ │ -002a0b00: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ -002a08f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002a0900: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002a0940: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002a0950: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002a0b70: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002a0b90: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002a0bc0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002a0b50: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002a0b60: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002a0ba0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002a0bb0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -002a0c00: 2027 556e 696e 7374 616c 6c20 6e66 732d 'Uninstall nfs- │ │ │ -002a0c10: 6b65 726e 656c 2d73 6572 7665 7220 5061 kernel-server Pa │ │ │ -002a0c20: 636b 6167 653a 2045 6e73 7572 6520 6e66 ckage: Ensure nf │ │ │ -002a0c30: 732d 6b65 726e 656c 2d73 6572 7665 7220 s-kernel-server │ │ │ -002a0c40: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ -002a0c50: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -002a0c60: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -002a0c70: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276 nfs-kernel-serv │ │ │ -002a0c80: 6572 0a20 2020 2073 7461 7465 3a20 6162 er. state: ab │ │ │ -002a0c90: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ -002a0ca0: 2044 4953 412d 5354 4947 2d55 4254 552d DISA-STIG-UBTU- │ │ │ -002a0cb0: 3232 2d32 3135 3034 300a 2020 2d20 6469 22-215040. - di │ │ │ -002a0cc0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -002a0cd0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -002a0ce0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -002a0cf0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576 tion. - low_sev │ │ │ -002a0d00: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -002a0d10: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -002a0d20: 6163 6b61 6765 5f6e 6673 2d6b 6572 6e65 ackage_nfs-kerne │ │ │ -002a0d30: 6c2d 7365 7276 6572 5f72 656d 6f76 6564 l-server_removed │ │ │ +002a0820: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +002a0830: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +002a0840: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

< │ │ │ +002a08c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002a08e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002a0930: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002a0960: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +002a0980: 7461 6c6c 206e 6673 2d6b 6572 6e65 6c2d  tall nfs-kernel-
│ │ │ +002a0990: 7365 7276 6572 2050 6163 6b61 6765 3a20  server Package: 
│ │ │ +002a09a0: 456e 7375 7265 206e 6673 2d6b 6572 6e65  Ensure nfs-kerne
│ │ │ +002a09b0: 6c2d 7365 7276 6572 2069 7320 7265 6d6f  l-server is remo
│ │ │ +002a09c0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +002a09d0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +002a09e0: 2020 2020 6e61 6d65 3a20 6e66 732d 6b65      name: nfs-ke
│ │ │ +002a09f0: 726e 656c 2d73 6572 7665 720a 2020 2020  rnel-server.    
│ │ │ +002a0a00: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +002a0a10: 7461 6773 3a0a 2020 2d20 4449 5341 2d53  tags:.  - DISA-S
│ │ │ +002a0a20: 5449 472d 5542 5455 2d32 322d 3231 3530  TIG-UBTU-22-2150
│ │ │ +002a0a30: 3430 0a20 202d 2064 6973 6162 6c65 5f73  40.  - disable_s
│ │ │ +002a0a40: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002a0a50: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002a0a60: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002a0a70: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +002a0a80: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002a0a90: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002a0aa0: 6e66 732d 6b65 726e 656c 2d73 6572 7665  nfs-kernel-serve
│ │ │ +002a0ab0: 725f 7265 6d6f 7665 640a 3c2f 636f 6465  r_removed.
Remed │ │ │ +002a0b70: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002a0b80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +002a08f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002a0900: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002a0940: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002a0950: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ +002a0c10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002a0c20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002a0c40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002a0c60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002a0c70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002a0cb0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +002a0cc0: 7564 6520 7265 6d6f 7665 5f6e 6673 2d6b  ude remove_nfs-k
│ │ │ +002a0cd0: 6572 6e65 6c2d 7365 7276 6572 0a0a 636c  ernel-server..cl
│ │ │ +002a0ce0: 6173 7320 7265 6d6f 7665 5f6e 6673 2d6b  ass remove_nfs-k
│ │ │ +002a0cf0: 6572 6e65 6c2d 7365 7276 6572 207b 0a20  ernel-server {. 
│ │ │ +002a0d00: 2070 6163 6b61 6765 207b 2027 6e66 732d   package { 'nfs-
│ │ │ +002a0d10: 6b65 726e 656c 2d73 6572 7665 7227 3a0a  kernel-server':.
│ │ │ +002a0d20: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002a0d30: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002a0d40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedia │ │ │ -002b2e30: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002b2e40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002b2e50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002b2e60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002b2e70: 7365 2220 6964 3d22 6964 3130 3934 223e se" id="id1094"> │ │ │ -002b2e80: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002b2ef0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002b2f10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002b2f40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002b2ed0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002b2ee0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002b2f20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002b2f30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -002b2f80: 6520 7265 6d6f 7665 5f78 696e 6574 640a e remove_xinetd. │ │ │ -002b2f90: 0a63 6c61 7373 2072 656d 6f76 655f 7869 .class remove_xi │ │ │ -002b2fa0: 6e65 7464 207b 0a20 2070 6163 6b61 6765 netd {. package │ │ │ -002b2fb0: 207b 2027 7869 6e65 7464 273a 0a20 2020 { 'xinetd':. │ │ │ -002b2fc0: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ -002b2fd0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.

R │ │ │ -002b3090: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002b30a0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002b3180: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002b3190: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002b31e0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002b31f0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002b3200: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002b3210: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -002b3220: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002b3230: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002b3240: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002b3250: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -002b3260: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002b3270: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ -002b3280: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002b3290: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -002b32a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002b32b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002b32c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002b32d0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -002b32e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002b32f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002b3300: 6163 6b61 6765 5f78 696e 6574 645f 7265  ackage_xinetd_re
│ │ │ -002b3310: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ -002b3320: 556e 696e 7374 616c 6c20 7869 6e65 7464  Uninstall xinetd
│ │ │ -002b3330: 2070 6163 6b61 6765 2069 6620 6e6f 7420   package if not 
│ │ │ -002b3340: 7573 6564 2062 7920 6e65 7477 6f72 6b20  used by network 
│ │ │ -002b3350: 7365 7276 6963 6573 3a20 456e 7375 7265  services: Ensure
│ │ │ -002b3360: 2078 696e 6574 6420 6973 0a20 2020 2072   xinetd is.    r
│ │ │ -002b3370: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -002b3380: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -002b3390: 653a 0a20 2020 206e 616d 653a 2078 696e  e:.    name: xin
│ │ │ -002b33a0: 6574 640a 2020 2020 7374 6174 653a 2061  etd.    state: a
│ │ │ -002b33b0: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ -002b33c0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -002b33d0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -002b33e0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -002b33f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002b3400: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -002b3410: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -002b3420: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002b3430: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ -002b3440: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -002b3450: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -002b3460: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002b3470: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002b3480: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002b3490: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -002b34a0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002b34b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002b34c0: 2d20 7061 636b 6167 655f 7869 6e65 7464  - package_xinetd
│ │ │ -002b34d0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002b2e30: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +002b2e40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +002b2e50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ -002b3160: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002b3170: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002b31b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002b31c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +002b2ef0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002b2f10: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002b2f40: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002b2ed0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002b2ee0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002b2f00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002b2f20: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002b2f30: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002b2f70: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002b2f80: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +002b2f90: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +002b2fa0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +002b2fb0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +002b2fc0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +002b2fd0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002b2fe0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +002b2ff0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +002b3000: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +002b3010: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +002b3020: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +002b3030: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ +002b3040: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +002b3050: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +002b3060: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +002b3070: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ +002b3080: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +002b3090: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +002b30a0: 5f78 696e 6574 645f 7265 6d6f 7665 640a _xinetd_removed. │ │ │ +002b30b0: 0a2d 206e 616d 653a 2027 556e 696e 7374 .- name: 'Uninst │ │ │ +002b30c0: 616c 6c20 7869 6e65 7464 2070 6163 6b61 all xinetd packa │ │ │ +002b30d0: 6765 2069 6620 6e6f 7420 7573 6564 2062 ge if not used b │ │ │ +002b30e0: 7920 6e65 7477 6f72 6b20 7365 7276 6963 y network servic │ │ │ +002b30f0: 6573 3a20 456e 7375 7265 2078 696e 6574 es: Ensure xinet │ │ │ +002b3100: 6420 6973 0a20 2020 2072 656d 6f76 6564 d is. removed │ │ │ +002b3110: 270a 2020 616e 7369 626c 652e 6275 696c '. ansible.buil │ │ │ +002b3120: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +002b3130: 206e 616d 653a 2078 696e 6574 640a 2020 name: xinetd. │ │ │ +002b3140: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +002b3150: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +002b3160: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +002b3170: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +002b3180: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +002b3190: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ +002b31a0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +002b31b0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ +002b31c0: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ +002b31d0: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +002b31e0: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +002b31f0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162 -2.2.4. - disab │ │ │ +002b3200: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +002b3210: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +002b3220: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +002b3230: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269 n. - low_severi │ │ │ +002b3240: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +002b3250: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +002b3260: 6167 655f 7869 6e65 7464 5f72 656d 6f76 age_xinetd_remov │ │ │ +002b3270: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed. │ │ │ +002b3280: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +002b3330: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002b3340: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +002b33d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002b33f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002b3410: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002b3440: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002b3450: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +002b3480: 6f76 655f 7869 6e65 7464 0a0a 636c 6173  ove_xinetd..clas
│ │ │ +002b3490: 7320 7265 6d6f 7665 5f78 696e 6574 6420  s remove_xinetd 
│ │ │ +002b34a0: 7b0a 2020 7061 636b 6167 6520 7b20 2778  {.  package { 'x
│ │ │ +002b34b0: 696e 6574 6427 3a0a 2020 2020 656e 7375  inetd':.    ensu
│ │ │ +002b34c0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +002b34d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002b34e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation OS │ │ │ -002b4c20: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -002b4c30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b4c40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ -002b4c80: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -002b4c90: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -002b4ca0: 203d 205b 2278 696e 6574 6422 5d0a 3c2f   = ["xinetd"].
R │ │ │ -002b4d60: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -002b4d70: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -002b4d80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002b4e00: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002b4e20: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ -002b4e10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002b4e30: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ -002b4e60: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ -002b4e80: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002b4eb0: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ -002b4ec0: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ -002b4ed0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ -002b4ee0: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ -002b4ef0: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ -002b4f00: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ -002b4f10: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ -002b4f20: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ -002b4f30: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ -002b4f40: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ -002b4f50: 616d 653a 2078 696e 6574 642e 7365 7276  ame: xinetd.serv
│ │ │ -002b4f60: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ -002b4f70: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002b4f80: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ -002b4f90: 2020 2020 2d20 6e61 6d65 3a20 7869 6e65      - name: xine
│ │ │ -002b4fa0: 7464 2e73 6f63 6b65 740a 2020 2020 2020  td.socket.      
│ │ │ -002b4fb0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002b4fc0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -002b4fd0: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ -002b5090: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002b50a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002b5130: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002b5150: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002b5160: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b5170: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002b5180: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002b51a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -002b51e0: 626c 655f 7869 6e65 7464 0a0a 636c 6173  ble_xinetd..clas
│ │ │ -002b51f0: 7320 6469 7361 626c 655f 7869 6e65 7464  s disable_xinetd
│ │ │ -002b5200: 207b 0a20 2073 6572 7669 6365 207b 2778   {.  service {'x
│ │ │ -002b5210: 696e 6574 6427 3a0a 2020 2020 656e 6162  inetd':.    enab
│ │ │ -002b5220: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -002b5230: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002b5240: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -002b5250: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002b5260: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002b5310: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002b5320: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002b53b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002b53d0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002b53f0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002b5420: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002b5430: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -002b5460: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -002b5470: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -002b5480: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -002b5490: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -002b54a0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -002b54b0: 2d33 2e34 2e37 0a20 202d 204e 4953 542d  -3.4.7.  - NIST-
│ │ │ -002b54c0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002b54d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002b54e0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -002b54f0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -002b5500: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002b5510: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002b5520: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002b5530: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002b5540: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002b5550: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002b5560: 6564 0a20 202d 2073 6572 7669 6365 5f78  ed.  - service_x
│ │ │ -002b5570: 696e 6574 645f 6469 7361 626c 6564 0a0a  inetd_disabled..
│ │ │ -002b5580: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002b5590: 7869 6e65 7464 2053 6572 7669 6365 202d  xinetd Service -
│ │ │ -002b55a0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ -002b55b0: 2078 696e 6574 640a 2020 626c 6f63 6b3a   xinetd.  block:
│ │ │ -002b55c0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002b55d0: 626c 6520 7869 6e65 7464 2053 6572 7669  ble xinetd Servi
│ │ │ -002b55e0: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -002b55f0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -002b5600: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -002b5610: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -002b5620: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002b5630: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002b5640: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -002b5650: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -002b5660: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -002b5670: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -002b5680: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -002b5690: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -002b56a0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002b56b0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -002b56c0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -002b56d0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -002b56e0: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ -002b56f0: 7464 2053 6572 7669 6365 202d 2045 6e73  td Service - Ens
│ │ │ -002b5700: 7572 6520 7869 6e65 7464 2e73 6572 7669  ure xinetd.servi
│ │ │ -002b5710: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -002b5720: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002b5730: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002b5740: 6e61 6d65 3a20 7869 6e65 7464 2e73 6572  name: xinetd.ser
│ │ │ -002b5750: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -002b5760: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -002b5770: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -002b5780: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -002b5790: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -002b57a0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -002b57b0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -002b57c0: 6828 2278 696e 6574 642e 7365 7276 6963  h("xinetd.servic
│ │ │ -002b57d0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -002b57e0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -002b57f0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -002b5800: 7320 2d20 7869 6e65 7464 2e73 6f63 6b65  s - xinetd.socke
│ │ │ -002b5810: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -002b5820: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002b5830: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002b5840: 2d75 6e69 742d 6669 6c65 7320 7869 6e65  -unit-files xine
│ │ │ -002b5850: 7464 2e73 6f63 6b65 740a 2020 2020 7265  td.socket.    re
│ │ │ -002b5860: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -002b5870: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -002b5880: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002b5890: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002b58a0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -002b58b0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -002b58c0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -002b58d0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -002b58e0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002b58f0: 2078 696e 6574 6420 5365 7276 6963 6520   xinetd Service 
│ │ │ -002b5900: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -002b5910: 2078 696e 6574 640a 2020 2020 616e 7369   xinetd.    ansi
│ │ │ -002b5920: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002b5930: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002b5940: 2078 696e 6574 642e 736f 636b 6574 0a20   xinetd.socket. 
│ │ │ -002b5950: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002b5960: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -002b5970: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -002b5980: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -002b5990: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002b59a0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -002b59b0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -002b59c0: 2278 696e 6574 642e 736f 636b 6574 222c  "xinetd.socket",
│ │ │ -002b59d0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002b59e0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -002b59f0: 542d 3830 302d 3137 312d 332e 342e 370a  T-800-171-3.4.7.
│ │ │ -002b5a00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002b5a10: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -002b5a20: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -002b5a30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002b5a40: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -002b5a50: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002b5a60: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002b5a70: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002b5a80: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002b5a90: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002b5aa0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002b5ab0: 7365 7276 6963 655f 7869 6e65 7464 5f64  service_xinetd_d
│ │ │ -002b5ac0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002b5ad0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002b5ae0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -002b5af0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -002b5b00: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -002b5b10: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002b4c10: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +002b4c20: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +002b4c30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002b4cb0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b4cd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b4d20: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b4d50: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002b4cc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b4ce0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b4d30: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b4d40: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002b4d70: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002b4d80: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +002b4d90: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +002b4da0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +002b4db0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +002b4dc0: 332e 342e 370a 2020 2d20 4e49 5354 2d38  3.4.7.  - NIST-8
│ │ │ +002b4dd0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +002b4de0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002b4df0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +002b4e00: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +002b4e10: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002b4e20: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002b4e30: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002b4e40: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +002b4e50: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +002b4e60: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002b4e70: 640a 2020 2d20 7365 7276 6963 655f 7869  d.  - service_xi
│ │ │ +002b4e80: 6e65 7464 5f64 6973 6162 6c65 640a 0a2d  netd_disabled..-
│ │ │ +002b4e90: 206e 616d 653a 2044 6973 6162 6c65 2078   name: Disable x
│ │ │ +002b4ea0: 696e 6574 6420 5365 7276 6963 6520 2d20  inetd Service - 
│ │ │ +002b4eb0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +002b4ec0: 7869 6e65 7464 0a20 2062 6c6f 636b 3a0a  xinetd.  block:.
│ │ │ +002b4ed0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002b4ee0: 6c65 2078 696e 6574 6420 5365 7276 6963  le xinetd Servic
│ │ │ +002b4ef0: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +002b4f00: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +002b4f10: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +002b4f20: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +002b4f30: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002b4f40: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002b4f50: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +002b4f60: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +002b4f70: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +002b4f80: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +002b4f90: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002b4fa0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +002b4fb0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002b4fc0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002b4fd0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002b4fe0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +002b4ff0: 653a 2044 6973 6162 6c65 2078 696e 6574  e: Disable xinet
│ │ │ +002b5000: 6420 5365 7276 6963 6520 2d20 456e 7375  d Service - Ensu
│ │ │ +002b5010: 7265 2078 696e 6574 642e 7365 7276 6963  re xinetd.servic
│ │ │ +002b5020: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +002b5030: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002b5040: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002b5050: 616d 653a 2078 696e 6574 642e 7365 7276  ame: xinetd.serv
│ │ │ +002b5060: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +002b5070: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +002b5080: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002b5090: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +002b50a0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +002b50b0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +002b50c0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002b50d0: 2822 7869 6e65 7464 2e73 6572 7669 6365  ("xinetd.service
│ │ │ +002b50e0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +002b50f0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +002b5100: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +002b5110: 202d 2078 696e 6574 642e 736f 636b 6574   - xinetd.socket
│ │ │ +002b5120: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002b5130: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +002b5140: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +002b5150: 756e 6974 2d66 696c 6573 2078 696e 6574  unit-files xinet
│ │ │ +002b5160: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ +002b5170: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002b5180: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002b5190: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002b51a0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002b51b0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002b51c0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002b51d0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002b51e0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002b51f0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002b5200: 7869 6e65 7464 2053 6572 7669 6365 202d  xinetd Service -
│ │ │ +002b5210: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +002b5220: 7869 6e65 7464 0a20 2020 2061 6e73 6962  xinetd.    ansib
│ │ │ +002b5230: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +002b5240: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +002b5250: 7869 6e65 7464 2e73 6f63 6b65 740a 2020  xinetd.socket.  
│ │ │ +002b5260: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002b5270: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +002b5280: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +002b5290: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +002b52a0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002b52b0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +002b52c0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +002b52d0: 7869 6e65 7464 2e73 6f63 6b65 7422 2c20  xinetd.socket", 
│ │ │ +002b52e0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +002b52f0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +002b5300: 2d38 3030 2d31 3731 2d33 2e34 2e37 0a20  -800-171-3.4.7. 
│ │ │ +002b5310: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002b5320: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +002b5330: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002b5340: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002b5350: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +002b5360: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002b5370: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002b5380: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002b5390: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002b53a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002b53b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002b53c0: 6572 7669 6365 5f78 696e 6574 645f 6469  ervice_xinetd_di
│ │ │ +002b53d0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002b53e0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002b53f0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +002b5400: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +002b5410: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +002b5420: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002b5430: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation K │ │ │ +002b54e0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +002b54f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002b5570: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002b5580: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002b5590: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ +002b55c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ +002b55d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +002b55e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ +002b55f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ +002b5630: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +002b5640: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +002b5650: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +002b5660: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +002b5670: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +002b5680: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +002b5690: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +002b56a0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +002b56b0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +002b56c0: 202d 206e 616d 653a 2078 696e 6574 642e - name: xinetd. │ │ │ +002b56d0: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +002b56e0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +002b56f0: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +002b5700: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +002b5710: 7869 6e65 7464 2e73 6f63 6b65 740a 2020 xinetd.socket. │ │ │ +002b5720: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ +002b5730: 616c 7365 0a20 2020 2020 2020 206d 6173 alse. mas │ │ │ +002b5740: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c k: true.< │ │ │ +002b5750: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ +002b5800: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002b5810: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002b5820: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002b5830: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002b5840: 7365 2220 6964 3d22 6964 3131 3030 223e se" id="id1100"> │ │ │ +002b5850: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002b58c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002b58e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002b5910: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +002b5930: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +002b58a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002b58b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002b58f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002b5900: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +002b5950: 6469 7361 626c 655f 7869 6e65 7464 0a0a disable_xinetd.. │ │ │ +002b5960: 636c 6173 7320 6469 7361 626c 655f 7869 class disable_xi │ │ │ +002b5970: 6e65 7464 207b 0a20 2073 6572 7669 6365 netd {. service │ │ │ +002b5980: 207b 2778 696e 6574 6427 3a0a 2020 2020 {'xinetd':. │ │ │ +002b5990: 656e 6162 6c65 203d 2667 743b 2066 616c enable => fal │ │ │ +002b59a0: 7365 2c0a 2020 2020 656e 7375 7265 203d se,. ensure = │ │ │ +002b59b0: 2667 743b 2027 7374 6f70 7065 6427 2c0a > 'stopped',. │ │ │ +002b59c0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediati │ │ │ +002b5a80: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +002b5a90: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +002b5aa0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +002b5af0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +002b5b00: 6173 6b65 6420 3d20 5b22 7869 6e65 7464  asked = ["xinetd
│ │ │ +002b5b10: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 002b5b20: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -002b7720: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002b7730: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002b77b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b77d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002b7820: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002b7850: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -002b7870: 655f 7970 7365 7276 0a0a 636c 6173 7320  e_ypserv..class 
│ │ │ -002b7880: 7265 6d6f 7665 5f79 7073 6572 7620 7b0a  remove_ypserv {.
│ │ │ -002b7890: 2020 7061 636b 6167 6520 7b20 2779 7073    package { 'yps
│ │ │ -002b78a0: 6572 7627 3a0a 2020 2020 656e 7375 7265  erv':.    ensure
│ │ │ -002b78b0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -002b78c0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ -002b7980: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -002b7990: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -002b79a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002b79b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002b79c0: 7365 2220 6964 3d22 6964 3131 3035 223e se" id="id1105"> │ │ │ -002b79d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ -002b77e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b77f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002b7830: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002b7840: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002b7a40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002b7a60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002b7a90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002b7a20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002b7a30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002b7a70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002b7a80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -002b7ad0: 2027 556e 696e 7374 616c 6c20 7970 7365 'Uninstall ypse │ │ │ -002b7ae0: 7276 2050 6163 6b61 6765 3a20 456e 7375 rv Package: Ensu │ │ │ -002b7af0: 7265 2079 7073 6572 7620 6973 2072 656d re ypserv is rem │ │ │ -002b7b00: 6f76 6564 270a 2020 616e 7369 626c 652e oved'. ansible. │ │ │ -002b7b10: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -002b7b20: 0a20 2020 206e 616d 653a 2079 7073 6572 . name: ypser │ │ │ -002b7b30: 760a 2020 2020 7374 6174 653a 2061 6273 v. state: abs │ │ │ -002b7b40: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -002b7b50: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -002b7b60: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -002b7b70: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ -002b7b80: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -002b7b90: 2862 290a 2020 2d20 4e49 5354 2d38 3030 (b). - NIST-800 │ │ │ -002b7ba0: 2d35 332d 4941 2d35 2831 2928 6329 0a20 -53-IA-5(1)(c). │ │ │ -002b7bb0: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002b7bc0: 2e32 2e32 0a20 202d 2050 4349 2d44 5353 .2.2. - PCI-DSS │ │ │ -002b7bd0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002b7be0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ -002b7bf0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -002b7c00: 2020 2d20 6869 6768 5f73 6576 6572 6974 - high_severit │ │ │ -002b7c10: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -002b7c20: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -002b7c30: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ -002b7c40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -002b7c50: 2070 6163 6b61 6765 5f79 7073 6572 765f package_ypserv_ │ │ │ -002b7c60: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +002b7710: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +002b7720: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +002b7730: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

│ │ │ +002b77b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b77d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b7820: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b7850: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002b77c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b77e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b7830: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b7840: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +002b7870: 7374 616c 6c20 7970 7365 7276 2050 6163  stall ypserv Pac
│ │ │ +002b7880: 6b61 6765 3a20 456e 7375 7265 2079 7073  kage: Ensure yps
│ │ │ +002b7890: 6572 7620 6973 2072 656d 6f76 6564 270a  erv is removed'.
│ │ │ +002b78a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002b78b0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002b78c0: 616d 653a 2079 7073 6572 760a 2020 2020  ame: ypserv.    
│ │ │ +002b78d0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +002b78e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +002b78f0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +002b7900: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002b7910: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +002b7920: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +002b7930: 2d20 4e49 5354 2d38 3030 2d35 332d 4941  - NIST-800-53-IA
│ │ │ +002b7940: 2d35 2831 2928 6329 0a20 202d 2050 4349  -5(1)(c).  - PCI
│ │ │ +002b7950: 2d44 5353 2d52 6571 2d32 2e32 2e32 0a20  -DSS-Req-2.2.2. 
│ │ │ +002b7960: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002b7970: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002b7980: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +002b7990: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +002b79a0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +002b79b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002b79c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002b79d0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002b79e0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002b79f0: 6765 5f79 7073 6572 765f 7265 6d6f 7665  ge_ypserv_remove
│ │ │ +002b7a00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002b7a10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002b7ac0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002b7ad0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002b7b50: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b7b70: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b7bc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b7bf0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002b7b60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b7b80: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b7bd0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b7be0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +002b7c10: 7665 5f79 7073 6572 760a 0a63 6c61 7373  ve_ypserv..class
│ │ │ +002b7c20: 2072 656d 6f76 655f 7970 7365 7276 207b   remove_ypserv {
│ │ │ +002b7c30: 0a20 2070 6163 6b61 6765 207b 2027 7970  .  package { 'yp
│ │ │ +002b7c40: 7365 7276 273a 0a20 2020 2065 6e73 7572  serv':.    ensur
│ │ │ +002b7c50: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +002b7c60: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  002b7c70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Re │ │ │ -002b8ac0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002b8ad0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002b8ae0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002b8af0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002b8b00: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002b8b10: 7365 2220 6964 3d22 6964 3131 3038 223e se" id="id1108"> │ │ │ -002b8b20: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -002b8b30: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -002b8b40: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002b8b50: 2279 7073 6572 7622 5d0a 3c2f 636f 6465  "ypserv"].
Remed │ │ │ -002b8c10: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -002b8c20: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ -002b8cc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -002b8d70: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -002b8d80: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -002b8d90: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -002b8da0: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -002b8db0: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -002b8dc0: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -002b8dd0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -002b8de0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -002b8df0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -002b8e00: 2079 7073 6572 762e 7365 7276 6963 650a   ypserv.service.
│ │ │ -002b8e10: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002b8e20: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002b8e30: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ -002b8e40: 2d20 6e61 6d65 3a20 7970 7365 7276 2e73  - name: ypserv.s
│ │ │ -002b8e50: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -002b8e60: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002b8e70: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -002b8e80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -002b8f40: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002b8f50: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -002b8cb0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002b8ce0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -002b8cf0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -002b8d30: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002b8d40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -002b9020: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002b9030: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -002b9080: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -002b9090: 7970 7365 7276 0a0a 636c 6173 7320 6469  ypserv..class di
│ │ │ -002b90a0: 7361 626c 655f 7970 7365 7276 207b 0a20  sable_ypserv {. 
│ │ │ -002b90b0: 2073 6572 7669 6365 207b 2779 7073 6572   service {'ypser
│ │ │ -002b90c0: 7627 3a0a 2020 2020 656e 6162 6c65 203d  v':.    enable =
│ │ │ -002b90d0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -002b90e0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -002b90f0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ -002b91b0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002b91c0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disru │ │ │ -002b9000: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002b9010: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002b9050: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -002b9060: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002b92a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002b92b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002b9300: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002b9310: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002b9320: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002b9330: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -002b9340: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002b9350: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002b9360: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002b9370: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002b9380: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002b9390: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002b93a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002b93b0: 2020 2d20 7365 7276 6963 655f 7970 7365    - service_ypse
│ │ │ -002b93c0: 7276 5f64 6973 6162 6c65 640a 0a2d 206e  rv_disabled..- n
│ │ │ -002b93d0: 616d 653a 2044 6973 6162 6c65 2079 7073  ame: Disable yps
│ │ │ -002b93e0: 6572 7620 5365 7276 6963 6520 2d20 4469  erv Service - Di
│ │ │ -002b93f0: 7361 626c 6520 7365 7276 6963 6520 7970  sable service yp
│ │ │ -002b9400: 7365 7276 0a20 2062 6c6f 636b 3a0a 0a20  serv.  block:.. 
│ │ │ -002b9410: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002b9420: 2079 7073 6572 7620 5365 7276 6963 6520   ypserv Service 
│ │ │ -002b9430: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002b9440: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002b9450: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002b9460: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002b9470: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002b9480: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002b9490: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -002b94a0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -002b94b0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -002b94c0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002b94d0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002b94e0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002b94f0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -002b9500: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002b9510: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002b9520: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002b9530: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ -002b9540: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ -002b9550: 2079 7073 6572 762e 7365 7276 6963 6520   ypserv.service 
│ │ │ -002b9560: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -002b9570: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002b9580: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002b9590: 653a 2079 7073 6572 762e 7365 7276 6963  e: ypserv.servic
│ │ │ -002b95a0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -002b95b0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -002b95c0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002b95d0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002b95e0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -002b95f0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002b9600: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002b9610: 7970 7365 7276 2e73 6572 7669 6365 222c  ypserv.service",
│ │ │ -002b9620: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002b9630: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -002b9640: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -002b9650: 2079 7073 6572 762e 736f 636b 6574 0a20   ypserv.socket. 
│ │ │ -002b9660: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002b9670: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -002b9680: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -002b9690: 6974 2d66 696c 6573 2079 7073 6572 762e  it-files ypserv.
│ │ │ -002b96a0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -002b96b0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -002b96c0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002b96d0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002b96e0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -002b96f0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002b9700: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -002b9710: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -002b9720: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -002b9730: 6e61 6d65 3a20 4469 7361 626c 6520 7970  name: Disable yp
│ │ │ -002b9740: 7365 7276 2053 6572 7669 6365 202d 2044  serv Service - D
│ │ │ -002b9750: 6973 6162 6c65 2053 6f63 6b65 7420 7970  isable Socket yp
│ │ │ -002b9760: 7365 7276 0a20 2020 2061 6e73 6962 6c65  serv.    ansible
│ │ │ -002b9770: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -002b9780: 3a0a 2020 2020 2020 6e61 6d65 3a20 7970  :.      name: yp
│ │ │ -002b9790: 7365 7276 2e73 6f63 6b65 740a 2020 2020  serv.socket.    
│ │ │ -002b97a0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002b97b0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -002b97c0: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ -002b97d0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -002b97e0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -002b97f0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -002b9800: 6573 2069 7320 7365 6172 6368 2822 7970  es is search("yp
│ │ │ -002b9810: 7365 7276 2e73 6f63 6b65 7422 2c20 6d75  serv.socket", mu
│ │ │ -002b9820: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -002b9830: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -002b9840: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002b9850: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002b9860: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002b9870: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -002b9880: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002b9890: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -002b98a0: 7276 6963 655f 7970 7365 7276 5f64 6973  rvice_ypserv_dis
│ │ │ -002b98b0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -002b98c0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -002b98d0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -002b98e0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -002b98f0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +002b8ac0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +002b8ad0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
Complexity:low
Disrup │ │ │ -002b9280: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002b9290: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002b92d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002b92e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +002b8b70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002b8c10: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002b8c20: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002b8c30: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002b8c40: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002b8c50: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +002b8c60: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002b8c70: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002b8c80: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002b8c90: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002b8ca0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002b8cb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002b8cc0: 202d 2073 6572 7669 6365 5f79 7073 6572   - service_ypser
│ │ │ +002b8cd0: 765f 6469 7361 626c 6564 0a0a 2d20 6e61  v_disabled..- na
│ │ │ +002b8ce0: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ +002b8cf0: 7276 2053 6572 7669 6365 202d 2044 6973  rv Service - Dis
│ │ │ +002b8d00: 6162 6c65 2073 6572 7669 6365 2079 7073  able service yps
│ │ │ +002b8d10: 6572 760a 2020 626c 6f63 6b3a 0a0a 2020  erv.  block:..  
│ │ │ +002b8d20: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002b8d30: 7970 7365 7276 2053 6572 7669 6365 202d  ypserv Service -
│ │ │ +002b8d40: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +002b8d50: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +002b8d60: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +002b8d70: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002b8d80: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002b8d90: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002b8da0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +002b8db0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +002b8dc0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +002b8dd0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002b8de0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002b8df0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002b8e00: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +002b8e10: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002b8e20: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002b8e30: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002b8e40: 4469 7361 626c 6520 7970 7365 7276 2053  Disable ypserv S
│ │ │ +002b8e50: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +002b8e60: 7970 7365 7276 2e73 6572 7669 6365 2069  ypserv.service i
│ │ │ +002b8e70: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +002b8e80: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002b8e90: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002b8ea0: 3a20 7970 7365 7276 2e73 6572 7669 6365  : ypserv.service
│ │ │ +002b8eb0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002b8ec0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +002b8ed0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002b8ee0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +002b8ef0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +002b8f00: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +002b8f10: 6e65 7320 6973 2073 6561 7263 6828 2279  nes is search("y
│ │ │ +002b8f20: 7073 6572 762e 7365 7276 6963 6522 2c20  pserv.service", 
│ │ │ +002b8f30: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +002b8f40: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +002b8f50: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +002b8f60: 7970 7365 7276 2e73 6f63 6b65 740a 2020  ypserv.socket.  
│ │ │ +002b8f70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002b8f80: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +002b8f90: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +002b8fa0: 742d 6669 6c65 7320 7970 7365 7276 2e73  t-files ypserv.s
│ │ │ +002b8fb0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002b8fc0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002b8fd0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002b8fe0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002b8ff0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002b9000: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002b9010: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002b9020: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002b9030: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002b9040: 616d 653a 2044 6973 6162 6c65 2079 7073  ame: Disable yps
│ │ │ +002b9050: 6572 7620 5365 7276 6963 6520 2d20 4469  erv Service - Di
│ │ │ +002b9060: 7361 626c 6520 536f 636b 6574 2079 7073  sable Socket yps
│ │ │ +002b9070: 6572 760a 2020 2020 616e 7369 626c 652e  erv.    ansible.
│ │ │ +002b9080: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002b9090: 0a20 2020 2020 206e 616d 653a 2079 7073  .      name: yps
│ │ │ +002b90a0: 6572 762e 736f 636b 6574 0a20 2020 2020  erv.socket.     
│ │ │ +002b90b0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002b90c0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002b90d0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +002b90e0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002b90f0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002b9100: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002b9110: 7320 6973 2073 6561 7263 6828 2279 7073  s is search("yps
│ │ │ +002b9120: 6572 762e 736f 636b 6574 222c 206d 756c  erv.socket", mul
│ │ │ +002b9130: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002b9140: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +002b9150: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002b9160: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002b9170: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002b9180: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +002b9190: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002b91a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002b91b0: 7669 6365 5f79 7073 6572 765f 6469 7361  vice_ypserv_disa
│ │ │ +002b91c0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +002b91d0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +002b91e0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002b91f0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002b9200: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002b9210: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ +002b92d0: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +002b92e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +002b93a0: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>medium< │ │ │ +002b93f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002b9400: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +002b8b60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b8b90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b8ba0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b8be0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b8bf0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +002b9370: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002b9390: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboo │ │ │ +002b93c0: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ +002b93d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
apiVersio
│ │ │ +002b9420: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ +002b9430: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ +002b9440: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ +002b9450: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ +002b9460: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ +002b9470: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ +002b9480: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ +002b9490: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ +002b94a0: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ +002b94b0: 206e 616d 653a 2079 7073 6572 762e 7365   name: ypserv.se
│ │ │ +002b94c0: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ +002b94d0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002b94e0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +002b94f0: 2020 2020 2020 2d20 6e61 6d65 3a20 7970        - name: yp
│ │ │ +002b9500: 7365 7276 2e73 6f63 6b65 740a 2020 2020  serv.socket.    
│ │ │ +002b9510: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002b9520: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +002b9530: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediati │ │ │ +002b95f0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002b9600: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002b9680: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002b9690: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002b96a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002b96e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002b96f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002b9710: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +002b9730: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +002b9740: 7361 626c 655f 7970 7365 7276 0a0a 636c  sable_ypserv..cl
│ │ │ +002b9750: 6173 7320 6469 7361 626c 655f 7970 7365  ass disable_ypse
│ │ │ +002b9760: 7276 207b 0a20 2073 6572 7669 6365 207b  rv {.  service {
│ │ │ +002b9770: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ +002b9780: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +002b9790: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +002b97a0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +002b97b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +002b9870: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +002b9880: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ +002b98e0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +002b98f0: 6b65 6420 3d20 5b22 7970 7365 7276 225d  ked = ["ypserv"]
│ │ │  002b9900: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -002bae90: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002baea0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002baf70: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002baf80: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -002bafe0: 5f72 7368 2d63 6c69 656e 740a 0a63 6c61  _rsh-client..cla
│ │ │ -002baff0: 7373 2072 656d 6f76 655f 7273 682d 636c  ss remove_rsh-cl
│ │ │ -002bb000: 6965 6e74 207b 0a20 2070 6163 6b61 6765  ient {.  package
│ │ │ -002bb010: 207b 2027 7273 682d 636c 6965 6e74 273a   { 'rsh-client':
│ │ │ -002bb020: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002bb030: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -002bb040: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002bb050: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002bb100: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002bb110: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -002bb1e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disru │ │ │ -002baf50: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002baf60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002bafa0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002bafb0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -002bb1a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -002bb1c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002bb210: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002bb220: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -002bb250: 6e73 7461 6c6c 2072 7368 2050 6163 6b61  nstall rsh Packa
│ │ │ -002bb260: 6765 3a20 456e 7375 7265 2072 7368 2d63  ge: Ensure rsh-c
│ │ │ -002bb270: 6c69 656e 7420 6973 2072 656d 6f76 6564  lient is removed
│ │ │ -002bb280: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -002bb290: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -002bb2a0: 206e 616d 653a 2072 7368 2d63 6c69 656e   name: rsh-clien
│ │ │ -002bb2b0: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ -002bb2c0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002bb2d0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002bb2e0: 2e31 330a 2020 2d20 5043 492d 4453 5376  .13.  - PCI-DSSv
│ │ │ -002bb2f0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002bb300: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -002bb310: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002bb320: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002bb330: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002bb340: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -002bb350: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -002bb360: 636b 6167 655f 7273 685f 7265 6d6f 7665  ckage_rsh_remove
│ │ │ -002bb370: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -002bb380: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.Remediation Ans
│ │ │ +002bae90: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002baea0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +002baf20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002baf40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002baf90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002bafc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +002bafe0: 7461 6c6c 2072 7368 2050 6163 6b61 6765  tall rsh Package
│ │ │ +002baff0: 3a20 456e 7375 7265 2072 7368 2d63 6c69  : Ensure rsh-cli
│ │ │ +002bb000: 656e 7420 6973 2072 656d 6f76 6564 270a  ent is removed'.
│ │ │ +002bb010: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002bb020: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002bb030: 616d 653a 2072 7368 2d63 6c69 656e 740a  ame: rsh-client.
│ │ │ +002bb040: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002bb050: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +002bb060: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ +002bb070: 330a 2020 2d20 5043 492d 4453 5376 342d  3.  - PCI-DSSv4-
│ │ │ +002bb080: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +002bb090: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +002bb0a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002bb0b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002bb0c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002bb0d0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +002bb0e0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +002bb0f0: 6167 655f 7273 685f 7265 6d6f 7665 640a  age_rsh_removed.
│ │ │ +002bb100: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +002bb110: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediatio
│ │ │ +002bb1d0: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +002bb1e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +002bb260: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +002bb2a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ +002baf50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002baf60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002bafa0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002bafb0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ +002bb270: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +002bb290: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +002bb2c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +002bb2e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +002bb310: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +002bb320: 656d 6f76 655f 7273 682d 636c 6965 6e74  emove_rsh-client
│ │ │ +002bb330: 0a0a 636c 6173 7320 7265 6d6f 7665 5f72  ..class remove_r
│ │ │ +002bb340: 7368 2d63 6c69 656e 7420 7b0a 2020 7061  sh-client {.  pa
│ │ │ +002bb350: 636b 6167 6520 7b20 2772 7368 2d63 6c69  ckage { 'rsh-cli
│ │ │ +002bb360: 656e 7427 3a0a 2020 2020 656e 7375 7265  ent':.    ensure
│ │ │ +002bb370: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +002bb380: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ -002bda20: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002bda30: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002bdab0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002bdac0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002bdae0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002bdaf0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002bdb10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002bdb30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002bdb60: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -002bdb70: 656d 6f76 655f 7461 6c6b 0a0a 636c 6173  emove_talk..clas
│ │ │ -002bdb80: 7320 7265 6d6f 7665 5f74 616c 6b20 7b0a  s remove_talk {.
│ │ │ -002bdb90: 2020 7061 636b 6167 6520 7b20 2774 616c    package { 'tal
│ │ │ -002bdba0: 6b27 3a0a 2020 2020 656e 7375 7265 203d  k':.    ensure =
│ │ │ -002bdbb0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -002bdbc0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -002bdc80: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002bdc90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002bdd10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002bdd20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002bdd30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002bdd70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002bdd80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002bdda0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002bddb0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -002bddd0: 556e 696e 7374 616c 6c20 7461 6c6b 2050  Uninstall talk P
│ │ │ -002bdde0: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ -002bddf0: 616c 6b20 6973 2072 656d 6f76 6564 270a  alk is removed'.
│ │ │ -002bde00: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002bde10: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -002bde20: 616d 653a 2074 616c 6b0a 2020 2020 7374  ame: talk.    st
│ │ │ -002bde30: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -002bde40: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -002bde50: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002bde60: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -002bde70: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002bde80: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002bde90: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002bdea0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002bdeb0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002bdec0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002bded0: 2d20 7061 636b 6167 655f 7461 6c6b 5f72  - package_talk_r
│ │ │ -002bdee0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
│ │ │ +002bdab0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002bdac0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002bdad0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002bdb10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002bdb20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002bdb40: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002bdb50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +002bdb70: 556e 696e 7374 616c 6c20 7461 6c6b 2050  Uninstall talk P
│ │ │ +002bdb80: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ +002bdb90: 616c 6b20 6973 2072 656d 6f76 6564 270a  alk is removed'.
│ │ │ +002bdba0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002bdbb0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002bdbc0: 616d 653a 2074 616c 6b0a 2020 2020 7374  ame: talk.    st
│ │ │ +002bdbd0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +002bdbe0: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ +002bdbf0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +002bdc00: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +002bdc10: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002bdc20: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002bdc30: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002bdc40: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +002bdc50: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002bdc60: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002bdc70: 2d20 7061 636b 6167 655f 7461 6c6b 5f72  - package_talk_r
│ │ │ +002bdc80: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediat │ │ │ +002bdd40: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002bdd50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002bdd90: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002bdda0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002bddb0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002bddc0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002bddd0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002bdde0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002bddf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002bde30: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002bde40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002bde60: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002bde70: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +002bde90: 2072 656d 6f76 655f 7461 6c6b 0a0a 636c remove_talk..cl │ │ │ +002bdea0: 6173 7320 7265 6d6f 7665 5f74 616c 6b20 ass remove_talk │ │ │ +002bdeb0: 7b0a 2020 7061 636b 6167 6520 7b20 2774 {. package { 't │ │ │ +002bdec0: 616c 6b27 3a0a 2020 2020 656e 7375 7265 alk':. ensure │ │ │ +002bded0: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ +002bdee0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediation P │ │ │ -002bf480: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -002bf490: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002bf510: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002bf530: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002bf580: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002bf5b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002bf520: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002bf540: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002bf590: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002bf5a0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -002bf5d0: 7665 5f74 656c 6e65 740a 0a63 6c61 7373  ve_telnet..class
│ │ │ -002bf5e0: 2072 656d 6f76 655f 7465 6c6e 6574 207b   remove_telnet {
│ │ │ -002bf5f0: 0a20 2070 6163 6b61 6765 207b 2027 7465  .  package { 'te
│ │ │ -002bf600: 6c6e 6574 273a 0a20 2020 2065 6e73 7572  lnet':.    ensur
│ │ │ -002bf610: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -002bf620: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002bf630: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002bf6e0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002bf6f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002bf700: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002bf7a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002bf7c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002bf7f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002bf780: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002bf790: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002bf7b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002bf7d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002bf7e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002bf820: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002bf830: 3a20 2752 656d 6f76 6520 7465 6c6e 6574 : 'Remove telnet │ │ │ -002bf840: 2043 6c69 656e 7473 3a20 456e 7375 7265 Clients: Ensure │ │ │ -002bf850: 2074 656c 6e65 7420 6973 2072 656d 6f76 telnet is remov │ │ │ -002bf860: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -002bf870: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -002bf880: 2020 206e 616d 653a 2074 656c 6e65 740a name: telnet. │ │ │ -002bf890: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -002bf8a0: 740a 2020 7461 6773 3a0a 2020 2d20 4e49 t. tags:. - NI │ │ │ -002bf8b0: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31 ST-800-171-3.1.1 │ │ │ -002bf8c0: 330a 2020 2d20 5043 492d 4453 5376 342d 3. - PCI-DSSv4- │ │ │ -002bf8d0: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ -002bf8e0: 342d 322e 322e 340a 2020 2d20 6469 7361 4-2.2.4. - disa │ │ │ -002bf8f0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -002bf900: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -002bf910: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -002bf920: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ -002bf930: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -002bf940: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -002bf950: 6b61 6765 5f74 656c 6e65 745f 7265 6d6f kage_telnet_remo │ │ │ -002bf960: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.Remediation A │ │ │ +002bf480: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +002bf490: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +002bf520: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002bf540: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002bf560: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002bf590: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002bf5a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Rem
│ │ │ +002bf5d0: 6f76 6520 7465 6c6e 6574 2043 6c69 656e  ove telnet Clien
│ │ │ +002bf5e0: 7473 3a20 456e 7375 7265 2074 656c 6e65  ts: Ensure telne
│ │ │ +002bf5f0: 7420 6973 2072 656d 6f76 6564 270a 2020  t is removed'.  
│ │ │ +002bf600: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002bf610: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +002bf620: 653a 2074 656c 6e65 740a 2020 2020 7374  e: telnet.    st
│ │ │ +002bf630: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +002bf640: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +002bf650: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20  -171-3.1.13.  - 
│ │ │ +002bf660: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +002bf670: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +002bf680: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +002bf690: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002bf6a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002bf6b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002bf6c0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +002bf6d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002bf6e0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +002bf6f0: 656c 6e65 745f 7265 6d6f 7665 640a 3c2f  elnet_removed.
R │ │ │ +002bf7b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002bf7c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +002bf860: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002bf900: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +002bf910: 656c 6e65 740a 0a63 6c61 7373 2072 656d  elnet..class rem
│ │ │ +002bf920: 6f76 655f 7465 6c6e 6574 207b 0a20 2070  ove_telnet {.  p
│ │ │ +002bf930: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ +002bf940: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002bf950: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +002bf960: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Rem │ │ │ -002c1490: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002c14a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002c14b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +002bf850: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002bf880: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002bf890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002bf8d0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002bf8e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -002c1550: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002c15a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002c15e0: 636c 7564 6520 7265 6d6f 7665 5f74 6674  clude remove_tft
│ │ │ -002c15f0: 7064 2d68 7061 0a0a 636c 6173 7320 7265  pd-hpa..class re
│ │ │ -002c1600: 6d6f 7665 5f74 6674 7064 2d68 7061 207b  move_tftpd-hpa {
│ │ │ -002c1610: 0a20 2070 6163 6b61 6765 207b 2027 7466  .  package { 'tf
│ │ │ -002c1620: 7470 642d 6870 6127 3a0a 2020 2020 656e  tpd-hpa':.    en
│ │ │ -002c1630: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002c1640: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002c1700: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002c1710: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002c1720: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ -002c1530: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002c1560: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002c1580: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c1590: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002c15b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c15c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -002c17c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002c1810: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002c1850: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002c1860: 7466 7470 642d 6870 6120 5061 636b 6167  tftpd-hpa Packag
│ │ │ -002c1870: 653a 2045 6e73 7572 6520 7466 7470 642d  e: Ensure tftpd-
│ │ │ -002c1880: 6870 6120 6973 2072 656d 6f76 6564 270a  hpa is removed'.
│ │ │ -002c1890: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002c18a0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -002c18b0: 616d 653a 2074 6674 7064 2d68 7061 0a20  ame: tftpd-hpa. 
│ │ │ -002c18c0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -002c18d0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -002c18e0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -002c18f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002c1900: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -002c1910: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -002c1920: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002c1930: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002c1940: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -002c1950: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002c1960: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -002c1970: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002c1980: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002c1990: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002c19a0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002c19b0: 6b61 6765 5f74 6674 702d 7365 7276 6572  kage_tftp-server
│ │ │ -002c19c0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002c1490: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +002c14a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +002c14b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
Co │ │ │ -002c17a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002c17d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002c17f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c1800: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002c1820: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c1830: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +002c1540: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c1550: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002c15a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002c15e0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002c15f0: 2074 6674 7064 2d68 7061 2050 6163 6b61   tftpd-hpa Packa
│ │ │ +002c1600: 6765 3a20 456e 7375 7265 2074 6674 7064  ge: Ensure tftpd
│ │ │ +002c1610: 2d68 7061 2069 7320 7265 6d6f 7665 6427  -hpa is removed'
│ │ │ +002c1620: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +002c1630: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +002c1640: 6e61 6d65 3a20 7466 7470 642d 6870 610a  name: tftpd-hpa.
│ │ │ +002c1650: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002c1660: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +002c1670: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002c1680: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002c1690: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +002c16a0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +002c16b0: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +002c16c0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +002c16d0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +002c16e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002c16f0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +002c1700: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002c1710: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002c1720: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +002c1730: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002c1740: 636b 6167 655f 7466 7470 2d73 6572 7665  ckage_tftp-serve
│ │ │ +002c1750: 725f 7265 6d6f 7665 640a 3c2f 636f 6465  r_removed.
Remed │ │ │ +002c1810: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002c1820: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +002c1530: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002c1560: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002c1570: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002c15b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002c15c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +002c18b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002c18c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002c18e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002c1900: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002c1910: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002c1950: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +002c1960: 7564 6520 7265 6d6f 7665 5f74 6674 7064  ude remove_tftpd
│ │ │ +002c1970: 2d68 7061 0a0a 636c 6173 7320 7265 6d6f  -hpa..class remo
│ │ │ +002c1980: 7665 5f74 6674 7064 2d68 7061 207b 0a20  ve_tftpd-hpa {. 
│ │ │ +002c1990: 2070 6163 6b61 6765 207b 2027 7466 7470   package { 'tftp
│ │ │ +002c19a0: 642d 6870 6127 3a0a 2020 2020 656e 7375  d-hpa':.    ensu
│ │ │ +002c19b0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +002c19c0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002c19d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation OSB │ │ │ -002c2e20: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -002c2e30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -002c2e80: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -002c2e90: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -002c2ea0: 3d20 5b22 7466 7470 642d 6870 6122 5d0a  = ["tftpd-hpa"].
│ │ │ -002c2eb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ -002c2f70: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -002c2f80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002c3010: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002c3030: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002c3040: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -002c3060: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -002c3070: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002c3090: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002c30a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -002c30c0: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -002c30d0: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -002c30e0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -002c30f0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -002c3100: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -002c3110: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -002c3120: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -002c3130: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -002c3140: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -002c3150: 206e 616d 653a 2074 6674 7064 2d68 7061   name: tftpd-hpa
│ │ │ -002c3160: 2e73 6572 7669 6365 0a20 2020 2020 2020  .service.       
│ │ │ -002c3170: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002c3180: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -002c3190: 7565 0a20 2020 2020 202d 206e 616d 653a  ue.      - name:
│ │ │ -002c31a0: 2074 6674 7064 2d68 7061 2e73 6f63 6b65   tftpd-hpa.socke
│ │ │ -002c31b0: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ -002c31c0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -002c31d0: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ -002c31f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002c3200: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002c3210: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002c3220: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002c3230: 6431 3133 3422 2074 6162 696e 6465 783d d1134" tabindex= │ │ │ -002c3240: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002c3250: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002c3260: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002c3270: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002c3280: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002c3290: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002c32a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002c32b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002c3350: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002c33a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -002c3330: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002c3360: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002c3380: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c3390: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002c33b0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -002c33c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -002c33e0: 7564 6520 6469 7361 626c 655f 7466 7470  ude disable_tftp
│ │ │ -002c33f0: 642d 6870 610a 0a63 6c61 7373 2064 6973  d-hpa..class dis
│ │ │ -002c3400: 6162 6c65 5f74 6674 7064 2d68 7061 207b  able_tftpd-hpa {
│ │ │ -002c3410: 0a20 2073 6572 7669 6365 207b 2774 6674  .  service {'tft
│ │ │ -002c3420: 7064 2d68 7061 273a 0a20 2020 2065 6e61  pd-hpa':.    ena
│ │ │ -002c3430: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -002c3440: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002c3450: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -002c3460: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002c3470: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002c3520: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002c3530: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002c35c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002c35e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002c35f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002c3600: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002c3610: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002c3630: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002c3660: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -002c3670: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -002c3680: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -002c3690: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002c36a0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002c36b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002c36c0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002c36d0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002c36e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002c36f0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -002c3700: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002c3710: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -002c3720: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002c3730: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002c3740: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -002c3750: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -002c3760: 6572 7669 6365 5f74 6674 705f 6469 7361  ervice_tftp_disa
│ │ │ -002c3770: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -002c3780: 7361 626c 6520 7466 7470 642d 6870 6120  sable tftpd-hpa 
│ │ │ -002c3790: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -002c37a0: 6520 7365 7276 6963 6520 7466 7470 642d  e service tftpd-
│ │ │ -002c37b0: 6870 610a 2020 626c 6f63 6b3a 0a0a 2020  hpa.  block:..  
│ │ │ -002c37c0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002c37d0: 7466 7470 642d 6870 6120 5365 7276 6963  tftpd-hpa Servic
│ │ │ -002c37e0: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ -002c37f0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -002c3800: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -002c3810: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -002c3820: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -002c3830: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -002c3840: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -002c3850: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -002c3860: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -002c3870: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002c3880: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -002c3890: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -002c38a0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002c38b0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -002c38c0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -002c38d0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -002c38e0: 653a 2044 6973 6162 6c65 2074 6674 7064  e: Disable tftpd
│ │ │ -002c38f0: 2d68 7061 2053 6572 7669 6365 202d 2045  -hpa Service - E
│ │ │ -002c3900: 6e73 7572 6520 7466 7470 642d 6870 612e  nsure tftpd-hpa.
│ │ │ -002c3910: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -002c3920: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -002c3930: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -002c3940: 2020 2020 206e 616d 653a 2074 6674 7064       name: tftpd
│ │ │ -002c3950: 2d68 7061 2e73 6572 7669 6365 0a20 2020  -hpa.service.   
│ │ │ -002c3960: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -002c3970: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -002c3980: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -002c3990: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -002c39a0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002c39b0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002c39c0: 6973 2073 6561 7263 6828 2274 6674 7064  is search("tftpd
│ │ │ -002c39d0: 2d68 7061 2e73 6572 7669 6365 222c 206d  -hpa.service", m
│ │ │ -002c39e0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -002c39f0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -002c3a00: 6f63 6b65 7420 4578 6973 7473 202d 2074  ocket Exists - t
│ │ │ -002c3a10: 6674 7064 2d68 7061 2e73 6f63 6b65 740a  ftpd-hpa.socket.
│ │ │ -002c3a20: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002c3a30: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002c3a40: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002c3a50: 6e69 742d 6669 6c65 7320 7466 7470 642d  nit-files tftpd-
│ │ │ -002c3a60: 6870 612e 736f 636b 6574 0a20 2020 2072  hpa.socket.    r
│ │ │ -002c3a70: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -002c3a80: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -002c3a90: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -002c3aa0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -002c3ab0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002c3ac0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -002c3ad0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -002c3ae0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -002c3af0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002c3b00: 6520 7466 7470 642d 6870 6120 5365 7276  e tftpd-hpa Serv
│ │ │ -002c3b10: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ -002c3b20: 636b 6574 2074 6674 7064 2d68 7061 0a20  cket tftpd-hpa. 
│ │ │ -002c3b30: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002c3b40: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -002c3b50: 2020 6e61 6d65 3a20 7466 7470 642d 6870    name: tftpd-hp
│ │ │ -002c3b60: 612e 736f 636b 6574 0a20 2020 2020 2065  a.socket.      e
│ │ │ -002c3b70: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002c3b80: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002c3b90: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002c3ba0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002c3bb0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002c3bc0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002c3bd0: 6973 2073 6561 7263 6828 2274 6674 7064  is search("tftpd
│ │ │ -002c3be0: 2d68 7061 2e73 6f63 6b65 7422 2c20 6d75  -hpa.socket", mu
│ │ │ -002c3bf0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -002c3c00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -002c3c10: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -002c3c20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002c3c30: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -002c3c40: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -002c3c50: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002c3c60: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -002c3c70: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -002c3c80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002c3c90: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -002c3ca0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002c3cb0: 2020 2d20 7365 7276 6963 655f 7466 7470    - service_tftp
│ │ │ -002c3cc0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -002c3cd0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -002c3ce0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -002c3cf0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -002c3d00: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -002c3d10: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation Ans
│ │ │ +002c2e20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002c2e30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +002c2eb0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002c2ed0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002c2f20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002c2f50: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +002c2f70: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +002c2f80: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +002c2f90: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +002c2fa0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +002c2fb0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002c2fc0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +002c2fd0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +002c2fe0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002c2ff0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +002c3000: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +002c3010: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +002c3020: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002c3030: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002c3040: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +002c3050: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002c3060: 6963 655f 7466 7470 5f64 6973 6162 6c65  ice_tftp_disable
│ │ │ +002c3070: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +002c3080: 6c65 2074 6674 7064 2d68 7061 2053 6572  le tftpd-hpa Ser
│ │ │ +002c3090: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +002c30a0: 6572 7669 6365 2074 6674 7064 2d68 7061  ervice tftpd-hpa
│ │ │ +002c30b0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +002c30c0: 616d 653a 2044 6973 6162 6c65 2074 6674  ame: Disable tft
│ │ │ +002c30d0: 7064 2d68 7061 2053 6572 7669 6365 202d  pd-hpa Service -
│ │ │ +002c30e0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +002c30f0: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +002c3100: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +002c3110: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002c3120: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002c3130: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002c3140: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +002c3150: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +002c3160: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +002c3170: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002c3180: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002c3190: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002c31a0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +002c31b0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002c31c0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002c31d0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002c31e0: 4469 7361 626c 6520 7466 7470 642d 6870  Disable tftpd-hp
│ │ │ +002c31f0: 6120 5365 7276 6963 6520 2d20 456e 7375  a Service - Ensu
│ │ │ +002c3200: 7265 2074 6674 7064 2d68 7061 2e73 6572  re tftpd-hpa.ser
│ │ │ +002c3210: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +002c3220: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002c3230: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002c3240: 2020 6e61 6d65 3a20 7466 7470 642d 6870    name: tftpd-hp
│ │ │ +002c3250: 612e 7365 7276 6963 650a 2020 2020 2020  a.service.      
│ │ │ +002c3260: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002c3270: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002c3280: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +002c3290: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002c32a0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +002c32b0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002c32c0: 7365 6172 6368 2822 7466 7470 642d 6870  search("tftpd-hp
│ │ │ +002c32d0: 612e 7365 7276 6963 6522 2c20 6d75 6c74  a.service", mult
│ │ │ +002c32e0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +002c32f0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +002c3300: 6574 2045 7869 7374 7320 2d20 7466 7470  et Exists - tftp
│ │ │ +002c3310: 642d 6870 612e 736f 636b 6574 0a20 2020  d-hpa.socket.   
│ │ │ +002c3320: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002c3330: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002c3340: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002c3350: 2d66 696c 6573 2074 6674 7064 2d68 7061  -files tftpd-hpa
│ │ │ +002c3360: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +002c3370: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +002c3380: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +002c3390: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002c33a0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +002c33b0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002c33c0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +002c33d0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +002c33e0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +002c33f0: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +002c3400: 6674 7064 2d68 7061 2053 6572 7669 6365  ftpd-hpa Service
│ │ │ +002c3410: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +002c3420: 7420 7466 7470 642d 6870 610a 2020 2020  t tftpd-hpa.    
│ │ │ +002c3430: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002c3440: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002c3450: 616d 653a 2074 6674 7064 2d68 7061 2e73  ame: tftpd-hpa.s
│ │ │ +002c3460: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +002c3470: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002c3480: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002c3490: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +002c34a0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +002c34b0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +002c34c0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002c34d0: 7365 6172 6368 2822 7466 7470 642d 6870  search("tftpd-hp
│ │ │ +002c34e0: 612e 736f 636b 6574 222c 206d 756c 7469  a.socket", multi
│ │ │ +002c34f0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +002c3500: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +002c3510: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +002c3520: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002c3530: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002c3540: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +002c3550: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002c3560: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +002c3570: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002c3580: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002c3590: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002c35a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002c35b0: 2073 6572 7669 6365 5f74 6674 705f 6469   service_tftp_di
│ │ │ +002c35c0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002c35d0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002c35e0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +002c35f0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +002c3600: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +002c3610: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002c3620: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation K │ │ │ +002c36d0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +002c36e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002c3760: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 │ │ │ +002c37b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 < │ │ │ +002c37e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
low
Disr │ │ │ +002c2ee0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002c2ef0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002c2f30: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002c2f40: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +002c3770: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002c3780: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:medium
Reb │ │ │ +002c37c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +002c37d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

apiVers │ │ │ +002c3820: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +002c3830: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +002c3840: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +002c3850: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +002c3860: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +002c3870: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +002c3880: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +002c3890: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +002c38a0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +002c38b0: 202d 206e 616d 653a 2074 6674 7064 2d68 - name: tftpd-h │ │ │ +002c38c0: 7061 2e73 6572 7669 6365 0a20 2020 2020 pa.service. │ │ │ +002c38d0: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +002c38e0: 650a 2020 2020 2020 2020 6d61 736b 3a20 e. mask: │ │ │ +002c38f0: 7472 7565 0a20 2020 2020 202d 206e 616d true. - nam │ │ │ +002c3900: 653a 2074 6674 7064 2d68 7061 2e73 6f63 e: tftpd-hpa.soc │ │ │ +002c3910: 6b65 740a 2020 2020 2020 2020 656e 6162 ket. enab │ │ │ +002c3920: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ +002c3930: 2020 206d 6173 6b3a 2074 7275 650a 3c2f mask: true.

R │ │ │ +002c39f0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002c3a00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +002c3aa0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +002c3b40: 636c 7564 6520 6469 7361 626c 655f 7466  clude disable_tf
│ │ │ +002c3b50: 7470 642d 6870 610a 0a63 6c61 7373 2064  tpd-hpa..class d
│ │ │ +002c3b60: 6973 6162 6c65 5f74 6674 7064 2d68 7061  isable_tftpd-hpa
│ │ │ +002c3b70: 207b 0a20 2073 6572 7669 6365 207b 2774   {.  service {'t
│ │ │ +002c3b80: 6674 7064 2d68 7061 273a 0a20 2020 2065  ftpd-hpa':.    e
│ │ │ +002c3b90: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +002c3ba0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +002c3bb0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +002c3bc0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ +002c3c80: 6e20 4f53 4275 696c 6420 426c 7565 7072  n OSBuild Bluepr
│ │ │ +002c3c90: 696e 7420 736e 6970 7065 7420 e287 b23c  int snippet ...<
│ │ │ +002c3ca0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
.[customizati
│ │ │ +002c3cf0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +002c3d00: 736b 6564 203d 205b 2274 6674 7064 2d68  sked = ["tftpd-h
│ │ │ +002c3d10: 7061 225d 0a3c 2f63 6f64 653e 3c2f 7072  pa"].
Remediati │ │ │ -002c4b30: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002c4b40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002c4bc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002c4c50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002c4c60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +002c3a90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002c3ac0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002c3ad0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002c3b10: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +002c3b20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -002c4bd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002c4be0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002c4c20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002c4c30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -002c4c80: 7265 6d6f 7665 5f72 7379 6e63 0a0a 636c  remove_rsync..cl
│ │ │ -002c4c90: 6173 7320 7265 6d6f 7665 5f72 7379 6e63  ass remove_rsync
│ │ │ -002c4ca0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -002c4cb0: 7273 796e 6327 3a0a 2020 2020 656e 7375  rsync':.    ensu
│ │ │ -002c4cc0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -002c4cd0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -002c4ce0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002c4d90: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002c4da0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002c4e30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002c4e40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002c4e60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002c4e80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002c4e90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002c4ed0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002c4ee0: 653a 2027 556e 696e 7374 616c 6c20 7273  e: 'Uninstall rs
│ │ │ -002c4ef0: 796e 6320 5061 636b 6167 653a 2045 6e73  ync Package: Ens
│ │ │ -002c4f00: 7572 6520 7273 796e 6320 6973 2072 656d  ure rsync is rem
│ │ │ -002c4f10: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002c4f20: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002c4f30: 0a20 2020 206e 616d 653a 2072 7379 6e63  .    name: rsync
│ │ │ -002c4f40: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -002c4f50: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ -002c4f60: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002c4f70: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002c4f80: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002c4f90: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002c4fa0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002c4fb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002c4fc0: 202d 2070 6163 6b61 6765 5f72 7379 6e63   - package_rsync
│ │ │ -002c4fd0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002c4b30: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +002c4b40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +002c4b80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002c4b90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002c4ba0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002c4bb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002c4bc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002c4bd0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002c4be0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002c4c20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002c4c30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002c4c50: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002c4c60: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002c4c80: 2755 6e69 6e73 7461 6c6c 2072 7379 6e63 'Uninstall rsync │ │ │ +002c4c90: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ +002c4ca0: 2072 7379 6e63 2069 7320 7265 6d6f 7665 rsync is remove │ │ │ +002c4cb0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +002c4cc0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +002c4cd0: 2020 6e61 6d65 3a20 7273 796e 630a 2020 name: rsync. │ │ │ +002c4ce0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +002c4cf0: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ +002c4d00: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +002c4d10: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +002c4d20: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +002c4d30: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +002c4d40: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +002c4d50: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +002c4d60: 7061 636b 6167 655f 7273 796e 635f 7265 package_rsync_re │ │ │ +002c4d70: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.

Remediati │ │ │ +002c4e30: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002c4e40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002c4ec0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002c4ed0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002c4ee0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002c4f20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002c4f30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002c4f50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002c4f60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002c4f80: 7265 6d6f 7665 5f72 7379 6e63 0a0a 636c  remove_rsync..cl
│ │ │ +002c4f90: 6173 7320 7265 6d6f 7665 5f72 7379 6e63  ass remove_rsync
│ │ │ +002c4fa0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +002c4fb0: 7273 796e 6327 3a0a 2020 2020 656e 7375  rsync':.    ensu
│ │ │ +002c4fc0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +002c4fd0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002c4fe0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -002c5e10: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -002c5e20: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -002c5e30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ -002c5e70: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -002c5e80: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -002c5e90: 6d61 736b 6564 203d 205b 2272 7379 6e63  masked = ["rsync
│ │ │ -002c5ea0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation │ │ │ -002c5f60: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ -002c5f70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002c5f80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002c5f90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002c5fa0: 7365 2220 6964 3d22 6964 3131 3433 223e se" id="id1143"> │ │ │ -002c5fb0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002c6020: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ -002c6000: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002c6010: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ -002c6050: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ -002c6060: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ -002c60a0: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ -002c60b0: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ -002c60c0: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ -002c60d0: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ -002c60e0: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ -002c60f0: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ -002c6100: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ -002c6110: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ -002c6120: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ -002c6130: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ -002c6140: 2020 202d 206e 616d 653a 2072 7379 6e63     - name: rsync
│ │ │ -002c6150: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -002c6160: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002c6170: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -002c6180: 7275 650a 2020 2020 2020 2d20 6e61 6d65  rue.      - name
│ │ │ -002c6190: 3a20 7273 796e 6364 2e73 6f63 6b65 740a  : rsyncd.socket.
│ │ │ -002c61a0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002c61b0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002c61c0: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ -002c6280: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002c6290: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002c6320: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002c6330: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002c6350: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002c6370: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002c6380: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002c63c0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002c63d0: 6520 6469 7361 626c 655f 7273 796e 6364 e disable_rsyncd │ │ │ -002c63e0: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -002c63f0: 7273 796e 6364 207b 0a20 2073 6572 7669 rsyncd {. servi │ │ │ -002c6400: 6365 207b 2772 7379 6e63 6427 3a0a 2020 ce {'rsyncd':. │ │ │ -002c6410: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -002c6420: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -002c6430: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -002c6440: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -002c6450: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ -002c6500: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002c6510: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002c6520: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002c65c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002c65e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002c6610: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002c65a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002c65b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002c65d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002c65f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002c6600: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002c6640: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002c6650: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -002c6660: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -002c6670: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -002c6680: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -002c6690: 7461 6773 3a0a 2020 2d20 5043 492d 4453 tags:. - PCI-DS │ │ │ -002c66a0: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -002c66b0: 4453 5376 342d 322e 322e 340a 2020 2d20 DSSv4-2.2.4. - │ │ │ -002c66c0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -002c66d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -002c66e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -002c66f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -002c6700: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -002c6710: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -002c6720: 2020 2d20 7365 7276 6963 655f 7273 796e - service_rsyn │ │ │ -002c6730: 6364 5f64 6973 6162 6c65 640a 0a2d 206e cd_disabled..- n │ │ │ -002c6740: 616d 653a 2045 6e73 7572 6520 7273 796e ame: Ensure rsyn │ │ │ -002c6750: 6364 2073 6572 7669 6365 2069 7320 6469 cd service is di │ │ │ -002c6760: 7361 626c 6564 202d 2044 6973 6162 6c65 sabled - Disable │ │ │ -002c6770: 2073 6572 7669 6365 2072 7379 6e63 640a service rsyncd. │ │ │ -002c6780: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ -002c6790: 6d65 3a20 456e 7375 7265 2072 7379 6e63 me: Ensure rsync │ │ │ -002c67a0: 6420 7365 7276 6963 6520 6973 2064 6973 d service is dis │ │ │ -002c67b0: 6162 6c65 6420 2d20 436f 6c6c 6563 7420 abled - Collect │ │ │ -002c67c0: 7379 7374 656d 6420 5365 7276 6963 6573 systemd Services │ │ │ -002c67d0: 2050 7265 7365 6e74 2069 6e0a 2020 2020 Present in. │ │ │ -002c67e0: 2020 7468 6520 5379 7374 656d 0a20 2020 the System. │ │ │ -002c67f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -002c6800: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ -002c6810: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ -002c6820: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ -002c6830: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ -002c6840: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ -002c6850: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -002c6860: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -002c6870: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ -002c6880: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ -002c6890: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -002c68a0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -002c68b0: 650a 0a20 202d 206e 616d 653a 2045 6e73 e.. - name: Ens │ │ │ -002c68c0: 7572 6520 7273 796e 6364 2073 6572 7669 ure rsyncd servi │ │ │ -002c68d0: 6365 2069 7320 6469 7361 626c 6564 202d ce is disabled - │ │ │ -002c68e0: 2045 6e73 7572 6520 7273 796e 6364 2e73 Ensure rsyncd.s │ │ │ -002c68f0: 6572 7669 6365 2069 7320 4d61 736b 6564 ervice is Masked │ │ │ -002c6900: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -002c6910: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ -002c6920: 2020 2020 6e61 6d65 3a20 7273 796e 6364 name: rsyncd │ │ │ -002c6930: 2e73 6572 7669 6365 0a20 2020 2020 2073 .service. s │ │ │ -002c6940: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -002c6950: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ -002c6960: 7365 0a20 2020 2020 206d 6173 6b65 643a se. masked: │ │ │ -002c6970: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ -002c6980: 7365 7276 6963 655f 6578 6973 7473 2e73 service_exists.s │ │ │ -002c6990: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ -002c69a0: 6561 7263 6828 2272 7379 6e63 642e 7365 earch("rsyncd.se │ │ │ -002c69b0: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ -002c69c0: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ -002c69d0: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ -002c69e0: 7869 7374 7320 2d20 7273 796e 6364 2e73 xists - rsyncd.s │ │ │ -002c69f0: 6f63 6b65 740a 2020 2020 616e 7369 626c ocket. ansibl │ │ │ -002c6a00: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ -002c6a10: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ -002c6a20: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ -002c6a30: 7273 796e 6364 2e73 6f63 6b65 740a 2020 rsyncd.socket. │ │ │ -002c6a40: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ -002c6a50: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ -002c6a60: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -002c6a70: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -002c6a80: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ -002c6a90: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ -002c6aa0: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -002c6ab0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -002c6ac0: 650a 0a20 202d 206e 616d 653a 2045 6e73 e.. - name: Ens │ │ │ -002c6ad0: 7572 6520 7273 796e 6364 2073 6572 7669 ure rsyncd servi │ │ │ -002c6ae0: 6365 2069 7320 6469 7361 626c 6564 202d ce is disabled - │ │ │ -002c6af0: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ -002c6b00: 7273 796e 6364 0a20 2020 2061 6e73 6962 rsyncd. ansib │ │ │ -002c6b10: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -002c6b20: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -002c6b30: 7273 796e 6364 2e73 6f63 6b65 740a 2020 rsyncd.socket. │ │ │ -002c6b40: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ -002c6b50: 7365 0a20 2020 2020 2073 7461 7465 3a20 se. state: │ │ │ -002c6b60: 7374 6f70 7065 640a 2020 2020 2020 6d61 stopped. ma │ │ │ -002c6b70: 736b 6564 3a20 7472 7565 0a20 2020 2077 sked: true. w │ │ │ -002c6b80: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ -002c6b90: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ -002c6ba0: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ -002c6bb0: 7273 796e 6364 2e73 6f63 6b65 7422 2c20 rsyncd.socket", │ │ │ -002c6bc0: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ -002c6bd0: 2020 7461 6773 3a0a 2020 2d20 5043 492d tags:. - PCI- │ │ │ -002c6be0: 4453 5376 342d 322e 320a 2020 2d20 5043 DSSv4-2.2. - PC │ │ │ -002c6bf0: 492d 4453 5376 342d 322e 322e 340a 2020 I-DSSv4-2.2.4. │ │ │ -002c6c00: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -002c6c10: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -002c6c20: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002c6c30: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -002c6c40: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -002c6c50: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -002c6c60: 640a 2020 2d20 7365 7276 6963 655f 7273 d. - service_rs │ │ │ -002c6c70: 796e 6364 5f64 6973 6162 6c65 640a 2020 yncd_disabled. │ │ │ -002c6c80: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -002c6c90: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ -002c6ca0: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -002c6cb0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -002c6cc0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +002c5e10: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +002c5e20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002c5e30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002c5e40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002c5e50: 7365 2220 6964 3d22 6964 3131 3432 223e se" id="id1142"> │ │ │ +002c5e60: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002c5ed0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002c5ef0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002c5f20: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002c5eb0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002c5ec0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002c5f00: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002c5f10: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002c5f60: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +002c5f70: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +002c5f80: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +002c5f90: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +002c5fa0: 6167 733a 0a20 202d 2050 4349 2d44 5353 ags:. - PCI-DSS │ │ │ +002c5fb0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ +002c5fc0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ +002c5fd0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +002c5fe0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +002c5ff0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +002c6000: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +002c6010: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +002c6020: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +002c6030: 202d 2073 6572 7669 6365 5f72 7379 6e63 - service_rsync │ │ │ +002c6040: 645f 6469 7361 626c 6564 0a0a 2d20 6e61 d_disabled..- na │ │ │ +002c6050: 6d65 3a20 456e 7375 7265 2072 7379 6e63 me: Ensure rsync │ │ │ +002c6060: 6420 7365 7276 6963 6520 6973 2064 6973 d service is dis │ │ │ +002c6070: 6162 6c65 6420 2d20 4469 7361 626c 6520 abled - Disable │ │ │ +002c6080: 7365 7276 6963 6520 7273 796e 6364 0a20 service rsyncd. │ │ │ +002c6090: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ +002c60a0: 653a 2045 6e73 7572 6520 7273 796e 6364 e: Ensure rsyncd │ │ │ +002c60b0: 2073 6572 7669 6365 2069 7320 6469 7361 service is disa │ │ │ +002c60c0: 626c 6564 202d 2043 6f6c 6c65 6374 2073 bled - Collect s │ │ │ +002c60d0: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ +002c60e0: 5072 6573 656e 7420 696e 0a20 2020 2020 Present in. │ │ │ +002c60f0: 2074 6865 2053 7973 7465 6d0a 2020 2020 the System. │ │ │ +002c6100: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +002c6110: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ +002c6120: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ +002c6130: 6669 6c65 7320 2d2d 7479 7065 2073 6572 files --type ser │ │ │ +002c6140: 7669 6365 0a20 2020 2072 6567 6973 7465 vice. registe │ │ │ +002c6150: 723a 2073 6572 7669 6365 5f65 7869 7374 r: service_exist │ │ │ +002c6160: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +002c6170: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +002c6180: 696c 6564 5f77 6865 6e3a 2073 6572 7669 iled_when: servi │ │ │ +002c6190: 6365 5f65 7869 7374 732e 7263 206e 6f74 ce_exists.rc not │ │ │ +002c61a0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063 in [0, 1]. c │ │ │ +002c61b0: 6865 636b 5f6d 6f64 653a 2066 616c 7365 heck_mode: false │ │ │ +002c61c0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 7375 .. - name: Ensu │ │ │ +002c61d0: 7265 2072 7379 6e63 6420 7365 7276 6963 re rsyncd servic │ │ │ +002c61e0: 6520 6973 2064 6973 6162 6c65 6420 2d20 e is disabled - │ │ │ +002c61f0: 456e 7375 7265 2072 7379 6e63 642e 7365 Ensure rsyncd.se │ │ │ +002c6200: 7276 6963 6520 6973 204d 6173 6b65 640a rvice is Masked. │ │ │ +002c6210: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +002c6220: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ +002c6230: 2020 206e 616d 653a 2072 7379 6e63 642e name: rsyncd. │ │ │ +002c6240: 7365 7276 6963 650a 2020 2020 2020 7374 service. st │ │ │ +002c6250: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ +002c6260: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +002c6270: 650a 2020 2020 2020 6d61 736b 6564 3a20 e. masked: │ │ │ +002c6280: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ +002c6290: 6572 7669 6365 5f65 7869 7374 732e 7374 ervice_exists.st │ │ │ +002c62a0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +002c62b0: 6172 6368 2822 7273 796e 6364 2e73 6572 arch("rsyncd.ser │ │ │ +002c62c0: 7669 6365 222c 206d 756c 7469 6c69 6e65 vice", multiline │ │ │ +002c62d0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65 =True).. - name │ │ │ +002c62e0: 3a20 556e 6974 2053 6f63 6b65 7420 4578 : Unit Socket Ex │ │ │ +002c62f0: 6973 7473 202d 2072 7379 6e63 642e 736f ists - rsyncd.so │ │ │ +002c6300: 636b 6574 0a20 2020 2061 6e73 6962 6c65 cket. ansible │ │ │ +002c6310: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ +002c6320: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ +002c6330: 6973 742d 756e 6974 2d66 696c 6573 2072 ist-unit-files r │ │ │ +002c6340: 7379 6e63 642e 736f 636b 6574 0a20 2020 syncd.socket. │ │ │ +002c6350: 2072 6567 6973 7465 723a 2073 6f63 6b65 register: socke │ │ │ +002c6360: 745f 6669 6c65 5f65 7869 7374 730a 2020 t_file_exists. │ │ │ +002c6370: 2020 6368 616e 6765 645f 7768 656e 3a20 changed_when: │ │ │ +002c6380: 6661 6c73 650a 2020 2020 6661 696c 6564 false. failed │ │ │ +002c6390: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669 _when: socket_fi │ │ │ +002c63a0: 6c65 5f65 7869 7374 732e 7263 206e 6f74 le_exists.rc not │ │ │ +002c63b0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063 in [0, 1]. c │ │ │ +002c63c0: 6865 636b 5f6d 6f64 653a 2066 616c 7365 heck_mode: false │ │ │ +002c63d0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 7375 .. - name: Ensu │ │ │ +002c63e0: 7265 2072 7379 6e63 6420 7365 7276 6963 re rsyncd servic │ │ │ +002c63f0: 6520 6973 2064 6973 6162 6c65 6420 2d20 e is disabled - │ │ │ +002c6400: 4469 7361 626c 6520 536f 636b 6574 2072 Disable Socket r │ │ │ +002c6410: 7379 6e63 640a 2020 2020 616e 7369 626c syncd. ansibl │ │ │ +002c6420: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +002c6430: 643a 0a20 2020 2020 206e 616d 653a 2072 d:. name: r │ │ │ +002c6440: 7379 6e63 642e 736f 636b 6574 0a20 2020 syncd.socket. │ │ │ +002c6450: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +002c6460: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +002c6470: 746f 7070 6564 0a20 2020 2020 206d 6173 topped. mas │ │ │ +002c6480: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ +002c6490: 656e 3a20 736f 636b 6574 5f66 696c 655f en: socket_file_ │ │ │ +002c64a0: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ +002c64b0: 6e65 7320 6973 2073 6561 7263 6828 2272 nes is search("r │ │ │ +002c64c0: 7379 6e63 642e 736f 636b 6574 222c 206d syncd.socket", m │ │ │ +002c64d0: 756c 7469 6c69 6e65 3d54 7275 6529 0a20 ultiline=True). │ │ │ +002c64e0: 2074 6167 733a 0a20 202d 2050 4349 2d44 tags:. - PCI-D │ │ │ +002c64f0: 5353 7634 2d32 2e32 0a20 202d 2050 4349 SSv4-2.2. - PCI │ │ │ +002c6500: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d -DSSv4-2.2.4. - │ │ │ +002c6510: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +002c6520: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +002c6530: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +002c6540: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +002c6550: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +002c6560: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +002c6570: 0a20 202d 2073 6572 7669 6365 5f72 7379 . - service_rsy │ │ │ +002c6580: 6e63 645f 6469 7361 626c 6564 0a20 202d ncd_disabled. - │ │ │ +002c6590: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ +002c65a0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ +002c65b0: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +002c65c0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +002c65d0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +002c65e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ +002c6690: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ +002c66a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002c66b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +002c6750: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002c6780: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002c6790: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ +002c67e0: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ +002c67f0: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ +002c6800: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ +002c6810: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ +002c6820: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ +002c6830: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ +002c6840: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ +002c6850: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ +002c6860: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ +002c6870: 0a20 2020 2020 202d 206e 616d 653a 2072  .      - name: r
│ │ │ +002c6880: 7379 6e63 642e 7365 7276 6963 650a 2020  syncd.service.  
│ │ │ +002c6890: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002c68a0: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ +002c68b0: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ +002c68c0: 6e61 6d65 3a20 7273 796e 6364 2e73 6f63  name: rsyncd.soc
│ │ │ +002c68d0: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +002c68e0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002c68f0: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ +002c69b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002c69c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Co │ │ │ +002c6730: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002c6760: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ +002c6770: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ +002c67b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002c67c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002c6a60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +002c6b00: 636c 7564 6520 6469 7361 626c 655f 7273  clude disable_rs
│ │ │ +002c6b10: 796e 6364 0a0a 636c 6173 7320 6469 7361  yncd..class disa
│ │ │ +002c6b20: 626c 655f 7273 796e 6364 207b 0a20 2073  ble_rsyncd {.  s
│ │ │ +002c6b30: 6572 7669 6365 207b 2772 7379 6e63 6427  ervice {'rsyncd'
│ │ │ +002c6b40: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +002c6b50: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +002c6b60: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +002c6b70: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +002c6b90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002c6ba0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002c6bb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002c6bc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002c6bd0: 6431 3134 3522 2074 6162 696e 6465 783d d1145" tabindex= │ │ │ +002c6be0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002c6bf0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002c6c00: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002c6c10: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002c6c20: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002c6c30: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +002c6c40: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +002c6c50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002c6c90: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +002c6ca0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +002c6cb0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +002c6cc0: 7273 796e 6364 225d 0a3c 2f63 6f64 653e rsyncd"]. │ │ │ 002c6cd0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 │ │ │ -002c8520: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002c8530: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +002c6a50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002c6a80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002c6a90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002c6ad0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +002c6ae0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002c8610: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002c8620: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002c8670: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002c8680: 6375 7073 0a0a 636c 6173 7320 7265 6d6f  cups..class remo
│ │ │ -002c8690: 7665 5f63 7570 7320 7b0a 2020 7061 636b  ve_cups {.  pack
│ │ │ -002c86a0: 6167 6520 7b20 2763 7570 7327 3a0a 2020  age { 'cups':.  
│ │ │ -002c86b0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002c86c0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -002c86d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002c8780: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002c8790: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002c87a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -002c85f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002c8600: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002c8640: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002c8650: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -002c8870: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002c8880: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -002c88e0: 616c 6c20 4355 5053 2050 6163 6b61 6765  all CUPS Package
│ │ │ -002c88f0: 3a20 456e 7375 7265 2063 7570 7320 6973  : Ensure cups is
│ │ │ -002c8900: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -002c8910: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -002c8920: 6167 653a 0a20 2020 206e 616d 653a 2063  age:.    name: c
│ │ │ -002c8930: 7570 730a 2020 2020 7374 6174 653a 2061  ups.    state: a
│ │ │ -002c8940: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -002c8950: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002c8960: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002c8970: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002c8980: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002c8990: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -002c89a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002c89b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002c89c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002c89d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002c89e0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002c89f0: 655f 6375 7073 5f72 656d 6f76 6564 0a20  e_cups_removed. 
│ │ │ -002c8a00: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -002c8a10: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.

low
Disru │ │ │ -002c8850: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002c8860: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002c88a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002c88b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +002c8610: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002c8620: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +002c8680: 616c 6c20 4355 5053 2050 6163 6b61 6765  all CUPS Package
│ │ │ +002c8690: 3a20 456e 7375 7265 2063 7570 7320 6973  : Ensure cups is
│ │ │ +002c86a0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +002c86b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +002c86c0: 6167 653a 0a20 2020 206e 616d 653a 2063  age:.    name: c
│ │ │ +002c86d0: 7570 730a 2020 2020 7374 6174 653a 2061  ups.    state: a
│ │ │ +002c86e0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +002c86f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002c8700: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +002c8710: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +002c8720: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002c8730: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +002c8740: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002c8750: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002c8760: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002c8770: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002c8780: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +002c8790: 655f 6375 7073 5f72 656d 6f76 6564 0a20  e_cups_removed. 
│ │ │ +002c87a0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +002c87b0: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
Remediation │ │ │ +002c8870: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002c8880: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +002c8940: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c8950: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ +002c85f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002c8600: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002c8640: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002c8650: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +002c8910: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002c8930: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002c8960: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +002c8980: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002c89b0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +002c89c0: 6d6f 7665 5f63 7570 730a 0a63 6c61 7373  move_cups..class
│ │ │ +002c89d0: 2072 656d 6f76 655f 6375 7073 207b 0a20   remove_cups {. 
│ │ │ +002c89e0: 2070 6163 6b61 6765 207b 2027 6375 7073   package { 'cups
│ │ │ +002c89f0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002c8a00: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +002c8a10: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002c9cf0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -002c9d00: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ -002c9d60: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -002c9d70: 6b65 6420 3d20 5b22 6375 7073 225d 0a3c  ked = ["cups"].<
│ │ │ -002c9d80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002c9e30: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ -002c9e40: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ -002c9e50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002c9ee0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002c9f00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:mediumReboot │ │ │ -002c9f30: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true │ │ │ -002c9f50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002c9f80: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ -002c9f90: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ -002c9fa0: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ -002c9fb0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ -002c9fc0: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ -002c9fd0: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ -002c9fe0: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ -002c9ff0: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ -002ca000: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ -002ca010: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ -002ca020: 6e61 6d65 3a20 6375 7073 2e73 6572 7669  name: cups.servi
│ │ │ -002ca030: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ -002ca040: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002ca050: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ -002ca060: 2020 202d 206e 616d 653a 2063 7570 732e     - name: cups.
│ │ │ -002ca070: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ -002ca080: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002ca090: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -002ca0a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ -002ca160: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002ca170: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002ca1f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002ca210: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002ca260: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -002ca2b0: 5f63 7570 730a 0a63 6c61 7373 2064 6973  _cups..class dis
│ │ │ -002ca2c0: 6162 6c65 5f63 7570 7320 7b0a 2020 7365  able_cups {.  se
│ │ │ -002ca2d0: 7276 6963 6520 7b27 6375 7073 273a 0a20  rvice {'cups':. 
│ │ │ -002ca2e0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -002ca2f0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -002ca300: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -002ca310: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -002ca320: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002ca3d0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002ca3e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ -002ca220: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002ca230: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002ca270: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -002ca280: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -002ca470: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002ca480: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002ca4a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002ca4c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002ca4d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002ca510: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002ca520: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -002ca530: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -002ca540: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -002ca550: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -002ca560: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002ca570: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002ca580: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002ca590: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -002ca5a0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -002ca5b0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002ca5c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002ca5d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002ca5e0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -002ca5f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002ca600: 202d 2073 6572 7669 6365 5f63 7570 735f   - service_cups_
│ │ │ -002ca610: 6469 7361 626c 6564 0a20 202d 2075 6e6b  disabled.  - unk
│ │ │ -002ca620: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d  nown_severity..-
│ │ │ -002ca630: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ -002ca640: 6865 2043 5550 5320 5365 7276 6963 6520  he CUPS Service 
│ │ │ -002ca650: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -002ca660: 6520 6375 7073 0a20 2062 6c6f 636b 3a0a  e cups.  block:.
│ │ │ -002ca670: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002ca680: 6c65 2074 6865 2043 5550 5320 5365 7276  le the CUPS Serv
│ │ │ -002ca690: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -002ca6a0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002ca6b0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002ca6c0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002ca6d0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002ca6e0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002ca6f0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -002ca700: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -002ca710: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002ca720: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002ca730: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002ca740: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002ca750: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002ca760: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002ca770: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002ca780: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002ca790: 616d 653a 2044 6973 6162 6c65 2074 6865  ame: Disable the
│ │ │ -002ca7a0: 2043 5550 5320 5365 7276 6963 6520 2d20   CUPS Service - 
│ │ │ -002ca7b0: 456e 7375 7265 2063 7570 732e 7365 7276  Ensure cups.serv
│ │ │ -002ca7c0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -002ca7d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002ca7e0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002ca7f0: 206e 616d 653a 2063 7570 732e 7365 7276   name: cups.serv
│ │ │ -002ca800: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -002ca810: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -002ca820: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002ca830: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -002ca840: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -002ca850: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -002ca860: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002ca870: 2822 6375 7073 2e73 6572 7669 6365 222c  ("cups.service",
│ │ │ -002ca880: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002ca890: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -002ca8a0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -002ca8b0: 2063 7570 732e 736f 636b 6574 0a20 2020   cups.socket.   
│ │ │ -002ca8c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002ca8d0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002ca8e0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002ca8f0: 2d66 696c 6573 2063 7570 732e 736f 636b  -files cups.sock
│ │ │ -002ca900: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -002ca910: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002ca920: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -002ca930: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -002ca940: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -002ca950: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -002ca960: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -002ca970: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -002ca980: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -002ca990: 3a20 4469 7361 626c 6520 7468 6520 4355  : Disable the CU
│ │ │ -002ca9a0: 5053 2053 6572 7669 6365 202d 2044 6973  PS Service - Dis
│ │ │ -002ca9b0: 6162 6c65 2053 6f63 6b65 7420 6375 7073  able Socket cups
│ │ │ -002ca9c0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002ca9d0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002ca9e0: 2020 2020 6e61 6d65 3a20 6375 7073 2e73      name: cups.s
│ │ │ -002ca9f0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -002caa00: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002caa10: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002caa20: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002caa30: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -002caa40: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -002caa50: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -002caa60: 7365 6172 6368 2822 6375 7073 2e73 6f63  search("cups.soc
│ │ │ -002caa70: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -002caa80: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -002caa90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002caaa0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002caab0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002caac0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002caad0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -002caae0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002caaf0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002cab00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002cab10: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002cab20: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002cab30: 655f 6375 7073 5f64 6973 6162 6c65 640a  e_cups_disabled.
│ │ │ -002cab40: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -002cab50: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ -002cab60: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ -002cab70: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -002cab80: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -002cab90: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002c9cf0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +002c9d00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +002c9d80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002c9d90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002c9db0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002c9dc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002c9de0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002c9e00: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002c9e30: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +002c9e40: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +002c9e50: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +002c9e60: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +002c9e70: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +002c9e80: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +002c9e90: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +002c9ea0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +002c9eb0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002c9ec0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +002c9ed0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002c9ee0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002c9ef0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002c9f00: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +002c9f10: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002c9f20: 7276 6963 655f 6375 7073 5f64 6973 6162  rvice_cups_disab
│ │ │ +002c9f30: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ +002c9f40: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ +002c9f50: 3a20 4469 7361 626c 6520 7468 6520 4355  : Disable the CU
│ │ │ +002c9f60: 5053 2053 6572 7669 6365 202d 2044 6973  PS Service - Dis
│ │ │ +002c9f70: 6162 6c65 2073 6572 7669 6365 2063 7570  able service cup
│ │ │ +002c9f80: 730a 2020 626c 6f63 6b3a 0a0a 2020 2d20  s.  block:..  - 
│ │ │ +002c9f90: 6e61 6d65 3a20 4469 7361 626c 6520 7468  name: Disable th
│ │ │ +002c9fa0: 6520 4355 5053 2053 6572 7669 6365 202d  e CUPS Service -
│ │ │ +002c9fb0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +002c9fc0: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +002c9fd0: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +002c9fe0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002c9ff0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002ca000: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002ca010: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +002ca020: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +002ca030: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +002ca040: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002ca050: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002ca060: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002ca070: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +002ca080: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002ca090: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002ca0a0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002ca0b0: 4469 7361 626c 6520 7468 6520 4355 5053  Disable the CUPS
│ │ │ +002ca0c0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +002ca0d0: 6520 6375 7073 2e73 6572 7669 6365 2069  e cups.service i
│ │ │ +002ca0e0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +002ca0f0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002ca100: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002ca110: 3a20 6375 7073 2e73 6572 7669 6365 0a20  : cups.service. 
│ │ │ +002ca120: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +002ca130: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +002ca140: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +002ca150: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +002ca160: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +002ca170: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002ca180: 7320 6973 2073 6561 7263 6828 2263 7570  s is search("cup
│ │ │ +002ca190: 732e 7365 7276 6963 6522 2c20 6d75 6c74  s.service", mult
│ │ │ +002ca1a0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +002ca1b0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +002ca1c0: 6574 2045 7869 7374 7320 2d20 6375 7073  et Exists - cups
│ │ │ +002ca1d0: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ +002ca1e0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002ca1f0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +002ca200: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +002ca210: 7320 6375 7073 2e73 6f63 6b65 740a 2020  s cups.socket.  
│ │ │ +002ca220: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +002ca230: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +002ca240: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +002ca250: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +002ca260: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +002ca270: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +002ca280: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +002ca290: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002ca2a0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002ca2b0: 6162 6c65 2074 6865 2043 5550 5320 5365  able the CUPS Se
│ │ │ +002ca2c0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +002ca2d0: 536f 636b 6574 2063 7570 730a 2020 2020  Socket cups.    
│ │ │ +002ca2e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002ca2f0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002ca300: 616d 653a 2063 7570 732e 736f 636b 6574  ame: cups.socket
│ │ │ +002ca310: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002ca320: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +002ca330: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +002ca340: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +002ca350: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +002ca360: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +002ca370: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +002ca380: 6828 2263 7570 732e 736f 636b 6574 222c  h("cups.socket",
│ │ │ +002ca390: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002ca3a0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +002ca3b0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +002ca3c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002ca3d0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +002ca3e0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +002ca3f0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002ca400: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002ca410: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002ca420: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002ca430: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002ca440: 0a20 202d 2073 6572 7669 6365 5f63 7570  .  - service_cup
│ │ │ +002ca450: 735f 6469 7361 626c 6564 0a20 202d 2073  s_disabled.  - s
│ │ │ +002ca460: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +002ca470: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e  lock.  - unknown
│ │ │ +002ca480: 5f73 6576 6572 6974 790a 2020 7768 656e  _severity.  when
│ │ │ +002ca490: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002ca4a0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002ca4b0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +002ca570: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +002ca580: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
< │ │ │ +002ca680: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002ca6b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +002ca6d0: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +002ca6e0: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +002ca6f0: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +002ca700: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +002ca710: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +002ca720: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +002ca730: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +002ca740: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +002ca750: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +002ca760: 3a20 6375 7073 2e73 6572 7669 6365 0a20  : cups.service. 
│ │ │ +002ca770: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +002ca780: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +002ca790: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +002ca7a0: 206e 616d 653a 2063 7570 732e 736f 636b   name: cups.sock
│ │ │ +002ca7b0: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ +002ca7c0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002ca7d0: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ +002ca7f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002ca890: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002ca8a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002ca8b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +002ca640: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +002ca650: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +002ca690: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002ca6a0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +002ca940: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002ca950: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002ca9a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +002ca9e0: 6c75 6465 2064 6973 6162 6c65 5f63 7570  lude disable_cup
│ │ │ +002ca9f0: 730a 0a63 6c61 7373 2064 6973 6162 6c65  s..class disable
│ │ │ +002caa00: 5f63 7570 7320 7b0a 2020 7365 7276 6963  _cups {.  servic
│ │ │ +002caa10: 6520 7b27 6375 7073 273a 0a20 2020 2065  e {'cups':.    e
│ │ │ +002caa20: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +002caa30: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +002caa40: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +002caa50: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ +002cab10: 6e20 4f53 4275 696c 6420 426c 7565 7072  n OSBuild Bluepr
│ │ │ +002cab20: 696e 7420 736e 6970 7065 7420 e287 b23c  int snippet ...<
│ │ │ +002cab30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
│ │ │ -002cc2e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ +002ca930: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002ca960: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002ca970: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002ca9b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +002ca9c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -002cc2b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002cc2d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002cc300: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002cc320: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002cc350: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -002cc360: 656d 6f76 655f 7371 7569 640a 0a63 6c61  emove_squid..cla
│ │ │ -002cc370: 7373 2072 656d 6f76 655f 7371 7569 6420  ss remove_squid 
│ │ │ -002cc380: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ -002cc390: 7175 6964 273a 0a20 2020 2065 6e73 7572  quid':.    ensur
│ │ │ -002cc3a0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -002cc3b0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002cc3c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002cc470: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002cc480: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002cc490: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002cc530: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002cc550: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002cc580: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002cc510: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002cc520: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002cc540: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002cc560: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002cc570: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002cc5b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002cc5c0: 3a20 2755 6e69 6e73 7461 6c6c 2073 7175 : 'Uninstall squ │ │ │ -002cc5d0: 6964 2050 6163 6b61 6765 3a20 456e 7375 id Package: Ensu │ │ │ -002cc5e0: 7265 2073 7175 6964 2069 7320 7265 6d6f re squid is remo │ │ │ -002cc5f0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -002cc600: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -002cc610: 2020 2020 6e61 6d65 3a20 7371 7569 640a name: squid. │ │ │ -002cc620: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -002cc630: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ -002cc640: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -002cc650: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -002cc660: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -002cc670: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -002cc680: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -002cc690: 636b 6167 655f 7371 7569 645f 7265 6d6f ckage_squid_remo │ │ │ -002cc6a0: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f ved. - unknown_ │ │ │ -002cc6b0: 7365 7665 7269 7479 0a3c 2f63 6f64 653e severity. │ │ │ +002cc210: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +002cc220: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002cc2a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002cc2b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002cc2c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002cc300: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002cc310: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002cc330: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002cc340: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +002cc360: 556e 696e 7374 616c 6c20 7371 7569 6420  Uninstall squid 
│ │ │ +002cc370: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +002cc380: 7371 7569 6420 6973 2072 656d 6f76 6564  squid is removed
│ │ │ +002cc390: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +002cc3a0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +002cc3b0: 206e 616d 653a 2073 7175 6964 0a20 2020   name: squid.   
│ │ │ +002cc3c0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002cc3d0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +002cc3e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002cc3f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002cc400: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002cc410: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002cc420: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002cc430: 6765 5f73 7175 6964 5f72 656d 6f76 6564  ge_squid_removed
│ │ │ +002cc440: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002cc450: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediati │ │ │ +002cc510: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002cc520: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002cc5a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002cc5b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002cc5c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002cc600: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002cc610: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002cc630: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002cc640: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002cc660: 7265 6d6f 7665 5f73 7175 6964 0a0a 636c  remove_squid..cl
│ │ │ +002cc670: 6173 7320 7265 6d6f 7665 5f73 7175 6964  ass remove_squid
│ │ │ +002cc680: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +002cc690: 7371 7569 6427 3a0a 2020 2020 656e 7375  squid':.    ensu
│ │ │ +002cc6a0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +002cc6b0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002cc6c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -002cd4c0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002cd4d0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002cd4e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002cd4f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -002cd530: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -002cd540: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -002cd550: 5b22 7371 7569 6422 5d0a 3c2f 636f 6465  ["squid"].
Remed │ │ │ -002cd610: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -002cd620: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ -002cd6c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -002cd770: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -002cd780: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -002cd790: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -002cd7a0: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -002cd7b0: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -002cd7c0: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -002cd7d0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -002cd7e0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -002cd7f0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -002cd800: 2073 7175 6964 2e73 6572 7669 6365 0a20   squid.service. 
│ │ │ -002cd810: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -002cd820: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -002cd830: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -002cd840: 206e 616d 653a 2073 7175 6964 2e73 6f63   name: squid.soc
│ │ │ -002cd850: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ -002cd860: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002cd870: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ -002cd930: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002cd940: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002cd6b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002cd6e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -002cd6f0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -002cd730: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002cd740: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002cd9e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -002cda80: 636c 7564 6520 6469 7361 626c 655f 7371  clude disable_sq
│ │ │ -002cda90: 7569 640a 0a63 6c61 7373 2064 6973 6162  uid..class disab
│ │ │ -002cdaa0: 6c65 5f73 7175 6964 207b 0a20 2073 6572  le_squid {.  ser
│ │ │ -002cdab0: 7669 6365 207b 2773 7175 6964 273a 0a20  vice {'squid':. 
│ │ │ -002cdac0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -002cdad0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -002cdae0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -002cdaf0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -002cdb00: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002cdbb0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002cdbc0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002cd9d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002cda00: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002cda10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002cda50: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -002cda60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -002cdc50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002cdc60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002cdc80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002cdca0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002cdcb0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002cdcf0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002cdd00: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -002cdd10: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -002cdd20: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -002cdd30: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -002cdd40: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002cdd50: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002cdd60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002cdd70: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002cdd80: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -002cdd90: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -002cdda0: 6365 5f73 7175 6964 5f64 6973 6162 6c65  ce_squid_disable
│ │ │ -002cddb0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -002cddc0: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ -002cddd0: 4469 7361 626c 6520 5371 7569 6420 2d20  Disable Squid - 
│ │ │ -002cdde0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -002cddf0: 7371 7569 640a 2020 626c 6f63 6b3a 0a0a  squid.  block:..
│ │ │ -002cde00: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002cde10: 6520 5371 7569 6420 2d20 436f 6c6c 6563  e Squid - Collec
│ │ │ -002cde20: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -002cde30: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -002cde40: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -002cde50: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002cde60: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002cde70: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002cde80: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -002cde90: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -002cdea0: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -002cdeb0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -002cdec0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -002cded0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -002cdee0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -002cdef0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -002cdf00: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -002cdf10: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002cdf20: 2053 7175 6964 202d 2045 6e73 7572 6520   Squid - Ensure 
│ │ │ -002cdf30: 7371 7569 642e 7365 7276 6963 6520 6973  squid.service is
│ │ │ -002cdf40: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -002cdf50: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002cdf60: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002cdf70: 2073 7175 6964 2e73 6572 7669 6365 0a20   squid.service. 
│ │ │ -002cdf80: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -002cdf90: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -002cdfa0: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -002cdfb0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -002cdfc0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002cdfd0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002cdfe0: 7320 6973 2073 6561 7263 6828 2273 7175  s is search("squ
│ │ │ -002cdff0: 6964 2e73 6572 7669 6365 222c 206d 756c  id.service", mul
│ │ │ -002ce000: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -002ce010: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -002ce020: 6b65 7420 4578 6973 7473 202d 2073 7175  ket Exists - squ
│ │ │ -002ce030: 6964 2e73 6f63 6b65 740a 2020 2020 616e  id.socket.    an
│ │ │ -002ce040: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -002ce050: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -002ce060: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -002ce070: 6c65 7320 7371 7569 642e 736f 636b 6574  les squid.socket
│ │ │ -002ce080: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002ce090: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -002ce0a0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002ce0b0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002ce0c0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -002ce0d0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -002ce0e0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002ce0f0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002ce100: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002ce110: 4469 7361 626c 6520 5371 7569 6420 2d20  Disable Squid - 
│ │ │ -002ce120: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ -002ce130: 7175 6964 0a20 2020 2061 6e73 6962 6c65  quid.    ansible
│ │ │ -002ce140: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -002ce150: 3a0a 2020 2020 2020 6e61 6d65 3a20 7371  :.      name: sq
│ │ │ -002ce160: 7569 642e 736f 636b 6574 0a20 2020 2020  uid.socket.     
│ │ │ -002ce170: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002ce180: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002ce190: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -002ce1a0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002ce1b0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002ce1c0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002ce1d0: 7320 6973 2073 6561 7263 6828 2273 7175  s is search("squ
│ │ │ -002ce1e0: 6964 2e73 6f63 6b65 7422 2c20 6d75 6c74  id.socket", mult
│ │ │ -002ce1f0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -002ce200: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -002ce210: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002ce220: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002ce230: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002ce240: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002ce250: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -002ce260: 7371 7569 645f 6469 7361 626c 6564 0a20  squid_disabled. 
│ │ │ -002ce270: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -002ce280: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ -002ce290: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ -002ce2a0: 7768 656e 3a20 2820 2273 7175 6964 2220  when: ( "squid" 
│ │ │ -002ce2b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -002ce2c0: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ -002ce2d0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -002ce2e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -002ce2f0: 6167 6573 0a20 2020 2029 0a3c 2f63 6f64  ages.    ).
< │ │ │ +002cd5b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002cd5c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002cd610: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002cd620: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002cd630: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002cd640: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002cd650: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002cd660: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002cd670: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002cd680: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002cd690: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +002cd6a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002cd6b0: 7365 7276 6963 655f 7371 7569 645f 6469  service_squid_di
│ │ │ +002cd6c0: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f  sabled.  - unkno
│ │ │ +002cd6d0: 776e 5f73 6576 6572 6974 790a 0a2d 206e  wn_severity..- n
│ │ │ +002cd6e0: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ +002cd6f0: 6964 202d 2044 6973 6162 6c65 2073 6572  id - Disable ser
│ │ │ +002cd700: 7669 6365 2073 7175 6964 0a20 2062 6c6f  vice squid.  blo
│ │ │ +002cd710: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +002cd720: 6973 6162 6c65 2053 7175 6964 202d 2043  isable Squid - C
│ │ │ +002cd730: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +002cd740: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +002cd750: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +002cd760: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002cd770: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +002cd780: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +002cd790: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +002cd7a0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +002cd7b0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +002cd7c0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +002cd7d0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +002cd7e0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +002cd7f0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +002cd800: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +002cd810: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +002cd820: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +002cd830: 7361 626c 6520 5371 7569 6420 2d20 456e  sable Squid - En
│ │ │ +002cd840: 7375 7265 2073 7175 6964 2e73 6572 7669  sure squid.servi
│ │ │ +002cd850: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +002cd860: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002cd870: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +002cd880: 6e61 6d65 3a20 7371 7569 642e 7365 7276  name: squid.serv
│ │ │ +002cd890: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +002cd8a0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +002cd8b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002cd8c0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +002cd8d0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +002cd8e0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +002cd8f0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002cd900: 2822 7371 7569 642e 7365 7276 6963 6522  ("squid.service"
│ │ │ +002cd910: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +002cd920: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +002cd930: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +002cd940: 2d20 7371 7569 642e 736f 636b 6574 0a20  - squid.socket. 
│ │ │ +002cd950: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002cd960: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002cd970: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002cd980: 6974 2d66 696c 6573 2073 7175 6964 2e73  it-files squid.s
│ │ │ +002cd990: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002cd9a0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002cd9b0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002cd9c0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002cd9d0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002cd9e0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002cd9f0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002cda00: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002cda10: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002cda20: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ +002cda30: 6964 202d 2044 6973 6162 6c65 2053 6f63  id - Disable Soc
│ │ │ +002cda40: 6b65 7420 7371 7569 640a 2020 2020 616e  ket squid.    an
│ │ │ +002cda50: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +002cda60: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +002cda70: 653a 2073 7175 6964 2e73 6f63 6b65 740a  e: squid.socket.
│ │ │ +002cda80: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002cda90: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +002cdaa0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002cdab0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002cdac0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +002cdad0: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +002cdae0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002cdaf0: 2822 7371 7569 642e 736f 636b 6574 222c  ("squid.socket",
│ │ │ +002cdb00: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002cdb10: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +002cdb20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002cdb30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002cdb40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002cdb50: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +002cdb60: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002cdb70: 7669 6365 5f73 7175 6964 5f64 6973 6162  vice_squid_disab
│ │ │ +002cdb80: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002cdb90: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002cdba0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +002cdbb0: 7479 0a20 2077 6865 6e3a 2028 2022 7371  ty.  when: ( "sq
│ │ │ +002cdbc0: 7569 6422 2069 6e20 616e 7369 626c 655f  uid" in ansible_
│ │ │ +002cdbd0: 6661 6374 732e 7061 636b 6167 6573 2061  facts.packages a
│ │ │ +002cdbe0: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ +002cdbf0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002cdc00: 2e70 6163 6b61 6765 730a 2020 2020 290a  .packages.    ).
│ │ │ +002cdc10: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ +002cdcd0: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +002cdce0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +002cdda0: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>medium< │ │ │ +002cddf0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002cde00: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +002cd590: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002cd5a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002cd5e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002cd5f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +002cdd70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002cdd90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboo │ │ │ +002cddc0: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ +002cddd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
apiVersio
│ │ │ +002cde20: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ +002cde30: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ +002cde40: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ +002cde50: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ +002cde60: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ +002cde70: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ +002cde80: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ +002cde90: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ +002cdea0: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ +002cdeb0: 206e 616d 653a 2073 7175 6964 2e73 6572   name: squid.ser
│ │ │ +002cdec0: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ +002cded0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002cdee0: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ +002cdef0: 2020 2020 202d 206e 616d 653a 2073 7175       - name: squ
│ │ │ +002cdf00: 6964 2e73 6f63 6b65 740a 2020 2020 2020  id.socket.      
│ │ │ +002cdf10: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002cdf20: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +002cdf30: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ +002cdff0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002ce000: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +002ce090: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002ce0b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002ce0c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002ce0d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002ce0e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002ce100: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +002ce140: 626c 655f 7371 7569 640a 0a63 6c61 7373  ble_squid..class
│ │ │ +002ce150: 2064 6973 6162 6c65 5f73 7175 6964 207b   disable_squid {
│ │ │ +002ce160: 0a20 2073 6572 7669 6365 207b 2773 7175  .  service {'squ
│ │ │ +002ce170: 6964 273a 0a20 2020 2065 6e61 626c 6520  id':.    enable 
│ │ │ +002ce180: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +002ce190: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +002ce1a0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +002ce1b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002ce260: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +002ce270: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +002ce280: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +002ce2d0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +002ce2e0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +002ce2f0: 205b 2273 7175 6964 225d 0a3c 2f63 6f64   ["squid"].
Remediation Pup │ │ │ -002cfaa0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002cfab0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002cfb80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002cfb90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -002cfbf0: 5f73 616d 6261 0a0a 636c 6173 7320 7265  _samba..class re
│ │ │ -002cfc00: 6d6f 7665 5f73 616d 6261 207b 0a20 2070  move_samba {.  p
│ │ │ -002cfc10: 6163 6b61 6765 207b 2027 7361 6d62 6127  ackage { 'samba'
│ │ │ -002cfc20: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -002cfc30: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -002cfc40: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002cfc50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -002cfd00: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002cfd10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -002cfdd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002cfde0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ -002cfb60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002cfb70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002cfbb0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002cfbc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -002cfda0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -002cfdc0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -002cfdf0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -002cfe10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002cfe40: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -002cfe50: 696e 7374 616c 6c20 5361 6d62 6120 5061  install Samba Pa
│ │ │ -002cfe60: 636b 6167 653a 2045 6e73 7572 6520 7361  ckage: Ensure sa
│ │ │ -002cfe70: 6d62 6120 6973 2072 656d 6f76 6564 270a  mba is removed'.
│ │ │ -002cfe80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002cfe90: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -002cfea0: 616d 653a 2073 616d 6261 0a20 2020 2073  ame: samba.    s
│ │ │ -002cfeb0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -002cfec0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -002cfed0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -002cfee0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -002cfef0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002cff00: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002cff10: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002cff20: 5f73 616d 6261 5f72 656d 6f76 6564 0a20  _samba_removed. 
│ │ │ -002cff30: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -002cff40: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
Remediation Ans │ │ │ +002cfaa0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +002cfab0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +002cfb30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002cfb50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002cfba0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002cfbd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +002cfbf0: 7461 6c6c 2053 616d 6261 2050 6163 6b61  tall Samba Packa
│ │ │ +002cfc00: 6765 3a20 456e 7375 7265 2073 616d 6261  ge: Ensure samba
│ │ │ +002cfc10: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +002cfc20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +002cfc30: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +002cfc40: 3a20 7361 6d62 610a 2020 2020 7374 6174  : samba.    stat
│ │ │ +002cfc50: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +002cfc60: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +002cfc70: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002cfc80: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002cfc90: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002cfca0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002cfcb0: 640a 2020 2d20 7061 636b 6167 655f 7361  d.  - package_sa
│ │ │ +002cfcc0: 6d62 615f 7265 6d6f 7665 640a 2020 2d20  mba_removed.  - 
│ │ │ +002cfcd0: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +002cfce0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002cfda0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002cfdb0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +002cfb60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002cfb70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002cfbb0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002cfbc0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +002cfe30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002cfe50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002cfea0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002cfed0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +002cfef0: 655f 7361 6d62 610a 0a63 6c61 7373 2072  e_samba..class r
│ │ │ +002cff00: 656d 6f76 655f 7361 6d62 6120 7b0a 2020  emove_samba {.  
│ │ │ +002cff10: 7061 636b 6167 6520 7b20 2773 616d 6261  package { 'samba
│ │ │ +002cff20: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002cff30: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +002cff40: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -002d0cd0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002d0ce0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002d0cf0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002d0d00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -002d0d40: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -002d0d50: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -002d0d60: 5b22 736d 6264 225d 0a3c 2f63 6f64 653e  ["smbd"].
│ │ │ -002d0d70: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002d0e20: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ -002d0e30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002d0e40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +002cfe60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002cfe70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002cfeb0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002cfec0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002d0ed0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002d0ee0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002d0f10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002d0f20: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -002d0f70: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -002d0f80: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -002d0f90: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -002d0fa0: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -002d0fb0: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -002d0fc0: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -002d0fd0: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -002d0fe0: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -002d0ff0: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -002d1000: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -002d1010: 736d 6264 2e73 6572 7669 6365 0a20 2020  smbd.service.   
│ │ │ -002d1020: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002d1030: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -002d1040: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -002d1050: 616d 653a 2073 6d62 642e 736f 636b 6574  ame: smbd.socket
│ │ │ -002d1060: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -002d1070: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -002d1080: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64  mask: true.
Reme │ │ │ -002d1140: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002d1150: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -002d0ec0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002d0ef0: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -002d0f00: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -002d0f40: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002d0f50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -002d11e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002d1210: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002d1230: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002d1240: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002d1260: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -002d1280: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -002d1290: 6465 2064 6973 6162 6c65 5f73 6d62 640a  de disable_smbd.
│ │ │ -002d12a0: 0a63 6c61 7373 2064 6973 6162 6c65 5f73  .class disable_s
│ │ │ -002d12b0: 6d62 6420 7b0a 2020 7365 7276 6963 6520  mbd {.  service 
│ │ │ -002d12c0: 7b27 736d 6264 273a 0a20 2020 2065 6e61  {'smbd':.    ena
│ │ │ -002d12d0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -002d12e0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002d12f0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -002d1300: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002d1310: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -002d13c0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002d13d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002d1460: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002d1480: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002d1490: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002d14a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002d14b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002d14d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002d1500: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -002d1510: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -002d1520: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -002d1530: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002d1540: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002d1550: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002d1560: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002d1570: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002d1580: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002d1590: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -002d15a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002d15b0: 640a 2020 2d20 7365 7276 6963 655f 736d  d.  - service_sm
│ │ │ -002d15c0: 625f 6469 7361 626c 6564 0a0a 2d20 6e61  b_disabled..- na
│ │ │ -002d15d0: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ -002d15e0: 6120 2d20 4469 7361 626c 6520 7365 7276  a - Disable serv
│ │ │ -002d15f0: 6963 6520 736d 6264 0a20 2062 6c6f 636b  ice smbd.  block
│ │ │ -002d1600: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -002d1610: 6162 6c65 2053 616d 6261 202d 2043 6f6c  able Samba - Col
│ │ │ -002d1620: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -002d1630: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -002d1640: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -002d1650: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002d1660: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002d1670: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002d1680: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -002d1690: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -002d16a0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -002d16b0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002d16c0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002d16d0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -002d16e0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -002d16f0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002d1700: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002d1710: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002d1720: 626c 6520 5361 6d62 6120 2d20 456e 7375  ble Samba - Ensu
│ │ │ -002d1730: 7265 2073 6d62 642e 7365 7276 6963 6520  re smbd.service 
│ │ │ -002d1740: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -002d1750: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002d1760: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002d1770: 653a 2073 6d62 642e 7365 7276 6963 650a  e: smbd.service.
│ │ │ -002d1780: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002d1790: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -002d17a0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002d17b0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -002d17c0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -002d17d0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -002d17e0: 6573 2069 7320 7365 6172 6368 2822 736d  es is search("sm
│ │ │ -002d17f0: 6264 2e73 6572 7669 6365 222c 206d 756c  bd.service", mul
│ │ │ -002d1800: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -002d1810: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -002d1820: 6b65 7420 4578 6973 7473 202d 2073 6d62  ket Exists - smb
│ │ │ -002d1830: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -002d1840: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002d1850: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002d1860: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002d1870: 6573 2073 6d62 642e 736f 636b 6574 0a20  es smbd.socket. 
│ │ │ -002d1880: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -002d1890: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -002d18a0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -002d18b0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -002d18c0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -002d18d0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -002d18e0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -002d18f0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002d1900: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -002d1910: 7361 626c 6520 5361 6d62 6120 2d20 4469  sable Samba - Di
│ │ │ -002d1920: 7361 626c 6520 536f 636b 6574 2073 6d62  sable Socket smb
│ │ │ -002d1930: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -002d1940: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -002d1950: 2020 2020 206e 616d 653a 2073 6d62 642e       name: smbd.
│ │ │ -002d1960: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002d1970: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002d1980: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002d1990: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002d19a0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -002d19b0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002d19c0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -002d19d0: 2073 6561 7263 6828 2273 6d62 642e 736f   search("smbd.so
│ │ │ -002d19e0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -002d19f0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -002d1a00: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -002d1a10: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002d1a20: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002d1a30: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -002d1a40: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -002d1a50: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002d1a60: 2020 2d20 7365 7276 6963 655f 736d 625f    - service_smb_
│ │ │ -002d1a70: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -002d1a80: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -002d1a90: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -002d1aa0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002d1ab0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002d1ac0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

< │ │ │ +002d0dc0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002d0dd0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002d0e20: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002d0e30: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002d0e40: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002d0e50: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002d0e60: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002d0e70: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002d0e80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002d0e90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002d0ea0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +002d0eb0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002d0ec0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002d0ed0: 2073 6572 7669 6365 5f73 6d62 5f64 6973   service_smb_dis
│ │ │ +002d0ee0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +002d0ef0: 6973 6162 6c65 2053 616d 6261 202d 2044  isable Samba - D
│ │ │ +002d0f00: 6973 6162 6c65 2073 6572 7669 6365 2073  isable service s
│ │ │ +002d0f10: 6d62 640a 2020 626c 6f63 6b3a 0a0a 2020  mbd.  block:..  
│ │ │ +002d0f20: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002d0f30: 5361 6d62 6120 2d20 436f 6c6c 6563 7420  Samba - Collect 
│ │ │ +002d0f40: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +002d0f50: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +002d0f60: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +002d0f70: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +002d0f80: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +002d0f90: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +002d0fa0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +002d0fb0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +002d0fc0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +002d0fd0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +002d0fe0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +002d0ff0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +002d1000: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +002d1010: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +002d1020: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +002d1030: 206e 616d 653a 2044 6973 6162 6c65 2053   name: Disable S
│ │ │ +002d1040: 616d 6261 202d 2045 6e73 7572 6520 736d  amba - Ensure sm
│ │ │ +002d1050: 6264 2e73 6572 7669 6365 2069 7320 4d61  bd.service is Ma
│ │ │ +002d1060: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +002d1070: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002d1080: 3a0a 2020 2020 2020 6e61 6d65 3a20 736d  :.      name: sm
│ │ │ +002d1090: 6264 2e73 6572 7669 6365 0a20 2020 2020  bd.service.     
│ │ │ +002d10a0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002d10b0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002d10c0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002d10d0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002d10e0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002d10f0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002d1100: 2073 6561 7263 6828 2273 6d62 642e 7365   search("smbd.se
│ │ │ +002d1110: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +002d1120: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +002d1130: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +002d1140: 7869 7374 7320 2d20 736d 6264 2e73 6f63  xists - smbd.soc
│ │ │ +002d1150: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002d1160: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002d1170: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002d1180: 7374 2d75 6e69 742d 6669 6c65 7320 736d  st-unit-files sm
│ │ │ +002d1190: 6264 2e73 6f63 6b65 740a 2020 2020 7265  bd.socket.    re
│ │ │ +002d11a0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +002d11b0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +002d11c0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002d11d0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002d11e0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002d11f0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +002d1200: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +002d1210: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +002d1220: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +002d1230: 2053 616d 6261 202d 2044 6973 6162 6c65   Samba - Disable
│ │ │ +002d1240: 2053 6f63 6b65 7420 736d 6264 0a20 2020   Socket smbd.   
│ │ │ +002d1250: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002d1260: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +002d1270: 6e61 6d65 3a20 736d 6264 2e73 6f63 6b65  name: smbd.socke
│ │ │ +002d1280: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +002d1290: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +002d12a0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002d12b0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +002d12c0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +002d12d0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +002d12e0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +002d12f0: 6368 2822 736d 6264 2e73 6f63 6b65 7422  ch("smbd.socket"
│ │ │ +002d1300: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +002d1310: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ +002d1320: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002d1330: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002d1340: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002d1350: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +002d1360: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002d1370: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002d1380: 6572 7669 6365 5f73 6d62 5f64 6973 6162  ervice_smb_disab
│ │ │ +002d1390: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002d13a0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002d13b0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +002d13c0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +002d13d0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002d13e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002d1490: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ +002d14a0: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ +002d14b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
mediumdisable
Complexity:low
Disrup │ │ │ +002d0da0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002d0db0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002d0df0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002d0e00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +002d1540: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +002d1560: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot │ │ │ +002d1590: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true
│ │ │ +002d15b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +002d15e0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ +002d15f0: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ +002d1600: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ +002d1610: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ +002d1620: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ +002d1630: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ +002d1640: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ +002d1650: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ +002d1660: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ +002d1670: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ +002d1680: 6e61 6d65 3a20 736d 6264 2e73 6572 7669  name: smbd.servi
│ │ │ +002d1690: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +002d16a0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002d16b0: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +002d16c0: 2020 202d 206e 616d 653a 2073 6d62 642e     - name: smbd.
│ │ │ +002d16d0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +002d16e0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002d16f0: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +002d1700: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002d17c0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002d17d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +002d1850: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002d1870: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002d18c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +002d1910: 5f73 6d62 640a 0a63 6c61 7373 2064 6973  _smbd..class dis
│ │ │ +002d1920: 6162 6c65 5f73 6d62 6420 7b0a 2020 7365  able_smbd {.  se
│ │ │ +002d1930: 7276 6963 6520 7b27 736d 6264 273a 0a20  rvice {'smbd':. 
│ │ │ +002d1940: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +002d1950: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +002d1960: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +002d1970: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +002d1980: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002d1a30: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +002d1a40: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +002d1a50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +002d1aa0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +002d1ab0: 5d0a 6d61 736b 6564 203d 205b 2273 6d62  ].masked = ["smb
│ │ │ +002d1ac0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation Pup │ │ │ -002d31c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002d31d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +002d1880: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002d1890: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002d18d0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +002d18e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -002d32a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002d32b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -002d3310: 5f73 6e6d 700a 0a63 6c61 7373 2072 656d  _snmp..class rem
│ │ │ -002d3320: 6f76 655f 736e 6d70 207b 0a20 2070 6163  ove_snmp {.  pac
│ │ │ -002d3330: 6b61 6765 207b 2027 736e 6d70 273a 0a20  kage { 'snmp':. 
│ │ │ -002d3340: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -002d3350: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -002d3360: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -002d3420: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002d3430: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -002d3280: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002d3290: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002d32d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002d32e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002d34b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002d34d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002d3520: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002d3550: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -002d3570: 7461 6c6c 206e 6574 2d73 6e6d 7020 5061  tall net-snmp Pa
│ │ │ -002d3580: 636b 6167 653a 2045 6e73 7572 6520 736e  ckage: Ensure sn
│ │ │ -002d3590: 6d70 2069 7320 7265 6d6f 7665 6427 0a20  mp is removed'. 
│ │ │ -002d35a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002d35b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002d35c0: 6d65 3a20 736e 6d70 0a20 2020 2073 7461  me: snmp.    sta
│ │ │ -002d35d0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -002d35e0: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ -002d35f0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -002d3600: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -002d3610: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002d3620: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002d3630: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002d3640: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002d3650: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002d3660: 6b61 6765 5f6e 6574 2d73 6e6d 705f 7265  kage_net-snmp_re
│ │ │ -002d3670: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ -002d3680: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.Remediation Ans
│ │ │ +002d31c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002d31d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
low
Disr │ │ │ -002d34e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002d34f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002d3530: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002d3540: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +002d3250: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002d3270: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002d32c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002d32f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +002d3310: 7461 6c6c 206e 6574 2d73 6e6d 7020 5061  tall net-snmp Pa
│ │ │ +002d3320: 636b 6167 653a 2045 6e73 7572 6520 736e  ckage: Ensure sn
│ │ │ +002d3330: 6d70 2069 7320 7265 6d6f 7665 6427 0a20  mp is removed'. 
│ │ │ +002d3340: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002d3350: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +002d3360: 6d65 3a20 736e 6d70 0a20 2020 2073 7461  me: snmp.    sta
│ │ │ +002d3370: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +002d3380: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +002d3390: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +002d33a0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +002d33b0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002d33c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002d33d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002d33e0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +002d33f0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002d3400: 6b61 6765 5f6e 6574 2d73 6e6d 705f 7265  kage_net-snmp_re
│ │ │ +002d3410: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ +002d3420: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.
Reme │ │ │ +002d34e0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002d34f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +002d3280: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002d3290: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002d32d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002d32e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +002d3580: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002d35b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002d35d0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002d35e0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002d3600: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002d3610: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002d3630: 6c75 6465 2072 656d 6f76 655f 736e 6d70  lude remove_snmp
│ │ │ +002d3640: 0a0a 636c 6173 7320 7265 6d6f 7665 5f73  ..class remove_s
│ │ │ +002d3650: 6e6d 7020 7b0a 2020 7061 636b 6167 6520  nmp {.  package 
│ │ │ +002d3660: 7b20 2773 6e6d 7027 3a0a 2020 2020 656e  { 'snmp':.    en
│ │ │ +002d3670: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +002d3680: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
R │ │ │ -002d4490: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002d44a0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002d44b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002d44c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -002d4500: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -002d4510: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -002d4520: 5b22 736e 6d70 6422 5d0a 3c2f 636f 6465  ["snmpd"].
Remed │ │ │ -002d45e0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -002d45f0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ -002d4690: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -002d4740: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -002d4750: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -002d4760: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -002d4770: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -002d4780: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -002d4790: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -002d47a0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -002d47b0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -002d47c0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -002d47d0: 2073 6e6d 7064 2e73 6572 7669 6365 0a20   snmpd.service. 
│ │ │ -002d47e0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -002d47f0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -002d4800: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -002d4810: 206e 616d 653a 2073 6e6d 7064 2e73 6f63   name: snmpd.soc
│ │ │ -002d4820: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ -002d4830: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002d4840: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ -002d4900: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002d4910: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002d4680: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002d46b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -002d46c0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -002d4700: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002d4710: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002d49b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -002d4a50: 636c 7564 6520 6469 7361 626c 655f 736e  clude disable_sn
│ │ │ -002d4a60: 6d70 640a 0a63 6c61 7373 2064 6973 6162  mpd..class disab
│ │ │ -002d4a70: 6c65 5f73 6e6d 7064 207b 0a20 2073 6572  le_snmpd {.  ser
│ │ │ -002d4a80: 7669 6365 207b 2773 6e6d 7064 273a 0a20  vice {'snmpd':. 
│ │ │ -002d4a90: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -002d4aa0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -002d4ab0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -002d4ac0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -002d4ad0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002d4b80: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002d4b90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002d49a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002d49d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002d49e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002d4a20: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -002d4a30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -002d4c20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002d4c30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002d4c50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002d4c70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002d4c80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002d4cc0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002d4cd0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -002d4ce0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -002d4cf0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -002d4d00: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -002d4d10: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002d4d20: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002d4d30: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002d4d40: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002d4d50: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -002d4d60: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002d4d70: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002d4d80: 6963 655f 736e 6d70 645f 6469 7361 626c  ice_snmpd_disabl
│ │ │ -002d4d90: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -002d4da0: 626c 6520 736e 6d70 6420 5365 7276 6963  ble snmpd Servic
│ │ │ -002d4db0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -002d4dc0: 6963 6520 736e 6d70 640a 2020 626c 6f63  ice snmpd.  bloc
│ │ │ -002d4dd0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -002d4de0: 7361 626c 6520 736e 6d70 6420 5365 7276  sable snmpd Serv
│ │ │ -002d4df0: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -002d4e00: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002d4e10: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002d4e20: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002d4e30: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002d4e40: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002d4e50: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -002d4e60: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -002d4e70: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002d4e80: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002d4e90: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002d4ea0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002d4eb0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002d4ec0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002d4ed0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002d4ee0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002d4ef0: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ -002d4f00: 7064 2053 6572 7669 6365 202d 2045 6e73  pd Service - Ens
│ │ │ -002d4f10: 7572 6520 736e 6d70 642e 7365 7276 6963  ure snmpd.servic
│ │ │ -002d4f20: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -002d4f30: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002d4f40: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002d4f50: 616d 653a 2073 6e6d 7064 2e73 6572 7669  ame: snmpd.servi
│ │ │ -002d4f60: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -002d4f70: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -002d4f80: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002d4f90: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -002d4fa0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -002d4fb0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -002d4fc0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -002d4fd0: 2273 6e6d 7064 2e73 6572 7669 6365 222c  "snmpd.service",
│ │ │ -002d4fe0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002d4ff0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -002d5000: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -002d5010: 2073 6e6d 7064 2e73 6f63 6b65 740a 2020   snmpd.socket.  
│ │ │ -002d5020: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002d5030: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -002d5040: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002d5050: 742d 6669 6c65 7320 736e 6d70 642e 736f  t-files snmpd.so
│ │ │ -002d5060: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -002d5070: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -002d5080: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002d5090: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -002d50a0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -002d50b0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -002d50c0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -002d50d0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -002d50e0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -002d50f0: 6d65 3a20 4469 7361 626c 6520 736e 6d70  me: Disable snmp
│ │ │ -002d5100: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ -002d5110: 626c 6520 536f 636b 6574 2073 6e6d 7064  ble Socket snmpd
│ │ │ -002d5120: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002d5130: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002d5140: 2020 2020 6e61 6d65 3a20 736e 6d70 642e      name: snmpd.
│ │ │ -002d5150: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002d5160: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002d5170: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002d5180: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002d5190: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -002d51a0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002d51b0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -002d51c0: 2073 6561 7263 6828 2273 6e6d 7064 2e73   search("snmpd.s
│ │ │ -002d51d0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -002d51e0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -002d51f0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002d5200: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002d5210: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002d5220: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -002d5230: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -002d5240: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002d5250: 0a20 202d 2073 6572 7669 6365 5f73 6e6d  .  - service_snm
│ │ │ -002d5260: 7064 5f64 6973 6162 6c65 640a 2020 2d20  pd_disabled.  - 
│ │ │ -002d5270: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -002d5280: 626c 6f63 6b0a 2020 7768 656e 3a20 2820  block.  when: ( 
│ │ │ -002d5290: 2273 6e6d 7022 2069 6e20 616e 7369 626c  "snmp" in ansibl
│ │ │ -002d52a0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -002d52b0: 2061 6e64 2022 6c69 6e75 782d 6261 7365   and "linux-base
│ │ │ -002d52c0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -002d52d0: 7473 2e70 6163 6b61 6765 730a 2020 2020  ts.packages.    
│ │ │ -002d52e0: 290a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ).
< │ │ │ +002d4490: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +002d44a0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ +002d4580: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002d4590: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002d45e0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002d45f0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002d4600: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002d4610: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002d4620: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002d4630: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002d4640: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002d4650: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002d4660: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +002d4670: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002d4680: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002d4690: 2073 6572 7669 6365 5f73 6e6d 7064 5f64   service_snmpd_d
│ │ │ +002d46a0: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ +002d46b0: 2044 6973 6162 6c65 2073 6e6d 7064 2053   Disable snmpd S
│ │ │ +002d46c0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002d46d0: 2073 6572 7669 6365 2073 6e6d 7064 0a20   service snmpd. 
│ │ │ +002d46e0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +002d46f0: 653a 2044 6973 6162 6c65 2073 6e6d 7064  e: Disable snmpd
│ │ │ +002d4700: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +002d4710: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +002d4720: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +002d4730: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +002d4740: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002d4750: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002d4760: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002d4770: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +002d4780: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +002d4790: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +002d47a0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002d47b0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002d47c0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +002d47d0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002d47e0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002d47f0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002d4800: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002d4810: 6520 736e 6d70 6420 5365 7276 6963 6520  e snmpd Service 
│ │ │ +002d4820: 2d20 456e 7375 7265 2073 6e6d 7064 2e73  - Ensure snmpd.s
│ │ │ +002d4830: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +002d4840: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002d4850: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002d4860: 2020 2020 6e61 6d65 3a20 736e 6d70 642e      name: snmpd.
│ │ │ +002d4870: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +002d4880: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +002d4890: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002d48a0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +002d48b0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +002d48c0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +002d48d0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +002d48e0: 6172 6368 2822 736e 6d70 642e 7365 7276  arch("snmpd.serv
│ │ │ +002d48f0: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +002d4900: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +002d4910: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +002d4920: 7374 7320 2d20 736e 6d70 642e 736f 636b  sts - snmpd.sock
│ │ │ +002d4930: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +002d4940: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002d4950: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002d4960: 742d 756e 6974 2d66 696c 6573 2073 6e6d  t-unit-files snm
│ │ │ +002d4970: 7064 2e73 6f63 6b65 740a 2020 2020 7265  pd.socket.    re
│ │ │ +002d4980: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +002d4990: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +002d49a0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002d49b0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002d49c0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002d49d0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +002d49e0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +002d49f0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +002d4a00: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +002d4a10: 2073 6e6d 7064 2053 6572 7669 6365 202d   snmpd Service -
│ │ │ +002d4a20: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +002d4a30: 736e 6d70 640a 2020 2020 616e 7369 626c  snmpd.    ansibl
│ │ │ +002d4a40: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +002d4a50: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +002d4a60: 6e6d 7064 2e73 6f63 6b65 740a 2020 2020  nmpd.socket.    
│ │ │ +002d4a70: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002d4a80: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002d4a90: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +002d4aa0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002d4ab0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002d4ac0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002d4ad0: 6573 2069 7320 7365 6172 6368 2822 736e  es is search("sn
│ │ │ +002d4ae0: 6d70 642e 736f 636b 6574 222c 206d 756c  mpd.socket", mul
│ │ │ +002d4af0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002d4b00: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +002d4b10: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002d4b20: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002d4b30: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002d4b40: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +002d4b50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002d4b60: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +002d4b70: 655f 736e 6d70 645f 6469 7361 626c 6564  e_snmpd_disabled
│ │ │ +002d4b80: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +002d4b90: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +002d4ba0: 6e3a 2028 2022 736e 6d70 2220 696e 2061  n: ( "snmp" in a
│ │ │ +002d4bb0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002d4bc0: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ +002d4bd0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +002d4be0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +002d4bf0: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).Remediat
│ │ │ +002d4cb0: 696f 6e20 4b75 6265 726e 6574 6573 2073  ion Kubernetes s
│ │ │ +002d4cc0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Complexity:low
Disrup │ │ │ +002d4560: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002d4570: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002d45b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002d45c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Reboot:true │ │ │ +002d4dc0: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ +002d4e00: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ +002d4e10: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ +002d4e20: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ +002d4e30: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ +002d4e40: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ +002d4e50: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ +002d4e60: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ +002d4e70: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ +002d4e80: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ +002d4e90: 2020 2020 2020 2d20 6e61 6d65 3a20 736e        - name: sn
│ │ │ +002d4ea0: 6d70 642e 7365 7276 6963 650a 2020 2020  mpd.service.    
│ │ │ +002d4eb0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002d4ec0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +002d4ed0: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +002d4ee0: 6d65 3a20 736e 6d70 642e 736f 636b 6574  me: snmpd.socket
│ │ │ +002d4ef0: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +002d4f00: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +002d4f10: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64  mask: true.
Reme │ │ │ +002d4fd0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002d4fe0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +002d4d50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002d4d80: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +002d4d90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ +002d4dd0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002d4de0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +002d5070: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002d50a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002d50c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002d50d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002d50f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +002d5110: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +002d5120: 6465 2064 6973 6162 6c65 5f73 6e6d 7064  de disable_snmpd
│ │ │ +002d5130: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +002d5140: 736e 6d70 6420 7b0a 2020 7365 7276 6963  snmpd {.  servic
│ │ │ +002d5150: 6520 7b27 736e 6d70 6427 3a0a 2020 2020  e {'snmpd':.    
│ │ │ +002d5160: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +002d5170: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +002d5180: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +002d5190: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +002d5250: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +002d5260: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +002d5270: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +002d52c0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +002d52d0: 6173 6b65 6420 3d20 5b22 736e 6d70 6422  asked = ["snmpd"
│ │ │ +002d52e0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 002d52f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Re │ │ │ -0031c140: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0031c150: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0031c160: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -0031c1a0: 0a0a 0a69 6e63 6c75 6465 2073 7368 5f70  ...include ssh_p
│ │ │ -0031c1b0: 7269 7661 7465 5f6b 6579 5f70 6572 6d73  rivate_key_perms
│ │ │ -0031c1c0: 0a0a 636c 6173 7320 7373 685f 7072 6976  ..class ssh_priv
│ │ │ -0031c1d0: 6174 655f 6b65 795f 7065 726d 7320 7b0a  ate_key_perms {.
│ │ │ -0031c1e0: 2020 6578 6563 207b 2027 7373 6864 5f70    exec { 'sshd_p
│ │ │ -0031c1f0: 7269 765f 6b65 7927 3a0a 2020 2020 636f  riv_key':.    co
│ │ │ -0031c200: 6d6d 616e 6420 3d26 6774 3b20 2263 686d  mmand => "chm
│ │ │ -0031c210: 6f64 2030 3630 3020 2f65 7463 2f73 7368  od 0600 /etc/ssh
│ │ │ -0031c220: 2f2a 5f6b 6579 222c 0a20 2020 2070 6174  /*_key",.    pat
│ │ │ -0031c230: 6820 2020 203d 2667 743b 2027 2f62 696e  h    => '/bin
│ │ │ -0031c240: 3a2f 7573 722f 6269 6e27 0a20 207d 0a7d  :/usr/bin'.  }.}
│ │ │ -0031c250: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0031c310: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0031c320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0031c3a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0031c3c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0031c410: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472
Complexity:< │ │ │ -0031c3b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0031c3d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0031c420: 6174 6567 793a 3c2f 7468 3e3c 7464 3e63 ategy:c │ │ │ -0031c430: 6f6e 6669 6775 7265 3c2f 7464 3e3c 2f74 onfigure
<
│ │ │ -0031c450: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0031c460: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0031c470: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0031c480: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0031c490: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0031c4a0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -0031c4b0: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -0031c4c0: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -0031c4d0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -0031c4e0: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -0031c4f0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -0031c500: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -0031c510: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0031c520: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -0031c530: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0031c540: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0031c550: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -0031c560: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -0031c570: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -0031c580: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ -0031c590: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -0031c5a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0031c5b0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0031c5c0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0031c5d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0031c5e0: 6564 0a0a 2d20 6e61 6d65 3a20 4669 6e64  ed..- name: Find
│ │ │ -0031c5f0: 2072 6f6f 743a 726f 6f74 2d6f 776e 6564   root:root-owned
│ │ │ -0031c600: 206b 6579 730a 2020 616e 7369 626c 652e   keys.  ansible.
│ │ │ -0031c610: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0031c620: 2066 696e 6420 2d48 202f 6574 632f 7373   find -H /etc/ss
│ │ │ -0031c630: 682f 202d 6d61 7864 6570 7468 2031 202d  h/ -maxdepth 1 -
│ │ │ -0031c640: 7573 6572 2072 6f6f 7420 2d72 6567 6578  user root -regex
│ │ │ -0031c650: 2022 2e2a 5f6b 6579 2422 0a20 2020 202d   ".*_key$".    -
│ │ │ -0031c660: 7479 7065 2066 202d 6772 6f75 7020 726f  type f -group ro
│ │ │ -0031c670: 6f74 202d 7065 726d 202f 752b 7873 2c67  ot -perm /u+xs,g
│ │ │ -0031c680: 2b78 7772 732c 6f2b 7877 7274 0a20 2072  +xwrs,o+xwrt.  r
│ │ │ -0031c690: 6567 6973 7465 723a 2072 6f6f 745f 6f77  egister: root_ow
│ │ │ -0031c6a0: 6e65 645f 6b65 7973 0a20 2063 6861 6e67  ned_keys.  chang
│ │ │ -0031c6b0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -0031c6c0: 2066 6169 6c65 645f 7768 656e 3a20 6661   failed_when: fa
│ │ │ -0031c6d0: 6c73 650a 2020 6368 6563 6b5f 6d6f 6465  lse.  check_mode
│ │ │ -0031c6e0: 3a20 6661 6c73 650a 2020 7768 656e 3a20  : false.  when: 
│ │ │ -0031c6f0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0031c700: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0031c710: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0031c720: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -0031c730: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -0031c740: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -0031c750: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -0031c760: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -0031c770: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -0031c780: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -0031c790: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0031c7a0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -0031c7b0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0031c7c0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0031c7d0: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -0031c7e0: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -0031c7f0: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -0031c800: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ -0031c810: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -0031c820: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0031c830: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0031c840: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0031c850: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0031c860: 6564 0a0a 2d20 6e61 6d65 3a20 5365 7420  ed..- name: Set 
│ │ │ -0031c870: 7065 726d 6973 7369 6f6e 7320 666f 7220  permissions for 
│ │ │ -0031c880: 726f 6f74 3a72 6f6f 742d 6f77 6e65 6420  root:root-owned 
│ │ │ -0031c890: 6b65 7973 0a20 2061 6e73 6962 6c65 2e62  keys.  ansible.b
│ │ │ -0031c8a0: 7569 6c74 696e 2e66 696c 653a 0a20 2020  uiltin.file:.   
│ │ │ -0031c8b0: 2070 6174 683a 2027 7b7b 2069 7465 6d20   path: '{{ item 
│ │ │ -0031c8c0: 7d7d 270a 2020 2020 6d6f 6465 3a20 752d  }}'.    mode: u-
│ │ │ -0031c8d0: 7873 2c67 2d78 7772 732c 6f2d 7877 7274  xs,g-xwrs,o-xwrt
│ │ │ -0031c8e0: 0a20 2020 2073 7461 7465 3a20 6669 6c65  .    state: file
│ │ │ -0031c8f0: 0a20 2077 6974 685f 6974 656d 733a 0a20  .  with_items:. 
│ │ │ -0031c900: 202d 2027 7b7b 2072 6f6f 745f 6f77 6e65   - '{{ root_owne
│ │ │ -0031c910: 645f 6b65 7973 2e73 7464 6f75 745f 6c69  d_keys.stdout_li
│ │ │ -0031c920: 6e65 7320 7d7d 270a 2020 7768 656e 3a20  nes }}'.  when: 
│ │ │ -0031c930: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0031c940: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0031c950: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0031c960: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -0031c970: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -0031c980: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -0031c990: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -0031c9a0: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -0031c9b0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -0031c9c0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -0031c9d0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0031c9e0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -0031c9f0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0031ca00: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0031ca10: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -0031ca20: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -0031ca30: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -0031ca40: 6e73 5f73 7368 645f 7072 6976 6174 655f  ns_sshd_private_
│ │ │ -0031ca50: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -0031ca60: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0031ca70: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0031ca80: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0031ca90: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0031caa0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0031c140: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +0031c150: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ +0031c1f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ +0031c2a0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0031c2b0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0031c2c0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0031c2d0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0031c2e0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0031c2f0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +0031c300: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +0031c310: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +0031c320: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +0031c330: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +0031c340: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0031c350: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0031c360: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +0031c370: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +0031c380: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0031c390: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +0031c3a0: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +0031c3b0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +0031c3c0: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +0031c3d0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0031c3e0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0031c3f0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0031c400: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0031c410: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ +0031c420: 2d20 6e61 6d65 3a20 4669 6e64 2072 6f6f  - name: Find roo
│ │ │ +0031c430: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ +0031c440: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ +0031c450: 7469 6e2e 636f 6d6d 616e 643a 2066 696e  tin.command: fin
│ │ │ +0031c460: 6420 2d48 202f 6574 632f 7373 682f 202d  d -H /etc/ssh/ -
│ │ │ +0031c470: 6d61 7864 6570 7468 2031 202d 7573 6572  maxdepth 1 -user
│ │ │ +0031c480: 2072 6f6f 7420 2d72 6567 6578 2022 2e2a   root -regex ".*
│ │ │ +0031c490: 5f6b 6579 2422 0a20 2020 202d 7479 7065  _key$".    -type
│ │ │ +0031c4a0: 2066 202d 6772 6f75 7020 726f 6f74 202d   f -group root -
│ │ │ +0031c4b0: 7065 726d 202f 752b 7873 2c67 2b78 7772  perm /u+xs,g+xwr
│ │ │ +0031c4c0: 732c 6f2b 7877 7274 0a20 2072 6567 6973  s,o+xwrt.  regis
│ │ │ +0031c4d0: 7465 723a 2072 6f6f 745f 6f77 6e65 645f  ter: root_owned_
│ │ │ +0031c4e0: 6b65 7973 0a20 2063 6861 6e67 6564 5f77  keys.  changed_w
│ │ │ +0031c4f0: 6865 6e3a 2066 616c 7365 0a20 2066 6169  hen: false.  fai
│ │ │ +0031c500: 6c65 645f 7768 656e 3a20 6661 6c73 650a  led_when: false.
│ │ │ +0031c510: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0031c520: 6c73 650a 2020 7768 656e 3a20 2722 6c69  lse.  when: '"li
│ │ │ +0031c530: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0031c540: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0031c550: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +0031c560: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0031c570: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +0031c580: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +0031c590: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +0031c5a0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +0031c5b0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +0031c5c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0031c5d0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0031c5e0: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +0031c5f0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +0031c600: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0031c610: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +0031c620: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +0031c630: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +0031c640: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +0031c650: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0031c660: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0031c670: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0031c680: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0031c690: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ +0031c6a0: 2d20 6e61 6d65 3a20 5365 7420 7065 726d  - name: Set perm
│ │ │ +0031c6b0: 6973 7369 6f6e 7320 666f 7220 726f 6f74  issions for root
│ │ │ +0031c6c0: 3a72 6f6f 742d 6f77 6e65 6420 6b65 7973  :root-owned keys
│ │ │ +0031c6d0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0031c6e0: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ +0031c6f0: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ +0031c700: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ +0031c710: 2d78 7772 732c 6f2d 7877 7274 0a20 2020  -xwrs,o-xwrt.   
│ │ │ +0031c720: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ +0031c730: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ +0031c740: 7b7b 2072 6f6f 745f 6f77 6e65 645f 6b65  {{ root_owned_ke
│ │ │ +0031c750: 7973 2e73 7464 6f75 745f 6c69 6e65 7320  ys.stdout_lines 
│ │ │ +0031c760: 7d7d 270a 2020 7768 656e 3a20 2722 6c69  }}'.  when: '"li
│ │ │ +0031c770: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0031c780: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0031c790: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +0031c7a0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0031c7b0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +0031c7c0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +0031c7d0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +0031c7e0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +0031c7f0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +0031c800: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0031c810: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0031c820: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +0031c830: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +0031c840: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0031c850: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +0031c860: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +0031c870: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +0031c880: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +0031c890: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0031c8a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0031c8b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0031c8c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0031c8d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a3c  _reboot_needed.<
│ │ │ +0031c8e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0031c990: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0031c9a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
...include ssh
│ │ │ +0031ca00: 5f70 7269 7661 7465 5f6b 6579 5f70 6572  _private_key_per
│ │ │ +0031ca10: 6d73 0a0a 636c 6173 7320 7373 685f 7072  ms..class ssh_pr
│ │ │ +0031ca20: 6976 6174 655f 6b65 795f 7065 726d 7320  ivate_key_perms 
│ │ │ +0031ca30: 7b0a 2020 6578 6563 207b 2027 7373 6864  {.  exec { 'sshd
│ │ │ +0031ca40: 5f70 7269 765f 6b65 7927 3a0a 2020 2020  _priv_key':.    
│ │ │ +0031ca50: 636f 6d6d 616e 6420 3d26 6774 3b20 2263  command => "c
│ │ │ +0031ca60: 686d 6f64 2030 3630 3020 2f65 7463 2f73  hmod 0600 /etc/s
│ │ │ +0031ca70: 7368 2f2a 5f6b 6579 222c 0a20 2020 2070  sh/*_key",.    p
│ │ │ +0031ca80: 6174 6820 2020 203d 2667 743b 2027 2f62  ath    => '/b
│ │ │ +0031ca90: 696e 3a2f 7573 722f 6269 6e27 0a20 207d  in:/usr/bin'.  }
│ │ │ +0031caa0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0031cab0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Reme │ │ │ -0031df00: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0031df10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
in
│ │ │ -0031df60: 636c 7564 6520 7373 685f 7075 626c 6963  clude ssh_public
│ │ │ -0031df70: 5f6b 6579 5f70 6572 6d73 0a0a 636c 6173  _key_perms..clas
│ │ │ -0031df80: 7320 7373 685f 7075 626c 6963 5f6b 6579  s ssh_public_key
│ │ │ -0031df90: 5f70 6572 6d73 207b 0a20 2065 7865 6320  _perms {.  exec 
│ │ │ -0031dfa0: 7b20 2773 7368 645f 7075 625f 6b65 7927  { 'sshd_pub_key'
│ │ │ -0031dfb0: 3a0a 2020 2020 636f 6d6d 616e 6420 3d26  :.    command =&
│ │ │ -0031dfc0: 6774 3b20 2263 686d 6f64 2030 3634 3420  gt; "chmod 0644 
│ │ │ -0031dfd0: 2f65 7463 2f73 7368 2f2a 2e70 7562 222c  /etc/ssh/*.pub",
│ │ │ -0031dfe0: 0a20 2020 2070 6174 6820 2020 203d 2667  .    path    =&g
│ │ │ -0031dff0: 743b 2027 2f62 696e 3a2f 7573 722f 6269  t; '/bin:/usr/bi
│ │ │ -0031e000: 6e27 0a20 207d 0a7d 0a3c 2f63 6f64 653e  n'.  }.}.
│ │ │ -0031e010: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0031e0c0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0031e0d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0031c1e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0031c210: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0031c220: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0031c260: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ +0031c270: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
- n
│ │ │ -0031e210: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0031e220: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0031e230: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0031e240: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0031e250: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0031e260: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ -0031e270: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -0031e280: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ -0031e290: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ -0031e2a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0031e2b0: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ -0031e2c0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0031e2d0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -0031e2e0: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ -0031e2f0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0031e300: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -0031e310: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ -0031e320: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ -0031e330: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ -0031e340: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ -0031e350: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0031e360: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0031e370: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0031e380: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0031e390: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20  needed..- name: 
│ │ │ -0031e3a0: 4669 6e64 202f 6574 632f 7373 682f 2066  Find /etc/ssh/ f
│ │ │ -0031e3b0: 696c 6528 7329 0a20 2061 6e73 6962 6c65  ile(s).  ansible
│ │ │ -0031e3c0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0031e3d0: 3a20 6669 6e64 202d 5020 2f65 7463 2f73  : find -P /etc/s
│ │ │ -0031e3e0: 7368 2f20 2d6d 6178 6465 7074 6820 3120  sh/ -maxdepth 1 
│ │ │ -0031e3f0: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ -0031e400: 732c 6f2b 7877 7420 202d 7479 7065 0a20  s,o+xwt  -type. 
│ │ │ -0031e410: 2020 2066 202d 7265 6765 7874 7970 6520     f -regextype 
│ │ │ -0031e420: 706f 7369 782d 6578 7465 6e64 6564 202d  posix-extended -
│ │ │ -0031e430: 7265 6765 7820 225e 2e2a 5c2e 7075 6224  regex "^.*\.pub$
│ │ │ -0031e440: 220a 2020 7265 6769 7374 6572 3a20 6669  ".  register: fi
│ │ │ -0031e450: 6c65 735f 666f 756e 640a 2020 6368 616e  les_found.  chan
│ │ │ -0031e460: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0031e470: 2020 6661 696c 6564 5f77 6865 6e3a 2066    failed_when: f
│ │ │ -0031e480: 616c 7365 0a20 2063 6865 636b 5f6d 6f64  alse.  check_mod
│ │ │ -0031e490: 653a 2066 616c 7365 0a20 2077 6865 6e3a  e: false.  when:
│ │ │ -0031e4a0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0031e4b0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0031e4c0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -0031e4d0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -0031e4e0: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -0031e4f0: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -0031e500: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -0031e510: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -0031e520: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -0031e530: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -0031e540: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0031e550: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -0031e560: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -0031e570: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -0031e580: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -0031e590: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -0031e5a0: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -0031e5b0: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579  ons_sshd_pub_key
│ │ │ -0031e5c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0031e5d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0031e5e0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0031e5f0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0031e600: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0031e610: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ -0031e620: 6d69 7373 696f 6e73 2066 6f72 202f 6574  missions for /et
│ │ │ -0031e630: 632f 7373 682f 2066 696c 6528 7329 0a20  c/ssh/ file(s). 
│ │ │ -0031e640: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0031e650: 2e66 696c 653a 0a20 2020 2070 6174 683a  .file:.    path:
│ │ │ -0031e660: 2027 7b7b 2069 7465 6d20 7d7d 270a 2020   '{{ item }}'.  
│ │ │ -0031e670: 2020 6d6f 6465 3a20 752d 7873 2c67 2d78    mode: u-xs,g-x
│ │ │ -0031e680: 7773 2c6f 2d78 7774 0a20 2020 2073 7461  ws,o-xwt.    sta
│ │ │ -0031e690: 7465 3a20 6669 6c65 0a20 2077 6974 685f  te: file.  with_
│ │ │ -0031e6a0: 6974 656d 733a 0a20 202d 2027 7b7b 2066  items:.  - '{{ f
│ │ │ -0031e6b0: 696c 6573 5f66 6f75 6e64 2e73 7464 6f75  iles_found.stdou
│ │ │ -0031e6c0: 745f 6c69 6e65 7320 7d7d 270a 2020 7768  t_lines }}'.  wh
│ │ │ -0031e6d0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0031e6e0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0031e6f0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0031e700: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0031e710: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -0031e720: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -0031e730: 3133 2e31 300a 2020 2d20 4e49 5354 2d38  13.10.  - NIST-8
│ │ │ -0031e740: 3030 2d35 332d 4143 2d31 3728 6129 0a20  00-53-AC-17(a). 
│ │ │ -0031e750: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0031e760: 432d 3628 3129 0a20 202d 204e 4953 542d  C-6(1).  - NIST-
│ │ │ -0031e770: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0031e780: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ -0031e790: 2e32 2e34 0a20 202d 2050 4349 2d44 5353  .2.4.  - PCI-DSS
│ │ │ -0031e7a0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -0031e7b0: 5353 7634 2d32 2e32 2e36 0a20 202d 2063  SSv4-2.2.6.  - c
│ │ │ -0031e7c0: 6f6e 6669 6775 7265 5f73 7472 6174 6567  onfigure_strateg
│ │ │ -0031e7d0: 790a 2020 2d20 6669 6c65 5f70 6572 6d69  y.  - file_permi
│ │ │ -0031e7e0: 7373 696f 6e73 5f73 7368 645f 7075 625f  ssions_sshd_pub_
│ │ │ -0031e7f0: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -0031e800: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0031e810: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0031e820: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0031e830: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0031e840: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0031df00: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +0031df10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0031df20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -0031e160: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0031e170: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0031e190: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0031e1b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0031e1c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:configure │ │ │ -0031e1f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +0031dfc0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0031e010: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
-
│ │ │ +0031e050: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0031e060: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0031e070: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0031e080: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0031e090: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0031e0a0: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ +0031e0b0: 3133 0a20 202d 204e 4953 542d 3830 302d  13.  - NIST-800-
│ │ │ +0031e0c0: 3137 312d 332e 3133 2e31 300a 2020 2d20  171-3.13.10.  - 
│ │ │ +0031e0d0: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ +0031e0e0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +0031e0f0: 302d 3533 2d41 432d 3628 3129 0a20 202d  0-53-AC-6(1).  -
│ │ │ +0031e100: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0031e110: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +0031e120: 2d52 6571 2d32 2e32 2e34 0a20 202d 2050  -Req-2.2.4.  - P
│ │ │ +0031e130: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +0031e140: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ +0031e150: 0a20 202d 2063 6f6e 6669 6775 7265 5f73  .  - configure_s
│ │ │ +0031e160: 7472 6174 6567 790a 2020 2d20 6669 6c65  trategy.  - file
│ │ │ +0031e170: 5f70 6572 6d69 7373 696f 6e73 5f73 7368  _permissions_ssh
│ │ │ +0031e180: 645f 7075 625f 6b65 790a 2020 2d20 6c6f  d_pub_key.  - lo
│ │ │ +0031e190: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0031e1a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0031e1b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0031e1c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0031e1d0: 745f 6e65 6564 6564 0a0a 2d20 6e61 6d65  t_needed..- name
│ │ │ +0031e1e0: 3a20 4669 6e64 202f 6574 632f 7373 682f  : Find /etc/ssh/
│ │ │ +0031e1f0: 2066 696c 6528 7329 0a20 2061 6e73 6962   file(s).  ansib
│ │ │ +0031e200: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0031e210: 6e64 3a20 6669 6e64 202d 5020 2f65 7463  nd: find -P /etc
│ │ │ +0031e220: 2f73 7368 2f20 2d6d 6178 6465 7074 6820  /ssh/ -maxdepth 
│ │ │ +0031e230: 3120 2d70 6572 6d20 2f75 2b78 732c 672b  1 -perm /u+xs,g+
│ │ │ +0031e240: 7877 732c 6f2b 7877 7420 202d 7479 7065  xws,o+xwt  -type
│ │ │ +0031e250: 0a20 2020 2066 202d 7265 6765 7874 7970  .    f -regextyp
│ │ │ +0031e260: 6520 706f 7369 782d 6578 7465 6e64 6564  e posix-extended
│ │ │ +0031e270: 202d 7265 6765 7820 225e 2e2a 5c2e 7075   -regex "^.*\.pu
│ │ │ +0031e280: 6224 220a 2020 7265 6769 7374 6572 3a20  b$".  register: 
│ │ │ +0031e290: 6669 6c65 735f 666f 756e 640a 2020 6368  files_found.  ch
│ │ │ +0031e2a0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0031e2b0: 650a 2020 6661 696c 6564 5f77 6865 6e3a  e.  failed_when:
│ │ │ +0031e2c0: 2066 616c 7365 0a20 2063 6865 636b 5f6d   false.  check_m
│ │ │ +0031e2d0: 6f64 653a 2066 616c 7365 0a20 2077 6865  ode: false.  whe
│ │ │ +0031e2e0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +0031e2f0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0031e300: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +0031e310: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0031e320: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20  -171-3.1.13.  - 
│ │ │ +0031e330: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +0031e340: 332e 3130 0a20 202d 204e 4953 542d 3830  3.10.  - NIST-80
│ │ │ +0031e350: 302d 3533 2d41 432d 3137 2861 290a 2020  0-53-AC-17(a).  
│ │ │ +0031e360: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +0031e370: 2d36 2831 290a 2020 2d20 4e49 5354 2d38  -6(1).  - NIST-8
│ │ │ +0031e380: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0031e390: 2d20 5043 492d 4453 532d 5265 712d 322e  - PCI-DSS-Req-2.
│ │ │ +0031e3a0: 322e 340a 2020 2d20 5043 492d 4453 5376  2.4.  - PCI-DSSv
│ │ │ +0031e3b0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +0031e3c0: 5376 342d 322e 322e 360a 2020 2d20 636f  Sv4-2.2.6.  - co
│ │ │ +0031e3d0: 6e66 6967 7572 655f 7374 7261 7465 6779  nfigure_strategy
│ │ │ +0031e3e0: 0a20 202d 2066 696c 655f 7065 726d 6973  .  - file_permis
│ │ │ +0031e3f0: 7369 6f6e 735f 7373 6864 5f70 7562 5f6b  sions_sshd_pub_k
│ │ │ +0031e400: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ +0031e410: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0031e420: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0031e430: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0031e440: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0031e450: 640a 0a2d 206e 616d 653a 2053 6574 2070  d..- name: Set p
│ │ │ +0031e460: 6572 6d69 7373 696f 6e73 2066 6f72 202f  ermissions for /
│ │ │ +0031e470: 6574 632f 7373 682f 2066 696c 6528 7329  etc/ssh/ file(s)
│ │ │ +0031e480: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0031e490: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ +0031e4a0: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ +0031e4b0: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ +0031e4c0: 2d78 7773 2c6f 2d78 7774 0a20 2020 2073  -xws,o-xwt.    s
│ │ │ +0031e4d0: 7461 7465 3a20 6669 6c65 0a20 2077 6974  tate: file.  wit
│ │ │ +0031e4e0: 685f 6974 656d 733a 0a20 202d 2027 7b7b  h_items:.  - '{{
│ │ │ +0031e4f0: 2066 696c 6573 5f66 6f75 6e64 2e73 7464   files_found.std
│ │ │ +0031e500: 6f75 745f 6c69 6e65 7320 7d7d 270a 2020  out_lines }}'.  
│ │ │ +0031e510: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0031e520: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0031e530: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +0031e540: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0031e550: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +0031e560: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +0031e570: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +0031e580: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +0031e590: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0031e5a0: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +0031e5b0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0031e5c0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +0031e5d0: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +0031e5e0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +0031e5f0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +0031e600: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +0031e610: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +0031e620: 6d69 7373 696f 6e73 5f73 7368 645f 7075  missions_sshd_pu
│ │ │ +0031e630: 625f 6b65 790a 2020 2d20 6c6f 775f 636f  b_key.  - low_co
│ │ │ +0031e640: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0031e650: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0031e660: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0031e670: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0031e680: 6564 6564 0a3c 2f63 6f64 653e 3c2f 7072  eded.Remediatio
│ │ │ +0031e740: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +0031e750: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
include │ │ │ +0031e7a0: 7373 685f 7075 626c 6963 5f6b 6579 5f70 ssh_public_key_p │ │ │ +0031e7b0: 6572 6d73 0a0a 636c 6173 7320 7373 685f erms..class ssh_ │ │ │ +0031e7c0: 7075 626c 6963 5f6b 6579 5f70 6572 6d73 public_key_perms │ │ │ +0031e7d0: 207b 0a20 2065 7865 6320 7b20 2773 7368 {. exec { 'ssh │ │ │ +0031e7e0: 645f 7075 625f 6b65 7927 3a0a 2020 2020 d_pub_key':. │ │ │ +0031e7f0: 636f 6d6d 616e 6420 3d26 6774 3b20 2263 command => "c │ │ │ +0031e800: 686d 6f64 2030 3634 3420 2f65 7463 2f73 hmod 0644 /etc/s │ │ │ +0031e810: 7368 2f2a 2e70 7562 222c 0a20 2020 2070 sh/*.pub",. p │ │ │ +0031e820: 6174 6820 2020 203d 2667 743b 2027 2f62 ath => '/b │ │ │ +0031e830: 696e 3a2f 7573 722f 6269 6e27 0a20 207d in:/usr/bin'. } │ │ │ +0031e840: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ 0031e850: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 │ │ │ -00320510: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00320520: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Co │ │ │ +0031dfa0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0031dfd0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0031dff0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0031e000: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0031e020: 3c2f 7468 3e3c 7464 3e63 6f6e 6669 6775 configu │ │ │ +0031e030: 7265 3c2f 7464 3e3c 2f74 723e 3c2f 7461 re
< │ │ │ -00320600: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00320610: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00320660: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00320670: 7873 6572 7665 722d 636f 6d6d 6f6e 0a0a  xserver-common..
│ │ │ -00320680: 636c 6173 7320 7265 6d6f 7665 5f78 7365  class remove_xse
│ │ │ -00320690: 7276 6572 2d63 6f6d 6d6f 6e20 7b0a 2020  rver-common {.  
│ │ │ -003206a0: 7061 636b 6167 6520 7b20 2778 7365 7276  package { 'xserv
│ │ │ -003206b0: 6572 2d63 6f6d 6d6f 6e27 3a0a 2020 2020  er-common':.    
│ │ │ -003206c0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -003206d0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -003206f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00320790: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -003207a0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:low
Disrup │ │ │ -003205e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -003205f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00320630: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00320640: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00320840: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -003208e0: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ -003208f0: 6865 2058 2057 696e 646f 7773 2050 6163  he X Windows Pac
│ │ │ -00320900: 6b61 6765 2047 726f 7570 3a20 456e 7375  kage Group: Ensu
│ │ │ -00320910: 7265 2078 7365 7276 6572 2d63 6f6d 6d6f  re xserver-commo
│ │ │ -00320920: 6e20 6973 2072 656d 6f76 6564 270a 2020  n is removed'.  
│ │ │ -00320930: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00320940: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00320950: 653a 2078 7365 7276 6572 2d63 6f6d 6d6f  e: xserver-commo
│ │ │ -00320960: 6e0a 2020 2020 7374 6174 653a 2061 6273  n.    state: abs
│ │ │ -00320970: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -00320980: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00320990: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -003209a0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -003209b0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -003209c0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -003209d0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -003209e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -003209f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00320a00: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00320a10: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00320a20: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00320a30: 6167 655f 786f 7267 2d78 3131 2d73 6572  age_xorg-x11-ser
│ │ │ -00320a40: 7665 722d 636f 6d6d 6f6e 5f72 656d 6f76  ver-common_remov
│ │ │ -00320a50: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00320510: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00320520: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00320530: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -00320830: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00320860: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00320870: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -003208b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -003208c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00320600: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00320610: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +00320670: 2074 6865 2058 2057 696e 646f 7773 2050   the X Windows P
│ │ │ +00320680: 6163 6b61 6765 2047 726f 7570 3a20 456e  ackage Group: En
│ │ │ +00320690: 7375 7265 2078 7365 7276 6572 2d63 6f6d  sure xserver-com
│ │ │ +003206a0: 6d6f 6e20 6973 2072 656d 6f76 6564 270a  mon is removed'.
│ │ │ +003206b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +003206c0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +003206d0: 616d 653a 2078 7365 7276 6572 2d63 6f6d  ame: xserver-com
│ │ │ +003206e0: 6d6f 6e0a 2020 2020 7374 6174 653a 2061  mon.    state: a
│ │ │ +003206f0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00320700: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00320710: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00320720: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00320730: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00320740: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +00320750: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00320760: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00320770: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00320780: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00320790: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +003207a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +003207b0: 636b 6167 655f 786f 7267 2d78 3131 2d73  ckage_xorg-x11-s
│ │ │ +003207c0: 6572 7665 722d 636f 6d6d 6f6e 5f72 656d  erver-common_rem
│ │ │ +003207d0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediatio
│ │ │ +00320890: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +003208a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +00320920: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00320960: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +003205e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +003205f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00320630: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00320640: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +00320930: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00320950: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00320980: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +003209a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +003209d0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +003209e0: 656d 6f76 655f 7873 6572 7665 722d 636f  emove_xserver-co
│ │ │ +003209f0: 6d6d 6f6e 0a0a 636c 6173 7320 7265 6d6f  mmon..class remo
│ │ │ +00320a00: 7665 5f78 7365 7276 6572 2d63 6f6d 6d6f  ve_xserver-commo
│ │ │ +00320a10: 6e20 7b0a 2020 7061 636b 6167 6520 7b20  n {.  package { 
│ │ │ +00320a20: 2778 7365 7276 6572 2d63 6f6d 6d6f 6e27  'xserver-common'
│ │ │ +00320a30: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00320a40: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00320a50: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00320a60: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remedia │ │ │ -00504630: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00504640: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00504650: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00504690: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -005046a0: 735d 5d0a 6e61 6d65 203d 2022 6175 6469  s]].name = "audi
│ │ │ -005046b0: 7370 642d 706c 7567 696e 7322 0a76 6572  spd-plugins".ver
│ │ │ -005046c0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Reme │ │ │ -00504780: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00504790: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -00504820: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00504850: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00504870: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00504880: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -005048a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -005048c0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -005048d0: 6465 2069 6e73 7461 6c6c 5f61 7564 6973  de install_audis
│ │ │ -005048e0: 7064 2d70 6c75 6769 6e73 0a0a 636c 6173  pd-plugins..clas
│ │ │ -005048f0: 7320 696e 7374 616c 6c5f 6175 6469 7370  s install_audisp
│ │ │ -00504900: 642d 706c 7567 696e 7320 7b0a 2020 7061  d-plugins {.  pa
│ │ │ -00504910: 636b 6167 6520 7b20 2761 7564 6973 7064  ckage { 'audispd
│ │ │ -00504920: 2d70 6c75 6769 6e73 273a 0a20 2020 2065  -plugins':.    e
│ │ │ -00504930: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -00504940: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -00504950: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -00504a00: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00504a10: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00504a20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -00504af0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00504b00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00504b50: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00504b60: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00504b70: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00504b80: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00504b90: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00504ba0: 4449 5341 2d53 5449 472d 5542 5455 2d32  DISA-STIG-UBTU-2
│ │ │ -00504bb0: 322d 3635 3330 3230 0a20 202d 2050 4349  2-653020.  - PCI
│ │ │ -00504bc0: 2d44 5353 2d52 6571 2d31 302e 352e 330a  -DSS-Req-10.5.3.
│ │ │ -00504bd0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -00504be0: 2e33 0a20 202d 2050 4349 2d44 5353 7634  .3.  - PCI-DSSv4
│ │ │ -00504bf0: 2d31 302e 332e 330a 2020 2d20 656e 6162  -10.3.3.  - enab
│ │ │ -00504c00: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00504c10: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00504c20: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00504c30: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00504c40: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00504c50: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00504c60: 6163 6b61 6765 5f61 7564 6974 2d61 7564  ackage_audit-aud
│ │ │ -00504c70: 6973 7064 2d70 6c75 6769 6e73 5f69 6e73  ispd-plugins_ins
│ │ │ -00504c80: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -00504c90: 456e 7375 7265 2061 7564 6973 7064 2d70  Ensure audispd-p
│ │ │ -00504ca0: 6c75 6769 6e73 2069 7320 696e 7374 616c  lugins is instal
│ │ │ -00504cb0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -00504cc0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00504cd0: 2020 206e 616d 653a 2061 7564 6973 7064     name: audispd
│ │ │ -00504ce0: 2d70 6c75 6769 6e73 0a20 2020 2073 7461  -plugins.    sta
│ │ │ -00504cf0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00504d00: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00504d10: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00504d20: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00504d30: 6167 733a 0a20 202d 2044 4953 412d 5354  ags:.  - DISA-ST
│ │ │ -00504d40: 4947 2d55 4254 552d 3232 2d36 3533 3032  IG-UBTU-22-65302
│ │ │ -00504d50: 300a 2020 2d20 5043 492d 4453 532d 5265  0.  - PCI-DSS-Re
│ │ │ -00504d60: 712d 3130 2e35 2e33 0a20 202d 2050 4349  q-10.5.3.  - PCI
│ │ │ -00504d70: 2d44 5353 7634 2d31 302e 330a 2020 2d20  -DSSv4-10.3.  - 
│ │ │ -00504d80: 5043 492d 4453 5376 342d 3130 2e33 2e33  PCI-DSSv4-10.3.3
│ │ │ -00504d90: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00504da0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00504db0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00504dc0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00504dd0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00504de0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00504df0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00504e00: 6175 6469 742d 6175 6469 7370 642d 706c  audit-audispd-pl
│ │ │ -00504e10: 7567 696e 735f 696e 7374 616c 6c65 640a  ugins_installed.
│ │ │ +00504630: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +00504640: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +00504650: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disru │ │ │ -00504ad0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00504ae0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00504b20: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00504b30: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +005046f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00504710: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00504740: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +005046d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +005046e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00504700: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00504720: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00504730: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +00504780: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00504790: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +005047a0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +005047b0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +005047c0: 6167 733a 0a20 202d 2044 4953 412d 5354 ags:. - DISA-ST │ │ │ +005047d0: 4947 2d55 4254 552d 3232 2d36 3533 3032 IG-UBTU-22-65302 │ │ │ +005047e0: 300a 2020 2d20 5043 492d 4453 532d 5265 0. - PCI-DSS-Re │ │ │ +005047f0: 712d 3130 2e35 2e33 0a20 202d 2050 4349 q-10.5.3. - PCI │ │ │ +00504800: 2d44 5353 7634 2d31 302e 330a 2020 2d20 -DSSv4-10.3. - │ │ │ +00504810: 5043 492d 4453 5376 342d 3130 2e33 2e33 PCI-DSSv4-10.3.3 │ │ │ +00504820: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +00504830: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +00504840: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00504850: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +00504860: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +00504870: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +00504880: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +00504890: 6175 6469 742d 6175 6469 7370 642d 706c audit-audispd-pl │ │ │ +005048a0: 7567 696e 735f 696e 7374 616c 6c65 640a ugins_installed. │ │ │ +005048b0: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ +005048c0: 6175 6469 7370 642d 706c 7567 696e 7320 audispd-plugins │ │ │ +005048d0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ +005048e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +005048f0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +00504900: 3a20 6175 6469 7370 642d 706c 7567 696e : audispd-plugin │ │ │ +00504910: 730a 2020 2020 7374 6174 653a 2070 7265 s. state: pre │ │ │ +00504920: 7365 6e74 0a20 2077 6865 6e3a 2027 226c sent. when: '"l │ │ │ +00504930: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ +00504940: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +00504950: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ +00504960: 2d20 4449 5341 2d53 5449 472d 5542 5455 - DISA-STIG-UBTU │ │ │ +00504970: 2d32 322d 3635 3330 3230 0a20 202d 2050 -22-653020. - P │ │ │ +00504980: 4349 2d44 5353 2d52 6571 2d31 302e 352e CI-DSS-Req-10.5. │ │ │ +00504990: 330a 2020 2d20 5043 492d 4453 5376 342d 3. - PCI-DSSv4- │ │ │ +005049a0: 3130 2e33 0a20 202d 2050 4349 2d44 5353 10.3. - PCI-DSS │ │ │ +005049b0: 7634 2d31 302e 332e 330a 2020 2d20 656e v4-10.3.3. - en │ │ │ +005049c0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +005049d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +005049e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +005049f0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +00504a00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +00504a10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00504a20: 2070 6163 6b61 6765 5f61 7564 6974 2d61 package_audit-a │ │ │ +00504a30: 7564 6973 7064 2d70 6c75 6769 6e73 5f69 udispd-plugins_i │ │ │ +00504a40: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e nstalled. │ │ │ +00504a50: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedi │ │ │ +00504b00: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00504b10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00504b20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00504bc0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00504be0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00504c10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00504ba0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00504bb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00504bd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00504bf0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00504c00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00504c50: 2069 6e73 7461 6c6c 5f61 7564 6973 7064 install_audispd │ │ │ +00504c60: 2d70 6c75 6769 6e73 0a0a 636c 6173 7320 -plugins..class │ │ │ +00504c70: 696e 7374 616c 6c5f 6175 6469 7370 642d install_audispd- │ │ │ +00504c80: 706c 7567 696e 7320 7b0a 2020 7061 636b plugins {. pack │ │ │ +00504c90: 6167 6520 7b20 2761 7564 6973 7064 2d70 age { 'audispd-p │ │ │ +00504ca0: 6c75 6769 6e73 273a 0a20 2020 2065 6e73 lugins':. ens │ │ │ +00504cb0: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ +00504cc0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.

│ │ │ +00504ce0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00504d80: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00504d90: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00504da0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00504db0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00504dc0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00504dd0: 7365 2220 6964 3d22 6964 3134 3835 223e se" id="id1485"> │ │ │ +00504de0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +00504df0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +00504e00: 2261 7564 6973 7064 2d70 6c75 6769 6e73  "audispd-plugins
│ │ │ +00504e10: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  00504e20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -00506260: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00506270: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[[packages]].n
│ │ │ -005062d0: 616d 6520 3d20 2261 7564 6974 6422 0a76  ame = "auditd".v
│ │ │ -005062e0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00506300: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -005063a0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -005063b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -005063c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -00506450: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00506460: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -005064b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -005064f0: 6c75 6465 2069 6e73 7461 6c6c 5f61 7564  lude install_aud
│ │ │ -00506500: 6974 640a 0a63 6c61 7373 2069 6e73 7461  itd..class insta
│ │ │ -00506510: 6c6c 5f61 7564 6974 6420 7b0a 2020 7061  ll_auditd {.  pa
│ │ │ -00506520: 636b 6167 6520 7b20 2761 7564 6974 6427  ckage { 'auditd'
│ │ │ -00506530: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00506540: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00506550: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -00506610: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00506620: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00506660: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00506670: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00506680: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00506690: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -005066a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00506730: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00506740: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -00506440: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00506470: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00506480: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -005064c0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -005064d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ -005066b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -005066c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00506700: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00506710: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -00506760: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00506770: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00506780: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00506790: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -005067a0: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ -005067b0: 2d55 4254 552d 3232 2d36 3533 3031 300a  -UBTU-22-653010.
│ │ │ -005067c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -005067d0: 4143 2d37 2861 290a 2020 2d20 4e49 5354  AC-7(a).  - NIST
│ │ │ -005067e0: 2d38 3030 2d35 332d 4155 2d31 3228 3229  -800-53-AU-12(2)
│ │ │ -005067f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00506800: 2d41 552d 3134 0a20 202d 204e 4953 542d  -AU-14.  - NIST-
│ │ │ -00506810: 3830 302d 3533 2d41 552d 3228 6129 0a20  800-53-AU-2(a). 
│ │ │ -00506820: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00506830: 552d 3728 3129 0a20 202d 204e 4953 542d  U-7(1).  - NIST-
│ │ │ -00506840: 3830 302d 3533 2d41 552d 3728 3229 0a20  800-53-AU-7(2). 
│ │ │ -00506850: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00506860: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00506870: 5353 2d52 6571 2d31 302e 310a 2020 2d20  SS-Req-10.1.  - 
│ │ │ -00506880: 5043 492d 4453 5376 342d 3130 2e32 0a20  PCI-DSSv4-10.2. 
│ │ │ -00506890: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -005068a0: 322e 310a 2020 2d20 656e 6162 6c65 5f73  2.1.  - enable_s
│ │ │ -005068b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -005068c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -005068d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -005068e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -005068f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00506900: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00506910: 6765 5f61 7564 6974 5f69 6e73 7461 6c6c  ge_audit_install
│ │ │ -00506920: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -00506930: 7265 2061 7564 6974 6420 6973 2069 6e73  re auditd is ins
│ │ │ -00506940: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -00506950: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00506960: 3a0a 2020 2020 6e61 6d65 3a20 6175 6469  :.    name: audi
│ │ │ -00506970: 7464 0a20 2020 2073 7461 7465 3a20 7072  td.    state: pr
│ │ │ -00506980: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00506990: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -005069a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -005069b0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -005069c0: 202d 2044 4953 412d 5354 4947 2d55 4254   - DISA-STIG-UBT
│ │ │ -005069d0: 552d 3232 2d36 3533 3031 300a 2020 2d20  U-22-653010.  - 
│ │ │ -005069e0: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ -005069f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00506a00: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ -00506a10: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00506a20: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ -00506a30: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ -00506a40: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ -00506a50: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -00506a60: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ -00506a70: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00506a80: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00506a90: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ -00506aa0: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ -00506ab0: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ -00506ac0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00506ad0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00506ae0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00506af0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00506b00: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00506b10: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00506b20: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -00506b30: 7564 6974 5f69 6e73 7461 6c6c 6564 0a3c  udit_installed.<
│ │ │ +00506260: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +00506270: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
Complexity │ │ │ +00506300: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00506320: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00506330: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00506340: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00506350: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00506370: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +005063b0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +005063c0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +005063d0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +005063e0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +005063f0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ +00506400: 5455 2d32 322d 3635 3330 3130 0a20 202d  TU-22-653010.  -
│ │ │ +00506410: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00506420: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00506430: 302d 3533 2d41 552d 3132 2832 290a 2020  0-53-AU-12(2).  
│ │ │ +00506440: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00506450: 2d31 340a 2020 2d20 4e49 5354 2d38 3030  -14.  - NIST-800
│ │ │ +00506460: 2d35 332d 4155 2d32 2861 290a 2020 2d20  -53-AU-2(a).  - 
│ │ │ +00506470: 4e49 5354 2d38 3030 2d35 332d 4155 2d37  NIST-800-53-AU-7
│ │ │ +00506480: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00506490: 2d35 332d 4155 2d37 2832 290a 2020 2d20  -53-AU-7(2).  - 
│ │ │ +005064a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +005064b0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +005064c0: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ +005064d0: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ +005064e0: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ +005064f0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00506500: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00506510: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00506520: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00506530: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00506540: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00506550: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00506560: 6175 6469 745f 696e 7374 616c 6c65 640a  audit_installed.
│ │ │ +00506570: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +00506580: 6175 6469 7464 2069 7320 696e 7374 616c  auditd is instal
│ │ │ +00506590: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +005065a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +005065b0: 2020 206e 616d 653a 2061 7564 6974 640a     name: auditd.
│ │ │ +005065c0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +005065d0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +005065e0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +005065f0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00506600: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00506610: 4449 5341 2d53 5449 472d 5542 5455 2d32  DISA-STIG-UBTU-2
│ │ │ +00506620: 322d 3635 3330 3130 0a20 202d 204e 4953  2-653010.  - NIS
│ │ │ +00506630: 542d 3830 302d 3533 2d41 432d 3728 6129  T-800-53-AC-7(a)
│ │ │ +00506640: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00506650: 2d41 552d 3132 2832 290a 2020 2d20 4e49  -AU-12(2).  - NI
│ │ │ +00506660: 5354 2d38 3030 2d35 332d 4155 2d31 340a  ST-800-53-AU-14.
│ │ │ +00506670: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00506680: 4155 2d32 2861 290a 2020 2d20 4e49 5354  AU-2(a).  - NIST
│ │ │ +00506690: 2d38 3030 2d35 332d 4155 2d37 2831 290a  -800-53-AU-7(1).
│ │ │ +005066a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +005066b0: 4155 2d37 2832 290a 2020 2d20 4e49 5354  AU-7(2).  - NIST
│ │ │ +005066c0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +005066d0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +005066e0: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ +005066f0: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ +00506700: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ +00506710: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00506720: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00506730: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00506740: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00506750: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00506760: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00506770: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ +00506780: 745f 696e 7374 616c 6c65 640a 3c2f 636f  t_installed.
< │ │ │ +005067a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +005067b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +005067c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +005067d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +005067e0: 6431 3438 3922 2074 6162 696e 6465 783d d1489" tabindex= │ │ │ +005067f0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +00506800: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00506810: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00506820: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00506830: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00506840: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00506850: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00506860: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +00506900: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00506950: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +005068e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00506910: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00506930: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00506940: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00506960: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00506970: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00506990: 7564 6520 696e 7374 616c 6c5f 6175 6469  ude install_audi
│ │ │ +005069a0: 7464 0a0a 636c 6173 7320 696e 7374 616c  td..class instal
│ │ │ +005069b0: 6c5f 6175 6469 7464 207b 0a20 2070 6163  l_auditd {.  pac
│ │ │ +005069c0: 6b61 6765 207b 2027 6175 6469 7464 273a  kage { 'auditd':
│ │ │ +005069d0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +005069e0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +005069f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ +00506ab0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00506ac0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00506ad0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]]
│ │ │ +00506b20: 0a6e 616d 6520 3d20 2261 7564 6974 6422  .name = "auditd"
│ │ │ +00506b30: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00506b40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -00508970: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00508980: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -005089e0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -005089f0: 6c65 6420 3d20 5b22 6175 6469 7464 225d  led = ["auditd"]
│ │ │ -00508a00: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ -00508ac0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00508ad0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00508b50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00508b70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00508bc0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -00508c10: 6175 6469 7464 0a0a 636c 6173 7320 656e  auditd..class en
│ │ │ -00508c20: 6162 6c65 5f61 7564 6974 6420 7b0a 2020  able_auditd {.  
│ │ │ -00508c30: 7365 7276 6963 6520 7b27 6175 6469 7464  service {'auditd
│ │ │ -00508c40: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00508c50: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -00508c60: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -00508c70: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -00508c90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00508ca0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00508cb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00508cc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00508cd0: 6431 3439 3522 2074 6162 696e 6465 783d d1495" tabindex= │ │ │ -00508ce0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -00508cf0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -00508d00: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -00508d10: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -00508d20: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -00508d30: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00508d40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00508d50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ -00508b80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00508b90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00508bd0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00508be0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00508de0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00508df0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00508e40: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00508e80: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00508e90: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00508ea0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00508eb0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00508ec0: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ -00508ed0: 532d 352e 342e 312e 310a 2020 2d20 4449  S-5.4.1.1.  - DI
│ │ │ -00508ee0: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ -00508ef0: 3635 3330 3135 0a20 202d 204e 4953 542d  653015.  - NIST-
│ │ │ -00508f00: 3830 302d 3137 312d 332e 332e 310a 2020  800-171-3.3.1.  
│ │ │ -00508f10: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -00508f20: 2e33 2e32 0a20 202d 204e 4953 542d 3830  .3.2.  - NIST-80
│ │ │ -00508f30: 302d 3137 312d 332e 332e 360a 2020 2d20  0-171-3.3.6.  - 
│ │ │ -00508f40: 4e49 5354 2d38 3030 2d35 332d 4143 2d32  NIST-800-53-AC-2
│ │ │ -00508f50: 2867 290a 2020 2d20 4e49 5354 2d38 3030  (g).  - NIST-800
│ │ │ -00508f60: 2d35 332d 4143 2d36 2839 290a 2020 2d20  -53-AC-6(9).  - 
│ │ │ -00508f70: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -00508f80: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -00508f90: 332d 4155 2d31 3228 6329 0a20 202d 204e  3-AU-12(c).  - N
│ │ │ -00508fa0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ -00508fb0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -00508fc0: 2d35 332d 4155 2d32 2864 290a 2020 2d20  -53-AU-2(d).  - 
│ │ │ -00508fd0: 4e49 5354 2d38 3030 2d35 332d 4155 2d33  NIST-800-53-AU-3
│ │ │ -00508fe0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00508ff0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -00509000: 542d 3830 302d 3533 2d53 492d 3428 3233  T-800-53-SI-4(23
│ │ │ -00509010: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00509020: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ -00509030: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ -00509040: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ -00509050: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00509060: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00509070: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00509080: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00509090: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -005090a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -005090b0: 640a 2020 2d20 7365 7276 6963 655f 6175  d.  - service_au
│ │ │ -005090c0: 6469 7464 5f65 6e61 626c 6564 0a0a 2d20  ditd_enabled..- 
│ │ │ -005090d0: 6e61 6d65 3a20 456e 6162 6c65 2061 7564  name: Enable aud
│ │ │ -005090e0: 6974 6420 5365 7276 6963 6520 2d20 456e  itd Service - En
│ │ │ -005090f0: 6162 6c65 2073 6572 7669 6365 2061 7564  able service aud
│ │ │ -00509100: 6974 640a 2020 626c 6f63 6b3a 0a0a 2020  itd.  block:..  
│ │ │ -00509110: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00509120: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00509130: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00509140: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -00509150: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -00509160: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -00509170: 653a 2045 6e61 626c 6520 6175 6469 7464  e: Enable auditd
│ │ │ -00509180: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -00509190: 6520 5365 7276 6963 6520 6175 6469 7464  e Service auditd
│ │ │ -005091a0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -005091b0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -005091c0: 2020 2020 6e61 6d65 3a20 6175 6469 7464      name: auditd
│ │ │ -005091d0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -005091e0: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -005091f0: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -00509200: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -00509210: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -00509220: 6175 6469 7464 2220 696e 2061 6e73 6962  auditd" in ansib
│ │ │ -00509230: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00509240: 7327 0a20 2074 6167 733a 0a20 202d 2043  s'.  tags:.  - C
│ │ │ -00509250: 4a49 532d 352e 342e 312e 310a 2020 2d20  JIS-5.4.1.1.  - 
│ │ │ -00509260: 4449 5341 2d53 5449 472d 5542 5455 2d32  DISA-STIG-UBTU-2
│ │ │ -00509270: 322d 3635 3330 3135 0a20 202d 204e 4953  2-653015.  - NIS
│ │ │ -00509280: 542d 3830 302d 3137 312d 332e 332e 310a  T-800-171-3.3.1.
│ │ │ -00509290: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -005092a0: 2d33 2e33 2e32 0a20 202d 204e 4953 542d  -3.3.2.  - NIST-
│ │ │ -005092b0: 3830 302d 3137 312d 332e 332e 360a 2020  800-171-3.3.6.  
│ │ │ -005092c0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -005092d0: 2d32 2867 290a 2020 2d20 4e49 5354 2d38  -2(g).  - NIST-8
│ │ │ -005092e0: 3030 2d35 332d 4143 2d36 2839 290a 2020  00-53-AC-6(9).  
│ │ │ -005092f0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00509300: 2d31 300a 2020 2d20 4e49 5354 2d38 3030  -10.  - NIST-800
│ │ │ -00509310: 2d35 332d 4155 2d31 3228 6329 0a20 202d  -53-AU-12(c).  -
│ │ │ -00509320: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00509330: 3134 2831 290a 2020 2d20 4e49 5354 2d38  14(1).  - NIST-8
│ │ │ -00509340: 3030 2d35 332d 4155 2d32 2864 290a 2020  00-53-AU-2(d).  
│ │ │ -00509350: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00509360: 2d33 0a20 202d 204e 4953 542d 3830 302d  -3.  - NIST-800-
│ │ │ -00509370: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00509380: 4953 542d 3830 302d 3533 2d53 492d 3428  IST-800-53-SI-4(
│ │ │ -00509390: 3233 290a 2020 2d20 5043 492d 4453 532d  23).  - PCI-DSS-
│ │ │ -005093a0: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ -005093b0: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ -005093c0: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ -005093d0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -005093e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -005093f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00509400: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00509410: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00509420: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00509430: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00509440: 6175 6469 7464 5f65 6e61 626c 6564 0a20  auditd_enabled. 
│ │ │ -00509450: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -00509460: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -00509470: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ -00509480: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00509490: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -005094a0: 2d20 2722 6175 6469 7464 2220 696e 2061  - '"auditd" in a
│ │ │ -005094b0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -005094c0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
< │ │ │ +00508a40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00508a50: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00508dd0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00508e00: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00508e10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00508e50: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00508e60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +00508a10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00508a30: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00508a60: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00508a80: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00508ac0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00508ad0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00508ae0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00508af0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00508b00: 2020 2d20 434a 4953 2d35 2e34 2e31 2e31    - CJIS-5.4.1.1
│ │ │ +00508b10: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ +00508b20: 4254 552d 3232 2d36 3533 3031 350a 2020  BTU-22-653015.  
│ │ │ +00508b30: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00508b40: 2e33 2e31 0a20 202d 204e 4953 542d 3830  .3.1.  - NIST-80
│ │ │ +00508b50: 302d 3137 312d 332e 332e 320a 2020 2d20  0-171-3.3.2.  - 
│ │ │ +00508b60: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ +00508b70: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ +00508b80: 3533 2d41 432d 3228 6729 0a20 202d 204e  53-AC-2(g).  - N
│ │ │ +00508b90: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ +00508ba0: 3929 0a20 202d 204e 4953 542d 3830 302d  9).  - NIST-800-
│ │ │ +00508bb0: 3533 2d41 552d 3130 0a20 202d 204e 4953  53-AU-10.  - NIS
│ │ │ +00508bc0: 542d 3830 302d 3533 2d41 552d 3132 2863  T-800-53-AU-12(c
│ │ │ +00508bd0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00508be0: 332d 4155 2d31 3428 3129 0a20 202d 204e  3-AU-14(1).  - N
│ │ │ +00508bf0: 4953 542d 3830 302d 3533 2d41 552d 3228  IST-800-53-AU-2(
│ │ │ +00508c00: 6429 0a20 202d 204e 4953 542d 3830 302d  d).  - NIST-800-
│ │ │ +00508c10: 3533 2d41 552d 330a 2020 2d20 4e49 5354  53-AU-3.  - NIST
│ │ │ +00508c20: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00508c30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00508c40: 5349 2d34 2832 3329 0a20 202d 2050 4349  SI-4(23).  - PCI
│ │ │ +00508c50: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ +00508c60: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +00508c70: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +00508c80: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ +00508c90: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00508ca0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00508cb0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00508cc0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00508cd0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00508ce0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00508cf0: 7669 6365 5f61 7564 6974 645f 656e 6162  vice_auditd_enab
│ │ │ +00508d00: 6c65 640a 0a2d 206e 616d 653a 2045 6e61  led..- name: Ena
│ │ │ +00508d10: 626c 6520 6175 6469 7464 2053 6572 7669  ble auditd Servi
│ │ │ +00508d20: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ +00508d30: 6963 6520 6175 6469 7464 0a20 2062 6c6f  ice auditd.  blo
│ │ │ +00508d40: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ +00508d50: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00508d60: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ +00508d70: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00508d80: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ +00508d90: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ +00508da0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ +00508db0: 2061 7564 6974 6420 5365 7276 6963 6520   auditd Service 
│ │ │ +00508dc0: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ +00508dd0: 2061 7564 6974 640a 2020 2020 616e 7369   auditd.    ansi
│ │ │ +00508de0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00508df0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00508e00: 2061 7564 6974 640a 2020 2020 2020 656e   auditd.      en
│ │ │ +00508e10: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ +00508e20: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ +00508e30: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ +00508e40: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ +00508e50: 2020 202d 2027 2261 7564 6974 6422 2069     - '"auditd" i
│ │ │ +00508e60: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00508e70: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00508e80: 3a0a 2020 2d20 434a 4953 2d35 2e34 2e31  :.  - CJIS-5.4.1
│ │ │ +00508e90: 2e31 0a20 202d 2044 4953 412d 5354 4947  .1.  - DISA-STIG
│ │ │ +00508ea0: 2d55 4254 552d 3232 2d36 3533 3031 350a  -UBTU-22-653015.
│ │ │ +00508eb0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +00508ec0: 2d33 2e33 2e31 0a20 202d 204e 4953 542d  -3.3.1.  - NIST-
│ │ │ +00508ed0: 3830 302d 3137 312d 332e 332e 320a 2020  800-171-3.3.2.  
│ │ │ +00508ee0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00508ef0: 2e33 2e36 0a20 202d 204e 4953 542d 3830  .3.6.  - NIST-80
│ │ │ +00508f00: 302d 3533 2d41 432d 3228 6729 0a20 202d  0-53-AC-2(g).  -
│ │ │ +00508f10: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00508f20: 3628 3929 0a20 202d 204e 4953 542d 3830  6(9).  - NIST-80
│ │ │ +00508f30: 302d 3533 2d41 552d 3130 0a20 202d 204e  0-53-AU-10.  - N
│ │ │ +00508f40: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ +00508f50: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ +00508f60: 2d35 332d 4155 2d31 3428 3129 0a20 202d  -53-AU-14(1).  -
│ │ │ +00508f70: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00508f80: 3228 6429 0a20 202d 204e 4953 542d 3830  2(d).  - NIST-80
│ │ │ +00508f90: 302d 3533 2d41 552d 330a 2020 2d20 4e49  0-53-AU-3.  - NI
│ │ │ +00508fa0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00508fb0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00508fc0: 332d 5349 2d34 2832 3329 0a20 202d 2050  3-SI-4(23).  - P
│ │ │ +00508fd0: 4349 2d44 5353 2d52 6571 2d31 302e 310a  CI-DSS-Req-10.1.
│ │ │ +00508fe0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +00508ff0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00509000: 2d31 302e 322e 310a 2020 2d20 656e 6162  -10.2.1.  - enab
│ │ │ +00509010: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00509020: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00509030: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00509040: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00509050: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00509060: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00509070: 6572 7669 6365 5f61 7564 6974 645f 656e  ervice_auditd_en
│ │ │ +00509080: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00509090: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +005090a0: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +005090b0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +005090c0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +005090d0: 6765 7327 0a20 202d 2027 2261 7564 6974  ges'.  - '"audit
│ │ │ +005090e0: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ +005090f0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
R │ │ │ +005091b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +005091c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00509260: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00509300: 636c 7564 6520 656e 6162 6c65 5f61 7564  clude enable_aud
│ │ │ +00509310: 6974 640a 0a63 6c61 7373 2065 6e61 626c  itd..class enabl
│ │ │ +00509320: 655f 6175 6469 7464 207b 0a20 2073 6572  e_auditd {.  ser
│ │ │ +00509330: 7669 6365 207b 2761 7564 6974 6427 3a0a  vice {'auditd':.
│ │ │ +00509340: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +00509350: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ +00509360: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ +00509370: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00509380: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00509430: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00509440: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00509450: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +005094a0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +005094b0: 5d0a 656e 6162 6c65 6420 3d20 5b22 6175  ].enabled = ["au
│ │ │ +005094c0: 6469 7464 225d 0a3c 2f63 6f64 653e 3c2f  ditd"].
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -187,14 +170,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -851,27 +851,14 @@ │ │ │ │ $ apt-get remove prelink │ │ │ │ The use of the prelink package can interfere with the operation of AIDE since it │ │ │ │ Rationale: binaries. Prelinking can also increase damage caused by vulnerability in a common library │ │ │ │ like libc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_prelink_removed │ │ │ │ References: _c_i_s 1.5.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_prelink │ │ │ │ - │ │ │ │ -class remove_prelink { │ │ │ │ - package { 'prelink': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Check If Prelinked Is Installed │ │ │ │ ansible.builtin.stat: │ │ │ │ @@ -905,14 +892,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_disruption │ │ │ │ - medium_complexity │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_prelink_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_prelink │ │ │ │ + │ │ │ │ +class remove_prelink { │ │ │ │ + package { 'prelink': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ if [[ -f /usr/sbin/prelink ]]; │ │ │ │ @@ -2155,27 +2155,14 @@ │ │ │ │ Rationale: system. A graphical environment is unnecessary for certain types of systems including a │ │ │ │ virtualization hypervisor. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_gdm_removed │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 1.7.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_gdm3 │ │ │ │ - │ │ │ │ -class remove_gdm3 { │ │ │ │ - package { 'gdm3': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2202,14 +2189,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_gdm_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_gdm3 │ │ │ │ + │ │ │ │ +class remove_gdm3 { │ │ │ │ + package { 'gdm3': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'gdm3' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -2260,31 +2260,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2311,14 +2294,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -8173,31 +8173,14 @@ │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -8218,14 +8201,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -8247,31 +8247,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215010 │ │ │ │ _s_t_i_g_r_e_f SV-260478r991587_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260478 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -8294,14 +8277,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-215010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -8316,31 +8316,14 @@ │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -8349,14 +8332,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -11380,31 +11380,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access │ │ │ │ Control system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -11414,14 +11397,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -11441,31 +11441,14 @@ │ │ │ │ _o_s_-_s_r_g 000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG-OS-000324-GPOS- │ │ │ │ 00125, SRG-OS-000370-GPOS-00155 │ │ │ │ References: _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ _s_t_i_g_i_d UBTU-22-431010 │ │ │ │ _s_t_i_g_r_e_f SV-260556r958702_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260556 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -11476,14 +11459,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-431010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -12117,31 +12117,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an │ │ │ │ Rationale: attacker gains root access on the local system, they could tamper with or remove log data │ │ │ │ that is stored on the local system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12162,14 +12145,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12197,31 +12197,14 @@ │ │ │ │ system is compromised. Additionally, centralized logs facilitate correlation of events │ │ │ │ across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12257,14 +12240,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12290,31 +12290,14 @@ │ │ │ │ Rationale: determine cause of failure and any information necessary to return to operations with │ │ │ │ least disruption to system processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.2.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12349,14 +12332,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -13639,27 +13639,14 @@ │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -13680,14 +13667,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -20288,31 +20288,14 @@ │ │ │ │ nftables service The nftables service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable nftables.service │ │ │ │ Rationale: The nftables service restores the nftables rules from the rules files referenced in the / │ │ │ │ etc/sysconfig/nftables.conf file during boot or the starting of the nftables service │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_enabled │ │ │ │ References: _c_i_s 4.2.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_nftables │ │ │ │ - │ │ │ │ -class enable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -20346,14 +20329,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_enabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_nftables │ │ │ │ + │ │ │ │ +class enable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -20377,50 +20377,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: nftables should be disabled if another firewall service is used as it may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.3.1.2 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nftables.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nftables.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nftables │ │ │ │ - │ │ │ │ -class disable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -20476,14 +20440,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nftables.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nftables.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nftables │ │ │ │ + │ │ │ │ +class disable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -21859,50 +21859,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t AC-18(a), AC-18(3), CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["bluetooth"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: bluetooth.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: bluetooth.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_bluetooth │ │ │ │ - │ │ │ │ -class disable_bluetooth { │ │ │ │ - service {'bluetooth': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -21966,14 +21930,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_bluetooth_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: bluetooth.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: bluetooth.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_bluetooth │ │ │ │ + │ │ │ │ +class disable_bluetooth { │ │ │ │ + service {'bluetooth': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["bluetooth"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -29016,27 +29016,14 @@ │ │ │ │ $ apt-get remove autofs │ │ │ │ With automounting enabled anyone with physical access could attach a USB drive or disc │ │ │ │ Rationale: and have its contents available in the filesystem even if they lacked permissions to │ │ │ │ mount it themselves. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_autofs_removed │ │ │ │ References: _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_autofs │ │ │ │ - │ │ │ │ -class remove_autofs { │ │ │ │ - package { 'autofs': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove autofs Package: Ensure autofs is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -29045,14 +29032,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_autofs_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_autofs │ │ │ │ + │ │ │ │ +class remove_autofs { │ │ │ │ + package { 'autofs': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove autofs │ │ │ │ @@ -29109,50 +29109,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.18.1.4, A.6.2.1, A.6.2.2, A.7.1.1, │ │ │ │ A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-3, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["autofs"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: autofs.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: autofs.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_autofs │ │ │ │ - │ │ │ │ -class disable_autofs { │ │ │ │ - service {'autofs': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -29213,14 +29177,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_autofs_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "autofs" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: autofs.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: autofs.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_autofs │ │ │ │ + │ │ │ │ +class disable_autofs { │ │ │ │ + service {'autofs': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["autofs"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'autofs' 2>/dev/null | grep - │ │ │ │ @@ -35248,50 +35248,14 @@ │ │ │ │ $ sudo systemctl mask --now apport.service │ │ │ │ The Apport service modifies the kernel fs.suid_dumpable configuration at runtime which │ │ │ │ Rationale: prevents other hardening from being persistent. Disabling the service prevents this │ │ │ │ behavior. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_apport_disabled │ │ │ │ References: _c_i_s 1.5.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apport"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apport.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apport.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apport │ │ │ │ - │ │ │ │ -class disable_apport { │ │ │ │ - service {'apport': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35341,14 +35305,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_apport_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"apport" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apport.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apport.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apport │ │ │ │ + │ │ │ │ +class disable_apport { │ │ │ │ + service {'apport': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apport"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'apport' 2>/dev/null | grep - │ │ │ │ @@ -35400,27 +35400,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_avahi-daemon │ │ │ │ - │ │ │ │ -class remove_avahi-daemon { │ │ │ │ - package { 'avahi-daemon': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall avahi Server Package: Ensure avahi-daemon is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35432,14 +35419,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_avahi_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_avahi-daemon │ │ │ │ + │ │ │ │ +class remove_avahi-daemon { │ │ │ │ + package { 'avahi-daemon': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove avahi-daemon │ │ │ │ @@ -35484,50 +35484,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["avahi-daemon"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: avahi-daemon.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: avahi-daemon.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_avahi-daemon │ │ │ │ - │ │ │ │ -class disable_avahi-daemon { │ │ │ │ - service {'avahi-daemon': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35589,14 +35553,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi-daemon" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: avahi-daemon.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: avahi-daemon.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_avahi-daemon │ │ │ │ + │ │ │ │ +class disable_avahi-daemon { │ │ │ │ + service {'avahi-daemon': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["avahi-daemon"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'avahi-daemon' 2>/dev/null | grep - │ │ │ │ @@ -36689,31 +36689,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36740,14 +36723,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -36778,31 +36778,14 @@ │ │ │ │ SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36837,14 +36820,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38685,27 +38685,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, more and more replaced │ │ │ │ Rationale: by LDAP. NIS does not support efficiently security constraints, ACL, etc. and should not │ │ │ │ be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38714,14 +38701,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -38778,27 +38778,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_isc-dhcp-server │ │ │ │ - │ │ │ │ -class remove_isc-dhcp-server { │ │ │ │ - package { 'isc-dhcp-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure isc-dhcp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38812,14 +38799,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_isc-dhcp-server │ │ │ │ + │ │ │ │ +class remove_isc-dhcp-server { │ │ │ │ + package { 'isc-dhcp-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove isc-dhcp-server │ │ │ │ @@ -38850,50 +38850,14 @@ │ │ │ │ dhcpd6 service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd6.service │ │ │ │ Rationale: Unmanaged or unintentionally activated DHCP servers may provide faulty information to │ │ │ │ clients, interfering with the operation of a legitimate site DHCP server if there is one. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd6.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd6.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd6 │ │ │ │ - │ │ │ │ -class disable_dhcpd6 { │ │ │ │ - service {'dhcpd6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38943,14 +38907,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd6.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd6.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd6 │ │ │ │ + │ │ │ │ +class disable_dhcpd6 { │ │ │ │ + service {'dhcpd6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38994,50 +38994,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd │ │ │ │ - │ │ │ │ -class disable_dhcpd { │ │ │ │ - service {'dhcpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39093,14 +39057,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd │ │ │ │ + │ │ │ │ +class disable_dhcpd { │ │ │ │ + service {'dhcpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39152,27 +39152,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind9 │ │ │ │ - │ │ │ │ -class remove_bind9 { │ │ │ │ - package { 'bind9': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind9 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39184,14 +39171,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind9 │ │ │ │ + │ │ │ │ +class remove_bind9 { │ │ │ │ + package { 'bind9': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind9 │ │ │ │ @@ -39224,27 +39224,14 @@ │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39253,14 +39240,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -39291,50 +39291,14 @@ │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dnsmasq.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dnsmasq.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39384,14 +39348,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dnsmasq.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dnsmasq.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39446,27 +39446,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39482,14 +39469,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -39532,50 +39532,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: vsftpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: vsftpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39631,14 +39595,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: vsftpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: vsftpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39675,27 +39675,14 @@ │ │ │ │ Rationale: recommended SFTP be used if file transfer is required. Unless there is a need to run the │ │ │ │ system as a FTP server (for example, to allow anonymous downloads), it is recommended │ │ │ │ that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39706,14 +39693,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -39768,27 +39768,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39800,14 +39787,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -39849,50 +39849,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apache2.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apache2.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39948,14 +39912,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apache2.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apache2.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40000,27 +40000,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40032,14 +40019,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -40069,50 +40069,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nginx.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nginx.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40162,14 +40126,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nginx.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nginx.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40206,27 +40206,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot-core │ │ │ │ - │ │ │ │ -class remove_dovecot-core { │ │ │ │ - package { 'dovecot-core': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot-core is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40235,14 +40222,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot-core │ │ │ │ + │ │ │ │ +class remove_dovecot-core { │ │ │ │ + package { 'dovecot-core': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot-core │ │ │ │ @@ -40272,50 +40272,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dovecot.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dovecot.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40365,14 +40329,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dovecot.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dovecot.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40419,27 +40419,14 @@ │ │ │ │ command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software │ │ │ │ is removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ldap-utils │ │ │ │ - │ │ │ │ -class remove_ldap-utils { │ │ │ │ - package { 'ldap-utils': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure ldap-utils is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40448,14 +40435,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ldap-utils │ │ │ │ + │ │ │ │ +class remove_ldap-utils { │ │ │ │ + package { 'ldap-utils': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ldap-utils │ │ │ │ @@ -40501,27 +40501,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_slapd │ │ │ │ - │ │ │ │ -class remove_slapd { │ │ │ │ - package { 'slapd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure slapd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40533,14 +40520,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_slapd │ │ │ │ + │ │ │ │ +class remove_slapd { │ │ │ │ + package { 'slapd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove slapd │ │ │ │ @@ -40570,50 +40570,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up │ │ │ │ information from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software │ │ │ │ be disabled to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: slapd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: slapd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40663,14 +40627,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: slapd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: slapd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40804,27 +40804,14 @@ │ │ │ │ then this service should be disabled. The rpcbind package can be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40845,14 +40832,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40895,50 +40895,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rpcbind.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rpcbind.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40992,14 +40956,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rpcbind.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rpcbind.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -41049,50 +41049,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nfs-server.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nfs-server.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41149,14 +41113,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nfs-server.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nfs-server.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -41190,27 +41190,14 @@ │ │ │ │ these services be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ _c_i_s 2.1.9 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215040 │ │ │ │ _s_t_i_g_r_e_f SV-279937r1156364_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-279937 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41220,14 +41207,27 @@ │ │ │ │ - DISA-STIG-UBTU-22-215040 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -42351,27 +42351,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42403,14 +42390,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42467,50 +42467,14 @@ │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: xinetd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: xinetd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42568,14 +42532,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: xinetd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: xinetd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42634,27 +42634,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42670,14 +42657,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -42708,50 +42708,14 @@ │ │ │ │ disabled. The ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or │ │ │ │ NIS+ domain. This service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: ypserv.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: ypserv.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42801,14 +42765,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: ypserv.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: ypserv.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42850,27 +42850,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-client │ │ │ │ - │ │ │ │ -class remove_rsh-client { │ │ │ │ - package { 'rsh-client': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh-client is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42882,14 +42869,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-client │ │ │ │ + │ │ │ │ +class remove_rsh-client { │ │ │ │ + package { 'rsh-client': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-client │ │ │ │ @@ -42971,27 +42971,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43002,14 +42989,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -43050,27 +43050,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43082,14 +43069,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -43148,27 +43148,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43182,14 +43169,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -43235,50 +43235,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: tftpd-hpa.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: tftpd-hpa.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43334,14 +43298,50 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: tftpd-hpa.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: tftpd-hpa.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -43373,27 +43373,14 @@ │ │ │ │ package can be removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43402,14 +43389,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -43440,50 +43440,14 @@ │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rsyncd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rsyncd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsyncd │ │ │ │ - │ │ │ │ -class disable_rsyncd { │ │ │ │ - service {'rsyncd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43538,14 +43502,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rsyncd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rsyncd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsyncd │ │ │ │ + │ │ │ │ +class disable_rsyncd { │ │ │ │ + service {'rsyncd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -43595,27 +43595,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_cups │ │ │ │ - │ │ │ │ -class remove_cups { │ │ │ │ - package { 'cups': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall CUPS Package: Ensure cups is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43627,14 +43614,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_cups_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_cups │ │ │ │ + │ │ │ │ +class remove_cups { │ │ │ │ + package { 'cups': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove cups │ │ │ │ @@ -43675,50 +43675,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["cups"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: cups.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: cups.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_cups │ │ │ │ - │ │ │ │ -class disable_cups { │ │ │ │ - service {'cups': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43774,14 +43738,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_cups_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: cups.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: cups.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_cups │ │ │ │ + │ │ │ │ +class disable_cups { │ │ │ │ + service {'cups': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["cups"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -43822,27 +43822,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43851,14 +43838,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -43889,50 +43889,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be │ │ │ │ removed if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: squid.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: squid.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43983,14 +43947,50 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: squid.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: squid.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep - │ │ │ │ @@ -44033,27 +44033,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -44062,14 +44049,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -44099,50 +44099,14 @@ │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smbd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: smbd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: smbd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smbd │ │ │ │ - │ │ │ │ -class disable_smbd { │ │ │ │ - service {'smbd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -44192,14 +44156,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: smbd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: smbd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smbd │ │ │ │ + │ │ │ │ +class disable_smbd { │ │ │ │ + service {'smbd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smbd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -44241,27 +44241,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_snmp │ │ │ │ - │ │ │ │ -class remove_snmp { │ │ │ │ - package { 'snmp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -44272,14 +44259,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_snmp │ │ │ │ + │ │ │ │ +class remove_snmp { │ │ │ │ + package { 'snmp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove snmp │ │ │ │ @@ -44310,50 +44310,14 @@ │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: snmpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: snmpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -44404,14 +44368,50 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmp" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: snmpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: snmpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmp' 2>/dev/null | grep - │ │ │ │ @@ -50370,26 +50370,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -50453,14 +50441,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ @@ -50498,23 +50498,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -50578,14 +50569,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -50628,27 +50628,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.13, SR 2.6, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, │ │ │ │ References: SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.14.1.3, A.6.2.1, A.6.2.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.20 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xserver-common │ │ │ │ - │ │ │ │ -class remove_xserver-common { │ │ │ │ - package { 'xserver-common': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove the X Windows Package Group: Ensure xserver-common is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -50660,14 +50647,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xorg-x11-server-common_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xserver-common │ │ │ │ + │ │ │ │ +class remove_xserver-common { │ │ │ │ + package { 'xserver-common': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove xserver-common │ │ │ │ @@ -94975,31 +94975,14 @@ │ │ │ │ _p_c_i_d_s_s Req-10.5.3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000342-GPOS-00133 │ │ │ │ References: _c_i_s 6.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.3.3, 10.3 │ │ │ │ _s_t_i_g_i_d UBTU-22-653020 │ │ │ │ _s_t_i_g_r_e_f SV-260592r1101709_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260592 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "audispd-plugins" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_audispd-plugins │ │ │ │ - │ │ │ │ -class install_audispd-plugins { │ │ │ │ - package { 'audispd-plugins': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -95028,14 +95011,31 @@ │ │ │ │ - PCI-DSSv4-10.3.3 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit-audispd-plugins_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_audispd-plugins │ │ │ │ + │ │ │ │ +class install_audispd-plugins { │ │ │ │ + package { 'audispd-plugins': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "audispd-plugins" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -95072,31 +95072,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653010 │ │ │ │ _s_t_i_g_r_e_f SV-260590r1015022_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260590 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -95139,14 +95122,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -95212,31 +95212,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653015 │ │ │ │ _s_t_i_g_r_e_f SV-260591r1015023_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260591 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -95305,14 +95288,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2204-guide-cis_level2_workstation.html │ │ │ @@ -15143,137 +15143,137 @@ │ │ │ 0003b260: 612d 7461 7267 6574 3d22 2369 6438 2220 a-target="#id8" │ │ │ 0003b270: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 0003b280: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 0003b290: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 0003b2a0: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 0003b2b0: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 0003b2c0: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -0003b2d0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0003b2e0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0003b2f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

│ │ │ -0003b330: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -0003b340: 6d65 203d 2022 6169 6465 220a 7665 7273  me = "aide".vers
│ │ │ -0003b350: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remediat │ │ │ -0003b410: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0003b420: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0003b4e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0003b4f0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +00509250: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00509280: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00509290: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +005092d0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +005092e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -0003b4b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0003b4d0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0003b500: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0003b520: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -0003b560: 616c 6c5f 6169 6465 0a0a 636c 6173 7320  all_aide..class 
│ │ │ -0003b570: 696e 7374 616c 6c5f 6169 6465 207b 0a20  install_aide {. 
│ │ │ -0003b580: 2070 6163 6b61 6765 207b 2027 6169 6465   package { 'aide
│ │ │ -0003b590: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0003b5a0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -0003b5b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ -0003b670: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0003b680: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -0003b710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0003b730: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0003b740: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0003b750: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0003b760: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0003b780: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -0003b7c0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0003b7d0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -0003b7e0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -0003b7f0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -0003b800: 2020 2d20 434a 4953 2d35 2e31 302e 312e    - CJIS-5.10.1.
│ │ │ -0003b810: 330a 2020 2d20 4449 5341 2d53 5449 472d  3.  - DISA-STIG-
│ │ │ -0003b820: 5542 5455 2d32 322d 3635 3130 3130 0a20  UBTU-22-651010. 
│ │ │ -0003b830: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0003b840: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -0003b850: 5353 2d52 6571 2d31 312e 350a 2020 2d20  SS-Req-11.5.  - 
│ │ │ -0003b860: 5043 492d 4453 5376 342d 3131 2e35 2e32  PCI-DSSv4-11.5.2
│ │ │ -0003b870: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0003b880: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0003b890: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0003b8a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0003b8b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0003b8c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0003b8d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0003b8e0: 6169 6465 5f69 6e73 7461 6c6c 6564 0a0a  aide_installed..
│ │ │ -0003b8f0: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ -0003b900: 6964 6520 6973 2069 6e73 7461 6c6c 6564  ide is installed
│ │ │ -0003b910: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0003b920: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0003b930: 6e61 6d65 3a20 6169 6465 0a20 2020 2073  name: aide.    s
│ │ │ -0003b940: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -0003b950: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0003b960: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0003b970: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -0003b980: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ -0003b990: 352e 3130 2e31 2e33 0a20 202d 2044 4953  5.10.1.3.  - DIS
│ │ │ -0003b9a0: 412d 5354 4947 2d55 4254 552d 3232 2d36  A-STIG-UBTU-22-6
│ │ │ -0003b9b0: 3531 3031 300a 2020 2d20 4e49 5354 2d38  51010.  - NIST-8
│ │ │ -0003b9c0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0003b9d0: 2d20 5043 492d 4453 532d 5265 712d 3131  - PCI-DSS-Req-11
│ │ │ -0003b9e0: 2e35 0a20 202d 2050 4349 2d44 5353 7634  .5.  - PCI-DSSv4
│ │ │ -0003b9f0: 2d31 312e 352e 320a 2020 2d20 656e 6162  -11.5.2.  - enab
│ │ │ -0003ba00: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0003ba10: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0003ba20: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0003ba30: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0003ba40: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0003ba50: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0003ba60: 6163 6b61 6765 5f61 6964 655f 696e 7374  ackage_aide_inst
│ │ │ -0003ba70: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


Complexity: │ │ │ +0003b370: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0003b390: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0003b3b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0003b3e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0003b3f0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0003b400: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +0003b420: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0003b430: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0003b440: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0003b450: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0003b460: 202d 2043 4a49 532d 352e 3130 2e31 2e33   - CJIS-5.10.1.3
│ │ │ +0003b470: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ +0003b480: 4254 552d 3232 2d36 3531 3031 300a 2020  BTU-22-651010.  
│ │ │ +0003b490: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0003b4a0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +0003b4b0: 532d 5265 712d 3131 2e35 0a20 202d 2050  S-Req-11.5.  - P
│ │ │ +0003b4c0: 4349 2d44 5353 7634 2d31 312e 352e 320a  CI-DSSv4-11.5.2.
│ │ │ +0003b4d0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0003b4e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0003b4f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0003b500: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0003b510: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0003b520: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0003b530: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +0003b540: 6964 655f 696e 7374 616c 6c65 640a 0a2d  ide_installed..-
│ │ │ +0003b550: 206e 616d 653a 2045 6e73 7572 6520 6169   name: Ensure ai
│ │ │ +0003b560: 6465 2069 7320 696e 7374 616c 6c65 640a  de is installed.
│ │ │ +0003b570: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0003b580: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0003b590: 616d 653a 2061 6964 650a 2020 2020 7374  ame: aide.    st
│ │ │ +0003b5a0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +0003b5b0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0003b5c0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0003b5d0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0003b5e0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35  tags:.  - CJIS-5
│ │ │ +0003b5f0: 2e31 302e 312e 330a 2020 2d20 4449 5341  .10.1.3.  - DISA
│ │ │ +0003b600: 2d53 5449 472d 5542 5455 2d32 322d 3635  -STIG-UBTU-22-65
│ │ │ +0003b610: 3130 3130 0a20 202d 204e 4953 542d 3830  1010.  - NIST-80
│ │ │ +0003b620: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0003b630: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ +0003b640: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ +0003b650: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ +0003b660: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0003b670: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0003b680: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0003b690: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0003b6a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0003b6b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0003b6c0: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ +0003b6d0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation P │ │ │ +0003b790: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0003b7a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0003b870: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0003b880: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0003b8d0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ +0003b8e0: 6964 650a 0a63 6c61 7373 2069 6e73 7461  ide..class insta
│ │ │ +0003b8f0: 6c6c 5f61 6964 6520 7b0a 2020 7061 636b  ll_aide {.  pack
│ │ │ +0003b900: 6167 6520 7b20 2761 6964 6527 3a0a 2020  age { 'aide':.  
│ │ │ +0003b910: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0003b920: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +0003b930: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0003b940: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +0003b9f0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0003ba00: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ +0003ba50: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +0003ba60: 2022 6169 6465 220a 7665 7273 696f 6e20   "aide".version 
│ │ │ +0003ba70: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediation │ │ │ -00043f10: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00043f20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ +0003b850: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0003b860: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0003b8a0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0003b8b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00043fa0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00043fc0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00044010: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00044040: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00044060: 655f 7072 656c 696e 6b0a 0a63 6c61 7373  e_prelink..class
│ │ │ -00044070: 2072 656d 6f76 655f 7072 656c 696e 6b20   remove_prelink 
│ │ │ -00044080: 7b0a 2020 7061 636b 6167 6520 7b20 2770  {.  package { 'p
│ │ │ -00044090: 7265 6c69 6e6b 273a 0a20 2020 2065 6e73  relink':.    ens
│ │ │ -000440a0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -000440b0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ -00044170: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00044180: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00044190: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000441c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000441d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000441e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000441f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00044200: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
low
Disr │ │ │ -00043fd0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00043fe0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00044020: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00044030: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ -00044210: 6974 793a 3c2f 7468 3e3c 7464 3e6d 6564 ity:med │ │ │ -00044220: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Disruption: │ │ │ -00044240: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00044260: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00044270: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -000442b0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000442c0: 653a 2043 6865 636b 2049 6620 5072 656c  e: Check If Prel
│ │ │ -000442d0: 696e 6b65 6420 4973 2049 6e73 7461 6c6c  inked Is Install
│ │ │ -000442e0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000442f0: 6c74 696e 2e73 7461 743a 0a20 2020 2070  ltin.stat:.    p
│ │ │ -00044300: 6174 683a 202f 7573 722f 7362 696e 2f70  ath: /usr/sbin/p
│ │ │ -00044310: 7265 6c69 6e6b 0a20 2020 2067 6574 5f63  relink.    get_c
│ │ │ -00044320: 6865 636b 7375 6d3a 2066 616c 7365 0a20  hecksum: false. 
│ │ │ -00044330: 2072 6567 6973 7465 723a 2070 7265 6c69   register: preli
│ │ │ -00044340: 6e6b 0a20 2074 6167 733a 0a20 202d 2064  nk.  tags:.  - d
│ │ │ -00044350: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00044360: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00044370: 6f6e 0a20 202d 206d 6564 6975 6d5f 636f  on.  - medium_co
│ │ │ -00044380: 6d70 6c65 7869 7479 0a20 202d 206d 6564  mplexity.  - med
│ │ │ -00044390: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000443a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000443b0: 640a 2020 2d20 7061 636b 6167 655f 7072  d.  - package_pr
│ │ │ -000443c0: 656c 696e 6b5f 7265 6d6f 7665 640a 0a2d  elink_removed..-
│ │ │ -000443d0: 206e 616d 653a 2052 6573 746f 7265 2050   name: Restore P
│ │ │ -000443e0: 7265 6c69 6e6b 6564 2042 696e 6172 6965  relinked Binarie
│ │ │ -000443f0: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ -00044400: 7469 6e2e 636f 6d6d 616e 643a 0a20 2020  tin.command:.   
│ │ │ -00044410: 2063 6d64 3a20 7072 656c 696e 6b20 2d75   cmd: prelink -u
│ │ │ -00044420: 610a 2020 7768 656e 3a20 7072 656c 696e  a.  when: prelin
│ │ │ -00044430: 6b2e 7374 6174 2e65 7869 7374 730a 2020  k.stat.exists.  
│ │ │ -00044440: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -00044450: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00044460: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00044470: 2d20 6d65 6469 756d 5f63 6f6d 706c 6578  - medium_complex
│ │ │ -00044480: 6974 790a 2020 2d20 6d65 6469 756d 5f73  ity.  - medium_s
│ │ │ -00044490: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000444a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000444b0: 2070 6163 6b61 6765 5f70 7265 6c69 6e6b   package_prelink
│ │ │ -000444c0: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ -000444d0: 3a20 456e 7375 7265 2070 7265 6c69 6e6b  : Ensure prelink
│ │ │ -000444e0: 2069 7320 5265 6d6f 7665 640a 2020 616e   is Removed.  an
│ │ │ -000444f0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00044500: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00044510: 2070 7265 6c69 6e6b 0a20 2020 2073 7461   prelink.    sta
│ │ │ -00044520: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00044530: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00044540: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00044550: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00044560: 6564 6975 6d5f 636f 6d70 6c65 7869 7479  edium_complexity
│ │ │ -00044570: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00044580: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00044590: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000445a0: 636b 6167 655f 7072 656c 696e 6b5f 7265  ckage_prelink_re
│ │ │ -000445b0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


│ │ │ +00043fa0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00043fe0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:< │ │ │ +00043fb0: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ +00043fd0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00044000: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00044020: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00044050: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4368  - name: Ch
│ │ │ +00044060: 6563 6b20 4966 2050 7265 6c69 6e6b 6564  eck If Prelinked
│ │ │ +00044070: 2049 7320 496e 7374 616c 6c65 640a 2020   Is Installed.  
│ │ │ +00044080: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00044090: 7374 6174 3a0a 2020 2020 7061 7468 3a20  stat:.    path: 
│ │ │ +000440a0: 2f75 7372 2f73 6269 6e2f 7072 656c 696e  /usr/sbin/prelin
│ │ │ +000440b0: 6b0a 2020 2020 6765 745f 6368 6563 6b73  k.    get_checks
│ │ │ +000440c0: 756d 3a20 6661 6c73 650a 2020 7265 6769  um: false.  regi
│ │ │ +000440d0: 7374 6572 3a20 7072 656c 696e 6b0a 2020  ster: prelink.  
│ │ │ +000440e0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +000440f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00044100: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00044110: 2d20 6d65 6469 756d 5f63 6f6d 706c 6578  - medium_complex
│ │ │ +00044120: 6974 790a 2020 2d20 6d65 6469 756d 5f73  ity.  - medium_s
│ │ │ +00044130: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00044140: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00044150: 2070 6163 6b61 6765 5f70 7265 6c69 6e6b   package_prelink
│ │ │ +00044160: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ +00044170: 3a20 5265 7374 6f72 6520 5072 656c 696e  : Restore Prelin
│ │ │ +00044180: 6b65 6420 4269 6e61 7269 6573 0a20 2061  ked Binaries.  a
│ │ │ +00044190: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +000441a0: 6f6d 6d61 6e64 3a0a 2020 2020 636d 643a  ommand:.    cmd:
│ │ │ +000441b0: 2070 7265 6c69 6e6b 202d 7561 0a20 2077   prelink -ua.  w
│ │ │ +000441c0: 6865 6e3a 2070 7265 6c69 6e6b 2e73 7461  hen: prelink.sta
│ │ │ +000441d0: 742e 6578 6973 7473 0a20 2074 6167 733a  t.exists.  tags:
│ │ │ +000441e0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +000441f0: 6174 6567 790a 2020 2d20 6c6f 775f 6469  ategy.  - low_di
│ │ │ +00044200: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00044210: 6975 6d5f 636f 6d70 6c65 7869 7479 0a20  ium_complexity. 
│ │ │ +00044220: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00044230: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00044240: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00044250: 6167 655f 7072 656c 696e 6b5f 7265 6d6f  age_prelink_remo
│ │ │ +00044260: 7665 640a 0a2d 206e 616d 653a 2045 6e73  ved..- name: Ens
│ │ │ +00044270: 7572 6520 7072 656c 696e 6b20 6973 2052  ure prelink is R
│ │ │ +00044280: 656d 6f76 6564 0a20 2061 6e73 6962 6c65  emoved.  ansible
│ │ │ +00044290: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000442a0: 3a0a 2020 2020 6e61 6d65 3a20 7072 656c  :.    name: prel
│ │ │ +000442b0: 696e 6b0a 2020 2020 7374 6174 653a 2061  ink.    state: a
│ │ │ +000442c0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +000442d0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +000442e0: 6779 0a20 202d 206c 6f77 5f64 6973 7275  gy.  - low_disru
│ │ │ +000442f0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00044300: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00044310: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00044320: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00044330: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00044340: 5f70 7265 6c69 6e6b 5f72 656d 6f76 6564  _prelink_removed
│ │ │ +00044350: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00044400: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00044410: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +000444b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000444c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00044510: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00044550: 6e63 6c75 6465 2072 656d 6f76 655f 7072  nclude remove_pr
│ │ │ +00044560: 656c 696e 6b0a 0a63 6c61 7373 2072 656d  elink..class rem
│ │ │ +00044570: 6f76 655f 7072 656c 696e 6b20 7b0a 2020  ove_prelink {.  
│ │ │ +00044580: 7061 636b 6167 6520 7b20 2770 7265 6c69  package { 'preli
│ │ │ +00044590: 6e6b 273a 0a20 2020 2065 6e73 7572 6520  nk':.    ensure 
│ │ │ +000445a0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +000445b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Reme │ │ │ -0005ca70: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0005ca80: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0005ca90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ -0005cae0: 6573 5d5d 0a6e 616d 6520 3d20 2273 7564  es]].name = "sud
│ │ │ -0005caf0: 6f22 0a76 6572 7369 6f6e 203d 2022 2a22  o".version = "*"
│ │ │ -0005cb00: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -0005cbb0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0005cbc0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
C │ │ │ +000444a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000444d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000444e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00044520: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00044530: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0005cc60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0005cc70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0005ccc0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0005cd00: 6c75 6465 2069 6e73 7461 6c6c 5f73 7564  lude install_sud
│ │ │ -0005cd10: 6f0a 0a63 6c61 7373 2069 6e73 7461 6c6c  o..class install
│ │ │ -0005cd20: 5f73 7564 6f20 7b0a 2020 7061 636b 6167  _sudo {.  packag
│ │ │ -0005cd30: 6520 7b20 2773 7564 6f27 3a0a 2020 2020  e { 'sudo':.    
│ │ │ -0005cd40: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -0005cd50: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -0005cd60: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0005ce10: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0005ce20: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
C │ │ │ -0005cc50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0005cc80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0005cc90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0005ccd0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0005cce0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0005cec0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0005ced0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0005cf20: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0005cf60: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0005cf70: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0005cf80: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0005cf90: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0005cfa0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0005cfb0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0005cfc0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0005cfd0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0005cfe0: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c  -2.2.6.  - enabl
│ │ │ -0005cff0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0005d000: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0005d010: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0005d020: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0005d030: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0005d040: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0005d050: 636b 6167 655f 7375 646f 5f69 6e73 7461  ckage_sudo_insta
│ │ │ -0005d060: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -0005d070: 7375 7265 2073 7564 6f20 6973 2069 6e73  sure sudo is ins
│ │ │ -0005d080: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -0005d090: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0005d0a0: 3a0a 2020 2020 6e61 6d65 3a20 7375 646f  :.    name: sudo
│ │ │ -0005d0b0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -0005d0c0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -0005d0d0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0005d0e0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0005d0f0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0005d100: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0005d110: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ -0005d120: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -0005d130: 5353 7634 2d32 2e32 2e36 0a20 202d 2065  SSv4-2.2.6.  - e
│ │ │ -0005d140: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0005d150: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0005d160: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0005d170: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0005d180: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0005d190: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0005d1a0: 2d20 7061 636b 6167 655f 7375 646f 5f69  - package_sudo_i
│ │ │ -0005d1b0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +0005ca70: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +0005ca80: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +0005ca90: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
C │ │ │ -0005ceb0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0005cee0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0005cef0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0005cf30: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0005cf40: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +0005cb10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0005cb20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0005cb40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0005cb60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0005cb70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0005cbb0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0005cbc0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0005cbd0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0005cbe0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0005cbf0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0005cc00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0005cc10: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0005cc20: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +0005cc30: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +0005cc40: 322e 360a 2020 2d20 656e 6162 6c65 5f73 2.6. - enable_s │ │ │ +0005cc50: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0005cc60: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0005cc70: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0005cc80: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +0005cc90: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0005cca0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +0005ccb0: 6765 5f73 7564 6f5f 696e 7374 616c 6c65 ge_sudo_installe │ │ │ +0005ccc0: 640a 0a2d 206e 616d 653a 2045 6e73 7572 d..- name: Ensur │ │ │ +0005ccd0: 6520 7375 646f 2069 7320 696e 7374 616c e sudo is instal │ │ │ +0005cce0: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +0005ccf0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +0005cd00: 2020 206e 616d 653a 2073 7564 6f0a 2020 name: sudo. │ │ │ +0005cd10: 2020 7374 6174 653a 2070 7265 7365 6e74 state: present │ │ │ +0005cd20: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ +0005cd30: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ +0005cd40: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +0005cd50: 270a 2020 7461 6773 3a0a 2020 2d20 4e49 '. tags:. - NI │ │ │ +0005cd60: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +0005cd70: 290a 2020 2d20 5043 492d 4453 5376 342d ). - PCI-DSSv4- │ │ │ +0005cd80: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ +0005cd90: 342d 322e 322e 360a 2020 2d20 656e 6162 4-2.2.6. - enab │ │ │ +0005cda0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0005cdb0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0005cdc0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0005cdd0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +0005cde0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0005cdf0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +0005ce00: 6163 6b61 6765 5f73 7564 6f5f 696e 7374 ackage_sudo_inst │ │ │ +0005ce10: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediation │ │ │ +0005ced0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0005cee0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0005cf60: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0005cf80: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0005cfd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0005d000: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +0005d020: 6c5f 7375 646f 0a0a 636c 6173 7320 696e  l_sudo..class in
│ │ │ +0005d030: 7374 616c 6c5f 7375 646f 207b 0a20 2070  stall_sudo {.  p
│ │ │ +0005d040: 6163 6b61 6765 207b 2027 7375 646f 273a  ackage { 'sudo':
│ │ │ +0005d050: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0005d060: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +0005d070: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ +0005d130: 4f53 4275 696c 6420 426c 7565 7072 696e  OSBuild Blueprin
│ │ │ +0005d140: 7420 736e 6970 7065 7420 e287 b23c 2f61  t snippet ...
.
│ │ │ +0005d190: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +0005d1a0: 6520 3d20 2273 7564 6f22 0a76 6572 7369  e = "sudo".versi
│ │ │ +0005d1b0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  0005d1c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -000b24a0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000b24b0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000b24c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000b2510: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ -000b2520: 2d6d 6f64 756c 6573 220a 7665 7273 696f  -modules".versio
│ │ │ -000b2530: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -000b2540: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000b25f0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000b2600: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000b2680: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -000b2710: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:< │ │ │ +0005cf70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0005cf90: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0005cfe0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0005cff0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexi │ │ │ -000b2690: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000b26a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000b26e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000b26f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000b2730: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000b2740: 7374 616c 6c5f 6c69 6270 616d 2d6d 6f64  stall_libpam-mod
│ │ │ -000b2750: 756c 6573 0a0a 636c 6173 7320 696e 7374  ules..class inst
│ │ │ -000b2760: 616c 6c5f 6c69 6270 616d 2d6d 6f64 756c  all_libpam-modul
│ │ │ -000b2770: 6573 207b 0a20 2070 6163 6b61 6765 207b  es {.  package {
│ │ │ -000b2780: 2027 6c69 6270 616d 2d6d 6f64 756c 6573   'libpam-modules
│ │ │ -000b2790: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -000b27a0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -000b27b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -000b2870: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -000b2880: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000b2900: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000b2910: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000b2920: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000b2960: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000b2970: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000b2990: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000b29b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000b29c0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000b29d0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000b29e0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -000b29f0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -000b2a00: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -000b2a10: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000b2a20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000b2a30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000b2a40: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000b2a50: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000b2a60: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000b2a70: 5f70 616d 5f6d 6f64 756c 6573 5f69 6e73  _pam_modules_ins
│ │ │ -000b2a80: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -000b2a90: 456e 7375 7265 206c 6962 7061 6d2d 6d6f  Ensure libpam-mo
│ │ │ -000b2aa0: 6475 6c65 7320 6973 2069 6e73 7461 6c6c  dules is install
│ │ │ -000b2ab0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000b2ac0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -000b2ad0: 2020 6e61 6d65 3a20 6c69 6270 616d 2d6d    name: libpam-m
│ │ │ -000b2ae0: 6f64 756c 6573 0a20 2020 2073 7461 7465  odules.    state
│ │ │ -000b2af0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000b2b00: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ -000b2b10: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ -000b2b20: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -000b2b30: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -000b2b40: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000b2b50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000b2b60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000b2b70: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000b2b80: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000b2b90: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000b2ba0: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ -000b2bb0: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000b24c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000b24d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000b24e0: 7365 2220 6964 3d22 6964 3137 3022 3e3c se" id="id170">< │ │ │ +000b24f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000b2500: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000b2510: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000b2520: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000b2530: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000b2540: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000b2550: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000b2590: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000b25a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000b25c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000b25d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +000b25f0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000b2600: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000b2610: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000b2620: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000b2630: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +000b2640: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000b2650: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000b2660: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000b2670: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000b2680: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000b2690: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +000b26a0: 655f 7061 6d5f 6d6f 6475 6c65 735f 696e  e_pam_modules_in
│ │ │ +000b26b0: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +000b26c0: 2045 6e73 7572 6520 6c69 6270 616d 2d6d   Ensure libpam-m
│ │ │ +000b26d0: 6f64 756c 6573 2069 7320 696e 7374 616c  odules is instal
│ │ │ +000b26e0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +000b26f0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +000b2700: 2020 206e 616d 653a 206c 6962 7061 6d2d     name: libpam-
│ │ │ +000b2710: 6d6f 6475 6c65 730a 2020 2020 7374 6174  modules.    stat
│ │ │ +000b2720: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +000b2730: 6e3a 2027 226c 6962 7061 6d2d 7275 6e74  n: '"libpam-runt
│ │ │ +000b2740: 696d 6522 2069 6e20 616e 7369 626c 655f  ime" in ansible_
│ │ │ +000b2750: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +000b2760: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +000b2770: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000b2780: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000b2790: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000b27a0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000b27b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000b27c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000b27d0: 6163 6b61 6765 5f70 616d 5f6d 6f64 756c  ackage_pam_modul
│ │ │ +000b27e0: 6573 5f69 6e73 7461 6c6c 6564 0a3c 2f63  es_installed.
│ │ │ +000b2800: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000b28a0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000b28b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000b28c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +000b2940: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000b2970: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000b2990: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000b29a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000b29c0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000b29e0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000b29f0: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ +000b2a00: 6d2d 6d6f 6475 6c65 730a 0a63 6c61 7373  m-modules..class
│ │ │ +000b2a10: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ +000b2a20: 6d6f 6475 6c65 7320 7b0a 2020 7061 636b  modules {.  pack
│ │ │ +000b2a30: 6167 6520 7b20 276c 6962 7061 6d2d 6d6f  age { 'libpam-mo
│ │ │ +000b2a40: 6475 6c65 7327 3a0a 2020 2020 656e 7375  dules':.    ensu
│ │ │ +000b2a50: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +000b2a60: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +000b2a80: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000b2a90: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000b2aa0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000b2ab0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000b2ac0: 6431 3732 2220 7461 6269 6e64 6578 3d22 d172" tabindex=" │ │ │ +000b2ad0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000b2ae0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000b2af0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000b2b00: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000b2b10: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000b2b20: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000b2b30: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000b2b40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +000b2b90: 6765 735d 5d0a 6e61 6d65 203d 2022 6c69 ges]].name = "li │ │ │ +000b2ba0: 6270 616d 2d6d 6f64 756c 6573 220a 7665 bpam-modules".ve │ │ │ +000b2bb0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f rsion = "*".
< │ │ │ 000b2bd0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000b2be0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000b2bf0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000b2c00: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000b2c10: 6431 3733 2220 7461 6269 6e64 6578 3d22 d173" tabindex=" │ │ │ 000b2c20: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -45984,133 +45984,133 @@ │ │ │ 000b39f0: 7073 6522 2064 6174 612d 7461 7267 6574 pse" data-target │ │ │ 000b3a00: 3d22 2369 6431 3735 2220 7461 6269 6e64 ="#id175" tabind │ │ │ 000b3a10: 6578 3d22 3022 2072 6f6c 653d 2262 7574 ex="0" role="but │ │ │ 000b3a20: 746f 6e22 2061 7269 612d 6578 7061 6e64 ton" aria-expand │ │ │ 000b3a30: 6564 3d22 6661 6c73 6522 2074 6974 6c65 ed="false" title │ │ │ 000b3a40: 3d22 4163 7469 7661 7465 2074 6f20 7265 ="Activate to re │ │ │ 000b3a50: 7665 616c 2220 6872 6566 3d22 2321 223e veal" href="#!"> │ │ │ -000b3a60: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000b3a70: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000b3a80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000b3ad0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000b3ae0: 2022 6c69 6270 616d 2d70 7771 7561 6c69   "libpam-pwquali
│ │ │ -000b3af0: 7479 220a 7665 7273 696f 6e20 3d20 222a  ty".version = "*
│ │ │ -000b3b00: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -000b3b10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000b3bc0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000b3bd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000b3ca0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000b3cb0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000b3d00: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -000b3d10: 6c69 6270 616d 2d70 7771 7561 6c69 7479  libpam-pwquality
│ │ │ -000b3d20: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000b3d30: 6c69 6270 616d 2d70 7771 7561 6c69 7479  libpam-pwquality
│ │ │ -000b3d40: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000b3d50: 6c69 6270 616d 2d70 7771 7561 6c69 7479  libpam-pwquality
│ │ │ -000b3d60: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -000b3d70: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -000b3d80: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -000b3e40: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -000b3e50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -000b3ed0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -000b3f60: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disru │ │ │ -000b3c80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000b3c90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000b3cd0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000b3ce0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -000b3ee0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000b3ef0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000b3f30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000b3f40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000b3f80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000b3f90: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000b3fa0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000b3fb0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -000b3fc0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -000b3fd0: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -000b3fe0: 5542 5455 2d32 322d 3231 3530 3130 0a20  UBTU-22-215010. 
│ │ │ -000b3ff0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000b4000: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000b4010: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000b4020: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000b4030: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000b4040: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000b4050: 640a 2020 2d20 7061 636b 6167 655f 7061  d.  - package_pa
│ │ │ -000b4060: 6d5f 7077 7175 616c 6974 795f 696e 7374  m_pwquality_inst
│ │ │ -000b4070: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -000b4080: 6e73 7572 6520 6c69 6270 616d 2d70 7771  nsure libpam-pwq
│ │ │ -000b4090: 7561 6c69 7479 2069 7320 696e 7374 616c  uality is instal
│ │ │ -000b40a0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -000b40b0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -000b40c0: 2020 206e 616d 653a 206c 6962 7061 6d2d     name: libpam-
│ │ │ -000b40d0: 7077 7175 616c 6974 790a 2020 2020 7374  pwquality.    st
│ │ │ -000b40e0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000b40f0: 6865 6e3a 2027 226c 6962 7061 6d2d 7275  hen: '"libpam-ru
│ │ │ -000b4100: 6e74 696d 6522 2069 6e20 616e 7369 626c  ntime" in ansibl
│ │ │ -000b4110: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -000b4120: 270a 2020 7461 6773 3a0a 2020 2d20 4449  '.  tags:.  - DI
│ │ │ -000b4130: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ -000b4140: 3231 3530 3130 0a20 202d 2065 6e61 626c  215010.  - enabl
│ │ │ -000b4150: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000b4160: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000b4170: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000b4180: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000b4190: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000b41a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000b41b0: 636b 6167 655f 7061 6d5f 7077 7175 616c  ckage_pam_pwqual
│ │ │ -000b41c0: 6974 795f 696e 7374 616c 6c65 640a 3c2f  ity_installed.
< │ │ │ +000b3b50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000b3b60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000b3bb0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000b3bc0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000b3bd0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000b3be0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +000b3bf0: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ +000b3c00: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ +000b3c10: 2d32 3135 3031 300a 2020 2d20 656e 6162  -215010.  - enab
│ │ │ +000b3c20: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000b3c30: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000b3c40: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000b3c50: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000b3c60: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000b3c70: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000b3c80: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ +000b3c90: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ +000b3ca0: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ +000b3cb0: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ +000b3cc0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +000b3cd0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000b3ce0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000b3cf0: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ +000b3d00: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ +000b3d10: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +000b3d20: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ +000b3d30: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000b3d40: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +000b3d50: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +000b3d60: 2d55 4254 552d 3232 2d32 3135 3031 300a  -UBTU-22-215010.
│ │ │ +000b3d70: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000b3d80: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000b3d90: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000b3da0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000b3db0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000b3dc0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000b3dd0: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ +000b3de0: 616d 5f70 7771 7561 6c69 7479 5f69 6e73  am_pwquality_ins
│ │ │ +000b3df0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.Remediati
│ │ │ +000b3eb0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +000b3ec0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +000b3f40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +000b3f80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +000b3b30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000b3b40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000b3b80: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000b3b90: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +000b3f50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000b3f70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000b3fa0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000b3fc0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +000b3ff0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000b4000: 7461 6c6c 5f6c 6962 7061 6d2d 7077 7175  tall_libpam-pwqu
│ │ │ +000b4010: 616c 6974 790a 0a63 6c61 7373 2069 6e73  ality..class ins
│ │ │ +000b4020: 7461 6c6c 5f6c 6962 7061 6d2d 7077 7175  tall_libpam-pwqu
│ │ │ +000b4030: 616c 6974 7920 7b0a 2020 7061 636b 6167  ality {.  packag
│ │ │ +000b4040: 6520 7b20 276c 6962 7061 6d2d 7077 7175  e { 'libpam-pwqu
│ │ │ +000b4050: 616c 6974 7927 3a0a 2020 2020 656e 7375  ality':.    ensu
│ │ │ +000b4060: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +000b4070: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +000b4090: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000b40a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000b40b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000b40c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000b40d0: 6431 3737 2220 7461 6269 6e64 6578 3d22 d177" tabindex=" │ │ │ +000b40e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000b40f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000b4100: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000b4110: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000b4120: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000b4130: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000b4140: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000b4150: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +000b41a0: 6765 735d 5d0a 6e61 6d65 203d 2022 6c69 ges]].name = "li │ │ │ +000b41b0: 6270 616d 2d70 7771 7561 6c69 7479 220a bpam-pwquality". │ │ │ +000b41c0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".
Remediation OSB │ │ │ -000b4d30: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -000b4d40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -000b4d90: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -000b4da0: 3d20 226c 6962 7061 6d2d 7275 6e74 696d  = "libpam-runtim
│ │ │ -000b4db0: 6522 0a76 6572 7369 6f6e 203d 2022 2a22  e".version = "*"
│ │ │ -000b4dc0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -000b4e80: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000b4e90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000b4f60: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000b4f70: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000b4fc0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6c  nclude install_l
│ │ │ -000b4fd0: 6962 7061 6d2d 7275 6e74 696d 650a 0a63  ibpam-runtime..c
│ │ │ -000b4fe0: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ -000b4ff0: 7061 6d2d 7275 6e74 696d 6520 7b0a 2020  pam-runtime {.  
│ │ │ -000b5000: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ -000b5010: 6d2d 7275 6e74 696d 6527 3a0a 2020 2020  m-runtime':.    
│ │ │ -000b5020: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -000b5030: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -000b5040: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000b50f0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000b5100: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000b5110: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -000b4f40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000b4f50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000b4f90: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000b4fa0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -000b51e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000b51f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000b5240: 206e 616d 653a 2045 6e73 7572 6520 6c69   name: Ensure li
│ │ │ -000b5250: 6270 616d 2d72 756e 7469 6d65 2069 7320  bpam-runtime is 
│ │ │ -000b5260: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000b5270: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000b5280: 6167 653a 0a20 2020 206e 616d 653a 206c  age:.    name: l
│ │ │ -000b5290: 6962 7061 6d2d 7275 6e74 696d 650a 2020  ibpam-runtime.  
│ │ │ -000b52a0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -000b52b0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -000b52c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000b52d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000b52e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000b52f0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000b5300: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000b5310: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000b5320: 7061 636b 6167 655f 7061 6d5f 7275 6e74  package_pam_runt
│ │ │ -000b5330: 696d 655f 696e 7374 616c 6c65 640a 3c2f  ime_installed.Remediation Ans
│ │ │ +000b4d30: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +000b4d40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:low
Disrup │ │ │ -000b51c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000b51d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000b5210: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000b5220: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +000b4e10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000b4e20: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000b4e70: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ +000b4e80: 6962 7061 6d2d 7275 6e74 696d 6520 6973  ibpam-runtime is
│ │ │ +000b4e90: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +000b4ea0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +000b4eb0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +000b4ec0: 6c69 6270 616d 2d72 756e 7469 6d65 0a20  libpam-runtime. 
│ │ │ +000b4ed0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +000b4ee0: 740a 2020 7461 6773 3a0a 2020 2d20 656e  t.  tags:.  - en
│ │ │ +000b4ef0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000b4f00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000b4f10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000b4f20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +000b4f30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000b4f40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000b4f50: 2070 6163 6b61 6765 5f70 616d 5f72 756e   package_pam_run
│ │ │ +000b4f60: 7469 6d65 5f69 6e73 7461 6c6c 6564 0a3c  time_installed.<
│ │ │ +000b4f70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000b5020: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000b5030: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disru │ │ │ +000b4df0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000b4e00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000b4e40: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000b4e50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000b50d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000b50e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000b5130: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000b5170: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ +000b5180: 7061 6d2d 7275 6e74 696d 650a 0a63 6c61  pam-runtime..cla
│ │ │ +000b5190: 7373 2069 6e73 7461 6c6c 5f6c 6962 7061  ss install_libpa
│ │ │ +000b51a0: 6d2d 7275 6e74 696d 6520 7b0a 2020 7061  m-runtime {.  pa
│ │ │ +000b51b0: 636b 6167 6520 7b20 276c 6962 7061 6d2d  ckage { 'libpam-
│ │ │ +000b51c0: 7275 6e74 696d 6527 3a0a 2020 2020 656e  runtime':.    en
│ │ │ +000b51d0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000b51e0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000b52a0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000b52b0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000b52c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000b52d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000b52e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000b52f0: 7365 2220 6964 3d22 6964 3138 3222 3e3c se" id="id182">< │ │ │ +000b5300: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000b5310: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000b5320: 6c69 6270 616d 2d72 756e 7469 6d65 220a libpam-runtime". │ │ │ +000b5330: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".Remediation OS │ │ │ -000f10a0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000f10b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000f10c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000f1100: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000f1110: 203d 2022 6170 7061 726d 6f72 2d75 7469   = "apparmor-uti
│ │ │ -000f1120: 6c73 220a 7665 7273 696f 6e20 3d20 222a  ls".version = "*
│ │ │ -000f1130: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -000f1140: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000f11f0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000f1200: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ +000b50c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000b50f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000b5100: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000b5140: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000b5150: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -000f12d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000f12e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000f1330: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -000f1340: 6170 7061 726d 6f72 2d75 7469 6c73 0a0a  apparmor-utils..
│ │ │ -000f1350: 636c 6173 7320 696e 7374 616c 6c5f 6170  class install_ap
│ │ │ -000f1360: 7061 726d 6f72 2d75 7469 6c73 207b 0a20  parmor-utils {. 
│ │ │ -000f1370: 2070 6163 6b61 6765 207b 2027 6170 7061   package { 'appa
│ │ │ -000f1380: 726d 6f72 2d75 7469 6c73 273a 0a20 2020  rmor-utils':.   
│ │ │ -000f1390: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000f13a0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000f13b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000f1470: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000f1480: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -000f12b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000f12c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000f1300: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000f1310: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -000f1550: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000f1560: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000f15b0: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ -000f15c0: 7070 6172 6d6f 722d 7574 696c 7320 6973  pparmor-utils is
│ │ │ -000f15d0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -000f15e0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -000f15f0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -000f1600: 6170 7061 726d 6f72 2d75 7469 6c73 0a20  apparmor-utils. 
│ │ │ -000f1610: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -000f1620: 740a 2020 7768 656e 3a20 616e 7369 626c  t.  when: ansibl
│ │ │ -000f1630: 655f 7669 7274 7561 6c69 7a61 7469 6f6e  e_virtualization
│ │ │ -000f1640: 5f74 7970 6520 6e6f 7420 696e 205b 2264  _type not in ["d
│ │ │ -000f1650: 6f63 6b65 7222 2c20 226c 7863 222c 2022  ocker", "lxc", "
│ │ │ -000f1660: 6f70 656e 767a 222c 2022 706f 646d 616e  openvz", "podman
│ │ │ -000f1670: 222c 2022 636f 6e74 6169 6e65 7222 5d0a  ", "container"].
│ │ │ -000f1680: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000f1690: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000f16a0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000f16b0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000f16c0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000f16d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000f16e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000f16f0: 6163 6b61 6765 5f61 7070 6172 6d6f 722d  ackage_apparmor-
│ │ │ -000f1700: 7574 696c 735f 696e 7374 616c 6c65 640a  utils_installed.
│ │ │ +000f1090: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +000f10a0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000f10b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disru │ │ │ -000f1530: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000f1540: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000f1580: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000f1590: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000f1130: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000f1150: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000f11a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Ensure 
│ │ │ +000f11f0: 6170 7061 726d 6f72 2d75 7469 6c73 2069  apparmor-utils i
│ │ │ +000f1200: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +000f1210: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +000f1220: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +000f1230: 2061 7070 6172 6d6f 722d 7574 696c 730a   apparmor-utils.
│ │ │ +000f1240: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +000f1250: 6e74 0a20 2077 6865 6e3a 2061 6e73 6962  nt.  when: ansib
│ │ │ +000f1260: 6c65 5f76 6972 7475 616c 697a 6174 696f  le_virtualizatio
│ │ │ +000f1270: 6e5f 7479 7065 206e 6f74 2069 6e20 5b22  n_type not in ["
│ │ │ +000f1280: 646f 636b 6572 222c 2022 6c78 6322 2c20  docker", "lxc", 
│ │ │ +000f1290: 226f 7065 6e76 7a22 2c20 2270 6f64 6d61  "openvz", "podma
│ │ │ +000f12a0: 6e22 2c20 2263 6f6e 7461 696e 6572 225d  n", "container"]
│ │ │ +000f12b0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +000f12c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000f12d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000f12e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000f12f0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000f1300: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000f1310: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000f1320: 7061 636b 6167 655f 6170 7061 726d 6f72  package_apparmor
│ │ │ +000f1330: 2d75 7469 6c73 5f69 6e73 7461 6c6c 6564  -utils_installed
│ │ │ +000f1340: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +000f1400: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000f1410: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +000f1160: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000f1170: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000f11b0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000f11c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +000f14e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000f14f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +000f1540: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ +000f1550: 7070 6172 6d6f 722d 7574 696c 730a 0a63  pparmor-utils..c
│ │ │ +000f1560: 6c61 7373 2069 6e73 7461 6c6c 5f61 7070  lass install_app
│ │ │ +000f1570: 6172 6d6f 722d 7574 696c 7320 7b0a 2020  armor-utils {.  
│ │ │ +000f1580: 7061 636b 6167 6520 7b20 2761 7070 6172  package { 'appar
│ │ │ +000f1590: 6d6f 722d 7574 696c 7327 3a0a 2020 2020  mor-utils':.    
│ │ │ +000f15a0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000f15b0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000f15c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000f1670: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000f1680: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000f1690: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000f16e0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000f16f0: 2022 6170 7061 726d 6f72 2d75 7469 6c73   "apparmor-utils
│ │ │ +000f1700: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  000f1710: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Reme │ │ │ -000f2510: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -000f2520: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -000f2530: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -000f2580: 6765 735d 5d0a 6e61 6d65 203d 2022 6170 ges]].name = "ap │ │ │ -000f2590: 7061 726d 6f72 220a 7665 7273 696f 6e20 parmor".version │ │ │ -000f25a0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediatio │ │ │ -000f2660: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000f2670: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -000f2730: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f2740: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +000f14c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000f14d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000f1510: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000f1520: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ -000f2700: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -000f2720: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -000f2750: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -000f2770: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -000f27b0: 616c 6c5f 6170 7061 726d 6f72 0a0a 636c  all_apparmor..cl
│ │ │ -000f27c0: 6173 7320 696e 7374 616c 6c5f 6170 7061  ass install_appa
│ │ │ -000f27d0: 726d 6f72 207b 0a20 2070 6163 6b61 6765  rmor {.  package
│ │ │ -000f27e0: 207b 2027 6170 7061 726d 6f72 273a 0a20   { 'apparmor':. 
│ │ │ -000f27f0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000f2800: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -000f2810: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000f2820: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -000f28d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000f28e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000f2960: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000f2980: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000f29d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000f2a00: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Ensure
│ │ │ -000f2a20: 2061 7070 6172 6d6f 7220 6973 2069 6e73   apparmor is ins
│ │ │ -000f2a30: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -000f2a40: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -000f2a50: 3a0a 2020 2020 6e61 6d65 3a20 6170 7061  :.    name: appa
│ │ │ -000f2a60: 726d 6f72 0a20 2020 2073 7461 7465 3a20  rmor.    state: 
│ │ │ -000f2a70: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -000f2a80: 616e 7369 626c 655f 7669 7274 7561 6c69  ansible_virtuali
│ │ │ -000f2a90: 7a61 7469 6f6e 5f74 7970 6520 6e6f 7420  zation_type not 
│ │ │ -000f2aa0: 696e 205b 2264 6f63 6b65 7222 2c20 226c  in ["docker", "l
│ │ │ -000f2ab0: 7863 222c 2022 6f70 656e 767a 222c 2022  xc", "openvz", "
│ │ │ -000f2ac0: 706f 646d 616e 222c 2022 636f 6e74 6169  podman", "contai
│ │ │ -000f2ad0: 6e65 7222 5d0a 2020 7461 6773 3a0a 2020  ner"].  tags:.  
│ │ │ -000f2ae0: 2d20 4449 5341 2d53 5449 472d 5542 5455  - DISA-STIG-UBTU
│ │ │ -000f2af0: 2d32 322d 3433 3130 3130 0a20 202d 2065  -22-431010.  - e
│ │ │ -000f2b00: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000f2b10: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000f2b20: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000f2b30: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000f2b40: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000f2b50: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000f2b60: 2d20 7061 636b 6167 655f 6170 7061 726d  - package_apparm
│ │ │ -000f2b70: 6f72 5f69 6e73 7461 6c6c 6564 0a3c 2f63  or_installed.<
│ │ │ +000f2530: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:< │ │ │ -000f2970: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000f2990: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000f29e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000f29f0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ +000f25b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000f25e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000f2600: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000f2610: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000f2630: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000f2650: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000f2660: 653a 2045 6e73 7572 6520 6170 7061 726d  e: Ensure apparm
│ │ │ +000f2670: 6f72 2069 7320 696e 7374 616c 6c65 640a  or is installed.
│ │ │ +000f2680: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000f2690: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +000f26a0: 616d 653a 2061 7070 6172 6d6f 720a 2020  ame: apparmor.  
│ │ │ +000f26b0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +000f26c0: 0a20 2077 6865 6e3a 2061 6e73 6962 6c65  .  when: ansible
│ │ │ +000f26d0: 5f76 6972 7475 616c 697a 6174 696f 6e5f  _virtualization_
│ │ │ +000f26e0: 7479 7065 206e 6f74 2069 6e20 5b22 646f  type not in ["do
│ │ │ +000f26f0: 636b 6572 222c 2022 6c78 6322 2c20 226f  cker", "lxc", "o
│ │ │ +000f2700: 7065 6e76 7a22 2c20 2270 6f64 6d61 6e22  penvz", "podman"
│ │ │ +000f2710: 2c20 2263 6f6e 7461 696e 6572 225d 0a20  , "container"]. 
│ │ │ +000f2720: 2074 6167 733a 0a20 202d 2044 4953 412d   tags:.  - DISA-
│ │ │ +000f2730: 5354 4947 2d55 4254 552d 3232 2d34 3331  STIG-UBTU-22-431
│ │ │ +000f2740: 3031 300a 2020 2d20 656e 6162 6c65 5f73  010.  - enable_s
│ │ │ +000f2750: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000f2760: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000f2770: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000f2780: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000f2790: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000f27a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000f27b0: 6765 5f61 7070 6172 6d6f 725f 696e 7374  ge_apparmor_inst
│ │ │ +000f27c0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediatio │ │ │ +000f2880: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000f2890: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +000f2920: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +000f2940: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000f2950: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f2960: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000f2970: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000f2990: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000f29d0: 616c 6c5f 6170 7061 726d 6f72 0a0a 636c  all_apparmor..cl
│ │ │ +000f29e0: 6173 7320 696e 7374 616c 6c5f 6170 7061  ass install_appa
│ │ │ +000f29f0: 726d 6f72 207b 0a20 2070 6163 6b61 6765  rmor {.  package
│ │ │ +000f2a00: 207b 2027 6170 7061 726d 6f72 273a 0a20   { 'apparmor':. 
│ │ │ +000f2a10: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000f2a20: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +000f2a30: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +000f2a40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000f2af0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000f2b00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000f2b10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000f2b50: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +000f2b60: 6520 3d20 2261 7070 6172 6d6f 7222 0a76  e = "apparmor".v
│ │ │ +000f2b70: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 000f2b90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediatio │ │ │ -00100810: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00100820: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00100830: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -00100880: 6e61 6d65 203d 2022 7379 7374 656d 642d  name = "systemd-
│ │ │ -00100890: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 220a  journal-remote".
│ │ │ -001008a0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Re │ │ │ -00100960: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00100970: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00100980: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00100a20: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00100a70: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00100a00: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00100a30: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00100a50: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00100a60: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00100a80: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00100a90: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00100ab0: 7564 6520 696e 7374 616c 6c5f 7379 7374  ude install_syst
│ │ │ -00100ac0: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -00100ad0: 7465 0a0a 636c 6173 7320 696e 7374 616c  te..class instal
│ │ │ -00100ae0: 6c5f 7379 7374 656d 642d 6a6f 7572 6e61  l_systemd-journa
│ │ │ -00100af0: 6c2d 7265 6d6f 7465 207b 0a20 2070 6163  l-remote {.  pac
│ │ │ -00100b00: 6b61 6765 207b 2027 7379 7374 656d 642d  kage { 'systemd-
│ │ │ -00100b10: 6a6f 7572 6e61 6c2d 7265 6d6f 7465 273a  journal-remote':
│ │ │ -00100b20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00100b30: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -00100b40: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00100c00: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00100c10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00100ca0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00100cc0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00100cd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00100ce0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00100cf0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00100d10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -00100d50: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00100d60: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00100d70: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00100d80: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00100d90: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00100da0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00100db0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00100dc0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00100dd0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00100de0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00100df0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -00100e00: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72  ystemd-journal-r
│ │ │ -00100e10: 656d 6f74 655f 696e 7374 616c 6c65 640a  emote_installed.
│ │ │ -00100e20: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -00100e30: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ -00100e40: 7265 6d6f 7465 2069 7320 696e 7374 616c  remote is instal
│ │ │ -00100e50: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -00100e60: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00100e70: 2020 206e 616d 653a 2073 7973 7465 6d64     name: systemd
│ │ │ -00100e80: 2d6a 6f75 726e 616c 2d72 656d 6f74 650a  -journal-remote.
│ │ │ -00100e90: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -00100ea0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00100eb0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00100ec0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00100ed0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00100ee0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00100ef0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00100f00: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00100f10: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00100f20: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00100f30: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00100f40: 202d 2070 6163 6b61 6765 5f73 7973 7465   - package_syste
│ │ │ -00100f50: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -00100f60: 655f 696e 7374 616c 6c65 640a 3c2f 636f  e_installed.
< │ │ │ +001008a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001008b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001008d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001008e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00100900: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00100920: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00100950: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00100960: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00100970: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00100980: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00100990: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +001009a0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +001009b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001009c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001009d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +001009e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +001009f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00100a00: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00100a10: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +00100a20: 7265 6d6f 7465 5f69 6e73 7461 6c6c 6564  remote_installed
│ │ │ +00100a30: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ +00100a40: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +00100a50: 2d72 656d 6f74 6520 6973 2069 6e73 7461  -remote is insta
│ │ │ +00100a60: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +00100a70: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00100a80: 2020 2020 6e61 6d65 3a20 7379 7374 656d      name: system
│ │ │ +00100a90: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +00100aa0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +00100ab0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00100ac0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00100ad0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00100ae0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00100af0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00100b00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00100b10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00100b20: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00100b30: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00100b40: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00100b50: 2020 2d20 7061 636b 6167 655f 7379 7374    - package_syst
│ │ │ +00100b60: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ +00100b70: 7465 5f69 6e73 7461 6c6c 6564 0a3c 2f63  te_installed.
│ │ │ +00100b90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00100c30: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00100c40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00100c50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00100cd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00100d00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00100d20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00100d30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00100d50: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00100d70: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00100d80: 6465 2069 6e73 7461 6c6c 5f73 7973 7465  de install_syste
│ │ │ +00100d90: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +00100da0: 650a 0a63 6c61 7373 2069 6e73 7461 6c6c  e..class install
│ │ │ +00100db0: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +00100dc0: 2d72 656d 6f74 6520 7b0a 2020 7061 636b  -remote {.  pack
│ │ │ +00100dd0: 6167 6520 7b20 2773 7973 7465 6d64 2d6a  age { 'systemd-j
│ │ │ +00100de0: 6f75 726e 616c 2d72 656d 6f74 6527 3a0a  ournal-remote':.
│ │ │ +00100df0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00100e00: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00100e10: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00100ed0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00100ee0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00100f30: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +00100f40: 6d65 203d 2022 7379 7374 656d 642d 6a6f  me = "systemd-jo
│ │ │ +00100f50: 7572 6e61 6c2d 7265 6d6f 7465 220a 7665  urnal-remote".ve
│ │ │ +00100f60: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00100f80: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00100f90: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00100fa0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00100fb0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00100fc0: 6433 3131 2220 7461 6269 6e64 6578 3d22 d311" tabindex=" │ │ │ 00100fd0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -66055,167 +66055,167 @@ │ │ │ 00102060: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 00102070: 743d 2223 6964 3331 3322 2074 6162 696e t="#id313" tabin │ │ │ 00102080: 6465 783d 2230 2220 726f 6c65 3d22 6275 dex="0" role="bu │ │ │ 00102090: 7474 6f6e 2220 6172 6961 2d65 7870 616e tton" aria-expan │ │ │ 001020a0: 6465 643d 2266 616c 7365 2220 7469 746c ded="false" titl │ │ │ 001020b0: 653d 2241 6374 6976 6174 6520 746f 2072 e="Activate to r │ │ │ 001020c0: 6576 6561 6c22 2068 7265 663d 2223 2122 eveal" href="#!" │ │ │ -001020d0: 3e52 656d 6564 6961 7469 6f6e 204f 5342 >Remediation OSB │ │ │ -001020e0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -001020f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -00102140: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00102150: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -00102160: 3d20 5b22 7379 7374 656d 642d 6a6f 7572  = ["systemd-jour
│ │ │ -00102170: 6e61 6c2d 7570 6c6f 6164 225d 0a3c 2f63  nal-upload"].
│ │ │ -00102190: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00102230: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00102240: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00102250: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -001022d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00102300: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00102320: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00102330: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00102350: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00102370: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00102380: 6465 2065 6e61 626c 655f 7379 7374 656d  de enable_system
│ │ │ -00102390: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ -001023a0: 0a0a 636c 6173 7320 656e 6162 6c65 5f73  ..class enable_s
│ │ │ -001023b0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ -001023c0: 706c 6f61 6420 7b0a 2020 7365 7276 6963  pload {.  servic
│ │ │ -001023d0: 6520 7b27 7379 7374 656d 642d 6a6f 7572  e {'systemd-jour
│ │ │ -001023e0: 6e61 6c2d 7570 6c6f 6164 273a 0a20 2020  nal-upload':.   
│ │ │ -001023f0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -00102400: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -00102410: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -00102420: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -001024e0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -001024f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00102570: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00102580: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -001025a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -001025b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -001025d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -001025f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00102620: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00102630: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00102640: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00102650: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00102660: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00102670: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00102680: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00102690: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -001026a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -001026b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -001026c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -001026d0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -001026e0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ -001026f0: 7570 6c6f 6164 5f65 6e61 626c 6564 0a0a  upload_enabled..
│ │ │ -00102700: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -00102710: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ -00102720: 706c 6f61 6420 5365 7276 6963 6520 2d20  pload Service - 
│ │ │ -00102730: 456e 6162 6c65 2073 6572 7669 6365 2073  Enable service s
│ │ │ -00102740: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ -00102750: 706c 6f61 640a 2020 626c 6f63 6b3a 0a0a  pload.  block:..
│ │ │ -00102760: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -00102770: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00102780: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -00102790: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -001027a0: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -001027b0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -001027c0: 616d 653a 2045 6e61 626c 6520 7379 7374  ame: Enable syst
│ │ │ -001027d0: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -001027e0: 6164 2053 6572 7669 6365 202d 2045 6e61  ad Service - Ena
│ │ │ -001027f0: 626c 6520 5365 7276 6963 6520 7379 7374  ble Service syst
│ │ │ -00102800: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -00102810: 6164 0a20 2020 2061 6e73 6962 6c65 2e62  ad.    ansible.b
│ │ │ -00102820: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00102830: 2020 2020 2020 6e61 6d65 3a20 7379 7374        name: syst
│ │ │ -00102840: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -00102850: 6164 0a20 2020 2020 2065 6e61 626c 6564  ad.      enabled
│ │ │ -00102860: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -00102870: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -00102880: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -00102890: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -001028a0: 2722 7379 7374 656d 642d 6a6f 7572 6e61  '"systemd-journa
│ │ │ -001028b0: 6c2d 7265 6d6f 7465 2220 696e 2061 6e73  l-remote" in ans
│ │ │ -001028c0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -001028d0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -001028e0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -001028f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00102900: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00102910: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00102920: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00102930: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00102940: 2020 2d20 7365 7276 6963 655f 7379 7374    - service_syst
│ │ │ -00102950: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -00102960: 6164 5f65 6e61 626c 6564 0a20 202d 2073  ad_enabled.  - s
│ │ │ -00102970: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00102980: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -00102990: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -001029a0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -001029b0: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ -001029c0: 616e 7369 626c 655f 7669 7274 7561 6c69  ansible_virtuali
│ │ │ -001029d0: 7a61 7469 6f6e 5f74 7970 6520 6e6f 7420  zation_type not 
│ │ │ -001029e0: 696e 205b 2264 6f63 6b65 7222 2c20 226c  in ["docker", "l
│ │ │ -001029f0: 7863 222c 2022 6f70 656e 767a 222c 2022  xc", "openvz", "
│ │ │ -00102a00: 706f 646d 616e 222c 2022 636f 6e74 6169  podman", "contai
│ │ │ -00102a10: 6e65 7222 5d0a 2020 2020 616e 6420 2273  ner"].    and "s
│ │ │ -00102a20: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72  ystemd-journal-r
│ │ │ -00102a30: 656d 6f74 6522 2069 6e20 616e 7369 626c  emote" in ansibl
│ │ │ -00102a40: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00102a50: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +001020d0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +001020e0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +001020f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001021c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001021d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00102220: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00102230: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00102240: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00102250: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00102260: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00102270: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00102280: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00102290: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001022a0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +001022b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001022c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001022d0: 202d 2073 6572 7669 6365 5f73 7973 7465   - service_syste
│ │ │ +001022e0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +001022f0: 645f 656e 6162 6c65 640a 0a2d 206e 616d  d_enabled..- nam
│ │ │ +00102300: 653a 2045 6e61 626c 6520 7379 7374 656d  e: Enable system
│ │ │ +00102310: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +00102320: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +00102330: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ +00102340: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +00102350: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +00102360: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00102370: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00102380: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00102390: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +001023a0: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +001023b0: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +001023c0: 456e 6162 6c65 2073 7973 7465 6d64 2d6a  Enable systemd-j
│ │ │ +001023d0: 6f75 726e 616c 2d75 706c 6f61 6420 5365  ournal-upload Se
│ │ │ +001023e0: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ +001023f0: 6572 7669 6365 2073 7973 7465 6d64 2d6a  ervice systemd-j
│ │ │ +00102400: 6f75 726e 616c 2d75 706c 6f61 640a 2020  ournal-upload.  
│ │ │ +00102410: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00102420: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00102430: 206e 616d 653a 2073 7973 7465 6d64 2d6a   name: systemd-j
│ │ │ +00102440: 6f75 726e 616c 2d75 706c 6f61 640a 2020  ournal-upload.  
│ │ │ +00102450: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ +00102460: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00102470: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ +00102480: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ +00102490: 6865 6e3a 0a20 2020 202d 2027 2273 7973  hen:.    - '"sys
│ │ │ +001024a0: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +001024b0: 6f74 6522 2069 6e20 616e 7369 626c 655f  ote" in ansible_
│ │ │ +001024c0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +001024d0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +001024e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +001024f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00102500: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00102510: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00102520: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00102530: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00102540: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ +00102550: 6f75 726e 616c 2d75 706c 6f61 645f 656e  ournal-upload_en
│ │ │ +00102560: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00102570: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00102580: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +00102590: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +001025a0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +001025b0: 6765 7327 0a20 202d 2028 2061 6e73 6962  ges'.  - ( ansib
│ │ │ +001025c0: 6c65 5f76 6972 7475 616c 697a 6174 696f  le_virtualizatio
│ │ │ +001025d0: 6e5f 7479 7065 206e 6f74 2069 6e20 5b22  n_type not in ["
│ │ │ +001025e0: 646f 636b 6572 222c 2022 6c78 6322 2c20  docker", "lxc", 
│ │ │ +001025f0: 226f 7065 6e76 7a22 2c20 2270 6f64 6d61  "openvz", "podma
│ │ │ +00102600: 6e22 2c20 2263 6f6e 7461 696e 6572 225d  n", "container"]
│ │ │ +00102610: 0a20 2020 2061 6e64 2022 7379 7374 656d  .    and "system
│ │ │ +00102620: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +00102630: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00102640: 7473 2e70 6163 6b61 6765 7320 290a 3c2f  ts.packages ).
Re │ │ │ +00102700: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00102710: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00102720: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +001021a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001021b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001021f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00102200: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +001027c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00102810: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +001027a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001027d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001027f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00102800: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00102820: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00102830: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00102850: 7564 6520 656e 6162 6c65 5f73 7973 7465  ude enable_syste
│ │ │ +00102860: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +00102870: 640a 0a63 6c61 7373 2065 6e61 626c 655f  d..class enable_
│ │ │ +00102880: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +00102890: 7570 6c6f 6164 207b 0a20 2073 6572 7669  upload {.  servi
│ │ │ +001028a0: 6365 207b 2773 7973 7465 6d64 2d6a 6f75  ce {'systemd-jou
│ │ │ +001028b0: 726e 616c 2d75 706c 6f61 6427 3a0a 2020  rnal-upload':.  
│ │ │ +001028c0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +001028d0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +001028e0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +001028f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +001029b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +001029c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +001029d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +00102a20: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +00102a30: 6162 6c65 6420 3d20 5b22 7379 7374 656d  abled = ["system
│ │ │ +00102a40: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +00102a50: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00102a60: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediatio │ │ │ -00103940: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00103950: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00103960: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -001039b0: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -001039c0: 626c 6564 203d 205b 2273 7973 7465 6d64  bled = ["systemd
│ │ │ -001039d0: 2d6a 6f75 726e 616c 6422 5d0a 3c2f 636f  -journald"].
< │ │ │ -001039f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00103a00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00103a10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00103a20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00103a30: 6433 3139 2220 7461 6269 6e64 6578 3d22 d319" tabindex=" │ │ │ -00103a40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00103a50: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00103a60: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00103a70: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00103a80: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00103a90: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00103aa0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00103b30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00103b40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00103b60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00103b80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00103b90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00103bd0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00103be0: 6520 656e 6162 6c65 5f73 7973 7465 6d64 e enable_systemd │ │ │ -00103bf0: 2d6a 6f75 726e 616c 640a 0a63 6c61 7373 -journald..class │ │ │ -00103c00: 2065 6e61 626c 655f 7379 7374 656d 642d enable_systemd- │ │ │ -00103c10: 6a6f 7572 6e61 6c64 207b 0a20 2073 6572 journald {. ser │ │ │ -00103c20: 7669 6365 207b 2773 7973 7465 6d64 2d6a vice {'systemd-j │ │ │ -00103c30: 6f75 726e 616c 6427 3a0a 2020 2020 656e ournald':. en │ │ │ -00103c40: 6162 6c65 203d 2667 743b 2074 7275 652c able => true, │ │ │ -00103c50: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00103c60: 3b20 2772 756e 6e69 6e67 272c 0a20 207d ; 'running',. } │ │ │ -00103c70: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ -00103c80: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00103d30: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00103d40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00103dc0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00103de0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00103e30: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00103e60: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00103e80: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00103e90: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00103ea0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00103eb0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00103ec0: 2d20 4e49 5354 2d38 3030 2d35 332d 5343  - NIST-800-53-SC
│ │ │ -00103ed0: 2d32 340a 2020 2d20 656e 6162 6c65 5f73  -24.  - enable_s
│ │ │ -00103ee0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00103ef0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00103f00: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00103f10: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00103f20: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00103f30: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00103f40: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e  ce_systemd-journ
│ │ │ -00103f50: 616c 645f 656e 6162 6c65 640a 0a2d 206e  ald_enabled..- n
│ │ │ -00103f60: 616d 653a 2045 6e61 626c 6520 7379 7374  ame: Enable syst
│ │ │ -00103f70: 656d 642d 6a6f 7572 6e61 6c64 2053 6572  emd-journald Ser
│ │ │ -00103f80: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -00103f90: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ -00103fa0: 7572 6e61 6c64 0a20 2062 6c6f 636b 3a0a  urnald.  block:.
│ │ │ -00103fb0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00103fc0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00103fd0: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00103fe0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00103ff0: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00104000: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00104010: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ -00104020: 7465 6d64 2d6a 6f75 726e 616c 6420 5365  temd-journald Se
│ │ │ -00104030: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ -00104040: 6572 7669 6365 2073 7973 7465 6d64 2d6a  ervice systemd-j
│ │ │ -00104050: 6f75 726e 616c 640a 2020 2020 616e 7369  ournald.    ansi
│ │ │ -00104060: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00104070: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00104080: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ -00104090: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -001040a0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -001040b0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -001040c0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -001040d0: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -001040e0: 2273 7973 7465 6d64 2220 696e 2061 6e73  "systemd" in ans
│ │ │ -001040f0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00104100: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00104110: 204e 4953 542d 3830 302d 3533 2d53 432d   NIST-800-53-SC-
│ │ │ -00104120: 3234 0a20 202d 2065 6e61 626c 655f 7374  24.  - enable_st
│ │ │ -00104130: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00104140: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00104150: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00104160: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00104170: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00104180: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00104190: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ -001041a0: 6c64 5f65 6e61 626c 6564 0a20 202d 2073  ld_enabled.  - s
│ │ │ -001041b0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -001041c0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -001041d0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -001041e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -001041f0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


< │ │ │ +001039d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00103a10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ -00103dd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00103df0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00103e40: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00103e50: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ +001039e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00103a00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00103a30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00103a50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00103a80: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00103a90: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00103aa0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00103ab0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00103ac0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00103ad0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00103ae0: 2d53 432d 3234 0a20 202d 2065 6e61 626c  -SC-24.  - enabl
│ │ │ +00103af0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00103b00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00103b10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00103b20: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00103b30: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00103b40: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00103b50: 7276 6963 655f 7379 7374 656d 642d 6a6f  rvice_systemd-jo
│ │ │ +00103b60: 7572 6e61 6c64 5f65 6e61 626c 6564 0a0a  urnald_enabled..
│ │ │ +00103b70: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +00103b80: 7973 7465 6d64 2d6a 6f75 726e 616c 6420  ystemd-journald 
│ │ │ +00103b90: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +00103ba0: 2073 6572 7669 6365 2073 7973 7465 6d64   service systemd
│ │ │ +00103bb0: 2d6a 6f75 726e 616c 640a 2020 626c 6f63  -journald.  bloc
│ │ │ +00103bc0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ +00103bd0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00103be0: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ +00103bf0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00103c00: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ +00103c10: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ +00103c20: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ +00103c30: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ +00103c40: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +00103c50: 6520 5365 7276 6963 6520 7379 7374 656d  e Service system
│ │ │ +00103c60: 642d 6a6f 7572 6e61 6c64 0a20 2020 2061  d-journald.    a
│ │ │ +00103c70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00103c80: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00103c90: 6d65 3a20 7379 7374 656d 642d 6a6f 7572  me: systemd-jour
│ │ │ +00103ca0: 6e61 6c64 0a20 2020 2020 2065 6e61 626c  nald.      enabl
│ │ │ +00103cb0: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +00103cc0: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +00103cd0: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +00103ce0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +00103cf0: 2d20 2722 7379 7374 656d 6422 2069 6e20  - '"systemd" in 
│ │ │ +00103d00: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00103d10: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00103d20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00103d30: 5343 2d32 340a 2020 2d20 656e 6162 6c65  SC-24.  - enable
│ │ │ +00103d40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00103d50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00103d60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00103d70: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00103d80: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00103d90: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00103da0: 7669 6365 5f73 7973 7465 6d64 2d6a 6f75  vice_systemd-jou
│ │ │ +00103db0: 726e 616c 645f 656e 6162 6c65 640a 2020  rnald_enabled.  
│ │ │ +00103dc0: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +00103dd0: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +00103de0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00103df0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00103e00: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00103e10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00103ec0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00103ed0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00103ee0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00103ef0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00103f00: 7365 2220 6964 3d22 6964 3331 3922 3e3c se" id="id319">< │ │ │ +00103f10: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00103f20: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00103f30: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00103f40: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00103f50: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00103f60: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00103f70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00103fb0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00103fc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00103fe0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00103ff0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ +00104010: 6e61 626c 655f 7379 7374 656d 642d 6a6f  nable_systemd-jo
│ │ │ +00104020: 7572 6e61 6c64 0a0a 636c 6173 7320 656e  urnald..class en
│ │ │ +00104030: 6162 6c65 5f73 7973 7465 6d64 2d6a 6f75  able_systemd-jou
│ │ │ +00104040: 726e 616c 6420 7b0a 2020 7365 7276 6963  rnald {.  servic
│ │ │ +00104050: 6520 7b27 7379 7374 656d 642d 6a6f 7572  e {'systemd-jour
│ │ │ +00104060: 6e61 6c64 273a 0a20 2020 2065 6e61 626c  nald':.    enabl
│ │ │ +00104070: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +00104080: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00104090: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +001040a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00104150: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00104160: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00104170: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +001041c0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +001041d0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +001041e0: 205b 2273 7973 7465 6d64 2d6a 6f75 726e   ["systemd-journ
│ │ │ +001041f0: 616c 6422 5d0a 3c2f 636f 6465 3e3c 2f70  ald"].

Reme │ │ │ -00118490: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -001184a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00118530: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00118540: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00118560: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00118580: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00118590: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001185d0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -001185e0: 7564 6520 7265 6d6f 7665 5f69 7074 6162  ude remove_iptab
│ │ │ -001185f0: 6c65 732d 7065 7273 6973 7465 6e74 0a0a  les-persistent..
│ │ │ -00118600: 636c 6173 7320 7265 6d6f 7665 5f69 7074  class remove_ipt
│ │ │ -00118610: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -00118620: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00118630: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -00118640: 656e 7427 3a0a 2020 2020 656e 7375 7265  ent':.    ensure
│ │ │ -00118650: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00118660: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00118720: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00118730: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001187b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001187c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001187d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00118810: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00118820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00118840: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00118850: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00118870: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00118880: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00118890: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -001188a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -001188b0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -001188c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001188d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001188e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001188f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00118900: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00118910: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00118920: 6765 5f69 7074 6162 6c65 732d 7065 7273  ge_iptables-pers
│ │ │ -00118930: 6973 7465 6e74 5f72 656d 6f76 6564 0a0a  istent_removed..
│ │ │ -00118940: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -00118950: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -00118960: 656e 7420 5061 636b 6167 653a 2045 6e73  ent Package: Ens
│ │ │ -00118970: 7572 6520 6970 7461 626c 6573 2d70 6572  ure iptables-per
│ │ │ -00118980: 7369 7374 656e 7420 6973 2072 656d 6f76  sistent is remov
│ │ │ -00118990: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -001189a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -001189b0: 2020 206e 616d 653a 2069 7074 6162 6c65     name: iptable
│ │ │ -001189c0: 732d 7065 7273 6973 7465 6e74 0a20 2020  s-persistent.   
│ │ │ -001189d0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -001189e0: 2077 6865 6e3a 2027 2275 6677 2220 696e   when: '"ufw" in
│ │ │ -001189f0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00118a00: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00118a10: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00118a20: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00118a30: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00118a40: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00118a50: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00118a60: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00118a70: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00118a80: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ -00118a90: 7465 6e74 5f72 656d 6f76 6564 0a3c 2f63  tent_removed.<
│ │ │ +001184b0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +00118530: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00118560: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00118580: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00118590: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001185b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001185c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +001185e0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +001185f0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00118600: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00118610: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00118620: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +00118630: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00118640: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00118650: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00118660: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00118670: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00118680: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00118690: 7061 636b 6167 655f 6970 7461 626c 6573  package_iptables
│ │ │ +001186a0: 2d70 6572 7369 7374 656e 745f 7265 6d6f  -persistent_remo
│ │ │ +001186b0: 7665 640a 0a2d 206e 616d 653a 2027 5265  ved..- name: 'Re
│ │ │ +001186c0: 6d6f 7665 2069 7074 6162 6c65 732d 7065  move iptables-pe
│ │ │ +001186d0: 7273 6973 7465 6e74 2050 6163 6b61 6765  rsistent Package
│ │ │ +001186e0: 3a20 456e 7375 7265 2069 7074 6162 6c65  : Ensure iptable
│ │ │ +001186f0: 732d 7065 7273 6973 7465 6e74 2069 7320  s-persistent is 
│ │ │ +00118700: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00118710: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00118720: 6765 3a0a 2020 2020 6e61 6d65 3a20 6970  ge:.    name: ip
│ │ │ +00118730: 7461 626c 6573 2d70 6572 7369 7374 656e  tables-persisten
│ │ │ +00118740: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ +00118750: 656e 740a 2020 7768 656e 3a20 2722 7566  ent.  when: '"uf
│ │ │ +00118760: 7722 2069 6e20 616e 7369 626c 655f 6661  w" in ansible_fa
│ │ │ +00118770: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00118780: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +00118790: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001187a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001187b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001187c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001187d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001187e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +001187f0: 636b 6167 655f 6970 7461 626c 6573 2d70  ckage_iptables-p
│ │ │ +00118800: 6572 7369 7374 656e 745f 7265 6d6f 7665  ersistent_remove
│ │ │ +00118810: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00118820: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001188d0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001188e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001189b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001189c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00118a20: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ +00118a30: 7465 6e74 0a0a 636c 6173 7320 7265 6d6f  tent..class remo
│ │ │ +00118a40: 7665 5f69 7074 6162 6c65 732d 7065 7273  ve_iptables-pers
│ │ │ +00118a50: 6973 7465 6e74 207b 0a20 2070 6163 6b61  istent {.  packa
│ │ │ +00118a60: 6765 207b 2027 6970 7461 626c 6573 2d70  ge { 'iptables-p
│ │ │ +00118a70: 6572 7369 7374 656e 7427 3a0a 2020 2020  ersistent':.    
│ │ │ +00118a80: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00118a90: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00118ab0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00169120: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00169130: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00169140: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00169150: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00169160: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00169170: 7365 2220 6964 3d22 6964 3433 3122 3e3c se" id="id431">< │ │ │ -00169180: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00169190: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -001691a0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -001691b0: 226e 6674 6162 6c65 7322 5d0a 3c2f 636f "nftables"].< │ │ │ -001691d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001691e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001691f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00169200: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00169210: 6434 3332 2220 7461 6269 6e64 6578 3d22 d432" tabindex=" │ │ │ -00169220: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00169230: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00169240: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00169250: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00169260: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00169270: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00169280: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +00118990: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001189a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001189e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001189f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -00169310: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00169320: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00169340: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00169360: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00169370: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -001693b0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -001693c0: 6520 656e 6162 6c65 5f6e 6674 6162 6c65 e enable_nftable │ │ │ -001693d0: 730a 0a63 6c61 7373 2065 6e61 626c 655f s..class enable_ │ │ │ -001693e0: 6e66 7461 626c 6573 207b 0a20 2073 6572 nftables {. ser │ │ │ -001693f0: 7669 6365 207b 276e 6674 6162 6c65 7327 vice {'nftables' │ │ │ -00169400: 3a0a 2020 2020 656e 6162 6c65 203d 2667 :. enable =&g │ │ │ -00169410: 743b 2074 7275 652c 0a20 2020 2065 6e73 t; true,. ens │ │ │ -00169420: 7572 6520 3d26 6774 3b20 2772 756e 6e69 ure => 'runni │ │ │ -00169430: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ng',. }.}.
Remed │ │ │ -001694f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00169500: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00169590: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001695a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001695c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001695e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001695f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00169630: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00169640: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00169650: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00169660: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00169670: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00169680: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -00169690: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -001696a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -001696b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -001696c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -001696d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -001696e0: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ -001696f0: 7669 6365 5f6e 6674 6162 6c65 735f 656e vice_nftables_en │ │ │ -00169700: 6162 6c65 640a 0a2d 206e 616d 653a 2056 abled..- name: V │ │ │ -00169710: 6572 6966 7920 6e66 7461 626c 6573 2053 erify nftables S │ │ │ -00169720: 6572 7669 6365 2069 7320 456e 6162 6c65 ervice is Enable │ │ │ -00169730: 6420 2d20 456e 6162 6c65 2073 6572 7669 d - Enable servi │ │ │ -00169740: 6365 206e 6674 6162 6c65 730a 2020 626c ce nftables. bl │ │ │ -00169750: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ -00169760: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00169770: 6765 2066 6163 7473 0a20 2020 2061 6e73 ge facts. ans │ │ │ -00169780: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -00169790: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -001697a0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a manager: auto. │ │ │ -001697b0: 0a20 202d 206e 616d 653a 2056 6572 6966 . - name: Verif │ │ │ -001697c0: 7920 6e66 7461 626c 6573 2053 6572 7669 y nftables Servi │ │ │ -001697d0: 6365 2069 7320 456e 6162 6c65 6420 2d20 ce is Enabled - │ │ │ -001697e0: 456e 6162 6c65 2053 6572 7669 6365 206e Enable Service n │ │ │ -001697f0: 6674 6162 6c65 730a 2020 2020 616e 7369 ftables. ansi │ │ │ -00169800: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ -00169810: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ -00169820: 206e 6674 6162 6c65 730a 2020 2020 2020 nftables. │ │ │ -00169830: 656e 6162 6c65 643a 2074 7275 650a 2020 enabled: true. │ │ │ -00169840: 2020 2020 7374 6174 653a 2073 7461 7274 state: start │ │ │ -00169850: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ -00169860: 2066 616c 7365 0a20 2020 2077 6865 6e3a false. when: │ │ │ -00169870: 0a20 2020 202d 2027 226e 6674 6162 6c65 . - '"nftable │ │ │ -00169880: 7322 2069 6e20 616e 7369 626c 655f 6661 s" in ansible_fa │ │ │ -00169890: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ -001698a0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -001698b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -001698c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -001698d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -001698e0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -001698f0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00169900: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ -00169910: 7669 6365 5f6e 6674 6162 6c65 735f 656e vice_nftables_en │ │ │ -00169920: 6162 6c65 640a 2020 2d20 7370 6563 6961 abled. - specia │ │ │ -00169930: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a l_service_block. │ │ │ -00169940: 2020 7768 656e 3a20 2820 226e 6674 6162 when: ( "nftab │ │ │ -00169950: 6c65 7322 2069 6e20 616e 7369 626c 655f les" in ansible_ │ │ │ -00169960: 6661 6374 732e 7061 636b 6167 6573 2061 facts.packages a │ │ │ -00169970: 6e64 2022 6c69 6e75 782d 6261 7365 2220 nd "linux-base" │ │ │ -00169980: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00169990: 2e70 6163 6b61 6765 730a 2020 2020 290a .packages. ). │ │ │ +00169120: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +00169130: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ +001691d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001691e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00169230: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00169270: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00169280: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00169290: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +001692a0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +001692b0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +001692c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001692d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001692e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001692f0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00169300: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00169310: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00169320: 7365 7276 6963 655f 6e66 7461 626c 6573  service_nftables
│ │ │ +00169330: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ +00169340: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ +00169350: 7320 5365 7276 6963 6520 6973 2045 6e61  s Service is Ena
│ │ │ +00169360: 626c 6564 202d 2045 6e61 626c 6520 7365  bled - Enable se
│ │ │ +00169370: 7276 6963 6520 6e66 7461 626c 6573 0a20  rvice nftables. 
│ │ │ +00169380: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00169390: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +001693a0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +001693b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +001693c0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +001693d0: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +001693e0: 746f 0a0a 2020 2d20 6e61 6d65 3a20 5665  to..  - name: Ve
│ │ │ +001693f0: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ +00169400: 7276 6963 6520 6973 2045 6e61 626c 6564  rvice is Enabled
│ │ │ +00169410: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +00169420: 6520 6e66 7461 626c 6573 0a20 2020 2061  e nftables.    a
│ │ │ +00169430: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00169440: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00169450: 6d65 3a20 6e66 7461 626c 6573 0a20 2020  me: nftables.   
│ │ │ +00169460: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +00169470: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00169480: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ +00169490: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ +001694a0: 656e 3a0a 2020 2020 2d20 2722 6e66 7461  en:.    - '"nfta
│ │ │ +001694b0: 626c 6573 2220 696e 2061 6e73 6962 6c65  bles" in ansible
│ │ │ +001694c0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +001694d0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +001694e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001694f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00169500: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00169510: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00169520: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00169530: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00169540: 7365 7276 6963 655f 6e66 7461 626c 6573  service_nftables
│ │ │ +00169550: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ +00169560: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00169570: 636b 0a20 2077 6865 6e3a 2028 2022 6e66  ck.  when: ( "nf
│ │ │ +00169580: 7461 626c 6573 2220 696e 2061 6e73 6962  tables" in ansib
│ │ │ +00169590: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +001695a0: 7320 616e 6420 226c 696e 7578 2d62 6173  s and "linux-bas
│ │ │ +001695b0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +001695c0: 6374 732e 7061 636b 6167 6573 0a20 2020  cts.packages.   
│ │ │ +001695d0: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +001695e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +00169690: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +001696a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +001691c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001691f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00169200: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00169240: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00169250: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00169720: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00169740: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00169790: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ +001697e0: 6e66 7461 626c 6573 0a0a 636c 6173 7320  nftables..class 
│ │ │ +001697f0: 656e 6162 6c65 5f6e 6674 6162 6c65 7320  enable_nftables 
│ │ │ +00169800: 7b0a 2020 7365 7276 6963 6520 7b27 6e66  {.  service {'nf
│ │ │ +00169810: 7461 626c 6573 273a 0a20 2020 2065 6e61  tables':.    ena
│ │ │ +00169820: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +00169830: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00169840: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00169850: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00169860: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00169910: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00169920: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00169930: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00169970: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00169980: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +00169990: 203d 205b 226e 6674 6162 6c65 7322 5d0a   = ["nftables"].
│ │ │  001699a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Re │ │ │ -0016a740: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0016a750: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0016a760: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0016a770: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0016a780: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0016a790: 7365 2220 6964 3d22 6964 3433 3622 3e3c se" id="id436">< │ │ │ -0016a7a0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0016a7b0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0016a7c0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0016a7d0: 6e66 7461 626c 6573 225d 0a3c 2f63 6f64 nftables"].
Remed │ │ │ -0016a890: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -0016a8a0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
low
Disr │ │ │ +00169750: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00169760: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +001697a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +001697b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0016a940: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0016a950: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0016a980: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0016a990: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -0016a9e0: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -0016a9f0: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -0016aa00: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -0016aa10: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -0016aa20: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -0016aa30: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -0016aa40: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -0016aa50: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -0016aa60: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -0016aa70: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -0016aa80: 6e66 7461 626c 6573 2e73 6572 7669 6365  nftables.service
│ │ │ -0016aa90: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -0016aaa0: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -0016aab0: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -0016aac0: 202d 206e 616d 653a 206e 6674 6162 6c65   - name: nftable
│ │ │ -0016aad0: 732e 736f 636b 6574 0a20 2020 2020 2020  s.socket.       
│ │ │ -0016aae0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0016aaf0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -0016ab00: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ -0016ab10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ -0016abc0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0016abd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ -0016a930: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0016a960: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -0016a970: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -0016a9b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0016a9c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0016ac50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0016ac70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0016acc0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -0016ad10: 5f6e 6674 6162 6c65 730a 0a63 6c61 7373  _nftables..class
│ │ │ -0016ad20: 2064 6973 6162 6c65 5f6e 6674 6162 6c65   disable_nftable
│ │ │ -0016ad30: 7320 7b0a 2020 7365 7276 6963 6520 7b27  s {.  service {'
│ │ │ -0016ad40: 6e66 7461 626c 6573 273a 0a20 2020 2065  nftables':.    e
│ │ │ -0016ad50: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -0016ad60: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -0016ad70: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -0016ad80: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -0016ae40: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -0016ae50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -0016af10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0016af20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -0016ac80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0016ac90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0016acd0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0016ace0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -0016aee0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0016af00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0016af30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0016af50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0016af80: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0016af90: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0016afa0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0016afb0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0016afc0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0016afd0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0016afe0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0016aff0: 2d31 2e32 2e31 0a20 202d 2064 6973 6162  -1.2.1.  - disab
│ │ │ -0016b000: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0016b010: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0016b020: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0016b030: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0016b040: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0016b050: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0016b060: 6572 7669 6365 5f6e 6674 6162 6c65 735f  ervice_nftables_
│ │ │ -0016b070: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ -0016b080: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ -0016b090: 7320 5365 7276 6963 6520 6973 2044 6973  s Service is Dis
│ │ │ -0016b0a0: 6162 6c65 6420 2d20 4469 7361 626c 6520  abled - Disable 
│ │ │ -0016b0b0: 7365 7276 6963 6520 6e66 7461 626c 6573  service nftables
│ │ │ -0016b0c0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0016b0d0: 616d 653a 2056 6572 6966 7920 6e66 7461  ame: Verify nfta
│ │ │ -0016b0e0: 626c 6573 2053 6572 7669 6365 2069 7320  bles Service is 
│ │ │ -0016b0f0: 4469 7361 626c 6564 202d 2043 6f6c 6c65  Disabled - Colle
│ │ │ -0016b100: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -0016b110: 6365 7320 5072 6573 656e 7420 696e 0a20  ces Present in. 
│ │ │ -0016b120: 2020 2020 2074 6865 2053 7973 7465 6d0a       the System.
│ │ │ -0016b130: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0016b140: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -0016b150: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -0016b160: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -0016b170: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -0016b180: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -0016b190: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -0016b1a0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -0016b1b0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -0016b1c0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -0016b1d0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -0016b1e0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -0016b1f0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -0016b200: 5665 7269 6679 206e 6674 6162 6c65 7320  Verify nftables 
│ │ │ -0016b210: 5365 7276 6963 6520 6973 2044 6973 6162  Service is Disab
│ │ │ -0016b220: 6c65 6420 2d20 456e 7375 7265 206e 6674  led - Ensure nft
│ │ │ -0016b230: 6162 6c65 732e 7365 7276 6963 6520 6973  ables.service is
│ │ │ -0016b240: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -0016b250: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0016b260: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0016b270: 206e 6674 6162 6c65 732e 7365 7276 6963   nftables.servic
│ │ │ -0016b280: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0016b290: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -0016b2a0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0016b2b0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0016b2c0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -0016b2d0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -0016b2e0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -0016b2f0: 6e66 7461 626c 6573 2e73 6572 7669 6365  nftables.service
│ │ │ -0016b300: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0016b310: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -0016b320: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -0016b330: 202d 206e 6674 6162 6c65 732e 736f 636b   - nftables.sock
│ │ │ -0016b340: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ -0016b350: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -0016b360: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -0016b370: 742d 756e 6974 2d66 696c 6573 206e 6674  t-unit-files nft
│ │ │ -0016b380: 6162 6c65 732e 736f 636b 6574 0a20 2020  ables.socket.   
│ │ │ -0016b390: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -0016b3a0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -0016b3b0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0016b3c0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0016b3d0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -0016b3e0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -0016b3f0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0016b400: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0016b410: 0a0a 2020 2d20 6e61 6d65 3a20 5665 7269  ..  - name: Veri
│ │ │ -0016b420: 6679 206e 6674 6162 6c65 7320 5365 7276  fy nftables Serv
│ │ │ -0016b430: 6963 6520 6973 2044 6973 6162 6c65 6420  ice is Disabled 
│ │ │ -0016b440: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0016b450: 206e 6674 6162 6c65 730a 2020 2020 616e   nftables.    an
│ │ │ -0016b460: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0016b470: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0016b480: 653a 206e 6674 6162 6c65 732e 736f 636b  e: nftables.sock
│ │ │ -0016b490: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -0016b4a0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -0016b4b0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0016b4c0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0016b4d0: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -0016b4e0: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -0016b4f0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0016b500: 7263 6828 226e 6674 6162 6c65 732e 736f  rch("nftables.so
│ │ │ -0016b510: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -0016b520: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -0016b530: 202d 2050 4349 2d44 5353 7634 2d31 2e32   - PCI-DSSv4-1.2
│ │ │ -0016b540: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0016b550: 2e32 2e31 0a20 202d 2064 6973 6162 6c65  .2.1.  - disable
│ │ │ -0016b560: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0016b570: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0016b580: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0016b590: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0016b5a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0016b5b0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0016b5c0: 7669 6365 5f6e 6674 6162 6c65 735f 6469  vice_nftables_di
│ │ │ -0016b5d0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -0016b5e0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -0016b5f0: 0a20 2077 6865 6e3a 2028 2022 6e66 7461  .  when: ( "nfta
│ │ │ -0016b600: 626c 6573 2220 696e 2061 6e73 6962 6c65  bles" in ansible
│ │ │ -0016b610: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ -0016b620: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ -0016b630: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0016b640: 732e 7061 636b 6167 6573 0a20 2020 2029  s.packages.    )
│ │ │ +0016a740: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0016a750: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
< │ │ │ +0016a7f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0016a800: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0016a850: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0016a890: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0016a8a0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0016a8b0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0016a8c0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0016a8d0: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ +0016a8e0: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ +0016a8f0: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ +0016a900: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0016a910: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0016a920: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0016a930: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0016a940: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0016a950: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0016a960: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0016a970: 6e66 7461 626c 6573 5f64 6973 6162 6c65  nftables_disable
│ │ │ +0016a980: 640a 0a2d 206e 616d 653a 2056 6572 6966  d..- name: Verif
│ │ │ +0016a990: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ +0016a9a0: 6365 2069 7320 4469 7361 626c 6564 202d  ce is Disabled -
│ │ │ +0016a9b0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0016a9c0: 206e 6674 6162 6c65 730a 2020 626c 6f63   nftables.  bloc
│ │ │ +0016a9d0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 5665  k:..  - name: Ve
│ │ │ +0016a9e0: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ +0016a9f0: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ +0016aa00: 6420 2d20 436f 6c6c 6563 7420 7379 7374  d - Collect syst
│ │ │ +0016aa10: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +0016aa20: 7365 6e74 2069 6e0a 2020 2020 2020 7468  sent in.      th
│ │ │ +0016aa30: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ +0016aa40: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +0016aa50: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +0016aa60: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +0016aa70: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ +0016aa80: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ +0016aa90: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ +0016aaa0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +0016aab0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +0016aac0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ +0016aad0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0016aae0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0016aaf0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0016ab00: 202d 206e 616d 653a 2056 6572 6966 7920   - name: Verify 
│ │ │ +0016ab10: 6e66 7461 626c 6573 2053 6572 7669 6365  nftables Service
│ │ │ +0016ab20: 2069 7320 4469 7361 626c 6564 202d 2045   is Disabled - E
│ │ │ +0016ab30: 6e73 7572 6520 6e66 7461 626c 6573 2e73  nsure nftables.s
│ │ │ +0016ab40: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +0016ab50: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0016ab60: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +0016ab70: 2020 2020 6e61 6d65 3a20 6e66 7461 626c      name: nftabl
│ │ │ +0016ab80: 6573 2e73 6572 7669 6365 0a20 2020 2020  es.service.     
│ │ │ +0016ab90: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0016aba0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0016abb0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +0016abc0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0016abd0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0016abe0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0016abf0: 2073 6561 7263 6828 226e 6674 6162 6c65   search("nftable
│ │ │ +0016ac00: 732e 7365 7276 6963 6522 2c20 6d75 6c74  s.service", mult
│ │ │ +0016ac10: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +0016ac20: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +0016ac30: 6574 2045 7869 7374 7320 2d20 6e66 7461  et Exists - nfta
│ │ │ +0016ac40: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ +0016ac50: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0016ac60: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0016ac70: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0016ac80: 6669 6c65 7320 6e66 7461 626c 6573 2e73  files nftables.s
│ │ │ +0016ac90: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +0016aca0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +0016acb0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0016acc0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0016acd0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0016ace0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0016acf0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0016ad00: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0016ad10: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0016ad20: 616d 653a 2056 6572 6966 7920 6e66 7461  ame: Verify nfta
│ │ │ +0016ad30: 626c 6573 2053 6572 7669 6365 2069 7320  bles Service is 
│ │ │ +0016ad40: 4469 7361 626c 6564 202d 2044 6973 6162  Disabled - Disab
│ │ │ +0016ad50: 6c65 2053 6f63 6b65 7420 6e66 7461 626c  le Socket nftabl
│ │ │ +0016ad60: 6573 0a20 2020 2061 6e73 6962 6c65 2e62  es.    ansible.b
│ │ │ +0016ad70: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0016ad80: 2020 2020 2020 6e61 6d65 3a20 6e66 7461        name: nfta
│ │ │ +0016ad90: 626c 6573 2e73 6f63 6b65 740a 2020 2020  bles.socket.    
│ │ │ +0016ada0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0016adb0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0016adc0: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +0016add0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0016ade0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0016adf0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0016ae00: 6573 2069 7320 7365 6172 6368 2822 6e66  es is search("nf
│ │ │ +0016ae10: 7461 626c 6573 2e73 6f63 6b65 7422 2c20  tables.socket", 
│ │ │ +0016ae20: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0016ae30: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +0016ae40: 4453 5376 342d 312e 320a 2020 2d20 5043  DSSv4-1.2.  - PC
│ │ │ +0016ae50: 492d 4453 5376 342d 312e 322e 310a 2020  I-DSSv4-1.2.1.  
│ │ │ +0016ae60: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0016ae70: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0016ae80: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0016ae90: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0016aea0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0016aeb0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0016aec0: 640a 2020 2d20 7365 7276 6963 655f 6e66  d.  - service_nf
│ │ │ +0016aed0: 7461 626c 6573 5f64 6973 6162 6c65 640a  tables_disabled.
│ │ │ +0016aee0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0016aef0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0016af00: 3a20 2820 226e 6674 6162 6c65 7322 2069  : ( "nftables" i
│ │ │ +0016af10: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0016af20: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ +0016af30: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0016af40: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0016af50: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
Remedi │ │ │ +0016b010: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ +0016b020: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0016b030: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +0016a7e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0016a810: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0016a820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0016a860: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0016a870: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +0016b0d0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0016b100: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0016b110: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ +0016b160: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ +0016b170: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ +0016b180: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ +0016b190: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ +0016b1a0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ +0016b1b0: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ +0016b1c0: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ +0016b1d0: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ +0016b1e0: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ +0016b1f0: 0a20 2020 2020 202d 206e 616d 653a 206e  .      - name: n
│ │ │ +0016b200: 6674 6162 6c65 732e 7365 7276 6963 650a  ftables.service.
│ │ │ +0016b210: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +0016b220: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +0016b230: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ +0016b240: 2d20 6e61 6d65 3a20 6e66 7461 626c 6573  - name: nftables
│ │ │ +0016b250: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +0016b260: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0016b270: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +0016b280: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +0016b290: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0016b340: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0016b350: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Co │ │ │ +0016b0b0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0016b0e0: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ +0016b0f0: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ +0016b130: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0016b140: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +0016b420: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0016b430: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0016b480: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +0016b490: 6e66 7461 626c 6573 0a0a 636c 6173 7320  nftables..class 
│ │ │ +0016b4a0: 6469 7361 626c 655f 6e66 7461 626c 6573  disable_nftables
│ │ │ +0016b4b0: 207b 0a20 2073 6572 7669 6365 207b 276e   {.  service {'n
│ │ │ +0016b4c0: 6674 6162 6c65 7327 3a0a 2020 2020 656e  ftables':.    en
│ │ │ +0016b4d0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +0016b4e0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +0016b4f0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +0016b500: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +0016b5c0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0016b5d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +0016b620: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +0016b630: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +0016b640: 6420 3d20 5b22 6e66 7461 626c 6573 225d  d = ["nftables"]
│ │ │  0016b650: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediat │ │ │ -001839b0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -001839c0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -001839d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -00183a20: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -00183a30: 6173 6b65 6420 3d20 5b22 626c 7565 746f  asked = ["blueto
│ │ │ -00183a40: 6f74 6822 5d0a 3c2f 636f 6465 3e3c 2f70  oth"].

Remediatio │ │ │ -00183b00: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ -00183b10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00183b20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00183b50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +0016b400: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0016b410: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0016b450: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0016b460: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00183bc0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ -00183ba0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00183bb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ -00183bf0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ -00183c00: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ -00183c40: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ -00183c50: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ -00183c60: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ -00183c70: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ -00183c80: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ -00183c90: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ -00183ca0: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ -00183cb0: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ -00183cc0: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ -00183cd0: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ -00183ce0: 2020 202d 206e 616d 653a 2062 6c75 6574     - name: bluet
│ │ │ -00183cf0: 6f6f 7468 2e73 6572 7669 6365 0a20 2020  ooth.service.   
│ │ │ -00183d00: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00183d10: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -00183d20: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -00183d30: 616d 653a 2062 6c75 6574 6f6f 7468 2e73  ame: bluetooth.s
│ │ │ -00183d40: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -00183d50: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00183d60: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -00183d70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00183e20: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00183e30: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00183ed0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00183f70: 636c 7564 6520 6469 7361 626c 655f 626c  clude disable_bl
│ │ │ -00183f80: 7565 746f 6f74 680a 0a63 6c61 7373 2064  uetooth..class d
│ │ │ -00183f90: 6973 6162 6c65 5f62 6c75 6574 6f6f 7468  isable_bluetooth
│ │ │ -00183fa0: 207b 0a20 2073 6572 7669 6365 207b 2762   {.  service {'b
│ │ │ -00183fb0: 6c75 6574 6f6f 7468 273a 0a20 2020 2065  luetooth':.    e
│ │ │ -00183fc0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -00183fd0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00183fe0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -00183ff0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -001840b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -001840c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -00184180: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00184190: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ -00183ec0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00183ef0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00183f00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00183f40: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00183f50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -00184150: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00184170: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -001841a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -001841c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001841f0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00184200: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00184210: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00184220: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00184230: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00184240: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -00184250: 312d 332e 312e 3136 0a20 202d 204e 4953  1-3.1.16.  - NIS
│ │ │ -00184260: 542d 3830 302d 3533 2d41 432d 3138 2833  T-800-53-AC-18(3
│ │ │ -00184270: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00184280: 332d 4143 2d31 3828 6129 0a20 202d 204e  3-AC-18(a).  - N
│ │ │ -00184290: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -001842a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -001842b0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -001842c0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -001842d0: 6229 0a20 202d 204e 4953 542d 3830 302d  b).  - NIST-800-
│ │ │ -001842e0: 3533 2d4d 502d 370a 2020 2d20 6469 7361  53-MP-7.  - disa
│ │ │ -001842f0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00184300: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00184310: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00184320: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00184330: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00184340: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00184350: 7365 7276 6963 655f 626c 7565 746f 6f74  service_bluetoot
│ │ │ -00184360: 685f 6469 7361 626c 6564 0a0a 2d20 6e61  h_disabled..- na
│ │ │ -00184370: 6d65 3a20 4469 7361 626c 6520 426c 7565  me: Disable Blue
│ │ │ -00184380: 746f 6f74 6820 5365 7276 6963 6520 2d20  tooth Service - 
│ │ │ -00184390: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -001843a0: 626c 7565 746f 6f74 680a 2020 626c 6f63  bluetooth.  bloc
│ │ │ -001843b0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -001843c0: 7361 626c 6520 426c 7565 746f 6f74 6820  sable Bluetooth 
│ │ │ -001843d0: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ -001843e0: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -001843f0: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -00184400: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -00184410: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00184420: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00184430: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00184440: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -00184450: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -00184460: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -00184470: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -00184480: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -00184490: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -001844a0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -001844b0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -001844c0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -001844d0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -001844e0: 2042 6c75 6574 6f6f 7468 2053 6572 7669   Bluetooth Servi
│ │ │ -001844f0: 6365 202d 2045 6e73 7572 6520 626c 7565  ce - Ensure blue
│ │ │ -00184500: 746f 6f74 682e 7365 7276 6963 6520 6973  tooth.service is
│ │ │ -00184510: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -00184520: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00184530: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00184540: 2062 6c75 6574 6f6f 7468 2e73 6572 7669   bluetooth.servi
│ │ │ -00184550: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -00184560: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -00184570: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00184580: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00184590: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -001845a0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -001845b0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -001845c0: 2262 6c75 6574 6f6f 7468 2e73 6572 7669  "bluetooth.servi
│ │ │ -001845d0: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ -001845e0: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ -001845f0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ -00184600: 7473 202d 2062 6c75 6574 6f6f 7468 2e73  ts - bluetooth.s
│ │ │ -00184610: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -00184620: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00184630: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -00184640: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -00184650: 626c 7565 746f 6f74 682e 736f 636b 6574  bluetooth.socket
│ │ │ -00184660: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -00184670: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00184680: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00184690: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -001846a0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -001846b0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -001846c0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -001846d0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -001846e0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -001846f0: 4469 7361 626c 6520 426c 7565 746f 6f74  Disable Bluetoot
│ │ │ -00184700: 6820 5365 7276 6963 6520 2d20 4469 7361  h Service - Disa
│ │ │ -00184710: 626c 6520 536f 636b 6574 2062 6c75 6574  ble Socket bluet
│ │ │ -00184720: 6f6f 7468 0a20 2020 2061 6e73 6962 6c65  ooth.    ansible
│ │ │ -00184730: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -00184740: 3a0a 2020 2020 2020 6e61 6d65 3a20 626c  :.      name: bl
│ │ │ -00184750: 7565 746f 6f74 682e 736f 636b 6574 0a20  uetooth.socket. 
│ │ │ -00184760: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00184770: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -00184780: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -00184790: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -001847a0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -001847b0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -001847c0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -001847d0: 2262 6c75 6574 6f6f 7468 2e73 6f63 6b65  "bluetooth.socke
│ │ │ -001847e0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -001847f0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -00184800: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -00184810: 2e31 360a 2020 2d20 4e49 5354 2d38 3030  .16.  - NIST-800
│ │ │ -00184820: 2d35 332d 4143 2d31 3828 3329 0a20 202d  -53-AC-18(3).  -
│ │ │ -00184830: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -00184840: 3138 2861 290a 2020 2d20 4e49 5354 2d38  18(a).  - NIST-8
│ │ │ -00184850: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00184860: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00184870: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -00184880: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -00184890: 2d20 4e49 5354 2d38 3030 2d35 332d 4d50  - NIST-800-53-MP
│ │ │ -001848a0: 2d37 0a20 202d 2064 6973 6162 6c65 5f73  -7.  - disable_s
│ │ │ -001848b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001848c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001848d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001848e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -001848f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00184900: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00184910: 6365 5f62 6c75 6574 6f6f 7468 5f64 6973  ce_bluetooth_dis
│ │ │ -00184920: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -00184930: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -00184940: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00184950: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00184960: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +001839b0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +001839c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +001839d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001839e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001839f0: 7365 2220 6964 3d22 6964 3438 3122 3e3c se" id="id481">< │ │ │ +00183a00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00183a10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00183a20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00183a30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00183a40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00183a50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00183a60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00183aa0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00183ab0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00183ad0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00183ae0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00183b00: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00183b10: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00183b20: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00183b30: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00183b40: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00183b50: 2d31 3731 2d33 2e31 2e31 360a 2020 2d20 -171-3.1.16. - │ │ │ +00183b60: 4e49 5354 2d38 3030 2d35 332d 4143 2d31 NIST-800-53-AC-1 │ │ │ +00183b70: 3828 3329 0a20 202d 204e 4953 542d 3830 8(3). - NIST-80 │ │ │ +00183b80: 302d 3533 2d41 432d 3138 2861 290a 2020 0-53-AC-18(a). │ │ │ +00183b90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00183ba0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38 -6(a). - NIST-8 │ │ │ +00183bb0: 3030 2d35 332d 434d 2d37 2861 290a 2020 00-53-CM-7(a). │ │ │ +00183bc0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00183bd0: 2d37 2862 290a 2020 2d20 4e49 5354 2d38 -7(b). - NIST-8 │ │ │ +00183be0: 3030 2d35 332d 4d50 2d37 0a20 202d 2064 00-53-MP-7. - d │ │ │ +00183bf0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +00183c00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +00183c10: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +00183c20: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +00183c30: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +00183c40: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +00183c50: 202d 2073 6572 7669 6365 5f62 6c75 6574 - service_bluet │ │ │ +00183c60: 6f6f 7468 5f64 6973 6162 6c65 640a 0a2d ooth_disabled..- │ │ │ +00183c70: 206e 616d 653a 2044 6973 6162 6c65 2042 name: Disable B │ │ │ +00183c80: 6c75 6574 6f6f 7468 2053 6572 7669 6365 luetooth Service │ │ │ +00183c90: 202d 2044 6973 6162 6c65 2073 6572 7669 - Disable servi │ │ │ +00183ca0: 6365 2062 6c75 6574 6f6f 7468 0a20 2062 ce bluetooth. b │ │ │ +00183cb0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ +00183cc0: 2044 6973 6162 6c65 2042 6c75 6574 6f6f Disable Bluetoo │ │ │ +00183cd0: 7468 2053 6572 7669 6365 202d 2043 6f6c th Service - Col │ │ │ +00183ce0: 6c65 6374 2073 7973 7465 6d64 2053 6572 lect systemd Ser │ │ │ +00183cf0: 7669 6365 7320 5072 6573 656e 7420 696e vices Present in │ │ │ +00183d00: 2074 6865 2053 7973 7465 6d0a 2020 2020 the System. │ │ │ +00183d10: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00183d20: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ +00183d30: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ +00183d40: 6669 6c65 7320 2d2d 7479 7065 2073 6572 files --type ser │ │ │ +00183d50: 7669 6365 0a20 2020 2072 6567 6973 7465 vice. registe │ │ │ +00183d60: 723a 2073 6572 7669 6365 5f65 7869 7374 r: service_exist │ │ │ +00183d70: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +00183d80: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +00183d90: 696c 6564 5f77 6865 6e3a 2073 6572 7669 iled_when: servi │ │ │ +00183da0: 6365 5f65 7869 7374 732e 7263 206e 6f74 ce_exists.rc not │ │ │ +00183db0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063 in [0, 1]. c │ │ │ +00183dc0: 6865 636b 5f6d 6f64 653a 2066 616c 7365 heck_mode: false │ │ │ +00183dd0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361 .. - name: Disa │ │ │ +00183de0: 626c 6520 426c 7565 746f 6f74 6820 5365 ble Bluetooth Se │ │ │ +00183df0: 7276 6963 6520 2d20 456e 7375 7265 2062 rvice - Ensure b │ │ │ +00183e00: 6c75 6574 6f6f 7468 2e73 6572 7669 6365 luetooth.service │ │ │ +00183e10: 2069 7320 4d61 736b 6564 0a20 2020 2061 is Masked. a │ │ │ +00183e20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ +00183e30: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ +00183e40: 6d65 3a20 626c 7565 746f 6f74 682e 7365 me: bluetooth.se │ │ │ +00183e50: 7276 6963 650a 2020 2020 2020 7374 6174 rvice. stat │ │ │ +00183e60: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ +00183e70: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +00183e80: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ +00183e90: 7565 0a20 2020 2077 6865 6e3a 2073 6572 ue. when: ser │ │ │ +00183ea0: 7669 6365 5f65 7869 7374 732e 7374 646f vice_exists.stdo │ │ │ +00183eb0: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ +00183ec0: 6368 2822 626c 7565 746f 6f74 682e 7365 ch("bluetooth.se │ │ │ +00183ed0: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ +00183ee0: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ +00183ef0: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ +00183f00: 7869 7374 7320 2d20 626c 7565 746f 6f74 xists - bluetoot │ │ │ +00183f10: 682e 736f 636b 6574 0a20 2020 2061 6e73 h.socket. ans │ │ │ +00183f20: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ +00183f30: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ +00183f40: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ +00183f50: 6573 2062 6c75 6574 6f6f 7468 2e73 6f63 es bluetooth.soc │ │ │ +00183f60: 6b65 740a 2020 2020 7265 6769 7374 6572 ket. register │ │ │ +00183f70: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ +00183f80: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ +00183f90: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ +00183fa0: 2066 6169 6c65 645f 7768 656e 3a20 736f failed_when: so │ │ │ +00183fb0: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ +00183fc0: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ +00183fd0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ +00183fe0: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ +00183ff0: 653a 2044 6973 6162 6c65 2042 6c75 6574 e: Disable Bluet │ │ │ +00184000: 6f6f 7468 2053 6572 7669 6365 202d 2044 ooth Service - D │ │ │ +00184010: 6973 6162 6c65 2053 6f63 6b65 7420 626c isable Socket bl │ │ │ +00184020: 7565 746f 6f74 680a 2020 2020 616e 7369 uetooth. ansi │ │ │ +00184030: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ +00184040: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ +00184050: 2062 6c75 6574 6f6f 7468 2e73 6f63 6b65 bluetooth.socke │ │ │ +00184060: 740a 2020 2020 2020 656e 6162 6c65 643a t. enabled: │ │ │ +00184070: 2066 616c 7365 0a20 2020 2020 2073 7461 false. sta │ │ │ +00184080: 7465 3a20 7374 6f70 7065 640a 2020 2020 te: stopped. │ │ │ +00184090: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ +001840a0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f when: socket_ │ │ │ +001840b0: 6669 6c65 5f65 7869 7374 732e 7374 646f file_exists.stdo │ │ │ +001840c0: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ +001840d0: 6368 2822 626c 7565 746f 6f74 682e 736f ch("bluetooth.so │ │ │ +001840e0: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ +001840f0: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ +00184100: 202d 204e 4953 542d 3830 302d 3137 312d - NIST-800-171- │ │ │ +00184110: 332e 312e 3136 0a20 202d 204e 4953 542d 3.1.16. - NIST- │ │ │ +00184120: 3830 302d 3533 2d41 432d 3138 2833 290a 800-53-AC-18(3). │ │ │ +00184130: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00184140: 4143 2d31 3828 6129 0a20 202d 204e 4953 AC-18(a). - NIS │ │ │ +00184150: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ +00184160: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00184170: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ +00184180: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ +00184190: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +001841a0: 2d4d 502d 370a 2020 2d20 6469 7361 626c -MP-7. - disabl │ │ │ +001841b0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +001841c0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +001841d0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +001841e0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +001841f0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +00184200: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ +00184210: 7276 6963 655f 626c 7565 746f 6f74 685f rvice_bluetooth_ │ │ │ +00184220: 6469 7361 626c 6564 0a20 202d 2073 7065 disabled. - spe │ │ │ +00184230: 6369 616c 5f73 6572 7669 6365 5f62 6c6f cial_service_blo │ │ │ +00184240: 636b 0a20 2077 6865 6e3a 2027 226c 696e ck. when: '"lin │ │ │ +00184250: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ +00184260: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +00184270: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265 es'.
Remediation │ │ │ +00184330: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ +00184340: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +001843c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +001843d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001843e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ +00184410: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ +00184420: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +00184430: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ +00184440: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ +00184480: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +00184490: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +001844a0: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +001844b0: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +001844c0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +001844d0: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +001844e0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +001844f0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +00184500: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +00184510: 202d 206e 616d 653a 2062 6c75 6574 6f6f - name: bluetoo │ │ │ +00184520: 7468 2e73 6572 7669 6365 0a20 2020 2020 th.service. │ │ │ +00184530: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +00184540: 650a 2020 2020 2020 2020 6d61 736b 3a20 e. mask: │ │ │ +00184550: 7472 7565 0a20 2020 2020 202d 206e 616d true. - nam │ │ │ +00184560: 653a 2062 6c75 6574 6f6f 7468 2e73 6f63 e: bluetooth.soc │ │ │ +00184570: 6b65 740a 2020 2020 2020 2020 656e 6162 ket. enab │ │ │ +00184580: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ +00184590: 2020 206d 6173 6b3a 2074 7275 650a 3c2f mask: true.

Re │ │ │ +00184650: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00184660: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00184670: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00184710: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00184760: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +001846f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00184720: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00184740: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00184750: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00184770: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00184780: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +001847a0: 7564 6520 6469 7361 626c 655f 626c 7565  ude disable_blue
│ │ │ +001847b0: 746f 6f74 680a 0a63 6c61 7373 2064 6973  tooth..class dis
│ │ │ +001847c0: 6162 6c65 5f62 6c75 6574 6f6f 7468 207b  able_bluetooth {
│ │ │ +001847d0: 0a20 2073 6572 7669 6365 207b 2762 6c75  .  service {'blu
│ │ │ +001847e0: 6574 6f6f 7468 273a 0a20 2020 2065 6e61  etooth':.    ena
│ │ │ +001847f0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +00184800: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00184810: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +00184820: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00184830: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +001848e0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +001848f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00184900: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00184940: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00184950: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00184960: 203d 205b 2262 6c75 6574 6f6f 7468 225d   = ["bluetooth"]
│ │ │  00184970: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -001ec0d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -001ec0e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001ec1b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001ec1c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001ec210: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -001ec220: 6175 746f 6673 0a0a 636c 6173 7320 7265  autofs..class re
│ │ │ -001ec230: 6d6f 7665 5f61 7574 6f66 7320 7b0a 2020  move_autofs {.  
│ │ │ -001ec240: 7061 636b 6167 6520 7b20 2761 7574 6f66  package { 'autof
│ │ │ -001ec250: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ -001ec260: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -001ec270: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -001ec330: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -001ec340: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -001ec400: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001ec410: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -001ec190: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001ec1a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001ec1e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001ec1f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ -001ec3d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -001ec3f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -001ec420: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -001ec440: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001ec470: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ -001ec480: 6d6f 7665 2061 7574 6f66 7320 5061 636b  move autofs Pack
│ │ │ -001ec490: 6167 653a 2045 6e73 7572 6520 6175 746f  age: Ensure auto
│ │ │ -001ec4a0: 6673 2069 7320 7265 6d6f 7665 6427 0a20  fs is removed'. 
│ │ │ -001ec4b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -001ec4c0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -001ec4d0: 6d65 3a20 6175 746f 6673 0a20 2020 2073  me: autofs.    s
│ │ │ -001ec4e0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -001ec4f0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -001ec500: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -001ec510: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -001ec520: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -001ec530: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -001ec540: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -001ec550: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -001ec560: 655f 6175 746f 6673 5f72 656d 6f76 6564  e_autofs_removed
│ │ │ +001ec0c0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +001ec0d0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +001ec0e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +001ec1b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001ec1c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +001ec220: 2061 7574 6f66 7320 5061 636b 6167 653a   autofs Package:
│ │ │ +001ec230: 2045 6e73 7572 6520 6175 746f 6673 2069   Ensure autofs i
│ │ │ +001ec240: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +001ec250: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +001ec260: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +001ec270: 6175 746f 6673 0a20 2020 2073 7461 7465  autofs.    state
│ │ │ +001ec280: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +001ec290: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +001ec2a0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +001ec2b0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +001ec2c0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +001ec2d0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +001ec2e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001ec2f0: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ +001ec300: 746f 6673 5f72 656d 6f76 6564 0a3c 2f63  tofs_removed.
│ │ │ +001ec320: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +001ec3c0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +001ec3d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +001ec3e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +001ec190: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001ec1a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001ec1e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001ec1f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +001ec460: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001ec490: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001ec4b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001ec4c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001ec4e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001ec4f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +001ec510: 6c75 6465 2072 656d 6f76 655f 6175 746f  lude remove_auto
│ │ │ +001ec520: 6673 0a0a 636c 6173 7320 7265 6d6f 7665  fs..class remove
│ │ │ +001ec530: 5f61 7574 6f66 7320 7b0a 2020 7061 636b  _autofs {.  pack
│ │ │ +001ec540: 6167 6520 7b20 2761 7574 6f66 7327 3a0a  age { 'autofs':.
│ │ │ +001ec550: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +001ec560: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  001ec570: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedia │ │ │ -001edda0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -001eddb0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -001eddc0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -001ede00: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -001ede10: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -001ede20: 6d61 736b 6564 203d 205b 2261 7574 6f66  masked = ["autof
│ │ │ -001ede30: 7322 5d0a 3c2f 636f 6465 3e3c 2f70 7265  s"].
Remediation │ │ │ -001edef0: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ -001edf00: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001edf80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001edf90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001edfa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ -001edfd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ -001edfe0: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -001edff0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ -001ee000: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ -001ee040: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -001ee050: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -001ee060: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -001ee070: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -001ee080: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -001ee090: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -001ee0a0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -001ee0b0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -001ee0c0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -001ee0d0: 202d 206e 616d 653a 2061 7574 6f66 732e - name: autofs. │ │ │ -001ee0e0: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ -001ee0f0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -001ee100: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ -001ee110: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ -001ee120: 6175 746f 6673 2e73 6f63 6b65 740a 2020 autofs.socket. │ │ │ -001ee130: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ -001ee140: 616c 7365 0a20 2020 2020 2020 206d 6173 alse. mas │ │ │ -001ee150: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c k: true.< │ │ │ -001ee160: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ -001ee210: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001ee220: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001ee2a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001ee2b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001ee2c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001ee300: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001ee310: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001ee330: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -001ee350: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -001ee360: 7361 626c 655f 6175 746f 6673 0a0a 636c  sable_autofs..cl
│ │ │ -001ee370: 6173 7320 6469 7361 626c 655f 6175 746f  ass disable_auto
│ │ │ -001ee380: 6673 207b 0a20 2073 6572 7669 6365 207b  fs {.  service {
│ │ │ -001ee390: 2761 7574 6f66 7327 3a0a 2020 2020 656e  'autofs':.    en
│ │ │ -001ee3a0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -001ee3b0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -001ee3c0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -001ee3d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -001ee490: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -001ee4a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001ee530: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001ee550: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001ee570: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001ee5a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001ee5b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -001ee5e0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -001ee5f0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -001ee600: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -001ee610: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -001ee620: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -001ee630: 2d33 2e34 2e36 0a20 202d 204e 4953 542d  -3.4.6.  - NIST-
│ │ │ -001ee640: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -001ee650: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -001ee660: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -001ee670: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -001ee680: 202d 204e 4953 542d 3830 302d 3533 2d4d   - NIST-800-53-M
│ │ │ -001ee690: 502d 370a 2020 2d20 6469 7361 626c 655f  P-7.  - disable_
│ │ │ -001ee6a0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -001ee6b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -001ee6c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -001ee6d0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -001ee6e0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -001ee6f0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -001ee700: 6963 655f 6175 746f 6673 5f64 6973 6162  ice_autofs_disab
│ │ │ -001ee710: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ -001ee720: 6162 6c65 2074 6865 2041 7574 6f6d 6f75  able the Automou
│ │ │ -001ee730: 6e74 6572 202d 2044 6973 6162 6c65 2073  nter - Disable s
│ │ │ -001ee740: 6572 7669 6365 2061 7574 6f66 730a 2020  ervice autofs.  
│ │ │ -001ee750: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -001ee760: 3a20 4469 7361 626c 6520 7468 6520 4175  : Disable the Au
│ │ │ -001ee770: 746f 6d6f 756e 7465 7220 2d20 436f 6c6c  tomounter - Coll
│ │ │ -001ee780: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -001ee790: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -001ee7a0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -001ee7b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -001ee7c0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -001ee7d0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -001ee7e0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -001ee7f0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -001ee800: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -001ee810: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -001ee820: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -001ee830: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -001ee840: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -001ee850: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -001ee860: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -001ee870: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -001ee880: 6c65 2074 6865 2041 7574 6f6d 6f75 6e74  le the Automount
│ │ │ -001ee890: 6572 202d 2045 6e73 7572 6520 6175 746f  er - Ensure auto
│ │ │ -001ee8a0: 6673 2e73 6572 7669 6365 2069 7320 4d61  fs.service is Ma
│ │ │ -001ee8b0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ -001ee8c0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -001ee8d0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6175  :.      name: au
│ │ │ -001ee8e0: 746f 6673 2e73 6572 7669 6365 0a20 2020  tofs.service.   
│ │ │ -001ee8f0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -001ee900: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -001ee910: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -001ee920: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -001ee930: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -001ee940: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -001ee950: 6973 2073 6561 7263 6828 2261 7574 6f66  is search("autof
│ │ │ -001ee960: 732e 7365 7276 6963 6522 2c20 6d75 6c74  s.service", mult
│ │ │ -001ee970: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -001ee980: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -001ee990: 6574 2045 7869 7374 7320 2d20 6175 746f  et Exists - auto
│ │ │ -001ee9a0: 6673 2e73 6f63 6b65 740a 2020 2020 616e  fs.socket.    an
│ │ │ -001ee9b0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -001ee9c0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -001ee9d0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -001ee9e0: 6c65 7320 6175 746f 6673 2e73 6f63 6b65  les autofs.socke
│ │ │ -001ee9f0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ -001eea00: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -001eea10: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -001eea20: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -001eea30: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ -001eea40: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ -001eea50: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -001eea60: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -001eea70: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -001eea80: 2044 6973 6162 6c65 2074 6865 2041 7574   Disable the Aut
│ │ │ -001eea90: 6f6d 6f75 6e74 6572 202d 2044 6973 6162  omounter - Disab
│ │ │ -001eeaa0: 6c65 2053 6f63 6b65 7420 6175 746f 6673  le Socket autofs
│ │ │ -001eeab0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -001eeac0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -001eead0: 2020 2020 6e61 6d65 3a20 6175 746f 6673      name: autofs
│ │ │ -001eeae0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -001eeaf0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -001eeb00: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -001eeb10: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -001eeb20: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -001eeb30: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -001eeb40: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -001eeb50: 7320 7365 6172 6368 2822 6175 746f 6673  s search("autofs
│ │ │ -001eeb60: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -001eeb70: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -001eeb80: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -001eeb90: 3731 2d33 2e34 2e36 0a20 202d 204e 4953  71-3.4.6.  - NIS
│ │ │ -001eeba0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -001eebb0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001eebc0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -001eebd0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -001eebe0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001eebf0: 2d4d 502d 370a 2020 2d20 6469 7361 626c  -MP-7.  - disabl
│ │ │ -001eec00: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -001eec10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001eec20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001eec30: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -001eec40: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -001eec50: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -001eec60: 7276 6963 655f 6175 746f 6673 5f64 6973  rvice_autofs_dis
│ │ │ -001eec70: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -001eec80: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -001eec90: 2020 7768 656e 3a20 2820 2261 7574 6f66    when: ( "autof
│ │ │ -001eeca0: 7322 2069 6e20 616e 7369 626c 655f 6661  s" in ansible_fa
│ │ │ -001eecb0: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ -001eecc0: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ -001eecd0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -001eece0: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
│ │ │ +001eddc0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001eddf0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +001ede60: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001ede80: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001edeb0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +001ede40: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001ede50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001ede90: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001edea0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +001edef0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +001edf00: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +001edf10: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +001edf20: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +001edf30: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +001edf40: 302d 3137 312d 332e 342e 360a 2020 2d20 0-171-3.4.6. - │ │ │ +001edf50: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +001edf60: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +001edf70: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ +001edf80: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +001edf90: 2862 290a 2020 2d20 4e49 5354 2d38 3030 (b). - NIST-800 │ │ │ +001edfa0: 2d35 332d 4d50 2d37 0a20 202d 2064 6973 -53-MP-7. - dis │ │ │ +001edfb0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +001edfc0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +001edfd0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +001edfe0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +001edff0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +001ee000: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +001ee010: 2073 6572 7669 6365 5f61 7574 6f66 735f service_autofs_ │ │ │ +001ee020: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65 disabled..- name │ │ │ +001ee030: 3a20 4469 7361 626c 6520 7468 6520 4175 : Disable the Au │ │ │ +001ee040: 746f 6d6f 756e 7465 7220 2d20 4469 7361 tomounter - Disa │ │ │ +001ee050: 626c 6520 7365 7276 6963 6520 6175 746f ble service auto │ │ │ +001ee060: 6673 0a20 2062 6c6f 636b 3a0a 0a20 202d fs. block:.. - │ │ │ +001ee070: 206e 616d 653a 2044 6973 6162 6c65 2074 name: Disable t │ │ │ +001ee080: 6865 2041 7574 6f6d 6f75 6e74 6572 202d he Automounter - │ │ │ +001ee090: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ +001ee0a0: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ +001ee0b0: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ +001ee0c0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +001ee0d0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ +001ee0e0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ +001ee0f0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ +001ee100: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ +001ee110: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ +001ee120: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ +001ee130: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ +001ee140: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ +001ee150: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ +001ee160: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +001ee170: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +001ee180: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +001ee190: 4469 7361 626c 6520 7468 6520 4175 746f Disable the Auto │ │ │ +001ee1a0: 6d6f 756e 7465 7220 2d20 456e 7375 7265 mounter - Ensure │ │ │ +001ee1b0: 2061 7574 6f66 732e 7365 7276 6963 6520 autofs.service │ │ │ +001ee1c0: 6973 204d 6173 6b65 640a 2020 2020 616e is Masked. an │ │ │ +001ee1d0: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ +001ee1e0: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ +001ee1f0: 653a 2061 7574 6f66 732e 7365 7276 6963 e: autofs.servic │ │ │ +001ee200: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +001ee210: 746f 7070 6564 0a20 2020 2020 2065 6e61 topped. ena │ │ │ +001ee220: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ +001ee230: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ +001ee240: 2020 2077 6865 6e3a 2073 6572 7669 6365 when: service │ │ │ +001ee250: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ +001ee260: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ +001ee270: 6175 746f 6673 2e73 6572 7669 6365 222c autofs.service", │ │ │ +001ee280: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ +001ee290: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974 .. - name: Unit │ │ │ +001ee2a0: 2053 6f63 6b65 7420 4578 6973 7473 202d Socket Exists - │ │ │ +001ee2b0: 2061 7574 6f66 732e 736f 636b 6574 0a20 autofs.socket. │ │ │ +001ee2c0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +001ee2d0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ +001ee2e0: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ +001ee2f0: 6974 2d66 696c 6573 2061 7574 6f66 732e it-files autofs. │ │ │ +001ee300: 736f 636b 6574 0a20 2020 2072 6567 6973 socket. regis │ │ │ +001ee310: 7465 723a 2073 6f63 6b65 745f 6669 6c65 ter: socket_file │ │ │ +001ee320: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ +001ee330: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ +001ee340: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ +001ee350: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ +001ee360: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ +001ee370: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ +001ee380: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ +001ee390: 6e61 6d65 3a20 4469 7361 626c 6520 7468 name: Disable th │ │ │ +001ee3a0: 6520 4175 746f 6d6f 756e 7465 7220 2d20 e Automounter - │ │ │ +001ee3b0: 4469 7361 626c 6520 536f 636b 6574 2061 Disable Socket a │ │ │ +001ee3c0: 7574 6f66 730a 2020 2020 616e 7369 626c utofs. ansibl │ │ │ +001ee3d0: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +001ee3e0: 643a 0a20 2020 2020 206e 616d 653a 2061 d:. name: a │ │ │ +001ee3f0: 7574 6f66 732e 736f 636b 6574 0a20 2020 utofs.socket. │ │ │ +001ee400: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +001ee410: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +001ee420: 746f 7070 6564 0a20 2020 2020 206d 6173 topped. mas │ │ │ +001ee430: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ +001ee440: 656e 3a20 736f 636b 6574 5f66 696c 655f en: socket_file_ │ │ │ +001ee450: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ +001ee460: 6e65 7320 6973 2073 6561 7263 6828 2261 nes is search("a │ │ │ +001ee470: 7574 6f66 732e 736f 636b 6574 222c 206d utofs.socket", m │ │ │ +001ee480: 756c 7469 6c69 6e65 3d54 7275 6529 0a20 ultiline=True). │ │ │ +001ee490: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +001ee4a0: 3830 302d 3137 312d 332e 342e 360a 2020 800-171-3.4.6. │ │ │ +001ee4b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +001ee4c0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38 -6(a). - NIST-8 │ │ │ +001ee4d0: 3030 2d35 332d 434d 2d37 2861 290a 2020 00-53-CM-7(a). │ │ │ +001ee4e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +001ee4f0: 2d37 2862 290a 2020 2d20 4e49 5354 2d38 -7(b). - NIST-8 │ │ │ +001ee500: 3030 2d35 332d 4d50 2d37 0a20 202d 2064 00-53-MP-7. - d │ │ │ +001ee510: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +001ee520: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +001ee530: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +001ee540: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +001ee550: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +001ee560: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +001ee570: 202d 2073 6572 7669 6365 5f61 7574 6f66 - service_autof │ │ │ +001ee580: 735f 6469 7361 626c 6564 0a20 202d 2073 s_disabled. - s │ │ │ +001ee590: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ +001ee5a0: 6c6f 636b 0a20 2077 6865 6e3a 2028 2022 lock. when: ( " │ │ │ +001ee5b0: 6175 746f 6673 2220 696e 2061 6e73 6962 autofs" in ansib │ │ │ +001ee5c0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +001ee5d0: 7320 616e 6420 226c 696e 7578 2d62 6173 s and "linux-bas │ │ │ +001ee5e0: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +001ee5f0: 6374 732e 7061 636b 6167 6573 0a20 2020 cts.packages. │ │ │ +001ee600: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e ).

│ │ │ +001ee610: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ +001ee6c0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +001ee6d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +001ee750: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001ee760: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001ee780: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001ee790: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +001ee7a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +001ee7b0: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +001ee7c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001ee7e0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +001ee7f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +001ee810: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +001ee820: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +001ee830: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +001ee840: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +001ee850: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +001ee860: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +001ee870: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +001ee880: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +001ee890: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +001ee8a0: 2d20 6e61 6d65 3a20 6175 746f 6673 2e73 - name: autofs.s │ │ │ +001ee8b0: 6572 7669 6365 0a20 2020 2020 2020 2065 ervice. e │ │ │ +001ee8c0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +001ee8d0: 2020 2020 2020 6d61 736b 3a20 7472 7565 mask: true │ │ │ +001ee8e0: 0a20 2020 2020 202d 206e 616d 653a 2061 . - name: a │ │ │ +001ee8f0: 7574 6f66 732e 736f 636b 6574 0a20 2020 utofs.socket. │ │ │ +001ee900: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +001ee910: 6c73 650a 2020 2020 2020 2020 6d61 736b lse. mask │ │ │ +001ee920: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f : true.
Remediati │ │ │ +001ee9e0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +001ee9f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +001eea70: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001eea80: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001eeaa0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001eeab0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +001eead0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +001eeaf0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +001eeb20: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +001eeb30: 6162 6c65 5f61 7574 6f66 730a 0a63 6c61  able_autofs..cla
│ │ │ +001eeb40: 7373 2064 6973 6162 6c65 5f61 7574 6f66  ss disable_autof
│ │ │ +001eeb50: 7320 7b0a 2020 7365 7276 6963 6520 7b27  s {.  service {'
│ │ │ +001eeb60: 6175 746f 6673 273a 0a20 2020 2065 6e61  autofs':.    ena
│ │ │ +001eeb70: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +001eeb80: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001eeb90: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +001eeba0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +001eebb0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +001eec60: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +001eec70: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001eec80: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +001eecc0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +001eecd0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +001eece0: 203d 205b 2261 7574 6f66 7322 5d0a 3c2f   = ["autofs"].
Re │ │ │ -0023c660: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0023c670: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0023c680: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0023c690: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0023c6a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0023c6b0: 7365 2220 6964 3d22 6964 3832 3922 3e3c se" id="id829">< │ │ │ -0023c6c0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0023c6d0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0023c6e0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0023c6f0: 6170 706f 7274 225d 0a3c 2f63 6f64 653e apport"]. │ │ │ -0023c700: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -0023c7b0: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ -0023c7c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0023c7d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Reboot:true │ │ │ -0023c8c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -0023c900: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -0023c910: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -0023c920: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -0023c930: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -0023c940: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -0023c950: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -0023c960: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -0023c970: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -0023c980: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -0023c990: 2020 2020 2020 2d20 6e61 6d65 3a20 6170        - name: ap
│ │ │ -0023c9a0: 706f 7274 2e73 6572 7669 6365 0a20 2020  port.service.   
│ │ │ -0023c9b0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0023c9c0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -0023c9d0: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -0023c9e0: 616d 653a 2061 7070 6f72 742e 736f 636b  ame: apport.sock
│ │ │ -0023c9f0: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -0023ca00: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0023ca10: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -0023ca30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0023cad0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0023cae0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0023caf0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0023c850: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0023c880: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -0023c890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -0023c8d0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0023c8e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -0023cb70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0023cba0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0023cbc0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0023cbd0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0023cbf0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0023cc10: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0023cc20: 6465 2064 6973 6162 6c65 5f61 7070 6f72  de disable_appor
│ │ │ -0023cc30: 740a 0a63 6c61 7373 2064 6973 6162 6c65  t..class disable
│ │ │ -0023cc40: 5f61 7070 6f72 7420 7b0a 2020 7365 7276  _apport {.  serv
│ │ │ -0023cc50: 6963 6520 7b27 6170 706f 7274 273a 0a20  ice {'apport':. 
│ │ │ -0023cc60: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0023cc70: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0023cc80: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0023cc90: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0023cca0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0023cd50: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0023cd60: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0023cd70: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0023cda0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0023ce10: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0023ce30: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0023ce60: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0023cdf0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0023ce00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0023ce40: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0023ce50: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0023cea0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0023ceb0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0023cec0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0023ced0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0023cee0: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -0023cef0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0023cf00: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0023cf10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0023cf20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0023cf30: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -0023cf40: 5f61 7070 6f72 745f 6469 7361 626c 6564 _apport_disabled │ │ │ -0023cf50: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576 . - unknown_sev │ │ │ -0023cf60: 6572 6974 790a 0a2d 206e 616d 653a 2044 erity..- name: D │ │ │ -0023cf70: 6973 6162 6c65 2041 7070 6f72 7420 5365 isable Apport Se │ │ │ -0023cf80: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -0023cf90: 7365 7276 6963 6520 6170 706f 7274 0a20 service apport. │ │ │ -0023cfa0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ -0023cfb0: 653a 2044 6973 6162 6c65 2041 7070 6f72 e: Disable Appor │ │ │ -0023cfc0: 7420 5365 7276 6963 6520 2d20 436f 6c6c t Service - Coll │ │ │ -0023cfd0: 6563 7420 7379 7374 656d 6420 5365 7276 ect systemd Serv │ │ │ -0023cfe0: 6963 6573 2050 7265 7365 6e74 2069 6e20 ices Present in │ │ │ -0023cff0: 7468 6520 5379 7374 656d 0a20 2020 2061 the System. a │ │ │ -0023d000: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ -0023d010: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ -0023d020: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ -0023d030: 696c 6573 202d 2d74 7970 6520 7365 7276 iles --type serv │ │ │ -0023d040: 6963 650a 2020 2020 7265 6769 7374 6572 ice. register │ │ │ -0023d050: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -0023d060: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -0023d070: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -0023d080: 6c65 645f 7768 656e 3a20 7365 7276 6963 led_when: servic │ │ │ -0023d090: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ -0023d0a0: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ -0023d0b0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ -0023d0c0: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -0023d0d0: 6c65 2041 7070 6f72 7420 5365 7276 6963 le Apport Servic │ │ │ -0023d0e0: 6520 2d20 456e 7375 7265 2061 7070 6f72 e - Ensure appor │ │ │ -0023d0f0: 742e 7365 7276 6963 6520 6973 204d 6173 t.service is Mas │ │ │ -0023d100: 6b65 640a 2020 2020 616e 7369 626c 652e ked. ansible. │ │ │ -0023d110: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ -0023d120: 0a20 2020 2020 206e 616d 653a 2061 7070 . name: app │ │ │ -0023d130: 6f72 742e 7365 7276 6963 650a 2020 2020 ort.service. │ │ │ -0023d140: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -0023d150: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -0023d160: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ -0023d170: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -0023d180: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -0023d190: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -0023d1a0: 7320 7365 6172 6368 2822 6170 706f 7274 s search("apport │ │ │ -0023d1b0: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ -0023d1c0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ -0023d1d0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ -0023d1e0: 7420 4578 6973 7473 202d 2061 7070 6f72 t Exists - appor │ │ │ -0023d1f0: 742e 736f 636b 6574 0a20 2020 2061 6e73 t.socket. ans │ │ │ -0023d200: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -0023d210: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -0023d220: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -0023d230: 6573 2061 7070 6f72 742e 736f 636b 6574 es apport.socket │ │ │ -0023d240: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -0023d250: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -0023d260: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ -0023d270: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ -0023d280: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ -0023d290: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ -0023d2a0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -0023d2b0: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -0023d2c0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -0023d2d0: 4469 7361 626c 6520 4170 706f 7274 2053 Disable Apport S │ │ │ -0023d2e0: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ -0023d2f0: 2053 6f63 6b65 7420 6170 706f 7274 0a20 Socket apport. │ │ │ -0023d300: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -0023d310: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -0023d320: 2020 6e61 6d65 3a20 6170 706f 7274 2e73 name: apport.s │ │ │ -0023d330: 6f63 6b65 740a 2020 2020 2020 656e 6162 ocket. enab │ │ │ -0023d340: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -0023d350: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -0023d360: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ -0023d370: 7565 0a20 2020 2077 6865 6e3a 2073 6f63 ue. when: soc │ │ │ -0023d380: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ -0023d390: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -0023d3a0: 7365 6172 6368 2822 6170 706f 7274 2e73 search("apport.s │ │ │ -0023d3b0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ -0023d3c0: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ -0023d3d0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -0023d3e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -0023d3f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -0023d400: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ -0023d410: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0023d420: 2020 2d20 7365 7276 6963 655f 6170 706f - service_appo │ │ │ -0023d430: 7274 5f64 6973 6162 6c65 640a 2020 2d20 rt_disabled. - │ │ │ -0023d440: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -0023d450: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ -0023d460: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ -0023d470: 6e3a 2027 2261 7070 6f72 7422 2069 6e20 n: '"apport" in │ │ │ -0023d480: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0023d490: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +0023c660: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +0023c670: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...

< │ │ │ +0023c710: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0023c720: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0023c770: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0023c7b0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0023c7c0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0023c7d0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0023c7e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0023c7f0: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +0023c800: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0023c810: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0023c820: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0023c830: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +0023c840: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +0023c850: 7276 6963 655f 6170 706f 7274 5f64 6973  rvice_apport_dis
│ │ │ +0023c860: 6162 6c65 640a 2020 2d20 756e 6b6e 6f77  abled.  - unknow
│ │ │ +0023c870: 6e5f 7365 7665 7269 7479 0a0a 2d20 6e61  n_severity..- na
│ │ │ +0023c880: 6d65 3a20 4469 7361 626c 6520 4170 706f  me: Disable Appo
│ │ │ +0023c890: 7274 2053 6572 7669 6365 202d 2044 6973  rt Service - Dis
│ │ │ +0023c8a0: 6162 6c65 2073 6572 7669 6365 2061 7070  able service app
│ │ │ +0023c8b0: 6f72 740a 2020 626c 6f63 6b3a 0a0a 2020  ort.  block:..  
│ │ │ +0023c8c0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0023c8d0: 4170 706f 7274 2053 6572 7669 6365 202d  Apport Service -
│ │ │ +0023c8e0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +0023c8f0: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +0023c900: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +0023c910: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0023c920: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0023c930: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0023c940: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +0023c950: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +0023c960: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +0023c970: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +0023c980: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +0023c990: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +0023c9a0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +0023c9b0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0023c9c0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0023c9d0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0023c9e0: 4469 7361 626c 6520 4170 706f 7274 2053  Disable Apport S
│ │ │ +0023c9f0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +0023ca00: 6170 706f 7274 2e73 6572 7669 6365 2069  apport.service i
│ │ │ +0023ca10: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +0023ca20: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0023ca30: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0023ca40: 3a20 6170 706f 7274 2e73 6572 7669 6365  : apport.service
│ │ │ +0023ca50: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0023ca60: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +0023ca70: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0023ca80: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0023ca90: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +0023caa0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0023cab0: 6e65 7320 6973 2073 6561 7263 6828 2261  nes is search("a
│ │ │ +0023cac0: 7070 6f72 742e 7365 7276 6963 6522 2c20  pport.service", 
│ │ │ +0023cad0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0023cae0: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0023caf0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0023cb00: 6170 706f 7274 2e73 6f63 6b65 740a 2020  apport.socket.  
│ │ │ +0023cb10: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0023cb20: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0023cb30: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0023cb40: 742d 6669 6c65 7320 6170 706f 7274 2e73  t-files apport.s
│ │ │ +0023cb50: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +0023cb60: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +0023cb70: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0023cb80: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0023cb90: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0023cba0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0023cbb0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0023cbc0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0023cbd0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0023cbe0: 616d 653a 2044 6973 6162 6c65 2041 7070  ame: Disable App
│ │ │ +0023cbf0: 6f72 7420 5365 7276 6963 6520 2d20 4469  ort Service - Di
│ │ │ +0023cc00: 7361 626c 6520 536f 636b 6574 2061 7070  sable Socket app
│ │ │ +0023cc10: 6f72 740a 2020 2020 616e 7369 626c 652e  ort.    ansible.
│ │ │ +0023cc20: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0023cc30: 0a20 2020 2020 206e 616d 653a 2061 7070  .      name: app
│ │ │ +0023cc40: 6f72 742e 736f 636b 6574 0a20 2020 2020  ort.socket.     
│ │ │ +0023cc50: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0023cc60: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0023cc70: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +0023cc80: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0023cc90: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0023cca0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0023ccb0: 7320 6973 2073 6561 7263 6828 2261 7070  s is search("app
│ │ │ +0023ccc0: 6f72 742e 736f 636b 6574 222c 206d 756c  ort.socket", mul
│ │ │ +0023ccd0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +0023cce0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +0023ccf0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0023cd00: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0023cd10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0023cd20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0023cd30: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0023cd40: 5f61 7070 6f72 745f 6469 7361 626c 6564  _apport_disabled
│ │ │ +0023cd50: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +0023cd60: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ +0023cd70: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +0023cd80: 2020 7768 656e 3a20 2722 6170 706f 7274    when: '"apport
│ │ │ +0023cd90: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0023cda0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +0023cdc0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0023ce60: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +0023ce70: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +0023ce80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +0023c700: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0023c730: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0023c740: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0023c780: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0023c790: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +0023cf70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0023cfa0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +0023cfc0: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +0023cfd0: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +0023cfe0: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +0023cff0: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +0023d000: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +0023d010: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +0023d020: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +0023d030: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +0023d040: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +0023d050: 3a20 6170 706f 7274 2e73 6572 7669 6365  : apport.service
│ │ │ +0023d060: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +0023d070: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +0023d080: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +0023d090: 202d 206e 616d 653a 2061 7070 6f72 742e   - name: apport.
│ │ │ +0023d0a0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +0023d0b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0023d0c0: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +0023d0d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0023d190: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0023d1a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +0023cf30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +0023cf40: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +0023cf80: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0023cf90: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0023d270: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0023d280: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0023d2d0: 6e63 6c75 6465 2064 6973 6162 6c65 5f61  nclude disable_a
│ │ │ +0023d2e0: 7070 6f72 740a 0a63 6c61 7373 2064 6973  pport..class dis
│ │ │ +0023d2f0: 6162 6c65 5f61 7070 6f72 7420 7b0a 2020  able_apport {.  
│ │ │ +0023d300: 7365 7276 6963 6520 7b27 6170 706f 7274  service {'apport
│ │ │ +0023d310: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +0023d320: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +0023d330: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +0023d340: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +0023d360: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0023d400: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0023d410: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0023d420: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +0023d470: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +0023d480: 6573 5d0a 6d61 736b 6564 203d 205b 2261 es].masked = ["a │ │ │ +0023d490: 7070 6f72 7422 5d0a 3c2f 636f 6465 3e3c pport"].< │ │ │ 0023d4a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>Remediat │ │ │ -0023f080: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0023f090: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0023f110: 3c74 723e 3c74 683e 436f 6d70 6c65 7869

< │ │ │ -0023f1a0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0023f1b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0023d250: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0023d260: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0023d2a0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0023d2b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0023f120: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0023f130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0023f170: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0023f180: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -0023f1d0: 7265 6d6f 7665 5f61 7661 6869 2d64 6165  remove_avahi-dae
│ │ │ -0023f1e0: 6d6f 6e0a 0a63 6c61 7373 2072 656d 6f76  mon..class remov
│ │ │ -0023f1f0: 655f 6176 6168 692d 6461 656d 6f6e 207b  e_avahi-daemon {
│ │ │ -0023f200: 0a20 2070 6163 6b61 6765 207b 2027 6176  .  package { 'av
│ │ │ -0023f210: 6168 692d 6461 656d 6f6e 273a 0a20 2020  ahi-daemon':.   
│ │ │ -0023f220: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -0023f230: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -0023f2f0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0023f300: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0023f3a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0023f3b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0023f400: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0023f440: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -0023f450: 2061 7661 6869 2053 6572 7665 7220 5061   avahi Server Pa
│ │ │ -0023f460: 636b 6167 653a 2045 6e73 7572 6520 6176  ckage: Ensure av
│ │ │ -0023f470: 6168 692d 6461 656d 6f6e 2069 7320 7265  ahi-daemon is re
│ │ │ -0023f480: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0023f490: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0023f4a0: 3a0a 2020 2020 6e61 6d65 3a20 6176 6168  :.    name: avah
│ │ │ -0023f4b0: 692d 6461 656d 6f6e 0a20 2020 2073 7461  i-daemon.    sta
│ │ │ -0023f4c0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0023f4d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0023f4e0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0023f4f0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0023f500: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0023f510: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0023f520: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0023f530: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0023f540: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0023f550: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0023f560: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0023f570: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0023f580: 202d 2070 6163 6b61 6765 5f61 7661 6869   - package_avahi
│ │ │ -0023f590: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0023f080: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +0023f090: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +0023f0a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0023f0b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0023f0c0: 7365 2220 6964 3d22 6964 3833 3522 3e3c se" id="id835">< │ │ │ +0023f0d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0023f0e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0023f0f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0023f100: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0023f110: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0023f1a0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0023f1b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ -0023f390: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0023f3c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0023f3d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0023f410: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0023f420: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +0023f120: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0023f130: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0023f170: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0023f180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0023f1d0: 2755 6e69 6e73 7461 6c6c 2061 7661 6869 'Uninstall avahi │ │ │ +0023f1e0: 2053 6572 7665 7220 5061 636b 6167 653a Server Package: │ │ │ +0023f1f0: 2045 6e73 7572 6520 6176 6168 692d 6461 Ensure avahi-da │ │ │ +0023f200: 656d 6f6e 2069 7320 7265 6d6f 7665 6427 emon is removed' │ │ │ +0023f210: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ +0023f220: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ +0023f230: 6e61 6d65 3a20 6176 6168 692d 6461 656d name: avahi-daem │ │ │ +0023f240: 6f6e 0a20 2020 2073 7461 7465 3a20 6162 on. state: ab │ │ │ +0023f250: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ +0023f260: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0023f270: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ +0023f280: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ +0023f290: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0023f2a0: 3728 6229 0a20 202d 2064 6973 6162 6c65 7(b). - disable │ │ │ +0023f2b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0023f2c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0023f2d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0023f2e0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +0023f2f0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0023f300: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +0023f310: 6b61 6765 5f61 7661 6869 5f72 656d 6f76 kage_avahi_remov │ │ │ +0023f320: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed. │ │ │ +0023f330: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0023f3e0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0023f3f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0023f470: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0023f490: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0023f4e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0023f510: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0023f530: 655f 6176 6168 692d 6461 656d 6f6e 0a0a  e_avahi-daemon..
│ │ │ +0023f540: 636c 6173 7320 7265 6d6f 7665 5f61 7661  class remove_ava
│ │ │ +0023f550: 6869 2d64 6165 6d6f 6e20 7b0a 2020 7061  hi-daemon {.  pa
│ │ │ +0023f560: 636b 6167 6520 7b20 2761 7661 6869 2d64  ckage { 'avahi-d
│ │ │ +0023f570: 6165 6d6f 6e27 3a0a 2020 2020 656e 7375  aemon':.    ensu
│ │ │ +0023f580: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +0023f590: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  0023f5a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -00240a50: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00240a60: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00240a70: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00240a80: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00240ab0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00240ac0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00240ad0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00240ae0: 2261 7661 6869 2d64 6165 6d6f 6e22 5d0a  "avahi-daemon"].
│ │ │ -00240af0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00240ba0: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ -00240bb0: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ -00240bc0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disr │ │ │ +0023f4a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0023f4b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0023f4f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0023f500: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -00240c40: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00240c60: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ -00240c50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00240c70: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ -00240ca0: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ -00240cc0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00240cf0: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ -00240d00: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ -00240d10: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ -00240d20: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ -00240d30: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ -00240d40: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ -00240d50: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ -00240d60: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ -00240d70: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ -00240d80: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ -00240d90: 616d 653a 2061 7661 6869 2d64 6165 6d6f  ame: avahi-daemo
│ │ │ -00240da0: 6e2e 7365 7276 6963 650a 2020 2020 2020  n.service.      
│ │ │ -00240db0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -00240dc0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -00240dd0: 7275 650a 2020 2020 2020 2d20 6e61 6d65  rue.      - name
│ │ │ -00240de0: 3a20 6176 6168 692d 6461 656d 6f6e 2e73  : avahi-daemon.s
│ │ │ -00240df0: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -00240e00: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00240e10: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -00240e20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00240ed0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00240ee0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00240f80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00241020: 636c 7564 6520 6469 7361 626c 655f 6176  clude disable_av
│ │ │ -00241030: 6168 692d 6461 656d 6f6e 0a0a 636c 6173  ahi-daemon..clas
│ │ │ -00241040: 7320 6469 7361 626c 655f 6176 6168 692d  s disable_avahi-
│ │ │ -00241050: 6461 656d 6f6e 207b 0a20 2073 6572 7669  daemon {.  servi
│ │ │ -00241060: 6365 207b 2761 7661 6869 2d64 6165 6d6f  ce {'avahi-daemo
│ │ │ -00241070: 6e27 3a0a 2020 2020 656e 6162 6c65 203d  n':.    enable =
│ │ │ -00241080: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -00241090: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -002410a0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -00241160: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00241170: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00240f70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00240fa0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00240fb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00240ff0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00241000: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00241210: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00241220: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00241270: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002412b0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -002412c0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -002412d0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002412e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002412f0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00241300: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00241310: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00241320: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00241330: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00241340: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -00241350: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00241360: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00241370: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00241380: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00241390: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002413a0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002413b0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002413c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002413d0: 7365 7276 6963 655f 6176 6168 692d 6461  service_avahi-da
│ │ │ -002413e0: 656d 6f6e 5f64 6973 6162 6c65 640a 0a2d  emon_disabled..-
│ │ │ -002413f0: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ -00241400: 7661 6869 2053 6572 7665 7220 536f 6674  vahi Server Soft
│ │ │ -00241410: 7761 7265 202d 2044 6973 6162 6c65 2073  ware - Disable s
│ │ │ -00241420: 6572 7669 6365 2061 7661 6869 2d64 6165  ervice avahi-dae
│ │ │ -00241430: 6d6f 6e0a 2020 626c 6f63 6b3a 0a0a 2020  mon.  block:..  
│ │ │ -00241440: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00241450: 4176 6168 6920 5365 7276 6572 2053 6f66  Avahi Server Sof
│ │ │ -00241460: 7477 6172 6520 2d20 436f 6c6c 6563 7420  tware - Collect 
│ │ │ -00241470: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00241480: 2050 7265 7365 6e74 2069 6e20 7468 650a   Present in the.
│ │ │ -00241490: 2020 2020 2020 5379 7374 656d 0a20 2020        System.   
│ │ │ -002414a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002414b0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002414c0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002414d0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -002414e0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -002414f0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -00241500: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00241510: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00241520: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -00241530: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -00241540: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00241550: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00241560: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00241570: 6162 6c65 2041 7661 6869 2053 6572 7665  able Avahi Serve
│ │ │ -00241580: 7220 536f 6674 7761 7265 202d 2045 6e73  r Software - Ens
│ │ │ -00241590: 7572 6520 6176 6168 692d 6461 656d 6f6e  ure avahi-daemon
│ │ │ -002415a0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -002415b0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -002415c0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002415d0: 2020 2020 2020 6e61 6d65 3a20 6176 6168        name: avah
│ │ │ -002415e0: 692d 6461 656d 6f6e 2e73 6572 7669 6365  i-daemon.service
│ │ │ -002415f0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -00241600: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -00241610: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00241620: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -00241630: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -00241640: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00241650: 6e65 7320 6973 2073 6561 7263 6828 2261  nes is search("a
│ │ │ -00241660: 7661 6869 2d64 6165 6d6f 6e2e 7365 7276  vahi-daemon.serv
│ │ │ -00241670: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -00241680: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -00241690: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -002416a0: 7374 7320 2d20 6176 6168 692d 6461 656d  sts - avahi-daem
│ │ │ -002416b0: 6f6e 2e73 6f63 6b65 740a 2020 2020 616e  on.socket.    an
│ │ │ -002416c0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -002416d0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -002416e0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -002416f0: 6c65 7320 6176 6168 692d 6461 656d 6f6e  les avahi-daemon
│ │ │ -00241700: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -00241710: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -00241720: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -00241730: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00241740: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00241750: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00241760: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00241770: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00241780: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00241790: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ -002417a0: 7661 6869 2053 6572 7665 7220 536f 6674  vahi Server Soft
│ │ │ -002417b0: 7761 7265 202d 2044 6973 6162 6c65 2053  ware - Disable S
│ │ │ -002417c0: 6f63 6b65 7420 6176 6168 692d 6461 656d  ocket avahi-daem
│ │ │ -002417d0: 6f6e 0a20 2020 2061 6e73 6962 6c65 2e62  on.    ansible.b
│ │ │ -002417e0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002417f0: 2020 2020 2020 6e61 6d65 3a20 6176 6168        name: avah
│ │ │ -00241800: 692d 6461 656d 6f6e 2e73 6f63 6b65 740a  i-daemon.socket.
│ │ │ -00241810: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -00241820: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -00241830: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00241840: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -00241850: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -00241860: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -00241870: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -00241880: 2822 6176 6168 692d 6461 656d 6f6e 2e73  ("avahi-daemon.s
│ │ │ -00241890: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -002418a0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -002418b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002418c0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -002418d0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -002418e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002418f0: 434d 2d37 2862 290a 2020 2d20 5043 492d  CM-7(b).  - PCI-
│ │ │ -00241900: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00241910: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -00241920: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00241930: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00241940: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00241950: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00241960: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00241970: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00241980: 640a 2020 2d20 7365 7276 6963 655f 6176  d.  - service_av
│ │ │ -00241990: 6168 692d 6461 656d 6f6e 5f64 6973 6162  ahi-daemon_disab
│ │ │ -002419a0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -002419b0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -002419c0: 7768 656e 3a20 2820 2261 7661 6869 2d64  when: ( "avahi-d
│ │ │ -002419d0: 6165 6d6f 6e22 2069 6e20 616e 7369 626c  aemon" in ansibl
│ │ │ -002419e0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -002419f0: 2061 6e64 2022 6c69 6e75 782d 6261 7365   and "linux-base
│ │ │ -00241a00: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00241a10: 7473 2e70 6163 6b61 6765 730a 2020 2020  ts.packages.    
│ │ │ -00241a20: 290a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ).
< │ │ │ +00240a50: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00240a60: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
C │ │ │ -00241200: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00241230: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00241240: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00241280: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00241290: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00240b00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00240ba0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00240bb0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00240bc0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00240bd0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00240be0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00240bf0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00240c00: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00240c10: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00240c20: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00240c30: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +00240c40: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00240c50: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00240c60: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00240c70: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00240c80: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00240c90: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00240ca0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00240cb0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00240cc0: 2073 6572 7669 6365 5f61 7661 6869 2d64   service_avahi-d
│ │ │ +00240cd0: 6165 6d6f 6e5f 6469 7361 626c 6564 0a0a  aemon_disabled..
│ │ │ +00240ce0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00240cf0: 4176 6168 6920 5365 7276 6572 2053 6f66  Avahi Server Sof
│ │ │ +00240d00: 7477 6172 6520 2d20 4469 7361 626c 6520  tware - Disable 
│ │ │ +00240d10: 7365 7276 6963 6520 6176 6168 692d 6461  service avahi-da
│ │ │ +00240d20: 656d 6f6e 0a20 2062 6c6f 636b 3a0a 0a20  emon.  block:.. 
│ │ │ +00240d30: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +00240d40: 2041 7661 6869 2053 6572 7665 7220 536f   Avahi Server So
│ │ │ +00240d50: 6674 7761 7265 202d 2043 6f6c 6c65 6374  ftware - Collect
│ │ │ +00240d60: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00240d70: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00240d80: 0a20 2020 2020 2053 7973 7465 6d0a 2020  .      System.  
│ │ │ +00240d90: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00240da0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00240db0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00240dc0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +00240dd0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +00240de0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +00240df0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00240e00: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00240e10: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +00240e20: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +00240e30: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00240e40: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00240e50: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00240e60: 7361 626c 6520 4176 6168 6920 5365 7276  sable Avahi Serv
│ │ │ +00240e70: 6572 2053 6f66 7477 6172 6520 2d20 456e  er Software - En
│ │ │ +00240e80: 7375 7265 2061 7661 6869 2d64 6165 6d6f  sure avahi-daemo
│ │ │ +00240e90: 6e2e 7365 7276 6963 6520 6973 204d 6173  n.service is Mas
│ │ │ +00240ea0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +00240eb0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00240ec0: 0a20 2020 2020 206e 616d 653a 2061 7661  .      name: ava
│ │ │ +00240ed0: 6869 2d64 6165 6d6f 6e2e 7365 7276 6963  hi-daemon.servic
│ │ │ +00240ee0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00240ef0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +00240f00: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00240f10: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00240f20: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00240f30: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00240f40: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00240f50: 6176 6168 692d 6461 656d 6f6e 2e73 6572  avahi-daemon.ser
│ │ │ +00240f60: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +00240f70: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +00240f80: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +00240f90: 6973 7473 202d 2061 7661 6869 2d64 6165  ists - avahi-dae
│ │ │ +00240fa0: 6d6f 6e2e 736f 636b 6574 0a20 2020 2061  mon.socket.    a
│ │ │ +00240fb0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00240fc0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00240fd0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00240fe0: 696c 6573 2061 7661 6869 2d64 6165 6d6f  iles avahi-daemo
│ │ │ +00240ff0: 6e2e 736f 636b 6574 0a20 2020 2072 6567  n.socket.    reg
│ │ │ +00241000: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +00241010: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +00241020: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00241030: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00241040: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +00241050: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00241060: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00241070: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00241080: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00241090: 4176 6168 6920 5365 7276 6572 2053 6f66  Avahi Server Sof
│ │ │ +002410a0: 7477 6172 6520 2d20 4469 7361 626c 6520  tware - Disable 
│ │ │ +002410b0: 536f 636b 6574 2061 7661 6869 2d64 6165  Socket avahi-dae
│ │ │ +002410c0: 6d6f 6e0a 2020 2020 616e 7369 626c 652e  mon.    ansible.
│ │ │ +002410d0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002410e0: 0a20 2020 2020 206e 616d 653a 2061 7661  .      name: ava
│ │ │ +002410f0: 6869 2d64 6165 6d6f 6e2e 736f 636b 6574  hi-daemon.socket
│ │ │ +00241100: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00241110: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +00241120: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00241130: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00241140: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +00241150: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +00241160: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +00241170: 6828 2261 7661 6869 2d64 6165 6d6f 6e2e  h("avahi-daemon.
│ │ │ +00241180: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +00241190: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +002411a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002411b0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002411c0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002411d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002411e0: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ +002411f0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00241200: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +00241210: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00241220: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00241230: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00241240: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00241250: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00241260: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00241270: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ +00241280: 7661 6869 2d64 6165 6d6f 6e5f 6469 7361  vahi-daemon_disa
│ │ │ +00241290: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +002412a0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +002412b0: 2077 6865 6e3a 2028 2022 6176 6168 692d   when: ( "avahi-
│ │ │ +002412c0: 6461 656d 6f6e 2220 696e 2061 6e73 6962  daemon" in ansib
│ │ │ +002412d0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002412e0: 7320 616e 6420 226c 696e 7578 2d62 6173  s and "linux-bas
│ │ │ +002412f0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00241300: 6374 732e 7061 636b 6167 6573 0a20 2020  cts.packages.   
│ │ │ +00241310: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +00241320: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation K │ │ │ +002413d0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +002413e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00241460: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +002414a0: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c < │ │ │ +002414b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Strategy: │ │ │ +002414f0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +00241500: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ +00240af0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00240b20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00240b30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00240b70: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00240b80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +00241470: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00241490: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:medium
Rebo │ │ │ +002414c0: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +002414d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
apiVersi │ │ │ +00241520: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +00241530: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +00241540: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +00241550: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +00241560: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +00241570: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +00241580: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +00241590: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +002415a0: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +002415b0: 2d20 6e61 6d65 3a20 6176 6168 692d 6461 - name: avahi-da │ │ │ +002415c0: 656d 6f6e 2e73 6572 7669 6365 0a20 2020 emon.service. │ │ │ +002415d0: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +002415e0: 6c73 650a 2020 2020 2020 2020 6d61 736b lse. mask │ │ │ +002415f0: 3a20 7472 7565 0a20 2020 2020 202d 206e : true. - n │ │ │ +00241600: 616d 653a 2061 7661 6869 2d64 6165 6d6f ame: avahi-daemo │ │ │ +00241610: 6e2e 736f 636b 6574 0a20 2020 2020 2020 n.socket. │ │ │ +00241620: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +00241630: 2020 2020 2020 2020 6d61 736b 3a20 7472 mask: tr │ │ │ +00241640: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e ue. │ │ │ +00241650: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00241700: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00241710: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00241790: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002417b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00241800: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +00241850: 5f61 7661 6869 2d64 6165 6d6f 6e0a 0a63  _avahi-daemon..c
│ │ │ +00241860: 6c61 7373 2064 6973 6162 6c65 5f61 7661  lass disable_ava
│ │ │ +00241870: 6869 2d64 6165 6d6f 6e20 7b0a 2020 7365  hi-daemon {.  se
│ │ │ +00241880: 7276 6963 6520 7b27 6176 6168 692d 6461  rvice {'avahi-da
│ │ │ +00241890: 656d 6f6e 273a 0a20 2020 2065 6e61 626c  emon':.    enabl
│ │ │ +002418a0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +002418b0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002418c0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +002418d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00241990: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002419a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +002419f0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00241a00: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00241a10: 205b 2261 7661 6869 2d64 6165 6d6f 6e22   ["avahi-daemon"
│ │ │ +00241a20: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00241a30: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>R │ │ │ -002521a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002521b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002521c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002521d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00252200: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00252210: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00252220: 2263 726f 6e22 0a76 6572 7369 6f6e 203d  "cron".version =
│ │ │ -00252230: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -002522f0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00252300: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -002523d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00252420: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disr │ │ │ +002417c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002417d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00241810: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00241820: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -00252390: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -002523b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00252400: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00252410: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include insta
│ │ │ -00252440: 6c6c 5f63 726f 6e0a 0a63 6c61 7373 2069  ll_cron..class i
│ │ │ -00252450: 6e73 7461 6c6c 5f63 726f 6e20 7b0a 2020  nstall_cron {.  
│ │ │ -00252460: 7061 636b 6167 6520 7b20 2763 726f 6e27  package { 'cron'
│ │ │ -00252470: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00252480: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00252490: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00252550: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00252560: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002525e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002525f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00252610: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00252620: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00252640: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00252660: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00252690: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -002526a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -002526b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -002526c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002526d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002526e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002526f0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00252700: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00252710: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -00252720: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00252730: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00252740: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00252750: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00252760: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00252770: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00252780: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ -00252790: 6f6e 5f69 6e73 7461 6c6c 6564 0a0a 2d20  on_installed..- 
│ │ │ -002527a0: 6e61 6d65 3a20 456e 7375 7265 2063 726f  name: Ensure cro
│ │ │ -002527b0: 6e20 6973 2069 6e73 7461 6c6c 6564 0a20  n is installed. 
│ │ │ -002527c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002527d0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002527e0: 6d65 3a20 6372 6f6e 0a20 2020 2073 7461  me: cron.    sta
│ │ │ -002527f0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00252800: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00252810: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00252820: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00252830: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00252840: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00252850: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00252860: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00252870: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ -00252880: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00252890: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002528a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002528b0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -002528c0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002528d0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002528e0: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564  e_cron_installed
│ │ │ +002521a0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +002521b0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +00252250: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +002522f0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00252300: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00252310: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00252320: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00252330: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00252340: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00252350: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +00252360: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +00252370: 342d 322e 322e 360a 2020 2d20 656e 6162  4-2.2.6.  - enab
│ │ │ +00252380: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00252390: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002523a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002523b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002523c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002523d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +002523e0: 6163 6b61 6765 5f63 726f 6e5f 696e 7374  ackage_cron_inst
│ │ │ +002523f0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +00252400: 6e73 7572 6520 6372 6f6e 2069 7320 696e  nsure cron is in
│ │ │ +00252410: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +00252420: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00252430: 653a 0a20 2020 206e 616d 653a 2063 726f  e:.    name: cro
│ │ │ +00252440: 6e0a 2020 2020 7374 6174 653a 2070 7265  n.    state: pre
│ │ │ +00252450: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ +00252460: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00252470: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00252480: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00252490: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002524a0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +002524b0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +002524c0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +002524d0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +002524e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002524f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00252500: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00252510: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00252520: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00252530: 202d 2070 6163 6b61 6765 5f63 726f 6e5f   - package_cron_
│ │ │ +00252540: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
Remedi │ │ │ +00252600: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00252610: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00252620: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00252650: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +00252240: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00252270: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00252280: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002522c0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +002522d0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002526c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002526e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00252710: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00252730: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +002526a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002526b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002526f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00252700: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00252750: 696e 7374 616c 6c5f 6372 6f6e 0a0a 636c install_cron..cl │ │ │ +00252760: 6173 7320 696e 7374 616c 6c5f 6372 6f6e ass install_cron │ │ │ +00252770: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +00252780: 6372 6f6e 273a 0a20 2020 2065 6e73 7572 cron':. ensur │ │ │ +00252790: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +002527a0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +00252860: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00252870: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00252880: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +002528d0: 6573 5d5d 0a6e 616d 6520 3d20 2263 726f  es]].name = "cro
│ │ │ +002528e0: 6e22 0a76 6572 7369 6f6e 203d 2022 2a22  n".version = "*"
│ │ │  002528f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
R │ │ │ -00253b10: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00253b20: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00253b30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00253b40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00253b70: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00253b80: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00253b90: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -00253ba0: 5b22 6372 6f6e 225d 0a3c 2f63 6f64 653e  ["cron"].
│ │ │ -00253bb0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00253c60: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00253c70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00253c80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00253c90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00253ca0: 7365 2220 6964 3d22 6964 3838 3722 3e3c se" id="id887">< │ │ │ -00253cb0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00253cc0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00253cd0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00253ce0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00253cf0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00253d00: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00253d10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00253d50: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00253d60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00253d80: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00253d90: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -00253db0: 6e61 626c 655f 6372 6f6e 0a0a 636c 6173  nable_cron..clas
│ │ │ -00253dc0: 7320 656e 6162 6c65 5f63 726f 6e20 7b0a  s enable_cron {.
│ │ │ -00253dd0: 2020 7365 7276 6963 6520 7b27 6372 6f6e    service {'cron
│ │ │ -00253de0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00253df0: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -00253e00: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -00253e10: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -00253e30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00253e40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00253e50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00253e60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00253e70: 6438 3838 2220 7461 6269 6e64 6578 3d22 d888" tabindex=" │ │ │ -00253e80: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00253e90: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00253ea0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00253eb0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00253ec0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00253ed0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00253ee0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00253ef0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00253f70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00253fa0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00253fc0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00253fd0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00253ff0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00254010: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00254020: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00254030: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00254040: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00254050: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00254060: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00254070: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00254080: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00254090: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002540a0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002540b0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002540c0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002540d0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002540e0: 640a 2020 2d20 7365 7276 6963 655f 6372  d.  - service_cr
│ │ │ -002540f0: 6f6e 5f65 6e61 626c 6564 0a0a 2d20 6e61  on_enabled..- na
│ │ │ -00254100: 6d65 3a20 456e 6162 6c65 2063 726f 6e20  me: Enable cron 
│ │ │ -00254110: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -00254120: 2073 6572 7669 6365 2063 726f 6e0a 2020   service cron.  
│ │ │ -00254130: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -00254140: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ -00254150: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ -00254160: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00254170: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00254180: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00254190: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ -002541a0: 626c 6520 6372 6f6e 2053 6572 7669 6365  ble cron Service
│ │ │ -002541b0: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -002541c0: 6520 6372 6f6e 0a20 2020 2061 6e73 6962  e cron.    ansib
│ │ │ -002541d0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002541e0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002541f0: 6372 6f6e 0a20 2020 2020 2065 6e61 626c  cron.      enabl
│ │ │ -00254200: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ -00254210: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ -00254220: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ -00254230: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ -00254240: 2d20 2722 6372 6f6e 2220 696e 2061 6e73  - '"cron" in ans
│ │ │ -00254250: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00254260: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00254270: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00254280: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00254290: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002542a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002542b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002542c0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002542d0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002542e0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002542f0: 6963 655f 6372 6f6e 5f65 6e61 626c 6564  ice_cron_enabled
│ │ │ -00254300: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00254310: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -00254320: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00254330: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00254340: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
│ │ │ +00253bc0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00253c60: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00253c70: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00253c80: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00253c90: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00253ca0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00253cb0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00253cc0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00253cd0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00253ce0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00253cf0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00253d00: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00253d10: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00253d20: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00253d30: 5f63 726f 6e5f 656e 6162 6c65 640a 0a2d  _cron_enabled..-
│ │ │ +00253d40: 206e 616d 653a 2045 6e61 626c 6520 6372   name: Enable cr
│ │ │ +00253d50: 6f6e 2053 6572 7669 6365 202d 2045 6e61  on Service - Ena
│ │ │ +00253d60: 626c 6520 7365 7276 6963 6520 6372 6f6e  ble service cron
│ │ │ +00253d70: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +00253d80: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00253d90: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00253da0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00253db0: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +00253dc0: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +00253dd0: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +00253de0: 456e 6162 6c65 2063 726f 6e20 5365 7276  Enable cron Serv
│ │ │ +00253df0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ +00253e00: 7669 6365 2063 726f 6e0a 2020 2020 616e  vice cron.    an
│ │ │ +00253e10: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00253e20: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00253e30: 653a 2063 726f 6e0a 2020 2020 2020 656e  e: cron.      en
│ │ │ +00253e40: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ +00253e50: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ +00253e60: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ +00253e70: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ +00253e80: 2020 202d 2027 2263 726f 6e22 2069 6e20     - '"cron" in 
│ │ │ +00253e90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00253ea0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00253eb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00253ec0: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +00253ed0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00253ee0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00253ef0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00253f00: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00253f10: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00253f20: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00253f30: 6572 7669 6365 5f63 726f 6e5f 656e 6162  ervice_cron_enab
│ │ │ +00253f40: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00253f50: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00253f60: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00253f70: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00253f80: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00253f90: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00254040: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00254050: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00253bb0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00253be0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00253bf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00253c30: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00253c40: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002540f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00254100: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00254150: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00254190: 6c75 6465 2065 6e61 626c 655f 6372 6f6e  lude enable_cron
│ │ │ +002541a0: 0a0a 636c 6173 7320 656e 6162 6c65 5f63  ..class enable_c
│ │ │ +002541b0: 726f 6e20 7b0a 2020 7365 7276 6963 6520  ron {.  service 
│ │ │ +002541c0: 7b27 6372 6f6e 273a 0a20 2020 2065 6e61  {'cron':.    ena
│ │ │ +002541d0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +002541e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002541f0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00254200: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00254210: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +002542c0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +002542d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002542e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00254320: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00254330: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +00254340: 203d 205b 2263 726f 6e22 5d0a 3c2f 636f   = ["cron"].
< │ │ │ 00254360: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00254370: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00254380: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00254390: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002543a0: 6438 3839 2220 7461 6269 6e64 6578 3d22 d889" tabindex=" │ │ │ 002543b0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -159829,88 +159829,88 @@ │ │ │ 00270540: 7365 2220 6461 7461 2d74 6172 6765 743d se" data-target= │ │ │ 00270550: 2223 6964 3934 3522 2074 6162 696e 6465 "#id945" tabinde │ │ │ 00270560: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 00270570: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 00270580: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 00270590: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 002705a0: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -002705b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002705c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +002540e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00254110: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00254120: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00254160: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00254170: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00270660: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00270670: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002706c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00270700: 6e63 6c75 6465 2072 656d 6f76 655f 6e69  nclude remove_ni
│ │ │ -00270710: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -00270720: 6e69 7320 7b0a 2020 7061 636b 6167 6520  nis {.  package 
│ │ │ -00270730: 7b20 276e 6973 273a 0a20 2020 2065 6e73  { 'nis':.    ens
│ │ │ -00270740: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00270750: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00270810: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00270820: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -00270650: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00270680: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00270690: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002706d0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002706e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -002708d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002708f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00270920: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002708b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002708c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002708e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00270900: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00270910: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00270950: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00270960: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -00270970: 206e 6973 2070 6163 6b61 6765 3a20 456e nis package: En │ │ │ -00270980: 7375 7265 206e 6973 2069 7320 7265 6d6f sure nis is remo │ │ │ -00270990: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -002709a0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -002709b0: 2020 2020 6e61 6d65 3a20 6e69 730a 2020 name: nis. │ │ │ -002709c0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -002709d0: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -002709e0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -002709f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00270a00: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00270a10: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ -00270a20: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00270a30: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -00270a40: 6b61 6765 5f6e 6973 5f72 656d 6f76 6564 kage_nis_removed │ │ │ +002705b0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +002705c0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +00270660: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00270700: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00270710: 6c20 7468 6520 6e69 7320 7061 636b 6167  l the nis packag
│ │ │ +00270720: 653a 2045 6e73 7572 6520 6e69 7320 6973  e: Ensure nis is
│ │ │ +00270730: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00270740: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00270750: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ +00270760: 6973 0a20 2020 2073 7461 7465 3a20 6162  is.    state: ab
│ │ │ +00270770: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +00270780: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00270790: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002707a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002707b0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +002707c0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002707d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002707e0: 2d20 7061 636b 6167 655f 6e69 735f 7265  - package_nis_re
│ │ │ +002707f0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +002708b0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002708c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00270980: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00270990: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +00270650: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00270680: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00270690: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002706d0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002706e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +00270950: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00270970: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002709a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +002709c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002709f0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00270a00: 6d6f 7665 5f6e 6973 0a0a 636c 6173 7320  move_nis..class 
│ │ │ +00270a10: 7265 6d6f 7665 5f6e 6973 207b 0a20 2070  remove_nis {.  p
│ │ │ +00270a20: 6163 6b61 6765 207b 2027 6e69 7327 3a0a  ackage { 'nis':.
│ │ │ +00270a30: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00270a40: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00270a50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation │ │ │ -00272800: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00272810: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -002728a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002728c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002728e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00272910: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00272920: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00272950: 6f76 655f 6973 632d 6468 6370 2d73 6572  ove_isc-dhcp-ser
│ │ │ -00272960: 7665 720a 0a63 6c61 7373 2072 656d 6f76  ver..class remov
│ │ │ -00272970: 655f 6973 632d 6468 6370 2d73 6572 7665  e_isc-dhcp-serve
│ │ │ -00272980: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ -00272990: 2769 7363 2d64 6863 702d 7365 7276 6572  'isc-dhcp-server
│ │ │ -002729a0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002729b0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002729c0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00272a80: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00272a90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00272b20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00272b40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00272b60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00272b90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00272ba0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00272bd0: 6e73 7461 6c6c 2044 4843 5020 5365 7276  nstall DHCP Serv
│ │ │ -00272be0: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ -00272bf0: 7265 2069 7363 2d64 6863 702d 7365 7276  re isc-dhcp-serv
│ │ │ -00272c00: 6572 2069 7320 7265 6d6f 7665 6427 0a20  er is removed'. 
│ │ │ -00272c10: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00272c20: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00272c30: 6d65 3a20 6973 632d 6468 6370 2d73 6572  me: isc-dhcp-ser
│ │ │ -00272c40: 7665 720a 2020 2020 7374 6174 653a 2061  ver.    state: a
│ │ │ -00272c50: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00272c60: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00272c70: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00272c80: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00272c90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00272ca0: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -00272cb0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00272cc0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00272cd0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00272ce0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00272cf0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00272d00: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00272d10: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00272d20: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00272d30: 2020 2d20 7061 636b 6167 655f 6468 6370    - package_dhcp
│ │ │ -00272d40: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00272800: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00272810: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +002728a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002728c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002728d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002728e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002728f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00272910: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00272940: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00272950: 696e 7374 616c 6c20 4448 4350 2053 6572  install DHCP Ser
│ │ │ +00272960: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +00272970: 7572 6520 6973 632d 6468 6370 2d73 6572  ure isc-dhcp-ser
│ │ │ +00272980: 7665 7220 6973 2072 656d 6f76 6564 270a  ver is removed'.
│ │ │ +00272990: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002729a0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002729b0: 616d 653a 2069 7363 2d64 6863 702d 7365  ame: isc-dhcp-se
│ │ │ +002729c0: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ +002729d0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +002729e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002729f0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00272a00: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00272a10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00272a20: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +00272a30: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00272a40: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00272a50: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00272a60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00272a70: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00272a80: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00272a90: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00272aa0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00272ab0: 0a20 202d 2070 6163 6b61 6765 5f64 6863  .  - package_dhc
│ │ │ +00272ac0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +00272b80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00272b90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00272ba0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00272bd0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00272c40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00272c60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00272c90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00272c20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00272c30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00272c70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00272c80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00272cd0: 6520 7265 6d6f 7665 5f69 7363 2d64 6863 e remove_isc-dhc │ │ │ +00272ce0: 702d 7365 7276 6572 0a0a 636c 6173 7320 p-server..class │ │ │ +00272cf0: 7265 6d6f 7665 5f69 7363 2d64 6863 702d remove_isc-dhcp- │ │ │ +00272d00: 7365 7276 6572 207b 0a20 2070 6163 6b61 server {. packa │ │ │ +00272d10: 6765 207b 2027 6973 632d 6468 6370 2d73 ge { 'isc-dhcp-s │ │ │ +00272d20: 6572 7665 7227 3a0a 2020 2020 656e 7375 erver':. ensu │ │ │ +00272d30: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ +00272d40: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ 00272d50: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remediati │ │ │ -00273bf0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00273c00: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00273c10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -00273c60: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -00273c70: 736b 6564 203d 205b 2264 6863 7064 3622  sked = ["dhcpd6"
│ │ │ -00273c80: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00273c90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ku │ │ │ -00273d40: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -00273d50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00273de0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00273e00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00273e10: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -00273e30: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -00273e40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00273e60: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00273e70: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -00273e90: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -00273ea0: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -00273eb0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -00273ec0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -00273ed0: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -00273ee0: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -00273ef0: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -00273f00: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -00273f10: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -00273f20: 206e 616d 653a 2064 6863 7064 362e 7365   name: dhcpd6.se
│ │ │ -00273f30: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -00273f40: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00273f50: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -00273f60: 2020 2020 2020 2d20 6e61 6d65 3a20 6468        - name: dh
│ │ │ -00273f70: 6370 6436 2e73 6f63 6b65 740a 2020 2020  cpd6.socket.    
│ │ │ -00273f80: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00273f90: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -00273fa0: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ -00274060: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00274070: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00274100: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00274120: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00274130: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00274140: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00274150: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00274170: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -002741b0: 626c 655f 6468 6370 6436 0a0a 636c 6173  ble_dhcpd6..clas
│ │ │ -002741c0: 7320 6469 7361 626c 655f 6468 6370 6436  s disable_dhcpd6
│ │ │ -002741d0: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ -002741e0: 6863 7064 3627 3a0a 2020 2020 656e 6162  hcpd6':.    enab
│ │ │ -002741f0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -00274200: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00274210: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -00274220: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00274230: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -002742e0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002742f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00274370: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00274390: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002743e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00274410: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00274430: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00274440: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00274450: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00274460: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00274470: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00274480: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00274490: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002744a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002744b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002744c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002744d0: 640a 2020 2d20 7365 7276 6963 655f 6468  d.  - service_dh
│ │ │ -002744e0: 6370 6436 5f64 6973 6162 6c65 640a 0a2d  cpd6_disabled..-
│ │ │ -002744f0: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -00274500: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ -00274510: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -00274520: 6468 6370 6436 0a20 2062 6c6f 636b 3a0a  dhcpd6.  block:.
│ │ │ -00274530: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00274540: 6c65 2044 4843 5044 3620 5365 7276 6963  le DHCPD6 Servic
│ │ │ -00274550: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ -00274560: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -00274570: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -00274580: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -00274590: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -002745a0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -002745b0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -002745c0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -002745d0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -002745e0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -002745f0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00274600: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00274610: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00274620: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00274630: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00274640: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00274650: 653a 2044 6973 6162 6c65 2044 4843 5044  e: Disable DHCPD
│ │ │ -00274660: 3620 5365 7276 6963 6520 2d20 456e 7375  6 Service - Ensu
│ │ │ -00274670: 7265 2064 6863 7064 362e 7365 7276 6963  re dhcpd6.servic
│ │ │ -00274680: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -00274690: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002746a0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002746b0: 616d 653a 2064 6863 7064 362e 7365 7276  ame: dhcpd6.serv
│ │ │ -002746c0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -002746d0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -002746e0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002746f0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -00274700: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -00274710: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -00274720: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -00274730: 2822 6468 6370 6436 2e73 6572 7669 6365  ("dhcpd6.service
│ │ │ -00274740: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00274750: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00274760: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00274770: 202d 2064 6863 7064 362e 736f 636b 6574   - dhcpd6.socket
│ │ │ -00274780: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00274790: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002747a0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002747b0: 756e 6974 2d66 696c 6573 2064 6863 7064  unit-files dhcpd
│ │ │ -002747c0: 362e 736f 636b 6574 0a20 2020 2072 6567  6.socket.    reg
│ │ │ -002747d0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -002747e0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -002747f0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -00274800: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -00274810: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -00274820: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -00274830: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -00274840: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -00274850: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00274860: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ -00274870: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -00274880: 6468 6370 6436 0a20 2020 2061 6e73 6962  dhcpd6.    ansib
│ │ │ -00274890: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002748a0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002748b0: 6468 6370 6436 2e73 6f63 6b65 740a 2020  dhcpd6.socket.  
│ │ │ -002748c0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002748d0: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -002748e0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -002748f0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00274900: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00274910: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00274920: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00274930: 6468 6370 6436 2e73 6f63 6b65 7422 2c20  dhcpd6.socket", 
│ │ │ -00274940: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00274950: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00274960: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00274970: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00274980: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00274990: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002749a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002749b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002749c0: 7365 7276 6963 655f 6468 6370 6436 5f64  service_dhcpd6_d
│ │ │ -002749d0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002749e0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002749f0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -00274a00: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00274a10: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00274a20: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00273bf0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +00273c00: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00273c80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ +00273d10: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00273d20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -002743a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002743b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002743f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00274400: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +00273c90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00273ca0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00273ce0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00273cf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +00273d40: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00273d50: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00273d60: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00273d70: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00273d80: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00273d90: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00273da0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00273db0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00273dc0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00273dd0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00273de0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00273df0: 6365 5f64 6863 7064 365f 6469 7361 626c  ce_dhcpd6_disabl
│ │ │ +00273e00: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +00273e10: 626c 6520 4448 4350 4436 2053 6572 7669  ble DHCPD6 Servi
│ │ │ +00273e20: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +00273e30: 7669 6365 2064 6863 7064 360a 2020 626c  vice dhcpd6.  bl
│ │ │ +00273e40: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00273e50: 4469 7361 626c 6520 4448 4350 4436 2053  Disable DHCPD6 S
│ │ │ +00273e60: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +00273e70: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00273e80: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00273e90: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00273ea0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00273eb0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00273ec0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00273ed0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00273ee0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00273ef0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00273f00: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00273f10: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00273f20: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00273f30: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00273f40: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00273f50: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00273f60: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00273f70: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ +00273f80: 2045 6e73 7572 6520 6468 6370 6436 2e73   Ensure dhcpd6.s
│ │ │ +00273f90: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +00273fa0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00273fb0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00273fc0: 2020 2020 6e61 6d65 3a20 6468 6370 6436      name: dhcpd6
│ │ │ +00273fd0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +00273fe0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00273ff0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00274000: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +00274010: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +00274020: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +00274030: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00274040: 6561 7263 6828 2264 6863 7064 362e 7365  earch("dhcpd6.se
│ │ │ +00274050: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +00274060: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +00274070: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +00274080: 7869 7374 7320 2d20 6468 6370 6436 2e73  xists - dhcpd6.s
│ │ │ +00274090: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +002740a0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002740b0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +002740c0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +002740d0: 6468 6370 6436 2e73 6f63 6b65 740a 2020  dhcpd6.socket.  
│ │ │ +002740e0: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +002740f0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +00274100: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00274110: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00274120: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +00274130: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +00274140: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00274150: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +00274160: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +00274170: 6162 6c65 2044 4843 5044 3620 5365 7276  able DHCPD6 Serv
│ │ │ +00274180: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +00274190: 636b 6574 2064 6863 7064 360a 2020 2020  cket dhcpd6.    
│ │ │ +002741a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002741b0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002741c0: 616d 653a 2064 6863 7064 362e 736f 636b  ame: dhcpd6.sock
│ │ │ +002741d0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +002741e0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +002741f0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00274200: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00274210: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00274220: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00274230: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00274240: 7263 6828 2264 6863 7064 362e 736f 636b  rch("dhcpd6.sock
│ │ │ +00274250: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +00274260: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +00274270: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00274280: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00274290: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002742a0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002742b0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002742c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002742d0: 0a20 202d 2073 6572 7669 6365 5f64 6863  .  - service_dhc
│ │ │ +002742e0: 7064 365f 6469 7361 626c 6564 0a20 202d  pd6_disabled.  -
│ │ │ +002742f0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00274300: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +00274310: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00274320: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00274330: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00274340: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +002743f0: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ +00274400: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ +00274500: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +00274540: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +00274550: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +00274560: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +00274570: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +00274580: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +00274590: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +002745a0: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +002745b0: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +002745c0: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +002745d0: 2020 2020 202d 206e 616d 653a 2064 6863       - name: dhc
│ │ │ +002745e0: 7064 362e 7365 7276 6963 650a 2020 2020  pd6.service.    
│ │ │ +002745f0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00274600: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +00274610: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +00274620: 6d65 3a20 6468 6370 6436 2e73 6f63 6b65  me: dhcpd6.socke
│ │ │ +00274630: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ +00274640: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +00274650: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ +00274670: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00274680: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00274690: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002746a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002746b0: 6439 3535 2220 7461 6269 6e64 6578 3d22 d955" tabindex=" │ │ │ +002746c0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +002746d0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +002746e0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +002746f0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00274700: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00274710: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00274720: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +00274490: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002744a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002744c0: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +002744d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +00274510: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00274520: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +002747b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002747c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002747e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00274800: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00274810: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00274850: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00274860: 6520 6469 7361 626c 655f 6468 6370 6436 e disable_dhcpd6 │ │ │ +00274870: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +00274880: 6468 6370 6436 207b 0a20 2073 6572 7669 dhcpd6 {. servi │ │ │ +00274890: 6365 207b 2764 6863 7064 3627 3a0a 2020 ce {'dhcpd6':. │ │ │ +002748a0: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +002748b0: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +002748c0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +002748d0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +002748e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00274990: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +002749a0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +002749b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +00274a00: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00274a10: 6173 6b65 6420 3d20 5b22 6468 6370 6436  asked = ["dhcpd6
│ │ │ +00274a20: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00274a30: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00275e20: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00275e30: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -00275e90: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -00275ea0: 6564 203d 205b 2264 6863 7064 225d 0a3c  ed = ["dhcpd"].<
│ │ │ -00275eb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00275f60: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -00275f70: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -00275f80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00276000: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00276020: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -00276050: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -00276030: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00276040: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -00276060: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -00276080: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00276090: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -002760c0: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -002760d0: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -002760e0: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -002760f0: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -00276100: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -00276110: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -00276120: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -00276130: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -00276140: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -00276150: 6d65 3a20 6468 6370 642e 7365 7276 6963  me: dhcpd.servic
│ │ │ -00276160: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -00276170: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -00276180: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -00276190: 2020 2d20 6e61 6d65 3a20 6468 6370 642e    - name: dhcpd.
│ │ │ -002761a0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ -002761b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002761c0: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -002761d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00276290: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002762a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00276370: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00276380: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -002763d0: 6e63 6c75 6465 2064 6973 6162 6c65 5f64  nclude disable_d
│ │ │ -002763e0: 6863 7064 0a0a 636c 6173 7320 6469 7361  hcpd..class disa
│ │ │ -002763f0: 626c 655f 6468 6370 6420 7b0a 2020 7365  ble_dhcpd {.  se
│ │ │ -00276400: 7276 6963 6520 7b27 6468 6370 6427 3a0a  rvice {'dhcpd':.
│ │ │ -00276410: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -00276420: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -00276430: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -00276440: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00276500: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00276510: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ -00276350: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00276360: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002763a0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -002763b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -002765c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002765e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00276610: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002765a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002765b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002765d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002765f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00276600: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00276640: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00276650: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00276660: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00276670: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00276680: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00276690: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -002766a0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002766b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -002766c0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -002766d0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -002766e0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -002766f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00276700: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00276710: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -00276720: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -00276730: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00276740: 640a 2020 2d20 7365 7276 6963 655f 6468 d. - service_dh │ │ │ -00276750: 6370 645f 6469 7361 626c 6564 0a0a 2d20 cpd_disabled..- │ │ │ -00276760: 6e61 6d65 3a20 4469 7361 626c 6520 4448 name: Disable DH │ │ │ -00276770: 4350 2053 6572 7669 6365 202d 2044 6973 CP Service - Dis │ │ │ -00276780: 6162 6c65 2073 6572 7669 6365 2064 6863 able service dhc │ │ │ -00276790: 7064 0a20 2062 6c6f 636b 3a0a 0a20 202d pd. block:.. - │ │ │ -002767a0: 206e 616d 653a 2044 6973 6162 6c65 2044 name: Disable D │ │ │ -002767b0: 4843 5020 5365 7276 6963 6520 2d20 436f HCP Service - Co │ │ │ -002767c0: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ -002767d0: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ -002767e0: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ -002767f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00276800: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ -00276810: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ -00276820: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ -00276830: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ -00276840: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ -00276850: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -00276860: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -00276870: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ -00276880: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ -00276890: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -002768a0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -002768b0: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -002768c0: 6162 6c65 2044 4843 5020 5365 7276 6963 able DHCP Servic │ │ │ -002768d0: 6520 2d20 456e 7375 7265 2064 6863 7064 e - Ensure dhcpd │ │ │ -002768e0: 2e73 6572 7669 6365 2069 7320 4d61 736b .service is Mask │ │ │ -002768f0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62 ed. ansible.b │ │ │ -00276900: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -00276910: 2020 2020 2020 6e61 6d65 3a20 6468 6370 name: dhcp │ │ │ -00276920: 642e 7365 7276 6963 650a 2020 2020 2020 d.service. │ │ │ -00276930: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -00276940: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ -00276950: 6c73 650a 2020 2020 2020 6d61 736b 6564 lse. masked │ │ │ -00276960: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -00276970: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ -00276980: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -00276990: 7365 6172 6368 2822 6468 6370 642e 7365 search("dhcpd.se │ │ │ -002769a0: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ -002769b0: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ -002769c0: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ -002769d0: 7869 7374 7320 2d20 6468 6370 642e 736f xists - dhcpd.so │ │ │ -002769e0: 636b 6574 0a20 2020 2061 6e73 6962 6c65 cket. ansible │ │ │ -002769f0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ -00276a00: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ -00276a10: 6973 742d 756e 6974 2d66 696c 6573 2064 ist-unit-files d │ │ │ -00276a20: 6863 7064 2e73 6f63 6b65 740a 2020 2020 hcpd.socket. │ │ │ -00276a30: 7265 6769 7374 6572 3a20 736f 636b 6574 register: socket │ │ │ -00276a40: 5f66 696c 655f 6578 6973 7473 0a20 2020 _file_exists. │ │ │ -00276a50: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ -00276a60: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ -00276a70: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ -00276a80: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ -00276a90: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ -00276aa0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ -00276ab0: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -00276ac0: 6c65 2044 4843 5020 5365 7276 6963 6520 le DHCP Service │ │ │ -00276ad0: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ -00276ae0: 2064 6863 7064 0a20 2020 2061 6e73 6962 dhcpd. ansib │ │ │ -00276af0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -00276b00: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -00276b10: 6468 6370 642e 736f 636b 6574 0a20 2020 dhcpd.socket. │ │ │ -00276b20: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ -00276b30: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ -00276b40: 746f 7070 6564 0a20 2020 2020 206d 6173 topped. mas │ │ │ -00276b50: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ -00276b60: 656e 3a20 736f 636b 6574 5f66 696c 655f en: socket_file_ │ │ │ -00276b70: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ -00276b80: 6e65 7320 6973 2073 6561 7263 6828 2264 nes is search("d │ │ │ -00276b90: 6863 7064 2e73 6f63 6b65 7422 2c20 6d75 hcpd.socket", mu │ │ │ -00276ba0: 6c74 696c 696e 653d 5472 7565 290a 2020 ltiline=True). │ │ │ -00276bb0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00276bc0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00276bd0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00276be0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -00276bf0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -00276c00: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00276c10: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00276c20: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00276c30: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -00276c40: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -00276c50: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00276c60: 640a 2020 2d20 7365 7276 6963 655f 6468 d. - service_dh │ │ │ -00276c70: 6370 645f 6469 7361 626c 6564 0a20 202d cpd_disabled. - │ │ │ -00276c80: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -00276c90: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ -00276ca0: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -00276cb0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -00276cc0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +00275e20: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +00275e30: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00275ec0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00275ee0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00275ef0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00275f00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00275f10: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00275f30: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00275f60: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00275f70: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00275f80: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00275f90: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00275fa0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00275fb0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00275fc0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00275fd0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00275fe0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00275ff0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00276000: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00276010: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00276020: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00276030: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00276040: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00276050: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00276060: 2073 6572 7669 6365 5f64 6863 7064 5f64   service_dhcpd_d
│ │ │ +00276070: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ +00276080: 2044 6973 6162 6c65 2044 4843 5020 5365   Disable DHCP Se
│ │ │ +00276090: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +002760a0: 7365 7276 6963 6520 6468 6370 640a 2020  service dhcpd.  
│ │ │ +002760b0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002760c0: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ +002760d0: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +002760e0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +002760f0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00276100: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00276110: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00276120: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00276130: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00276140: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00276150: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00276160: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00276170: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00276180: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00276190: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +002761a0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002761b0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002761c0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002761d0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002761e0: 4448 4350 2053 6572 7669 6365 202d 2045  DHCP Service - E
│ │ │ +002761f0: 6e73 7572 6520 6468 6370 642e 7365 7276  nsure dhcpd.serv
│ │ │ +00276200: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +00276210: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00276220: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00276230: 206e 616d 653a 2064 6863 7064 2e73 6572   name: dhcpd.ser
│ │ │ +00276240: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +00276250: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00276260: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00276270: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00276280: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +00276290: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +002762a0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +002762b0: 6828 2264 6863 7064 2e73 6572 7669 6365  h("dhcpd.service
│ │ │ +002762c0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +002762d0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +002762e0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +002762f0: 202d 2064 6863 7064 2e73 6f63 6b65 740a   - dhcpd.socket.
│ │ │ +00276300: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00276310: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00276320: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00276330: 6e69 742d 6669 6c65 7320 6468 6370 642e  nit-files dhcpd.
│ │ │ +00276340: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +00276350: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +00276360: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00276370: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00276380: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00276390: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +002763a0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +002763b0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +002763c0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +002763d0: 6e61 6d65 3a20 4469 7361 626c 6520 4448  name: Disable DH
│ │ │ +002763e0: 4350 2053 6572 7669 6365 202d 2044 6973  CP Service - Dis
│ │ │ +002763f0: 6162 6c65 2053 6f63 6b65 7420 6468 6370  able Socket dhcp
│ │ │ +00276400: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00276410: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00276420: 2020 2020 206e 616d 653a 2064 6863 7064       name: dhcpd
│ │ │ +00276430: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +00276440: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00276450: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00276460: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00276470: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +00276480: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00276490: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002764a0: 7320 7365 6172 6368 2822 6468 6370 642e  s search("dhcpd.
│ │ │ +002764b0: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +002764c0: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +002764d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002764e0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002764f0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00276500: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00276510: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00276520: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00276530: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00276540: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00276550: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00276560: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00276570: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00276580: 2073 6572 7669 6365 5f64 6863 7064 5f64   service_dhcpd_d
│ │ │ +00276590: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +002765a0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +002765b0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +002765c0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +002765d0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002765e0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002765f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ +002766a0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +002766b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00276730: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00276740: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00276760: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00276770: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +00276780: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +00276790: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +002767a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002767c0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002767d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +002767f0: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +00276800: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +00276810: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +00276820: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +00276830: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +00276840: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +00276850: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +00276860: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +00276870: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +00276880: 2d20 6e61 6d65 3a20 6468 6370 642e 7365 - name: dhcpd.se │ │ │ +00276890: 7276 6963 650a 2020 2020 2020 2020 656e rvice. en │ │ │ +002768a0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +002768b0: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ +002768c0: 2020 2020 2020 2d20 6e61 6d65 3a20 6468 - name: dh │ │ │ +002768d0: 6370 642e 736f 636b 6574 0a20 2020 2020 cpd.socket. │ │ │ +002768e0: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +002768f0: 650a 2020 2020 2020 2020 6d61 736b 3a20 e. mask: │ │ │ +00276900: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072 true.
Remediation │ │ │ +002769c0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002769d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00276a60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00276a80: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00276aa0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00276ad0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00276ae0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +00276af0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +00276b10: 6c65 5f64 6863 7064 0a0a 636c 6173 7320  le_dhcpd..class 
│ │ │ +00276b20: 6469 7361 626c 655f 6468 6370 6420 7b0a  disable_dhcpd {.
│ │ │ +00276b30: 2020 7365 7276 6963 6520 7b27 6468 6370    service {'dhcp
│ │ │ +00276b40: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +00276b50: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00276b60: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00276b70: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +00276c30: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00276c40: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00276c50: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00276c60: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00276c70: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00276c80: 7365 2220 6964 3d22 6964 3936 3222 3e3c se" id="id962">< │ │ │ +00276c90: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00276ca0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00276cb0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +00276cc0: 6468 6370 6422 5d0a 3c2f 636f 6465 3e3c dhcpd"].< │ │ │ 00276cd0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediation │ │ │ -00278860: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00278870: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00278900: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00278920: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00278940: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00278970: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00278980: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -002789b0: 6f76 655f 6269 6e64 390a 0a63 6c61 7373  ove_bind9..class
│ │ │ -002789c0: 2072 656d 6f76 655f 6269 6e64 3920 7b0a   remove_bind9 {.
│ │ │ -002789d0: 2020 7061 636b 6167 6520 7b20 2762 696e    package { 'bin
│ │ │ -002789e0: 6439 273a 0a20 2020 2065 6e73 7572 6520  d9':.    ensure 
│ │ │ -002789f0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00278a00: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00278ac0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00278ad0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00278b50: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00278b60: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00278b80: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00278b90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00278bb0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00278bd0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00278c00: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00278c10: 6e69 6e73 7461 6c6c 2062 696e 6420 5061  ninstall bind Pa
│ │ │ -00278c20: 636b 6167 653a 2045 6e73 7572 6520 6269  ckage: Ensure bi
│ │ │ -00278c30: 6e64 3920 6973 2072 656d 6f76 6564 270a  nd9 is removed'.
│ │ │ -00278c40: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00278c50: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00278c60: 616d 653a 2062 696e 6439 0a20 2020 2073  ame: bind9.    s
│ │ │ -00278c70: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00278c80: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00278c90: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00278ca0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00278cb0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -00278cc0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -00278cd0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00278ce0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00278cf0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00278d00: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -00278d10: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00278d20: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00278d30: 2d20 7061 636b 6167 655f 6269 6e64 5f72  - package_bind_r
│ │ │ -00278d40: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Complexity │ │ │ +00278900: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00278920: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00278930: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00278940: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00278950: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00278970: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002789a0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +002789b0: 696e 7374 616c 6c20 6269 6e64 2050 6163  install bind Pac
│ │ │ +002789c0: 6b61 6765 3a20 456e 7375 7265 2062 696e  kage: Ensure bin
│ │ │ +002789d0: 6439 2069 7320 7265 6d6f 7665 6427 0a20  d9 is removed'. 
│ │ │ +002789e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002789f0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00278a00: 6d65 3a20 6269 6e64 390a 2020 2020 7374  me: bind9.    st
│ │ │ +00278a10: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00278a20: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00278a30: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00278a40: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00278a50: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00278a60: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +00278a70: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00278a80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00278a90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00278aa0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +00278ab0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00278ac0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00278ad0: 2070 6163 6b61 6765 5f62 696e 645f 7265   package_bind_re
│ │ │ +00278ae0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00278ba0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00278bb0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00278c40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00278c60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00278c70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00278c80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00278c90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00278cb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00278ce0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00278cf0: 6d6f 7665 5f62 696e 6439 0a0a 636c 6173  move_bind9..clas
│ │ │ +00278d00: 7320 7265 6d6f 7665 5f62 696e 6439 207b  s remove_bind9 {
│ │ │ +00278d10: 0a20 2070 6163 6b61 6765 207b 2027 6269  .  package { 'bi
│ │ │ +00278d20: 6e64 3927 3a0a 2020 2020 656e 7375 7265  nd9':.    ensure
│ │ │ +00278d30: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00278d40: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remedi │ │ │ -00279bb0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00279bc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00279bd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00279c00: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00279c70: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00279c90: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00279cc0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00279c50: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00279c60: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00279ca0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00279cb0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -00279d00: 6520 7265 6d6f 7665 5f64 6e73 6d61 7371 e remove_dnsmasq │ │ │ -00279d10: 0a0a 636c 6173 7320 7265 6d6f 7665 5f64 ..class remove_d │ │ │ -00279d20: 6e73 6d61 7371 207b 0a20 2070 6163 6b61 nsmasq {. packa │ │ │ -00279d30: 6765 207b 2027 646e 736d 6173 7127 3a0a ge { 'dnsmasq':. │ │ │ -00279d40: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ -00279d50: 2027 7075 7267 6564 272c 0a20 207d 0a7d 'purged',. }.} │ │ │ -00279d60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

Remediation Ans │ │ │ -00279e20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00279e30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00279f00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00279f10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00279f70: 616c 6c20 646e 736d 6173 7120 5061 636b  all dnsmasq Pack
│ │ │ -00279f80: 6167 653a 2045 6e73 7572 6520 646e 736d  age: Ensure dnsm
│ │ │ -00279f90: 6173 7120 6973 2072 656d 6f76 6564 270a  asq is removed'.
│ │ │ -00279fa0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00279fb0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00279fc0: 616d 653a 2064 6e73 6d61 7371 0a20 2020  ame: dnsmasq.   
│ │ │ -00279fd0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00279fe0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00279ff0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0027a000: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0027a010: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0027a020: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -0027a030: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0027a040: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0027a050: 6167 655f 646e 736d 6173 715f 7265 6d6f  age_dnsmasq_remo
│ │ │ -0027a060: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

low
Disru │ │ │ -00279ee0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00279ef0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00279f30: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00279f40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00279c70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00279c90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00279cc0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00279c50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00279c60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00279c80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00279ca0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00279cb0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00279cf0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00279d00: 3a20 2755 6e69 6e73 7461 6c6c 2064 6e73 : 'Uninstall dns │ │ │ +00279d10: 6d61 7371 2050 6163 6b61 6765 3a20 456e masq Package: En │ │ │ +00279d20: 7375 7265 2064 6e73 6d61 7371 2069 7320 sure dnsmasq is │ │ │ +00279d30: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ +00279d40: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ +00279d50: 6765 3a0a 2020 2020 6e61 6d65 3a20 646e ge:. name: dn │ │ │ +00279d60: 736d 6173 710a 2020 2020 7374 6174 653a smasq. state: │ │ │ +00279d70: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ +00279d80: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +00279d90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +00279da0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00279db0: 6469 7372 7570 7469 6f6e 0a20 202d 206c disruption. - l │ │ │ +00279dc0: 6f77 5f73 6576 6572 6974 790a 2020 2d20 ow_severity. - │ │ │ +00279dd0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00279de0: 0a20 202d 2070 6163 6b61 6765 5f64 6e73 . - package_dns │ │ │ +00279df0: 6d61 7371 5f72 656d 6f76 6564 0a3c 2f63 masq_removed.
│ │ │ +00279e10: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00279eb0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00279ec0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00279ed0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00279f50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00279f80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00279fa0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00279fb0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00279fd0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00279fe0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0027a000: 6c75 6465 2072 656d 6f76 655f 646e 736d  lude remove_dnsm
│ │ │ +0027a010: 6173 710a 0a63 6c61 7373 2072 656d 6f76  asq..class remov
│ │ │ +0027a020: 655f 646e 736d 6173 7120 7b0a 2020 7061  e_dnsmasq {.  pa
│ │ │ +0027a030: 636b 6167 6520 7b20 2764 6e73 6d61 7371  ckage { 'dnsmasq
│ │ │ +0027a040: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0027a050: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0027a060: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediati │ │ │ -0027ae70: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0027ae80: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0027ae90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0027aee0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0027aef0: 736b 6564 203d 205b 2264 6e73 6d61 7371  sked = ["dnsmasq
│ │ │ -0027af00: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -0027af10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation K │ │ │ -0027afc0: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ -0027afd0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0027b050: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0027b060: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0027b080: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0027b090: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ -0027b0a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ -0027b0b0: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ -0027b0c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0027b0e0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0027b0f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ -0027b110: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ -0027b120: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ -0027b130: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ -0027b140: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ -0027b150: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ -0027b160: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ -0027b170: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ -0027b180: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ -0027b190: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ -0027b1a0: 2d20 6e61 6d65 3a20 646e 736d 6173 712e - name: dnsmasq. │ │ │ -0027b1b0: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ -0027b1c0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -0027b1d0: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ -0027b1e0: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ -0027b1f0: 646e 736d 6173 712e 736f 636b 6574 0a20 dnsmasq.socket. │ │ │ -0027b200: 2020 2020 2020 2065 6e61 626c 6564 3a20 enabled: │ │ │ -0027b210: 6661 6c73 650a 2020 2020 2020 2020 6d61 false. ma │ │ │ -0027b220: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e sk: true. │ │ │ -0027b230: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -0027b2e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0027b2f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0027b300: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027b310: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027b320: 7365 2220 6964 3d22 6964 3937 3522 3e3c se" id="id975">< │ │ │ -0027b330: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0027b340: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0027b350: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0027b360: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0027b370: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0027b380: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0027b390: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0027b3d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0027b3e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0027b400: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0027b410: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0027b430: 6973 6162 6c65 5f64 6e73 6d61 7371 0a0a  isable_dnsmasq..
│ │ │ -0027b440: 636c 6173 7320 6469 7361 626c 655f 646e  class disable_dn
│ │ │ -0027b450: 736d 6173 7120 7b0a 2020 7365 7276 6963  smasq {.  servic
│ │ │ -0027b460: 6520 7b27 646e 736d 6173 7127 3a0a 2020  e {'dnsmasq':.  
│ │ │ -0027b470: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -0027b480: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -0027b490: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -0027b4a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0027b4b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0027b560: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0027b570: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0027b580: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027b590: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027b5a0: 7365 2220 6964 3d22 6964 3937 3622 3e3c se" id="id976">< │ │ │ -0027b5b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0027b5c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0027b5d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0027b5e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0027b5f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0027b600: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0027b610: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0027b650: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0027b660: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0027b680: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0027b690: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0027b6b0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0027b6c0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0027b6d0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0027b6e0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0027b6f0: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -0027b700: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -0027b710: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0027b720: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0027b730: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -0027b740: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -0027b750: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -0027b760: 6963 655f 646e 736d 6173 715f 6469 7361 ice_dnsmasq_disa │ │ │ -0027b770: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469 bled..- name: Di │ │ │ -0027b780: 7361 626c 6520 646e 736d 6173 7120 5365 sable dnsmasq Se │ │ │ -0027b790: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -0027b7a0: 7365 7276 6963 6520 646e 736d 6173 710a service dnsmasq. │ │ │ -0027b7b0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ -0027b7c0: 6d65 3a20 4469 7361 626c 6520 646e 736d me: Disable dnsm │ │ │ -0027b7d0: 6173 7120 5365 7276 6963 6520 2d20 436f asq Service - Co │ │ │ -0027b7e0: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ -0027b7f0: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ -0027b800: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ -0027b810: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -0027b820: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ -0027b830: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ -0027b840: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ -0027b850: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ -0027b860: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ -0027b870: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -0027b880: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -0027b890: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ -0027b8a0: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ -0027b8b0: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -0027b8c0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -0027b8d0: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -0027b8e0: 6162 6c65 2064 6e73 6d61 7371 2053 6572 able dnsmasq Ser │ │ │ -0027b8f0: 7669 6365 202d 2045 6e73 7572 6520 646e vice - Ensure dn │ │ │ -0027b900: 736d 6173 712e 7365 7276 6963 6520 6973 smasq.service is │ │ │ -0027b910: 204d 6173 6b65 640a 2020 2020 616e 7369 Masked. ansi │ │ │ -0027b920: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ -0027b930: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ -0027b940: 2064 6e73 6d61 7371 2e73 6572 7669 6365 dnsmasq.service │ │ │ -0027b950: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -0027b960: 6f70 7065 640a 2020 2020 2020 656e 6162 opped. enab │ │ │ -0027b970: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -0027b980: 206d 6173 6b65 643a 2074 7275 650a 2020 masked: true. │ │ │ -0027b990: 2020 7768 656e 3a20 7365 7276 6963 655f when: service_ │ │ │ -0027b9a0: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ -0027b9b0: 6e65 7320 6973 2073 6561 7263 6828 2264 nes is search("d │ │ │ -0027b9c0: 6e73 6d61 7371 2e73 6572 7669 6365 222c nsmasq.service", │ │ │ -0027b9d0: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ -0027b9e0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974 .. - name: Unit │ │ │ -0027b9f0: 2053 6f63 6b65 7420 4578 6973 7473 202d Socket Exists - │ │ │ -0027ba00: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a dnsmasq.socket. │ │ │ -0027ba10: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -0027ba20: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -0027ba30: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -0027ba40: 6e69 742d 6669 6c65 7320 646e 736d 6173 nit-files dnsmas │ │ │ -0027ba50: 712e 736f 636b 6574 0a20 2020 2072 6567 q.socket. reg │ │ │ -0027ba60: 6973 7465 723a 2073 6f63 6b65 745f 6669 ister: socket_fi │ │ │ -0027ba70: 6c65 5f65 7869 7374 730a 2020 2020 6368 le_exists. ch │ │ │ -0027ba80: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ -0027ba90: 650a 2020 2020 6661 696c 6564 5f77 6865 e. failed_whe │ │ │ -0027baa0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -0027bab0: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ -0027bac0: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ -0027bad0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ -0027bae0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ -0027baf0: 646e 736d 6173 7120 5365 7276 6963 6520 dnsmasq Service │ │ │ -0027bb00: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ -0027bb10: 2064 6e73 6d61 7371 0a20 2020 2061 6e73 dnsmasq. ans │ │ │ -0027bb20: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -0027bb30: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -0027bb40: 3a20 646e 736d 6173 712e 736f 636b 6574 : dnsmasq.socket │ │ │ -0027bb50: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -0027bb60: 6661 6c73 650a 2020 2020 2020 7374 6174 false. stat │ │ │ -0027bb70: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ -0027bb80: 206d 6173 6b65 643a 2074 7275 650a 2020 masked: true. │ │ │ -0027bb90: 2020 7768 656e 3a20 736f 636b 6574 5f66 when: socket_f │ │ │ -0027bba0: 696c 655f 6578 6973 7473 2e73 7464 6f75 ile_exists.stdou │ │ │ -0027bbb0: 745f 6c69 6e65 7320 6973 2073 6561 7263 t_lines is searc │ │ │ -0027bbc0: 6828 2264 6e73 6d61 7371 2e73 6f63 6b65 h("dnsmasq.socke │ │ │ -0027bbd0: 7422 2c20 6d75 6c74 696c 696e 653d 5472 t", multiline=Tr │ │ │ -0027bbe0: 7565 290a 2020 7461 6773 3a0a 2020 2d20 ue). tags:. - │ │ │ -0027bbf0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -0027bc00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0027bc10: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0027bc20: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -0027bc30: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -0027bc40: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0027bc50: 2020 2d20 7365 7276 6963 655f 646e 736d - service_dnsm │ │ │ -0027bc60: 6173 715f 6469 7361 626c 6564 0a20 202d asq_disabled. - │ │ │ -0027bc70: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -0027bc80: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ -0027bc90: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -0027bca0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0027bcb0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +0027ae70: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +0027ae80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0027af00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0027af10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0027af20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0027af60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0027af70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0027af90: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0027afa0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0027afc0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0027afd0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0027afe0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0027aff0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0027b000: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0027b010: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0027b020: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0027b030: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0027b040: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0027b050: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0027b060: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0027b070: 6365 5f64 6e73 6d61 7371 5f64 6973 6162  ce_dnsmasq_disab
│ │ │ +0027b080: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +0027b090: 6162 6c65 2064 6e73 6d61 7371 2053 6572  able dnsmasq Ser
│ │ │ +0027b0a0: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +0027b0b0: 6572 7669 6365 2064 6e73 6d61 7371 0a20  ervice dnsmasq. 
│ │ │ +0027b0c0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +0027b0d0: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ +0027b0e0: 7371 2053 6572 7669 6365 202d 2043 6f6c  sq Service - Col
│ │ │ +0027b0f0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +0027b100: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +0027b110: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0027b120: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0027b130: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0027b140: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0027b150: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0027b160: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0027b170: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0027b180: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0027b190: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0027b1a0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0027b1b0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0027b1c0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0027b1d0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0027b1e0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0027b1f0: 626c 6520 646e 736d 6173 7120 5365 7276  ble dnsmasq Serv
│ │ │ +0027b200: 6963 6520 2d20 456e 7375 7265 2064 6e73  ice - Ensure dns
│ │ │ +0027b210: 6d61 7371 2e73 6572 7669 6365 2069 7320  masq.service is 
│ │ │ +0027b220: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +0027b230: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0027b240: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0027b250: 646e 736d 6173 712e 7365 7276 6963 650a  dnsmasq.service.
│ │ │ +0027b260: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0027b270: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +0027b280: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0027b290: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0027b2a0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +0027b2b0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0027b2c0: 6573 2069 7320 7365 6172 6368 2822 646e  es is search("dn
│ │ │ +0027b2d0: 736d 6173 712e 7365 7276 6963 6522 2c20  smasq.service", 
│ │ │ +0027b2e0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0027b2f0: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0027b300: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0027b310: 646e 736d 6173 712e 736f 636b 6574 0a20  dnsmasq.socket. 
│ │ │ +0027b320: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0027b330: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0027b340: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0027b350: 6974 2d66 696c 6573 2064 6e73 6d61 7371  it-files dnsmasq
│ │ │ +0027b360: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0027b370: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0027b380: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0027b390: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0027b3a0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0027b3b0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0027b3c0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0027b3d0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0027b3e0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0027b3f0: 206e 616d 653a 2044 6973 6162 6c65 2064   name: Disable d
│ │ │ +0027b400: 6e73 6d61 7371 2053 6572 7669 6365 202d  nsmasq Service -
│ │ │ +0027b410: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +0027b420: 646e 736d 6173 710a 2020 2020 616e 7369  dnsmasq.    ansi
│ │ │ +0027b430: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0027b440: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0027b450: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a   dnsmasq.socket.
│ │ │ +0027b460: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0027b470: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +0027b480: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +0027b490: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0027b4a0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +0027b4b0: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +0027b4c0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +0027b4d0: 2822 646e 736d 6173 712e 736f 636b 6574  ("dnsmasq.socket
│ │ │ +0027b4e0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +0027b4f0: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ +0027b500: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0027b510: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0027b520: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0027b530: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0027b540: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0027b550: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0027b560: 202d 2073 6572 7669 6365 5f64 6e73 6d61   - service_dnsma
│ │ │ +0027b570: 7371 5f64 6973 6162 6c65 640a 2020 2d20  sq_disabled.  - 
│ │ │ +0027b580: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +0027b590: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +0027b5a0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0027b5b0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0027b5c0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediati │ │ │ +0027b680: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ +0027b690: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0027b740: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ +0027b720: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0027b730: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0027b750: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ +0027b770: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0027b780: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ +0027b7a0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0027b7b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ +0027b7d0: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ +0027b7e0: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ +0027b7f0: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ +0027b800: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ +0027b810: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ +0027b820: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ +0027b830: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ +0027b840: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ +0027b850: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ +0027b860: 2020 2020 2d20 6e61 6d65 3a20 646e 736d      - name: dnsm
│ │ │ +0027b870: 6173 712e 7365 7276 6963 650a 2020 2020  asq.service.    
│ │ │ +0027b880: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0027b890: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0027b8a0: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +0027b8b0: 6d65 3a20 646e 736d 6173 712e 736f 636b  me: dnsmasq.sock
│ │ │ +0027b8c0: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ +0027b8d0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0027b8e0: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ +0027b900: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0027b9a0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0027b9b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0027b9c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0027ba40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027ba70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027ba90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027baa0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027bac0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0027bae0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0027baf0: 6465 2064 6973 6162 6c65 5f64 6e73 6d61  de disable_dnsma
│ │ │ +0027bb00: 7371 0a0a 636c 6173 7320 6469 7361 626c  sq..class disabl
│ │ │ +0027bb10: 655f 646e 736d 6173 7120 7b0a 2020 7365  e_dnsmasq {.  se
│ │ │ +0027bb20: 7276 6963 6520 7b27 646e 736d 6173 7127  rvice {'dnsmasq'
│ │ │ +0027bb30: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +0027bb40: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +0027bb50: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +0027bb60: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +0027bb80: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0027bb90: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0027bba0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0027bbb0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0027bbc0: 6439 3736 2220 7461 6269 6e64 6578 3d22 d976" tabindex=" │ │ │ +0027bbd0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0027bbe0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0027bbf0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0027bc00: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0027bc10: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0027bc20: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0027bc30: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0027bc40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +0027bc90: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0027bca0: 735d 0a6d 6173 6b65 6420 3d20 5b22 646e s].masked = ["dn │ │ │ +0027bcb0: 736d 6173 7122 5d0a 3c2f 636f 6465 3e3c smasq"].< │ │ │ 0027bcc0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -0027d960: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0027d970: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0027d9f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0027da00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027da10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0027da50: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027da60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0027da80: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0027da90: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0027dab0: 7265 6d6f 7665 5f76 7366 7470 640a 0a63  remove_vsftpd..c
│ │ │ -0027dac0: 6c61 7373 2072 656d 6f76 655f 7673 6674  lass remove_vsft
│ │ │ -0027dad0: 7064 207b 0a20 2070 6163 6b61 6765 207b  pd {.  package {
│ │ │ -0027dae0: 2027 7673 6674 7064 273a 0a20 2020 2065   'vsftpd':.    e
│ │ │ -0027daf0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0027db00: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0027db20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0027db30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0027db40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0027db50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0027db60: 6439 3830 2220 7461 6269 6e64 6578 3d22 d980" tabindex=" │ │ │ -0027db70: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0027db80: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0027db90: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0027dba0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0027dbb0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0027dbc0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0027dbd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0027dbe0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0027dc60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0027dc90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0027dcb0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0027dcc0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0027dce0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0027dcf0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0027dd10: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2076  me: 'Uninstall v
│ │ │ -0027dd20: 7366 7470 6420 5061 636b 6167 653a 2045  sftpd Package: E
│ │ │ -0027dd30: 6e73 7572 6520 7673 6674 7064 2069 7320  nsure vsftpd is 
│ │ │ -0027dd40: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -0027dd50: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0027dd60: 6765 3a0a 2020 2020 6e61 6d65 3a20 7673  ge:.    name: vs
│ │ │ -0027dd70: 6674 7064 0a20 2020 2073 7461 7465 3a20  ftpd.    state: 
│ │ │ -0027dd80: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0027dd90: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0027dda0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0027ddb0: 3830 302d 3533 2d43 4d2d 370a 2020 2d20  800-53-CM-7.  - 
│ │ │ -0027ddc0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0027ddd0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0027dde0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -0027ddf0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0027de00: 2e31 2869 6929 0a20 202d 204e 4953 542d  .1(ii).  - NIST-
│ │ │ -0027de10: 3830 302d 3533 2d49 412d 3528 3129 2863  800-53-IA-5(1)(c
│ │ │ -0027de20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0027de30: 332d 4941 2d35 2831 292e 3128 7629 0a20  3-IA-5(1).1(v). 
│ │ │ -0027de40: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0027de50: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -0027de60: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -0027de70: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0027de80: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0027de90: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0027dea0: 0a20 202d 2070 6163 6b61 6765 5f76 7366  .  - package_vsf
│ │ │ -0027deb0: 7470 645f 7265 6d6f 7665 640a 3c2f 636f  tpd_removed.
< │ │ │ +0027d980: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0027d990: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0027d9a0: 7365 2220 6964 3d22 6964 3937 3922 3e3c se" id="id979">< │ │ │ +0027d9b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0027d9c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0027d9d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0027d9e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0027d9f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0027da00: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0027da10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0027da50: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0027da60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0027da80: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0027da90: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0027dab0: 2755 6e69 6e73 7461 6c6c 2076 7366 7470 'Uninstall vsftp │ │ │ +0027dac0: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ +0027dad0: 6520 7673 6674 7064 2069 7320 7265 6d6f e vsftpd is remo │ │ │ +0027dae0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ +0027daf0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +0027db00: 2020 2020 6e61 6d65 3a20 7673 6674 7064 name: vsftpd │ │ │ +0027db10: 0a20 2020 2073 7461 7465 3a20 6162 7365 . state: abse │ │ │ +0027db20: 6e74 0a20 2074 6167 733a 0a20 202d 204e nt. tags:. - N │ │ │ +0027db30: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ +0027db40: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +0027db50: 3533 2d43 4d2d 370a 2020 2d20 4e49 5354 53-CM-7. - NIST │ │ │ +0027db60: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ +0027db70: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0027db80: 434d 2d37 2862 290a 2020 2d20 4e49 5354 CM-7(b). - NIST │ │ │ +0027db90: 2d38 3030 2d35 332d 434d 2d37 2e31 2869 -800-53-CM-7.1(i │ │ │ +0027dba0: 6929 0a20 202d 204e 4953 542d 3830 302d i). - NIST-800- │ │ │ +0027dbb0: 3533 2d49 412d 3528 3129 2863 290a 2020 53-IA-5(1)(c). │ │ │ +0027dbc0: 2d20 4e49 5354 2d38 3030 2d35 332d 4941 - NIST-800-53-IA │ │ │ +0027dbd0: 2d35 2831 292e 3128 7629 0a20 202d 2064 -5(1).1(v). - d │ │ │ +0027dbe0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +0027dbf0: 2020 2d20 6869 6768 5f73 6576 6572 6974 - high_severit │ │ │ +0027dc00: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +0027dc10: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +0027dc20: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ +0027dc30: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +0027dc40: 2070 6163 6b61 6765 5f76 7366 7470 645f package_vsftpd_ │ │ │ +0027dc50: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +0027dc60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +0027dd10: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0027dd20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0027dda0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0027ddb0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0027ddc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0027de00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0027de10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0027de30: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0027de40: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +0027de60: 7265 6d6f 7665 5f76 7366 7470 640a 0a63  remove_vsftpd..c
│ │ │ +0027de70: 6c61 7373 2072 656d 6f76 655f 7673 6674  lass remove_vsft
│ │ │ +0027de80: 7064 207b 0a20 2070 6163 6b61 6765 207b  pd {.  package {
│ │ │ +0027de90: 2027 7673 6674 7064 273a 0a20 2020 2065   'vsftpd':.    e
│ │ │ +0027dea0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0027deb0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0027ded0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0027dee0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0027def0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0027df00: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0027df10: 6439 3831 2220 7461 6269 6e64 6578 3d22 d981" tabindex=" │ │ │ 0027df20: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -163615,251 +163615,251 @@ │ │ │ 0027f1e0: 2d74 6172 6765 743d 2223 6964 3938 3322 -target="#id983" │ │ │ 0027f1f0: 2074 6162 696e 6465 783d 2230 2220 726f tabindex="0" ro │ │ │ 0027f200: 6c65 3d22 6275 7474 6f6e 2220 6172 6961 le="button" aria │ │ │ 0027f210: 2d65 7870 616e 6465 643d 2266 616c 7365 -expanded="false │ │ │ 0027f220: 2220 7469 746c 653d 2241 6374 6976 6174 " title="Activat │ │ │ 0027f230: 6520 746f 2072 6576 6561 6c22 2068 7265 e to reveal" hre │ │ │ 0027f240: 663d 2223 2122 3e52 656d 6564 6961 7469 f="#!">Remediati │ │ │ -0027f250: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0027f260: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0027f270: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0027f2c0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0027f2d0: 736b 6564 203d 205b 2276 7366 7470 6422  sked = ["vsftpd"
│ │ │ -0027f2e0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0027f2f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ku │ │ │ -0027f3a0: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -0027f3b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0027f440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0027f460: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0027f470: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -0027f490: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -0027f4a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0027f4c0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0027f4d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -0027f4f0: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -0027f500: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -0027f510: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -0027f520: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -0027f530: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -0027f540: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -0027f550: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -0027f560: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -0027f570: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -0027f580: 206e 616d 653a 2076 7366 7470 642e 7365   name: vsftpd.se
│ │ │ -0027f590: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -0027f5a0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0027f5b0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -0027f5c0: 2020 2020 2020 2d20 6e61 6d65 3a20 7673        - name: vs
│ │ │ -0027f5d0: 6674 7064 2e73 6f63 6b65 740a 2020 2020  ftpd.socket.    
│ │ │ -0027f5e0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0027f5f0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -0027f600: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ -0027f6c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0027f6d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0027f760: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0027f780: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0027f790: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027f7a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0027f7b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0027f7d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -0027f810: 626c 655f 7673 6674 7064 0a0a 636c 6173  ble_vsftpd..clas
│ │ │ -0027f820: 7320 6469 7361 626c 655f 7673 6674 7064  s disable_vsftpd
│ │ │ -0027f830: 207b 0a20 2073 6572 7669 6365 207b 2776   {.  service {'v
│ │ │ -0027f840: 7366 7470 6427 3a0a 2020 2020 656e 6162  sftpd':.    enab
│ │ │ -0027f850: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -0027f860: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0027f870: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -0027f880: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0027f890: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0027f940: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0027f950: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0027f9d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0027f9f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0027fa40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0027fa70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0027fa90: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0027faa0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0027fab0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0027fac0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0027fad0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027fae0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0027faf0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0027fb00: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027fb10: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0027fb20: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0027fb30: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0027fb40: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0027fb50: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0027fb60: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0027fb70: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0027fb80: 7276 6963 655f 7673 6674 7064 5f64 6973  rvice_vsftpd_dis
│ │ │ -0027fb90: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -0027fba0: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ -0027fbb0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -0027fbc0: 7365 7276 6963 6520 7673 6674 7064 0a20  service vsftpd. 
│ │ │ -0027fbd0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0027fbe0: 653a 2044 6973 6162 6c65 2076 7366 7470  e: Disable vsftp
│ │ │ -0027fbf0: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ -0027fc00: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -0027fc10: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -0027fc20: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0027fc30: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0027fc40: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0027fc50: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0027fc60: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0027fc70: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0027fc80: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0027fc90: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0027fca0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0027fcb0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0027fcc0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0027fcd0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0027fce0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0027fcf0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0027fd00: 6c65 2076 7366 7470 6420 5365 7276 6963  le vsftpd Servic
│ │ │ -0027fd10: 6520 2d20 456e 7375 7265 2076 7366 7470  e - Ensure vsftp
│ │ │ -0027fd20: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -0027fd30: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -0027fd40: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -0027fd50: 0a20 2020 2020 206e 616d 653a 2076 7366  .      name: vsf
│ │ │ -0027fd60: 7470 642e 7365 7276 6963 650a 2020 2020  tpd.service.    
│ │ │ -0027fd70: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0027fd80: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0027fd90: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0027fda0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0027fdb0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0027fdc0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0027fdd0: 7320 7365 6172 6368 2822 7673 6674 7064  s search("vsftpd
│ │ │ -0027fde0: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -0027fdf0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -0027fe00: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -0027fe10: 7420 4578 6973 7473 202d 2076 7366 7470  t Exists - vsftp
│ │ │ -0027fe20: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -0027fe30: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -0027fe40: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -0027fe50: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -0027fe60: 6573 2076 7366 7470 642e 736f 636b 6574  es vsftpd.socket
│ │ │ -0027fe70: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0027fe80: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0027fe90: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0027fea0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0027feb0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -0027fec0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -0027fed0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -0027fee0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -0027fef0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -0027ff00: 4469 7361 626c 6520 7673 6674 7064 2053  Disable vsftpd S
│ │ │ -0027ff10: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0027ff20: 2053 6f63 6b65 7420 7673 6674 7064 0a20   Socket vsftpd. 
│ │ │ -0027ff30: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0027ff40: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0027ff50: 2020 6e61 6d65 3a20 7673 6674 7064 2e73    name: vsftpd.s
│ │ │ -0027ff60: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -0027ff70: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0027ff80: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0027ff90: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -0027ffa0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -0027ffb0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0027ffc0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0027ffd0: 7365 6172 6368 2822 7673 6674 7064 2e73  search("vsftpd.s
│ │ │ -0027ffe0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -0027fff0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00280000: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00280010: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -00280020: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -00280030: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00280040: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -00280050: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00280060: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00280070: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00280080: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00280090: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002800a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002800b0: 7365 7276 6963 655f 7673 6674 7064 5f64  service_vsftpd_d
│ │ │ -002800c0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002800d0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002800e0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -002800f0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00280100: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00280110: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +0027f250: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +0027f260: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0027f2e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ +0027f370: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0027f380: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -0027fa00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0027fa10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0027fa50: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0027fa60: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +0027f2f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0027f300: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0027f340: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0027f350: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +0027f3a0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0027f3b0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0027f3c0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0027f3d0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0027f3e0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0027f3f0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0027f400: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0027f410: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0027f420: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0027f430: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0027f440: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0027f450: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0027f460: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0027f470: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0027f480: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0027f490: 202d 2073 6572 7669 6365 5f76 7366 7470   - service_vsftp
│ │ │ +0027f4a0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ +0027f4b0: 6d65 3a20 4469 7361 626c 6520 7673 6674  me: Disable vsft
│ │ │ +0027f4c0: 7064 2053 6572 7669 6365 202d 2044 6973  pd Service - Dis
│ │ │ +0027f4d0: 6162 6c65 2073 6572 7669 6365 2076 7366  able service vsf
│ │ │ +0027f4e0: 7470 640a 2020 626c 6f63 6b3a 0a0a 2020  tpd.  block:..  
│ │ │ +0027f4f0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0027f500: 7673 6674 7064 2053 6572 7669 6365 202d  vsftpd Service -
│ │ │ +0027f510: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +0027f520: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +0027f530: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +0027f540: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0027f550: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0027f560: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0027f570: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +0027f580: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +0027f590: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +0027f5a0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +0027f5b0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +0027f5c0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +0027f5d0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +0027f5e0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0027f5f0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0027f600: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0027f610: 4469 7361 626c 6520 7673 6674 7064 2053  Disable vsftpd S
│ │ │ +0027f620: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +0027f630: 7673 6674 7064 2e73 6572 7669 6365 2069  vsftpd.service i
│ │ │ +0027f640: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +0027f650: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0027f660: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0027f670: 3a20 7673 6674 7064 2e73 6572 7669 6365  : vsftpd.service
│ │ │ +0027f680: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0027f690: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +0027f6a0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0027f6b0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0027f6c0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +0027f6d0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0027f6e0: 6e65 7320 6973 2073 6561 7263 6828 2276  nes is search("v
│ │ │ +0027f6f0: 7366 7470 642e 7365 7276 6963 6522 2c20  sftpd.service", 
│ │ │ +0027f700: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0027f710: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0027f720: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0027f730: 7673 6674 7064 2e73 6f63 6b65 740a 2020  vsftpd.socket.  
│ │ │ +0027f740: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0027f750: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0027f760: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0027f770: 742d 6669 6c65 7320 7673 6674 7064 2e73  t-files vsftpd.s
│ │ │ +0027f780: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +0027f790: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +0027f7a0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0027f7b0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0027f7c0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0027f7d0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0027f7e0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0027f7f0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0027f800: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0027f810: 616d 653a 2044 6973 6162 6c65 2076 7366  ame: Disable vsf
│ │ │ +0027f820: 7470 6420 5365 7276 6963 6520 2d20 4469  tpd Service - Di
│ │ │ +0027f830: 7361 626c 6520 536f 636b 6574 2076 7366  sable Socket vsf
│ │ │ +0027f840: 7470 640a 2020 2020 616e 7369 626c 652e  tpd.    ansible.
│ │ │ +0027f850: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0027f860: 0a20 2020 2020 206e 616d 653a 2076 7366  .      name: vsf
│ │ │ +0027f870: 7470 642e 736f 636b 6574 0a20 2020 2020  tpd.socket.     
│ │ │ +0027f880: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0027f890: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0027f8a0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +0027f8b0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0027f8c0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0027f8d0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0027f8e0: 7320 6973 2073 6561 7263 6828 2276 7366  s is search("vsf
│ │ │ +0027f8f0: 7470 642e 736f 636b 6574 222c 206d 756c  tpd.socket", mul
│ │ │ +0027f900: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +0027f910: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0027f920: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0027f930: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0027f940: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +0027f950: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +0027f960: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0027f970: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0027f980: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0027f990: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0027f9a0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0027f9b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0027f9c0: 0a20 202d 2073 6572 7669 6365 5f76 7366  .  - service_vsf
│ │ │ +0027f9d0: 7470 645f 6469 7361 626c 6564 0a20 202d  tpd_disabled.  -
│ │ │ +0027f9e0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +0027f9f0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +0027fa00: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +0027fa10: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0027fa20: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0027fa30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0027fae0: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ +0027faf0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
< │ │ │ +0027fbf0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +0027fc30: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +0027fc40: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +0027fc50: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +0027fc60: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +0027fc70: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +0027fc80: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +0027fc90: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +0027fca0: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +0027fcb0: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +0027fcc0: 2020 2020 202d 206e 616d 653a 2076 7366       - name: vsf
│ │ │ +0027fcd0: 7470 642e 7365 7276 6963 650a 2020 2020  tpd.service.    
│ │ │ +0027fce0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0027fcf0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0027fd00: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +0027fd10: 6d65 3a20 7673 6674 7064 2e73 6f63 6b65  me: vsftpd.socke
│ │ │ +0027fd20: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ +0027fd30: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +0027fd40: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ +0027fd60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0027fd70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0027fd80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0027fd90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0027fda0: 6439 3835 2220 7461 6269 6e64 6578 3d22 d985" tabindex=" │ │ │ +0027fdb0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0027fdc0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0027fdd0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0027fde0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0027fdf0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0027fe00: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0027fe10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0027fb80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0027fb90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0027fbb0: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +0027fbc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +0027fc00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0027fc10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +0027fea0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0027feb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0027fed0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0027fef0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0027ff00: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0027ff40: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0027ff50: 6520 6469 7361 626c 655f 7673 6674 7064 e disable_vsftpd │ │ │ +0027ff60: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +0027ff70: 7673 6674 7064 207b 0a20 2073 6572 7669 vsftpd {. servi │ │ │ +0027ff80: 6365 207b 2776 7366 7470 6427 3a0a 2020 ce {'vsftpd':. │ │ │ +0027ff90: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +0027ffa0: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +0027ffb0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +0027ffc0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +0027ffd0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00280080: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +00280090: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +002800a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +002800f0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00280100: 6173 6b65 6420 3d20 5b22 7673 6674 7064  asked = ["vsftpd
│ │ │ +00280110: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00280120: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
│ │ │ -00281100: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00281110: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -002811b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -00281250: 696e 636c 7564 6520 7265 6d6f 7665 5f66  include remove_f
│ │ │ -00281260: 7470 0a0a 636c 6173 7320 7265 6d6f 7665  tp..class remove
│ │ │ -00281270: 5f66 7470 207b 0a20 2070 6163 6b61 6765  _ftp {.  package
│ │ │ -00281280: 207b 2027 6674 7027 3a0a 2020 2020 656e   { 'ftp':.    en
│ │ │ -00281290: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002812a0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00281360: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00281370: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -002811a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002811d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002811e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00281220: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00281230: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00281400: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00281410: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00281430: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00281450: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00281460: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002814a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002814b0: 653a 2027 5265 6d6f 7665 2066 7470 2050  e: 'Remove ftp P
│ │ │ -002814c0: 6163 6b61 6765 3a20 456e 7375 7265 2066  ackage: Ensure f
│ │ │ -002814d0: 7470 2069 7320 7265 6d6f 7665 6427 0a20  tp is removed'. 
│ │ │ -002814e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002814f0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00281500: 6d65 3a20 6674 700a 2020 2020 7374 6174  me: ftp.    stat
│ │ │ -00281510: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00281520: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -00281530: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00281540: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00281550: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00281560: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00281570: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00281580: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -00281590: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -002815a0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002815b0: 6b61 6765 5f66 7470 5f72 656d 6f76 6564  kage_ftp_removed
│ │ │ +00281100: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +00281110: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +00281120: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +002811f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00281200: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00281250: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ +00281260: 6674 7020 5061 636b 6167 653a 2045 6e73  ftp Package: Ens
│ │ │ +00281270: 7572 6520 6674 7020 6973 2072 656d 6f76  ure ftp is remov
│ │ │ +00281280: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00281290: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002812a0: 2020 206e 616d 653a 2066 7470 0a20 2020     name: ftp.   
│ │ │ +002812b0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002812c0: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +002812d0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002812e0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +002812f0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00281300: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00281310: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00281320: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00281330: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00281340: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00281350: 2d20 7061 636b 6167 655f 6674 705f 7265  - package_ftp_re
│ │ │ +00281360: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00281420: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00281430: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002814f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00281500: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +002811d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002811e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00281220: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00281230: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +002814c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002814e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00281510: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00281530: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00281560: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00281570: 6d6f 7665 5f66 7470 0a0a 636c 6173 7320  move_ftp..class 
│ │ │ +00281580: 7265 6d6f 7665 5f66 7470 207b 0a20 2070  remove_ftp {.  p
│ │ │ +00281590: 6163 6b61 6765 207b 2027 6674 7027 3a0a  ackage { 'ftp':.
│ │ │ +002815a0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002815b0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002815c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediatio │ │ │ -002831a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002831b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00283240: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00283260: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00283270: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00283280: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00283290: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002832b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002832e0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -002832f0: 6d6f 7665 5f61 7061 6368 6532 0a0a 636c  move_apache2..cl
│ │ │ -00283300: 6173 7320 7265 6d6f 7665 5f61 7061 6368  ass remove_apach
│ │ │ -00283310: 6532 207b 0a20 2070 6163 6b61 6765 207b  e2 {.  package {
│ │ │ -00283320: 2027 6170 6163 6865 3227 3a0a 2020 2020   'apache2':.    
│ │ │ -00283330: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00283340: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00283360: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00283400: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00283410: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00283420: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -002834c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00283510: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00283550: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -00283560: 6170 6163 6865 3220 5061 636b 6167 653a  apache2 Package:
│ │ │ -00283570: 2045 6e73 7572 6520 6170 6163 6865 3220   Ensure apache2 
│ │ │ -00283580: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00283590: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002835a0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002835b0: 2061 7061 6368 6532 0a20 2020 2073 7461   apache2.    sta
│ │ │ -002835c0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -002835d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002835e0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002835f0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00283600: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00283610: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -00283620: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00283630: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00283640: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00283650: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00283660: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00283670: 6163 6b61 6765 5f68 7474 7064 5f72 656d  ackage_httpd_rem
│ │ │ -00283680: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -00283690: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
< │ │ │ +00283230: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00283270: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -002834a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002834d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002834f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00283500: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00283520: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00283530: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00283240: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00283260: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00283290: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +002832b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +002832e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +002832f0: 6e69 6e73 7461 6c6c 2061 7061 6368 6532  ninstall apache2
│ │ │ +00283300: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +00283310: 2061 7061 6368 6532 2069 7320 7265 6d6f   apache2 is remo
│ │ │ +00283320: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00283330: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00283340: 2020 2020 6e61 6d65 3a20 6170 6163 6865      name: apache
│ │ │ +00283350: 320a 2020 2020 7374 6174 653a 2061 6273  2.    state: abs
│ │ │ +00283360: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00283370: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00283380: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00283390: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +002833a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +002833b0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +002833c0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +002833d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002833e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002833f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00283400: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00283410: 6874 7470 645f 7265 6d6f 7665 640a 2020  httpd_removed.  
│ │ │ +00283420: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00283430: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +00283440: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +002834f0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00283500: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00283580: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002835a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002835f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00283620: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00283640: 655f 6170 6163 6865 320a 0a63 6c61 7373  e_apache2..class
│ │ │ +00283650: 2072 656d 6f76 655f 6170 6163 6865 3220   remove_apache2 
│ │ │ +00283660: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ +00283670: 7061 6368 6532 273a 0a20 2020 2065 6e73  pache2':.    ens
│ │ │ +00283680: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00283690: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation O │ │ │ -002849d0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -002849e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002849f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00284a30: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00284a40: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00284a50: 203d 205b 2261 7061 6368 6532 225d 0a3c   = ["apache2"].<
│ │ │ -00284a60: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00284b10: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -00284b20: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -00284b30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ +002835b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002835c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00283600: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00283610: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -00284bb0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00284bd0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ -00284c00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -00284be0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00284bf0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ -00284c10: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ -00284c30: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00284c40: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ -00284c70: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ -00284c80: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ -00284c90: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ -00284ca0: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ -00284cb0: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ -00284cc0: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ -00284cd0: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ -00284ce0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ -00284cf0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ -00284d00: 6d65 3a20 6170 6163 6865 322e 7365 7276  me: apache2.serv
│ │ │ -00284d10: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ -00284d20: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00284d30: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ -00284d40: 2020 2020 2d20 6e61 6d65 3a20 6170 6163      - name: apac
│ │ │ -00284d50: 6865 322e 736f 636b 6574 0a20 2020 2020  he2.socket.     
│ │ │ -00284d60: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00284d70: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -00284d80: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.
Remediation │ │ │ -00284e40: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00284e50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00284ee0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00284f00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00284f20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00284f50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00284f60: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00284f70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -00284f90: 6c65 5f61 7061 6368 6532 0a0a 636c 6173  le_apache2..clas
│ │ │ -00284fa0: 7320 6469 7361 626c 655f 6170 6163 6865  s disable_apache
│ │ │ -00284fb0: 3220 7b0a 2020 7365 7276 6963 6520 7b27  2 {.  service {'
│ │ │ -00284fc0: 6170 6163 6865 3227 3a0a 2020 2020 656e  apache2':.    en
│ │ │ -00284fd0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -00284fe0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00284ff0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -00285000: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002850c0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002850d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00285150: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00285160: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00285180: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00285190: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002851b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002851d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00285200: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00285210: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00285220: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00285230: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00285240: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00285250: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00285260: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00285270: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00285280: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00285290: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -002852a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002852b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002852c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002852d0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -002852e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -002852f0: 7276 6963 655f 6874 7470 645f 6469 7361  rvice_httpd_disa
│ │ │ -00285300: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ -00285310: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ -00285320: 653a 2044 6973 6162 6c65 2061 7061 6368  e: Disable apach
│ │ │ -00285330: 6532 2053 6572 7669 6365 202d 2044 6973  e2 Service - Dis
│ │ │ -00285340: 6162 6c65 2073 6572 7669 6365 2061 7061  able service apa
│ │ │ -00285350: 6368 6532 0a20 2062 6c6f 636b 3a0a 0a20  che2.  block:.. 
│ │ │ -00285360: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00285370: 2061 7061 6368 6532 2053 6572 7669 6365   apache2 Service
│ │ │ -00285380: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -00285390: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -002853a0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -002853b0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -002853c0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002853d0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002853e0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -002853f0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -00285400: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -00285410: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00285420: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00285430: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00285440: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00285450: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00285460: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00285470: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00285480: 3a20 4469 7361 626c 6520 6170 6163 6865  : Disable apache
│ │ │ -00285490: 3220 5365 7276 6963 6520 2d20 456e 7375  2 Service - Ensu
│ │ │ -002854a0: 7265 2061 7061 6368 6532 2e73 6572 7669  re apache2.servi
│ │ │ -002854b0: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -002854c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002854d0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002854e0: 6e61 6d65 3a20 6170 6163 6865 322e 7365  name: apache2.se
│ │ │ -002854f0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -00285500: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -00285510: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00285520: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00285530: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -00285540: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -00285550: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00285560: 6368 2822 6170 6163 6865 322e 7365 7276  ch("apache2.serv
│ │ │ -00285570: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -00285580: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -00285590: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -002855a0: 7374 7320 2d20 6170 6163 6865 322e 736f  sts - apache2.so
│ │ │ -002855b0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002855c0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002855d0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002855e0: 6973 742d 756e 6974 2d66 696c 6573 2061  ist-unit-files a
│ │ │ -002855f0: 7061 6368 6532 2e73 6f63 6b65 740a 2020  pache2.socket.  
│ │ │ -00285600: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ -00285610: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ -00285620: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -00285630: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -00285640: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ -00285650: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ -00285660: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00285670: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00285680: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00285690: 6162 6c65 2061 7061 6368 6532 2053 6572  able apache2 Ser
│ │ │ -002856a0: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -002856b0: 6f63 6b65 7420 6170 6163 6865 320a 2020  ocket apache2.  
│ │ │ -002856c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002856d0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002856e0: 206e 616d 653a 2061 7061 6368 6532 2e73   name: apache2.s
│ │ │ -002856f0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -00285700: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00285710: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -00285720: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00285730: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -00285740: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00285750: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00285760: 7365 6172 6368 2822 6170 6163 6865 322e  search("apache2.
│ │ │ -00285770: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -00285780: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -00285790: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002857a0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002857b0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002857c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002857d0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -002857e0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002857f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00285800: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00285810: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00285820: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00285830: 7669 6365 5f68 7474 7064 5f64 6973 6162  vice_httpd_disab
│ │ │ -00285840: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -00285850: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -00285860: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -00285870: 7479 0a20 2077 6865 6e3a 2027 226c 696e  ty.  when: '"lin
│ │ │ -00285880: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00285890: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002858a0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation A │ │ │ +002849d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +002849e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00284a60: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00284a80: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00284ad0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00284b00: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00284a70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00284a90: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00284ae0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00284af0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00284b20: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00284b30: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00284b40: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00284b50: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00284b60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00284b70: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00284b80: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00284b90: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00284ba0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00284bb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00284bc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00284bd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00284be0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00284bf0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00284c00: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ +00284c10: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +00284c20: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ +00284c30: 4469 7361 626c 6520 6170 6163 6865 3220  Disable apache2 
│ │ │ +00284c40: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00284c50: 6520 7365 7276 6963 6520 6170 6163 6865  e service apache
│ │ │ +00284c60: 320a 2020 626c 6f63 6b3a 0a0a 2020 2d20  2.  block:..  - 
│ │ │ +00284c70: 6e61 6d65 3a20 4469 7361 626c 6520 6170  name: Disable ap
│ │ │ +00284c80: 6163 6865 3220 5365 7276 6963 6520 2d20  ache2 Service - 
│ │ │ +00284c90: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +00284ca0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +00284cb0: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +00284cc0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00284cd0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00284ce0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00284cf0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +00284d00: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +00284d10: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +00284d20: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00284d30: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00284d40: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +00284d50: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +00284d60: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +00284d70: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00284d80: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00284d90: 6973 6162 6c65 2061 7061 6368 6532 2053  isable apache2 S
│ │ │ +00284da0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +00284db0: 6170 6163 6865 322e 7365 7276 6963 6520  apache2.service 
│ │ │ +00284dc0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +00284dd0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00284de0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00284df0: 653a 2061 7061 6368 6532 2e73 6572 7669  e: apache2.servi
│ │ │ +00284e00: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +00284e10: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +00284e20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00284e30: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00284e40: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +00284e50: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +00284e60: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00284e70: 2261 7061 6368 6532 2e73 6572 7669 6365  "apache2.service
│ │ │ +00284e80: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00284e90: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +00284ea0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +00284eb0: 202d 2061 7061 6368 6532 2e73 6f63 6b65   - apache2.socke
│ │ │ +00284ec0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +00284ed0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00284ee0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00284ef0: 2d75 6e69 742d 6669 6c65 7320 6170 6163  -unit-files apac
│ │ │ +00284f00: 6865 322e 736f 636b 6574 0a20 2020 2072  he2.socket.    r
│ │ │ +00284f10: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +00284f20: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +00284f30: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00284f40: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00284f50: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00284f60: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00284f70: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00284f80: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00284f90: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00284fa0: 6520 6170 6163 6865 3220 5365 7276 6963  e apache2 Servic
│ │ │ +00284fb0: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00284fc0: 6574 2061 7061 6368 6532 0a20 2020 2061  et apache2.    a
│ │ │ +00284fd0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00284fe0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00284ff0: 6d65 3a20 6170 6163 6865 322e 736f 636b  me: apache2.sock
│ │ │ +00285000: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00285010: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00285020: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00285030: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00285040: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00285050: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00285060: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00285070: 7263 6828 2261 7061 6368 6532 2e73 6f63  rch("apache2.soc
│ │ │ +00285080: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +00285090: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +002850a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002850b0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +002850c0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +002850d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002850e0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +002850f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00285100: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00285110: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00285120: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00285130: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00285140: 655f 6874 7470 645f 6469 7361 626c 6564  e_httpd_disabled
│ │ │ +00285150: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +00285160: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ +00285170: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00285180: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00285190: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +002851a0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +002851b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Kub │ │ │ +00285270: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +00285280: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00285310: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00285330: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:mediumReboot │ │ │ +00285360: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true │ │ │ +00285380: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002853b0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ +002853c0: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ +002853d0: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ +002853e0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ +002853f0: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ +00285400: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ +00285410: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ +00285420: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ +00285430: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ +00285440: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ +00285450: 6e61 6d65 3a20 6170 6163 6865 322e 7365  name: apache2.se
│ │ │ +00285460: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ +00285470: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00285480: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +00285490: 2020 2020 2020 2d20 6e61 6d65 3a20 6170        - name: ap
│ │ │ +002854a0: 6163 6865 322e 736f 636b 6574 0a20 2020  ache2.socket.   
│ │ │ +002854b0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002854c0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +002854d0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ +00285590: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002855a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00285620: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00285630: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00285650: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00285660: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00285680: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002856a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +002856d0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +002856e0: 6162 6c65 5f61 7061 6368 6532 0a0a 636c  able_apache2..cl
│ │ │ +002856f0: 6173 7320 6469 7361 626c 655f 6170 6163  ass disable_apac
│ │ │ +00285700: 6865 3220 7b0a 2020 7365 7276 6963 6520  he2 {.  service 
│ │ │ +00285710: 7b27 6170 6163 6865 3227 3a0a 2020 2020  {'apache2':.    
│ │ │ +00285720: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +00285730: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +00285740: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +00285750: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +00285810: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00285820: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00285830: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +00285880: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00285890: 6173 6b65 6420 3d20 5b22 6170 6163 6865  asked = ["apache
│ │ │ +002858a0: 3222 5d0a 3c2f 636f 6465 3e3c 2f70 7265  2"].
│ │ │ -00286f30: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00286f40: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -00287020: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00287030: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00287080: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00287090: 6e67 696e 780a 0a63 6c61 7373 2072 656d  nginx..class rem
│ │ │ -002870a0: 6f76 655f 6e67 696e 7820 7b0a 2020 7061  ove_nginx {.  pa
│ │ │ -002870b0: 636b 6167 6520 7b20 276e 6769 6e78 273a  ckage { 'nginx':
│ │ │ -002870c0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002870d0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -002870e0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002870f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002871a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002871b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -00287280: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ -00287000: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00287010: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00287050: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00287060: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00287240: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00287260: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002872b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002872c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -002872f0: 6e73 7461 6c6c 206e 6769 6e78 2050 6163  nstall nginx Pac
│ │ │ -00287300: 6b61 6765 3a20 456e 7375 7265 206e 6769  kage: Ensure ngi
│ │ │ -00287310: 6e78 2069 7320 7265 6d6f 7665 6427 0a20  nx is removed'. 
│ │ │ -00287320: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00287330: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00287340: 6d65 3a20 6e67 696e 780a 2020 2020 7374  me: nginx.    st
│ │ │ -00287350: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00287360: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00287370: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00287380: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00287390: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002873a0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -002873b0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002873c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002873d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002873e0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002873f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00287400: 7061 636b 6167 655f 6e67 696e 785f 7265  package_nginx_re
│ │ │ -00287410: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ -00287420: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.
Complexity: │ │ │ +00287020: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00287030: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00287090: 616c 6c20 6e67 696e 7820 5061 636b 6167  all nginx Packag
│ │ │ +002870a0: 653a 2045 6e73 7572 6520 6e67 696e 7820  e: Ensure nginx 
│ │ │ +002870b0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002870c0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002870d0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002870e0: 206e 6769 6e78 0a20 2020 2073 7461 7465   nginx.    state
│ │ │ +002870f0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00287100: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00287110: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00287120: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00287130: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00287140: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00287150: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00287160: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00287170: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00287180: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00287190: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002871a0: 6b61 6765 5f6e 6769 6e78 5f72 656d 6f76  kage_nginx_remov
│ │ │ +002871b0: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +002871c0: 6576 6572 6974 790a 3c2f 636f 6465 3e3c  everity.<
│ │ │ +002871d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +00287280: 7469 6f6e 2050 7570 7065 7420 736e 6970  tion Puppet snip
│ │ │ +00287290: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +002872a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002872b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002872c0: 7365 2220 6964 3d22 6964 3130 3034 223e se" id="id1004"> │ │ │ +002872d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +00287000: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00287010: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00287050: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00287060: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +00287340: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00287360: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00287390: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00287320: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00287330: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00287370: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00287380: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002873d0: 6520 7265 6d6f 7665 5f6e 6769 6e78 0a0a e remove_nginx.. │ │ │ +002873e0: 636c 6173 7320 7265 6d6f 7665 5f6e 6769 class remove_ngi │ │ │ +002873f0: 6e78 207b 0a20 2070 6163 6b61 6765 207b nx {. package { │ │ │ +00287400: 2027 6e67 696e 7827 3a0a 2020 2020 656e 'nginx':. en │ │ │ +00287410: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ +00287420: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.

Remediation │ │ │ -002881e0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -002881f0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ -00288250: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -00288260: 6b65 6420 3d20 5b22 6e67 696e 7822 5d0a  ked = ["nginx"].
│ │ │ -00288270: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ -00288330: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -00288340: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002883d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002883f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00288400: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -00288420: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -00288430: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00288450: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00288460: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -00288480: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -00288490: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -002884a0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -002884b0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -002884c0: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -002884d0: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -002884e0: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -002884f0: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -00288500: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -00288510: 206e 616d 653a 206e 6769 6e78 2e73 6572   name: nginx.ser
│ │ │ -00288520: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ -00288530: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00288540: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ -00288550: 2020 2020 202d 206e 616d 653a 206e 6769       - name: ngi
│ │ │ -00288560: 6e78 2e73 6f63 6b65 740a 2020 2020 2020  nx.socket.      
│ │ │ -00288570: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -00288580: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -00288590: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ -00288650: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00288660: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002886f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00288710: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00288720: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00288730: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00288740: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00288760: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -002887a0: 626c 655f 6e67 696e 780a 0a63 6c61 7373  ble_nginx..class
│ │ │ -002887b0: 2064 6973 6162 6c65 5f6e 6769 6e78 207b   disable_nginx {
│ │ │ -002887c0: 0a20 2073 6572 7669 6365 207b 276e 6769  .  service {'ngi
│ │ │ -002887d0: 6e78 273a 0a20 2020 2065 6e61 626c 6520  nx':.    enable 
│ │ │ -002887e0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -002887f0: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -00288800: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -00288810: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002888c0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002888d0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002888e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002889b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002889c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -00288a20: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00288a30: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00288a40: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00288a50: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00288a60: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00288a70: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00288a80: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00288a90: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -00288aa0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00288ab0: 2073 6572 7669 6365 5f6e 6769 6e78 5f64   service_nginx_d
│ │ │ -00288ac0: 6973 6162 6c65 640a 2020 2d20 756e 6b6e  isabled.  - unkn
│ │ │ -00288ad0: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20  own_severity..- 
│ │ │ -00288ae0: 6e61 6d65 3a20 4469 7361 626c 6520 6e67  name: Disable ng
│ │ │ -00288af0: 696e 7820 5365 7276 6963 6520 2d20 4469  inx Service - Di
│ │ │ -00288b00: 7361 626c 6520 7365 7276 6963 6520 6e67  sable service ng
│ │ │ -00288b10: 696e 780a 2020 626c 6f63 6b3a 0a0a 2020  inx.  block:..  
│ │ │ -00288b20: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00288b30: 6e67 696e 7820 5365 7276 6963 6520 2d20  nginx Service - 
│ │ │ -00288b40: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -00288b50: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -00288b60: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -00288b70: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00288b80: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -00288b90: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -00288ba0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -00288bb0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -00288bc0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -00288bd0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00288be0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00288bf0: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -00288c00: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -00288c10: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -00288c20: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -00288c30: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -00288c40: 6973 6162 6c65 206e 6769 6e78 2053 6572  isable nginx Ser
│ │ │ -00288c50: 7669 6365 202d 2045 6e73 7572 6520 6e67  vice - Ensure ng
│ │ │ -00288c60: 696e 782e 7365 7276 6963 6520 6973 204d  inx.service is M
│ │ │ -00288c70: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00288c80: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00288c90: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ -00288ca0: 6769 6e78 2e73 6572 7669 6365 0a20 2020  ginx.service.   
│ │ │ -00288cb0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -00288cc0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -00288cd0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -00288ce0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -00288cf0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00288d00: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -00288d10: 6973 2073 6561 7263 6828 226e 6769 6e78  is search("nginx
│ │ │ -00288d20: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -00288d30: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -00288d40: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -00288d50: 7420 4578 6973 7473 202d 206e 6769 6e78  t Exists - nginx
│ │ │ -00288d60: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -00288d70: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -00288d80: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -00288d90: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -00288da0: 7320 6e67 696e 782e 736f 636b 6574 0a20  s nginx.socket. 
│ │ │ -00288db0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -00288dc0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -00288dd0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00288de0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00288df0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -00288e00: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00288e10: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00288e20: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00288e30: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00288e40: 7361 626c 6520 6e67 696e 7820 5365 7276  sable nginx Serv
│ │ │ -00288e50: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ -00288e60: 636b 6574 206e 6769 6e78 0a20 2020 2061  cket nginx.    a
│ │ │ -00288e70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00288e80: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00288e90: 6d65 3a20 6e67 696e 782e 736f 636b 6574  me: nginx.socket
│ │ │ -00288ea0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00288eb0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -00288ec0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -00288ed0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -00288ee0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -00288ef0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -00288f00: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00288f10: 6828 226e 6769 6e78 2e73 6f63 6b65 7422  h("nginx.socket"
│ │ │ -00288f20: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00288f30: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ -00288f40: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00288f50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00288f60: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00288f70: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -00288f80: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00288f90: 7276 6963 655f 6e67 696e 785f 6469 7361  rvice_nginx_disa
│ │ │ -00288fa0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00288fb0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00288fc0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -00288fd0: 6974 790a 2020 7768 656e 3a20 2722 6c69  ity.  when: '"li
│ │ │ -00288fe0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00288ff0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00289000: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
< │ │ │ +00288270: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +002882b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -00288990: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002889a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002889e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002889f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +00288280: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +002882a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +002882d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +002882f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00288320: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00288330: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00288340: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00288350: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00288360: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00288370: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00288380: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00288390: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002883a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002883b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002883c0: 640a 2020 2d20 7365 7276 6963 655f 6e67  d.  - service_ng
│ │ │ +002883d0: 696e 785f 6469 7361 626c 6564 0a20 202d  inx_disabled.  -
│ │ │ +002883e0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +002883f0: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ +00288400: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ +00288410: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00288420: 6365 206e 6769 6e78 0a20 2062 6c6f 636b  ce nginx.  block
│ │ │ +00288430: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00288440: 6162 6c65 206e 6769 6e78 2053 6572 7669  able nginx Servi
│ │ │ +00288450: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +00288460: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00288470: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +00288480: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +00288490: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002884a0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002884b0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +002884c0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +002884d0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +002884e0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +002884f0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00288500: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00288510: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00288520: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +00288530: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +00288540: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +00288550: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ +00288560: 7820 5365 7276 6963 6520 2d20 456e 7375  x Service - Ensu
│ │ │ +00288570: 7265 206e 6769 6e78 2e73 6572 7669 6365  re nginx.service
│ │ │ +00288580: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00288590: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +002885a0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +002885b0: 6d65 3a20 6e67 696e 782e 7365 7276 6963  me: nginx.servic
│ │ │ +002885c0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +002885d0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +002885e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002885f0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00288600: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00288610: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00288620: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00288630: 6e67 696e 782e 7365 7276 6963 6522 2c20  nginx.service", 
│ │ │ +00288640: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00288650: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00288660: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00288670: 6e67 696e 782e 736f 636b 6574 0a20 2020  nginx.socket.   
│ │ │ +00288680: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00288690: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002886a0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002886b0: 2d66 696c 6573 206e 6769 6e78 2e73 6f63  -files nginx.soc
│ │ │ +002886c0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +002886d0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002886e0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002886f0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00288700: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +00288710: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00288720: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00288730: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00288740: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00288750: 653a 2044 6973 6162 6c65 206e 6769 6e78  e: Disable nginx
│ │ │ +00288760: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00288770: 6c65 2053 6f63 6b65 7420 6e67 696e 780a  le Socket nginx.
│ │ │ +00288780: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00288790: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002887a0: 2020 206e 616d 653a 206e 6769 6e78 2e73     name: nginx.s
│ │ │ +002887b0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +002887c0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002887d0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002887e0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +002887f0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +00288800: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00288810: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00288820: 7365 6172 6368 2822 6e67 696e 782e 736f  search("nginx.so
│ │ │ +00288830: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00288840: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00288850: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00288860: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00288870: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00288880: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00288890: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002888a0: 202d 2073 6572 7669 6365 5f6e 6769 6e78   - service_nginx
│ │ │ +002888b0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +002888c0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +002888d0: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f  ock.  - unknown_
│ │ │ +002888e0: 7365 7665 7269 7479 0a20 2077 6865 6e3a  severity.  when:
│ │ │ +002888f0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00288900: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00288910: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +002889d0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ +002889e0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ +00288a80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ +00288b30: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ +00288b40: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ +00288b50: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ +00288b60: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ +00288b70: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ +00288b80: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ +00288b90: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ +00288ba0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ +00288bb0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ +00288bc0: 206e 6769 6e78 2e73 6572 7669 6365 0a20   nginx.service. 
│ │ │ +00288bd0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +00288be0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +00288bf0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +00288c00: 206e 616d 653a 206e 6769 6e78 2e73 6f63   name: nginx.soc
│ │ │ +00288c10: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +00288c20: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00288c30: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ +00288cf0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00288d00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00288a70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00288aa0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ +00288ab0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ +00288af0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00288b00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00288da0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00288e40: 636c 7564 6520 6469 7361 626c 655f 6e67  clude disable_ng
│ │ │ +00288e50: 696e 780a 0a63 6c61 7373 2064 6973 6162  inx..class disab
│ │ │ +00288e60: 6c65 5f6e 6769 6e78 207b 0a20 2073 6572  le_nginx {.  ser
│ │ │ +00288e70: 7669 6365 207b 276e 6769 6e78 273a 0a20  vice {'nginx':. 
│ │ │ +00288e80: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00288e90: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +00288ea0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +00288eb0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00288ec0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00288f70: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00288f80: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00288f90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +00288fe0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00288ff0: 5d0a 6d61 736b 6564 203d 205b 226e 6769  ].masked = ["ngi
│ │ │ +00289000: 6e78 225d 0a3c 2f63 6f64 653e 3c2f 7072  nx"].
Remed │ │ │ -0028a560: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0028a570: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00288d90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00288dc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00288dd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00288e10: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00288e20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -0028a600: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0028a610: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0028a630: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0028a650: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0028a660: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0028a6a0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0028a6b0: 7564 6520 7265 6d6f 7665 5f64 6f76 6563  ude remove_dovec
│ │ │ -0028a6c0: 6f74 2d63 6f72 650a 0a63 6c61 7373 2072  ot-core..class r
│ │ │ -0028a6d0: 656d 6f76 655f 646f 7665 636f 742d 636f  emove_dovecot-co
│ │ │ -0028a6e0: 7265 207b 0a20 2070 6163 6b61 6765 207b  re {.  package {
│ │ │ -0028a6f0: 2027 646f 7665 636f 742d 636f 7265 273a   'dovecot-core':
│ │ │ -0028a700: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0028a710: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -0028a720: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0028a730: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -0028a7e0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0028a7f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0028a880: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0028a8a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0028a8c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0028a8f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0028a900: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0028a930: 6e73 7461 6c6c 2064 6f76 6563 6f74 2050  nstall dovecot P
│ │ │ -0028a940: 6163 6b61 6765 3a20 456e 7375 7265 2064  ackage: Ensure d
│ │ │ -0028a950: 6f76 6563 6f74 2d63 6f72 6520 6973 2072  ovecot-core is r
│ │ │ -0028a960: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0028a970: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0028a980: 653a 0a20 2020 206e 616d 653a 2064 6f76  e:.    name: dov
│ │ │ -0028a990: 6563 6f74 2d63 6f72 650a 2020 2020 7374  ecot-core.    st
│ │ │ -0028a9a0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -0028a9b0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -0028a9c0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0028a9d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0028a9e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0028a9f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0028aa00: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0028aa10: 646f 7665 636f 745f 7265 6d6f 7665 640a  dovecot_removed.
│ │ │ -0028aa20: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -0028aa30: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.
Com │ │ │ +0028a600: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0028a630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0028a650: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0028a660: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0028a680: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0028a690: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0028a6b0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2064  me: 'Uninstall d
│ │ │ +0028a6c0: 6f76 6563 6f74 2050 6163 6b61 6765 3a20  ovecot Package: 
│ │ │ +0028a6d0: 456e 7375 7265 2064 6f76 6563 6f74 2d63  Ensure dovecot-c
│ │ │ +0028a6e0: 6f72 6520 6973 2072 656d 6f76 6564 270a  ore is removed'.
│ │ │ +0028a6f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0028a700: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0028a710: 616d 653a 2064 6f76 6563 6f74 2d63 6f72  ame: dovecot-cor
│ │ │ +0028a720: 650a 2020 2020 7374 6174 653a 2061 6273  e.    state: abs
│ │ │ +0028a730: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0028a740: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0028a750: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0028a760: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0028a770: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +0028a780: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0028a790: 7061 636b 6167 655f 646f 7665 636f 745f  package_dovecot_
│ │ │ +0028a7a0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +0028a7b0: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +0028a7d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0028a870: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0028a880: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0028a890: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +0028a920: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028a930: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0028a980: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0028a9c0: 6e63 6c75 6465 2072 656d 6f76 655f 646f  nclude remove_do
│ │ │ +0028a9d0: 7665 636f 742d 636f 7265 0a0a 636c 6173  vecot-core..clas
│ │ │ +0028a9e0: 7320 7265 6d6f 7665 5f64 6f76 6563 6f74  s remove_dovecot
│ │ │ +0028a9f0: 2d63 6f72 6520 7b0a 2020 7061 636b 6167  -core {.  packag
│ │ │ +0028aa00: 6520 7b20 2764 6f76 6563 6f74 2d63 6f72  e { 'dovecot-cor
│ │ │ +0028aa10: 6527 3a0a 2020 2020 656e 7375 7265 203d  e':.    ensure =
│ │ │ +0028aa20: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0028aa30: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Rem
│ │ │ -0028b820: 6564 6961 7469 6f6e 204f 5342 7569 6c64  ediation OSBuild
│ │ │ -0028b830: 2042 6c75 6570 7269 6e74 2073 6e69 7070   Blueprint snipp
│ │ │ -0028b840: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ -0028b880: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -0028b890: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -0028b8a0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -0028b8b0: 646f 7665 636f 7422 5d0a 3c2f 636f 6465 dovecot"].
Remed │ │ │ -0028b970: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -0028b980: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
C │ │ │ +0028a910: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0028a940: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0028a950: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0028a990: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0028a9a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0028ba20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -0028bad0: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -0028bae0: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -0028baf0: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -0028bb00: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -0028bb10: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -0028bb20: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -0028bb30: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -0028bb40: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -0028bb50: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -0028bb60: 2064 6f76 6563 6f74 2e73 6572 7669 6365   dovecot.service
│ │ │ -0028bb70: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -0028bb80: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -0028bb90: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -0028bba0: 202d 206e 616d 653a 2064 6f76 6563 6f74   - name: dovecot
│ │ │ -0028bbb0: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ -0028bbc0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0028bbd0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ -0028bbe0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ -0028bbf0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ -0028bca0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0028bcb0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0028ba10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0028ba40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -0028ba50: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -0028ba90: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0028baa0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0028bd30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0028bd50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0028bda0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0028bdd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -0028bdf0: 655f 646f 7665 636f 740a 0a63 6c61 7373  e_dovecot..class
│ │ │ -0028be00: 2064 6973 6162 6c65 5f64 6f76 6563 6f74   disable_dovecot
│ │ │ -0028be10: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ -0028be20: 6f76 6563 6f74 273a 0a20 2020 2065 6e61  ovecot':.    ena
│ │ │ -0028be30: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -0028be40: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0028be50: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -0028be60: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0028be70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -0028bf20: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0028bf30: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -0028bff0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0028c000: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:< │ │ │ -0028bd40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0028bd60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0028bdb0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0028bdc0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity │ │ │ -0028bfc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0028bfe0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0028c010: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0028c030: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0028c060: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0028c070: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0028c080: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0028c090: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0028c0a0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0028c0b0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0028c0c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0028c0d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0028c0e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0028c0f0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0028c100: 0a20 202d 2073 6572 7669 6365 5f64 6f76  .  - service_dov
│ │ │ -0028c110: 6563 6f74 5f64 6973 6162 6c65 640a 2020  ecot_disabled.  
│ │ │ -0028c120: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -0028c130: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ -0028c140: 626c 6520 446f 7665 636f 7420 5365 7276  ble Dovecot Serv
│ │ │ -0028c150: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -0028c160: 7276 6963 6520 646f 7665 636f 740a 2020  rvice dovecot.  
│ │ │ -0028c170: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -0028c180: 3a20 4469 7361 626c 6520 446f 7665 636f  : Disable Doveco
│ │ │ -0028c190: 7420 5365 7276 6963 6520 2d20 436f 6c6c  t Service - Coll
│ │ │ -0028c1a0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -0028c1b0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -0028c1c0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0028c1d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0028c1e0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0028c1f0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0028c200: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0028c210: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0028c220: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0028c230: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0028c240: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0028c250: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0028c260: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0028c270: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0028c280: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0028c290: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0028c2a0: 6c65 2044 6f76 6563 6f74 2053 6572 7669  le Dovecot Servi
│ │ │ -0028c2b0: 6365 202d 2045 6e73 7572 6520 646f 7665  ce - Ensure dove
│ │ │ -0028c2c0: 636f 742e 7365 7276 6963 6520 6973 204d  cot.service is M
│ │ │ -0028c2d0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -0028c2e0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0028c2f0: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ -0028c300: 6f76 6563 6f74 2e73 6572 7669 6365 0a20  ovecot.service. 
│ │ │ -0028c310: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -0028c320: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -0028c330: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -0028c340: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0028c350: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0028c360: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0028c370: 7320 6973 2073 6561 7263 6828 2264 6f76  s is search("dov
│ │ │ -0028c380: 6563 6f74 2e73 6572 7669 6365 222c 206d  ecot.service", m
│ │ │ -0028c390: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -0028c3a0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -0028c3b0: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ -0028c3c0: 6f76 6563 6f74 2e73 6f63 6b65 740a 2020  ovecot.socket.  
│ │ │ -0028c3d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0028c3e0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0028c3f0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0028c400: 742d 6669 6c65 7320 646f 7665 636f 742e  t-files dovecot.
│ │ │ -0028c410: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -0028c420: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -0028c430: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0028c440: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0028c450: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0028c460: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0028c470: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -0028c480: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -0028c490: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -0028c4a0: 6e61 6d65 3a20 4469 7361 626c 6520 446f  name: Disable Do
│ │ │ -0028c4b0: 7665 636f 7420 5365 7276 6963 6520 2d20  vecot Service - 
│ │ │ -0028c4c0: 4469 7361 626c 6520 536f 636b 6574 2064  Disable Socket d
│ │ │ -0028c4d0: 6f76 6563 6f74 0a20 2020 2061 6e73 6962  ovecot.    ansib
│ │ │ -0028c4e0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0028c4f0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0028c500: 646f 7665 636f 742e 736f 636b 6574 0a20  dovecot.socket. 
│ │ │ -0028c510: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0028c520: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -0028c530: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -0028c540: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0028c550: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0028c560: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0028c570: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0028c580: 2264 6f76 6563 6f74 2e73 6f63 6b65 7422  "dovecot.socket"
│ │ │ -0028c590: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -0028c5a0: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ -0028c5b0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0028c5c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0028c5d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0028c5e0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -0028c5f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0028c600: 7276 6963 655f 646f 7665 636f 745f 6469  rvice_dovecot_di
│ │ │ -0028c610: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -0028c620: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -0028c630: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -0028c640: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ -0028c650: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0028c660: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0028c670: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
│ │ │ +0028b840: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +0028b8d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028b8e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0028b930: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0028b970: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0028b980: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0028b990: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0028b9a0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0028b9b0: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +0028b9c0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0028b9d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0028b9e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0028b9f0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +0028ba00: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +0028ba10: 7276 6963 655f 646f 7665 636f 745f 6469  rvice_dovecot_di
│ │ │ +0028ba20: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f  sabled.  - unkno
│ │ │ +0028ba30: 776e 5f73 6576 6572 6974 790a 0a2d 206e  wn_severity..- n
│ │ │ +0028ba40: 616d 653a 2044 6973 6162 6c65 2044 6f76  ame: Disable Dov
│ │ │ +0028ba50: 6563 6f74 2053 6572 7669 6365 202d 2044  ecot Service - D
│ │ │ +0028ba60: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ +0028ba70: 6f76 6563 6f74 0a20 2062 6c6f 636b 3a0a  ovecot.  block:.
│ │ │ +0028ba80: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0028ba90: 6c65 2044 6f76 6563 6f74 2053 6572 7669  le Dovecot Servi
│ │ │ +0028baa0: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0028bab0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0028bac0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0028bad0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0028bae0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0028baf0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0028bb00: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0028bb10: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0028bb20: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0028bb30: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0028bb40: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0028bb50: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0028bb60: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0028bb70: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0028bb80: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0028bb90: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0028bba0: 6d65 3a20 4469 7361 626c 6520 446f 7665  me: Disable Dove
│ │ │ +0028bbb0: 636f 7420 5365 7276 6963 6520 2d20 456e  cot Service - En
│ │ │ +0028bbc0: 7375 7265 2064 6f76 6563 6f74 2e73 6572  sure dovecot.ser
│ │ │ +0028bbd0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +0028bbe0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0028bbf0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0028bc00: 2020 6e61 6d65 3a20 646f 7665 636f 742e    name: dovecot.
│ │ │ +0028bc10: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +0028bc20: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0028bc30: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0028bc40: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +0028bc50: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0028bc60: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +0028bc70: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0028bc80: 6172 6368 2822 646f 7665 636f 742e 7365  arch("dovecot.se
│ │ │ +0028bc90: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +0028bca0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +0028bcb0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +0028bcc0: 7869 7374 7320 2d20 646f 7665 636f 742e  xists - dovecot.
│ │ │ +0028bcd0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +0028bce0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0028bcf0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +0028bd00: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +0028bd10: 2064 6f76 6563 6f74 2e73 6f63 6b65 740a   dovecot.socket.
│ │ │ +0028bd20: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +0028bd30: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0028bd40: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +0028bd50: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +0028bd60: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +0028bd70: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +0028bd80: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +0028bd90: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0028bda0: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +0028bdb0: 6973 6162 6c65 2044 6f76 6563 6f74 2053  isable Dovecot S
│ │ │ +0028bdc0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0028bdd0: 2053 6f63 6b65 7420 646f 7665 636f 740a   Socket dovecot.
│ │ │ +0028bde0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0028bdf0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0028be00: 2020 206e 616d 653a 2064 6f76 6563 6f74     name: dovecot
│ │ │ +0028be10: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +0028be20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0028be30: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +0028be40: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +0028be50: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0028be60: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0028be70: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +0028be80: 7320 7365 6172 6368 2822 646f 7665 636f  s search("doveco
│ │ │ +0028be90: 742e 736f 636b 6574 222c 206d 756c 7469  t.socket", multi
│ │ │ +0028bea0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +0028beb0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0028bec0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0028bed0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0028bee0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0028bef0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0028bf00: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +0028bf10: 6f76 6563 6f74 5f64 6973 6162 6c65 640a  ovecot_disabled.
│ │ │ +0028bf20: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0028bf30: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ +0028bf40: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ +0028bf50: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0028bf60: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0028bf70: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0028bf80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ +0028c040: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +0028c050: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +0028c110: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>medium< │ │ │ +0028c160: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0028c170: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +0028b8c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0028b8f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0028b900: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0028b940: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0028b950: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +0028c0e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0028c100: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboo │ │ │ +0028c130: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ +0028c140: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
apiVersio
│ │ │ +0028c190: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ +0028c1a0: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ +0028c1b0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ +0028c1c0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ +0028c1d0: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ +0028c1e0: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ +0028c1f0: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ +0028c200: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ +0028c210: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ +0028c220: 206e 616d 653a 2064 6f76 6563 6f74 2e73   name: dovecot.s
│ │ │ +0028c230: 6572 7669 6365 0a20 2020 2020 2020 2065  ervice.        e
│ │ │ +0028c240: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0028c250: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +0028c260: 0a20 2020 2020 202d 206e 616d 653a 2064  .      - name: d
│ │ │ +0028c270: 6f76 6563 6f74 2e73 6f63 6b65 740a 2020  ovecot.socket.  
│ │ │ +0028c280: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0028c290: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ +0028c2a0: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c  k: true.<
│ │ │ +0028c2b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +0028c360: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0028c370: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0028c380: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028c390: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028c3a0: 7365 2220 6964 3d22 6964 3130 3139 223e se" id="id1019"> │ │ │ +0028c3b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0028c420: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0028c440: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0028c470: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0028c490: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0028c400: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0028c410: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0028c450: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0028c460: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0028c4b0: 6469 7361 626c 655f 646f 7665 636f 740a disable_dovecot. │ │ │ +0028c4c0: 0a63 6c61 7373 2064 6973 6162 6c65 5f64 .class disable_d │ │ │ +0028c4d0: 6f76 6563 6f74 207b 0a20 2073 6572 7669 ovecot {. servi │ │ │ +0028c4e0: 6365 207b 2764 6f76 6563 6f74 273a 0a20 ce {'dovecot':. │ │ │ +0028c4f0: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ +0028c500: 6661 6c73 652c 0a20 2020 2065 6e73 7572 false,. ensur │ │ │ +0028c510: 6520 3d26 6774 3b20 2773 746f 7070 6564 e => 'stopped │ │ │ +0028c520: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +0028c530: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +0028c5e0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0028c5f0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0028c600: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +0028c650: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0028c660: 5d0a 6d61 736b 6564 203d 205b 2264 6f76  ].masked = ["dov
│ │ │ +0028c670: 6563 6f74 225d 0a3c 2f63 6f64 653e 3c2f  ecot"].
Remediatio │ │ │ -0028dfd0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0028dfe0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0028e060: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0028e070: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0028e090: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0028e0a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0028e0c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0028e0e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0028e110: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0028e120: 656d 6f76 655f 6c64 6170 2d75 7469 6c73  emove_ldap-utils
│ │ │ -0028e130: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6c  ..class remove_l
│ │ │ -0028e140: 6461 702d 7574 696c 7320 7b0a 2020 7061  dap-utils {.  pa
│ │ │ -0028e150: 636b 6167 6520 7b20 276c 6461 702d 7574  ckage { 'ldap-ut
│ │ │ -0028e160: 696c 7327 3a0a 2020 2020 656e 7375 7265  ils':.    ensure
│ │ │ -0028e170: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0028e180: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ -0028e240: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0028e250: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0028e260: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0028e270: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0028e280: 7365 2220 6964 3d22 6964 3130 3234 223e se" id="id1024"> │ │ │ -0028e290: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0028e300: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0028e320: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0028e350: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0028e2e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0028e2f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0028e330: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0028e340: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0028e390: 2027 456e 7375 7265 204c 4441 5020 636c 'Ensure LDAP cl │ │ │ -0028e3a0: 6965 6e74 2069 7320 6e6f 7420 696e 7374 ient is not inst │ │ │ -0028e3b0: 616c 6c65 643a 2045 6e73 7572 6520 6c64 alled: Ensure ld │ │ │ -0028e3c0: 6170 2d75 7469 6c73 2069 7320 7265 6d6f ap-utils is remo │ │ │ -0028e3d0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -0028e3e0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -0028e3f0: 2020 2020 6e61 6d65 3a20 6c64 6170 2d75 name: ldap-u │ │ │ -0028e400: 7469 6c73 0a20 2020 2073 7461 7465 3a20 tils. state: │ │ │ -0028e410: 6162 7365 6e74 0a20 2074 6167 733a 0a20 absent. tags:. │ │ │ -0028e420: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ -0028e430: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -0028e440: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -0028e450: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f isruption. - lo │ │ │ -0028e460: 775f 7365 7665 7269 7479 0a20 202d 206e w_severity. - n │ │ │ -0028e470: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0028e480: 2020 2d20 7061 636b 6167 655f 6f70 656e - package_open │ │ │ -0028e490: 6c64 6170 2d63 6c69 656e 7473 5f72 656d ldap-clients_rem │ │ │ -0028e4a0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072 oved.
│ │ │ +0028e060: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0028e070: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0028e080: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0028e0c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0028e0d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0028e0f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0028e100: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>

- name: '
│ │ │ +0028e120: 456e 7375 7265 204c 4441 5020 636c 6965  Ensure LDAP clie
│ │ │ +0028e130: 6e74 2069 7320 6e6f 7420 696e 7374 616c  nt is not instal
│ │ │ +0028e140: 6c65 643a 2045 6e73 7572 6520 6c64 6170  led: Ensure ldap
│ │ │ +0028e150: 2d75 7469 6c73 2069 7320 7265 6d6f 7665  -utils is remove
│ │ │ +0028e160: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0028e170: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0028e180: 2020 6e61 6d65 3a20 6c64 6170 2d75 7469    name: ldap-uti
│ │ │ +0028e190: 6c73 0a20 2020 2073 7461 7465 3a20 6162  ls.    state: ab
│ │ │ +0028e1a0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +0028e1b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0028e1c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0028e1d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0028e1e0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +0028e1f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0028e200: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0028e210: 2d20 7061 636b 6167 655f 6f70 656e 6c64  - package_openld
│ │ │ +0028e220: 6170 2d63 6c69 656e 7473 5f72 656d 6f76  ap-clients_remov
│ │ │ +0028e230: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0028e240: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +0028e2f0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0028e300: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +0028e390: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0028e3b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0028e3d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0028e400: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0028e410: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0028e440: 6f76 655f 6c64 6170 2d75 7469 6c73 0a0a  ove_ldap-utils..
│ │ │ +0028e450: 636c 6173 7320 7265 6d6f 7665 5f6c 6461  class remove_lda
│ │ │ +0028e460: 702d 7574 696c 7320 7b0a 2020 7061 636b  p-utils {.  pack
│ │ │ +0028e470: 6167 6520 7b20 276c 6461 702d 7574 696c  age { 'ldap-util
│ │ │ +0028e480: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ +0028e490: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0028e4a0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remedi │ │ │ -0028fc60: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0028fc70: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0028fc80: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0028fd20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0028fd40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0028fd70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0028fd00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0028fd10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0028fd30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0028fd50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0028fd60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0028fda0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0028fdb0: 6465 2072 656d 6f76 655f 736c 6170 640a de remove_slapd. │ │ │ -0028fdc0: 0a63 6c61 7373 2072 656d 6f76 655f 736c .class remove_sl │ │ │ -0028fdd0: 6170 6420 7b0a 2020 7061 636b 6167 6520 apd {. package │ │ │ -0028fde0: 7b20 2773 6c61 7064 273a 0a20 2020 2065 { 'slapd':. e │ │ │ -0028fdf0: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ -0028fe00: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ -0028fe20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0028fe30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0028fe40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0028fe50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0028fe60: 6431 3032 3822 2074 6162 696e 6465 783d d1028" tabindex= │ │ │ -0028fe70: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0028fe80: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0028fe90: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0028fea0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0028feb0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0028fec0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0028fed0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0028fee0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0028ff70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0028ff80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0028ffd0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00290010: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00290020: 2073 6c61 7064 2050 6163 6b61 6765 3a20   slapd Package: 
│ │ │ -00290030: 456e 7375 7265 2073 6c61 7064 2069 7320  Ensure slapd is 
│ │ │ -00290040: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00290050: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00290060: 6765 3a0a 2020 2020 6e61 6d65 3a20 736c  ge:.    name: sl
│ │ │ -00290070: 6170 640a 2020 2020 7374 6174 653a 2061  apd.    state: a
│ │ │ -00290080: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00290090: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002900a0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -002900b0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002900c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002900d0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -002900e0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002900f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00290100: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00290110: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -00290120: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00290130: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00290140: 6765 5f6f 7065 6e6c 6461 702d 7365 7276  ge_openldap-serv
│ │ │ -00290150: 6572 735f 7265 6d6f 7665 640a 3c2f 636f  ers_removed.
C │ │ │ -0028ff60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0028ff90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0028ffa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0028ffe0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0028fff0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +0028fd00: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0028fd10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0028fd30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0028fd50: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0028fd60: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0028fda0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0028fdb0: 653a 2027 556e 696e 7374 616c 6c20 736c  e: 'Uninstall sl
│ │ │ +0028fdc0: 6170 6420 5061 636b 6167 653a 2045 6e73  apd Package: Ens
│ │ │ +0028fdd0: 7572 6520 736c 6170 6420 6973 2072 656d  ure slapd is rem
│ │ │ +0028fde0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0028fdf0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0028fe00: 0a20 2020 206e 616d 653a 2073 6c61 7064  .    name: slapd
│ │ │ +0028fe10: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0028fe20: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +0028fe30: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0028fe40: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0028fe50: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0028fe60: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0028fe70: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0028fe80: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0028fe90: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0028fea0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0028feb0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +0028fec0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0028fed0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0028fee0: 6f70 656e 6c64 6170 2d73 6572 7665 7273  openldap-servers
│ │ │ +0028fef0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0028ff00: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +0028ffb0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0028ffc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0028ffd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00290070: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00290090: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002900c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00290050: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00290060: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00290080: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002900a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002900b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002900f0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00290100: 6465 2072 656d 6f76 655f 736c 6170 640a de remove_slapd. │ │ │ +00290110: 0a63 6c61 7373 2072 656d 6f76 655f 736c .class remove_sl │ │ │ +00290120: 6170 6420 7b0a 2020 7061 636b 6167 6520 apd {. package │ │ │ +00290130: 7b20 2773 6c61 7064 273a 0a20 2020 2065 { 'slapd':. e │ │ │ +00290140: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +00290150: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ 00290170: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00290180: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00290190: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002901a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002901b0: 6431 3032 3922 2074 6162 696e 6465 783d d1029" tabindex= │ │ │ 002901c0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -168173,242 +168173,242 @@ │ │ │ 00290ec0: 6174 612d 7461 7267 6574 3d22 2369 6431 ata-target="#id1 │ │ │ 00290ed0: 3033 3122 2074 6162 696e 6465 783d 2230 031" tabindex="0 │ │ │ 00290ee0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 00290ef0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 00290f00: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 00290f10: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 00290f20: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00290f30: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00290f40: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00290f50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -00290fa0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00290fb0: 735d 0a6d 6173 6b65 6420 3d20 5b22 736c s].masked = ["sl │ │ │ -00290fc0: 6170 6422 5d0a 3c2f 636f 6465 3e3c 2f70 apd"].

Remediati │ │ │ -00291080: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -00291090: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ -00291190: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ -002911d0: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ -002911e0: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ -002911f0: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ -00291200: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ -00291210: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ -00291220: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ -00291230: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ -00291240: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ -00291250: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ -00291260: 2020 2020 202d 206e 616d 653a 2073 6c61       - name: sla
│ │ │ -00291270: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ -00291280: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00291290: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -002912a0: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ -002912b0: 653a 2073 6c61 7064 2e73 6f63 6b65 740a  e: slapd.socket.
│ │ │ -002912c0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002912d0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002912e0: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ -002913a0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002913b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -00291120: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00291130: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00291150: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ -00291160: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ -002911a0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002911b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -00291440: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00291450: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00291470: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00291490: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002914a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002914e0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002914f0: 6520 6469 7361 626c 655f 736c 6170 640a e disable_slapd. │ │ │ -00291500: 0a63 6c61 7373 2064 6973 6162 6c65 5f73 .class disable_s │ │ │ -00291510: 6c61 7064 207b 0a20 2073 6572 7669 6365 lapd {. service │ │ │ -00291520: 207b 2773 6c61 7064 273a 0a20 2020 2065 {'slapd':. e │ │ │ -00291530: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ -00291540: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ -00291550: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ -00291560: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ -00291620: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00291630: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002916b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002916c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002916d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00291710: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00291720: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00291740: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00291750: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00291770: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00291780: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00291790: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002917a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002917b0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002917c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002917d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002917e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002917f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00291800: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00291810: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00291820: 6365 5f73 6c61 7064 5f64 6973 6162 6c65  ce_slapd_disable
│ │ │ -00291830: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -00291840: 6c65 204c 4441 5020 5365 7276 6572 2028  le LDAP Server (
│ │ │ -00291850: 736c 6170 6429 202d 2044 6973 6162 6c65  slapd) - Disable
│ │ │ -00291860: 2073 6572 7669 6365 2073 6c61 7064 0a20   service slapd. 
│ │ │ -00291870: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -00291880: 653a 2044 6973 6162 6c65 204c 4441 5020  e: Disable LDAP 
│ │ │ -00291890: 5365 7276 6572 2028 736c 6170 6429 202d  Server (slapd) -
│ │ │ -002918a0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -002918b0: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -002918c0: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -002918d0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002918e0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002918f0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -00291900: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -00291910: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -00291920: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -00291930: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00291940: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00291950: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00291960: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -00291970: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00291980: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00291990: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002919a0: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ -002919b0: 7665 7220 2873 6c61 7064 2920 2d20 456e  ver (slapd) - En
│ │ │ -002919c0: 7375 7265 2073 6c61 7064 2e73 6572 7669  sure slapd.servi
│ │ │ -002919d0: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -002919e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002919f0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -00291a00: 6e61 6d65 3a20 736c 6170 642e 7365 7276  name: slapd.serv
│ │ │ -00291a10: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -00291a20: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -00291a30: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00291a40: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -00291a50: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -00291a60: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -00291a70: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -00291a80: 2822 736c 6170 642e 7365 7276 6963 6522  ("slapd.service"
│ │ │ -00291a90: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00291aa0: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ -00291ab0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ -00291ac0: 2d20 736c 6170 642e 736f 636b 6574 0a20  - slapd.socket. 
│ │ │ -00291ad0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00291ae0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -00291af0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -00291b00: 6974 2d66 696c 6573 2073 6c61 7064 2e73  it-files slapd.s
│ │ │ -00291b10: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -00291b20: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -00291b30: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00291b40: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00291b50: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00291b60: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00291b70: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00291b80: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00291b90: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00291ba0: 616d 653a 2044 6973 6162 6c65 204c 4441  ame: Disable LDA
│ │ │ -00291bb0: 5020 5365 7276 6572 2028 736c 6170 6429  P Server (slapd)
│ │ │ -00291bc0: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -00291bd0: 7420 736c 6170 640a 2020 2020 616e 7369  t slapd.    ansi
│ │ │ -00291be0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00291bf0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00291c00: 2073 6c61 7064 2e73 6f63 6b65 740a 2020   slapd.socket.  
│ │ │ -00291c10: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00291c20: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -00291c30: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -00291c40: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00291c50: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00291c60: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00291c70: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00291c80: 736c 6170 642e 736f 636b 6574 222c 206d  slapd.socket", m
│ │ │ -00291c90: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -00291ca0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00291cb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00291cc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00291cd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00291ce0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00291cf0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00291d00: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00291d10: 6572 7669 6365 5f73 6c61 7064 5f64 6973  ervice_slapd_dis
│ │ │ -00291d20: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -00291d30: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -00291d40: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00291d50: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00291d60: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00290f30: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00290f40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Com │ │ │ +00290fd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00291000: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00291020: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00291030: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00291050: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00291060: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00291080: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00291090: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002910a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002910b0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002910c0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002910d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002910e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002910f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00291100: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00291110: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00291120: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00291130: 7365 7276 6963 655f 736c 6170 645f 6469  service_slapd_di
│ │ │ +00291140: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +00291150: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ +00291160: 7665 7220 2873 6c61 7064 2920 2d20 4469  ver (slapd) - Di
│ │ │ +00291170: 7361 626c 6520 7365 7276 6963 6520 736c  sable service sl
│ │ │ +00291180: 6170 640a 2020 626c 6f63 6b3a 0a0a 2020  apd.  block:..  
│ │ │ +00291190: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002911a0: 4c44 4150 2053 6572 7665 7220 2873 6c61  LDAP Server (sla
│ │ │ +002911b0: 7064 2920 2d20 436f 6c6c 6563 7420 7379  pd) - Collect sy
│ │ │ +002911c0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +002911d0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +002911e0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +002911f0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00291200: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00291210: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +00291220: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +00291230: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +00291240: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +00291250: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +00291260: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +00291270: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +00291280: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00291290: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002912a0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002912b0: 616d 653a 2044 6973 6162 6c65 204c 4441  ame: Disable LDA
│ │ │ +002912c0: 5020 5365 7276 6572 2028 736c 6170 6429  P Server (slapd)
│ │ │ +002912d0: 202d 2045 6e73 7572 6520 736c 6170 642e   - Ensure slapd.
│ │ │ +002912e0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +002912f0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00291300: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00291310: 2020 2020 206e 616d 653a 2073 6c61 7064       name: slapd
│ │ │ +00291320: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +00291330: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00291340: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00291350: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +00291360: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +00291370: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +00291380: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00291390: 6561 7263 6828 2273 6c61 7064 2e73 6572  earch("slapd.ser
│ │ │ +002913a0: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +002913b0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +002913c0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +002913d0: 6973 7473 202d 2073 6c61 7064 2e73 6f63  ists - slapd.soc
│ │ │ +002913e0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002913f0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00291400: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00291410: 7374 2d75 6e69 742d 6669 6c65 7320 736c  st-unit-files sl
│ │ │ +00291420: 6170 642e 736f 636b 6574 0a20 2020 2072  apd.socket.    r
│ │ │ +00291430: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +00291440: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +00291450: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00291460: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00291470: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00291480: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00291490: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002914a0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002914b0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002914c0: 6520 4c44 4150 2053 6572 7665 7220 2873  e LDAP Server (s
│ │ │ +002914d0: 6c61 7064 2920 2d20 4469 7361 626c 6520  lapd) - Disable 
│ │ │ +002914e0: 536f 636b 6574 2073 6c61 7064 0a20 2020  Socket slapd.   
│ │ │ +002914f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00291500: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00291510: 6e61 6d65 3a20 736c 6170 642e 736f 636b  name: slapd.sock
│ │ │ +00291520: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00291530: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00291540: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00291550: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00291560: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00291570: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00291580: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00291590: 7263 6828 2273 6c61 7064 2e73 6f63 6b65  rch("slapd.socke
│ │ │ +002915a0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +002915b0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +002915c0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002915d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002915e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002915f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00291600: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00291610: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00291620: 2020 2d20 7365 7276 6963 655f 736c 6170    - service_slap
│ │ │ +00291630: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ +00291640: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +00291650: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +00291660: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00291670: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00291680: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediati │ │ │ +00291740: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ +00291750: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ +00291850: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +00291890: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +002918a0: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +002918b0: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +002918c0: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +002918d0: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +002918e0: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +002918f0: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +00291900: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +00291910: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +00291920: 2020 2020 202d 206e 616d 653a 2073 6c61       - name: sla
│ │ │ +00291930: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ +00291940: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +00291950: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ +00291960: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ +00291970: 653a 2073 6c61 7064 2e73 6f63 6b65 740a  e: slapd.socket.
│ │ │ +00291980: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +00291990: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +002919a0: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ +00291a60: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00291a70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002917e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002917f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00291810: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +00291820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +00291860: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00291870: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +00291b00: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00291b10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00291b30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00291b50: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00291b60: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00291ba0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00291bb0: 6520 6469 7361 626c 655f 736c 6170 640a e disable_slapd. │ │ │ +00291bc0: 0a63 6c61 7373 2064 6973 6162 6c65 5f73 .class disable_s │ │ │ +00291bd0: 6c61 7064 207b 0a20 2073 6572 7669 6365 lapd {. service │ │ │ +00291be0: 207b 2773 6c61 7064 273a 0a20 2020 2065 {'slapd':. e │ │ │ +00291bf0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ +00291c00: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ +00291c10: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ +00291c20: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ +00291ce0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00291cf0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00291d00: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ +00291d50: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +00291d60: 736b 6564 203d 205b 2273 6c61 7064 225d  sked = ["slapd"]
│ │ │  00291d70: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediatio │ │ │ -00296420: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00296430: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002964b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002964c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002964e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002964f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00296510: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00296530: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00296560: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00296570: 656d 6f76 655f 7270 6362 696e 640a 0a63  emove_rpcbind..c
│ │ │ -00296580: 6c61 7373 2072 656d 6f76 655f 7270 6362  lass remove_rpcb
│ │ │ -00296590: 696e 6420 7b0a 2020 7061 636b 6167 6520  ind {.  package 
│ │ │ -002965a0: 7b20 2772 7063 6269 6e64 273a 0a20 2020  { 'rpcbind':.   
│ │ │ -002965b0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -002965c0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -00296680: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00296690: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -00296770: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00296780: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002967d0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002967e0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002967f0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00296800: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00296810: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00296820: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00296830: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00296840: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00296850: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00296860: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00296870: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00296880: 2070 6163 6b61 6765 5f72 7063 6269 6e64   package_rpcbind
│ │ │ -00296890: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ -002968a0: 3a20 2755 6e69 6e73 7461 6c6c 2072 7063  : 'Uninstall rpc
│ │ │ -002968b0: 6269 6e64 2050 6163 6b61 6765 3a20 456e  bind Package: En
│ │ │ -002968c0: 7375 7265 2072 7063 6269 6e64 2069 7320  sure rpcbind is 
│ │ │ -002968d0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -002968e0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -002968f0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7270  ge:.    name: rp
│ │ │ -00296900: 6362 696e 640a 2020 2020 7374 6174 653a  cbind.    state:
│ │ │ -00296910: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -00296920: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00296930: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00296940: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00296950: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00296960: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00296970: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00296980: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00296990: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -002969a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002969b0: 640a 2020 2d20 7061 636b 6167 655f 7270  d.  - package_rp
│ │ │ -002969c0: 6362 696e 645f 7265 6d6f 7665 640a 3c2f  cbind_removed.
│ │ │ +002964b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00296540: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00296550: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -00296750: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00296760: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002967a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002967b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ +002964c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002964d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00296510: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00296520: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +00296570: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00296580: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00296590: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +002965a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +002965b0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +002965c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002965d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002965e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002965f0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +00296600: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00296610: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00296620: 7270 6362 696e 645f 7265 6d6f 7665 640a  rpcbind_removed.
│ │ │ +00296630: 0a2d 206e 616d 653a 2027 556e 696e 7374  .- name: 'Uninst
│ │ │ +00296640: 616c 6c20 7270 6362 696e 6420 5061 636b  all rpcbind Pack
│ │ │ +00296650: 6167 653a 2045 6e73 7572 6520 7270 6362  age: Ensure rpcb
│ │ │ +00296660: 696e 6420 6973 2072 656d 6f76 6564 270a  ind is removed'.
│ │ │ +00296670: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00296680: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00296690: 616d 653a 2072 7063 6269 6e64 0a20 2020  ame: rpcbind.   
│ │ │ +002966a0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002966b0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002966c0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002966d0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002966e0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002966f0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00296700: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00296710: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00296720: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +00296730: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00296740: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00296750: 6b61 6765 5f72 7063 6269 6e64 5f72 656d  kage_rpcbind_rem
│ │ │ +00296760: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +00296820: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00296830: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002968b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002968c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002968e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002968f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00296910: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00296930: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00296960: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00296970: 656d 6f76 655f 7270 6362 696e 640a 0a63  emove_rpcbind..c
│ │ │ +00296980: 6c61 7373 2072 656d 6f76 655f 7270 6362  lass remove_rpcb
│ │ │ +00296990: 696e 6420 7b0a 2020 7061 636b 6167 6520  ind {.  package 
│ │ │ +002969a0: 7b20 2772 7063 6269 6e64 273a 0a20 2020  { 'rpcbind':.   
│ │ │ +002969b0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +002969c0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediation O │ │ │ -00297ae0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00297af0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00297b00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -00297b40: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00297b50: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00297b60: 6420 3d20 5b22 7270 6362 696e 6422 5d0a  d = ["rpcbind"].
│ │ │ -00297b70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ -00297c30: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -00297c40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00297cd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00297cf0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00297d00: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -00297d20: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -00297d30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00297d50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00297d60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -00297d80: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -00297d90: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -00297da0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -00297db0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -00297dc0: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -00297dd0: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -00297de0: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -00297df0: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -00297e00: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -00297e10: 206e 616d 653a 2072 7063 6269 6e64 2e73   name: rpcbind.s
│ │ │ -00297e20: 6572 7669 6365 0a20 2020 2020 2020 2065  ervice.        e
│ │ │ -00297e30: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00297e40: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -00297e50: 0a20 2020 2020 202d 206e 616d 653a 2072  .      - name: r
│ │ │ -00297e60: 7063 6269 6e64 2e73 6f63 6b65 740a 2020  pcbind.socket.  
│ │ │ -00297e70: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -00297e80: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -00297e90: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c  k: true.<
│ │ │ -00297ea0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00297f50: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00297f60: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00297f70: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00297f80: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00297f90: 7365 2220 6964 3d22 6964 3130 3436 223e se" id="id1046"> │ │ │ -00297fa0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00298010: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00298030: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00298060: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00298080: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00297ff0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00298000: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00298040: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00298050: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -002980a0: 6469 7361 626c 655f 7270 6362 696e 640a disable_rpcbind. │ │ │ -002980b0: 0a63 6c61 7373 2064 6973 6162 6c65 5f72 .class disable_r │ │ │ -002980c0: 7063 6269 6e64 207b 0a20 2073 6572 7669 pcbind {. servi │ │ │ -002980d0: 6365 207b 2772 7063 6269 6e64 273a 0a20 ce {'rpcbind':. │ │ │ -002980e0: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ -002980f0: 6661 6c73 652c 0a20 2020 2065 6e73 7572 false,. ensur │ │ │ -00298100: 6520 3d26 6774 3b20 2773 746f 7070 6564 e => 'stopped │ │ │ -00298110: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00298120: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ -002981d0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002981e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -00298270: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00298280: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002982a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002982c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002982d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00298310: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00298320: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00298330: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00298340: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00298350: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00298360: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -00298370: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -00298380: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -00298390: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002983a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002983b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002983c0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -002983d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002983e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002983f0: 2d20 7365 7276 6963 655f 7270 6362 696e  - service_rpcbin
│ │ │ -00298400: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ -00298410: 6d65 3a20 4469 7361 626c 6520 7270 6362  me: Disable rpcb
│ │ │ -00298420: 696e 6420 5365 7276 6963 6520 2d20 4469  ind Service - Di
│ │ │ -00298430: 7361 626c 6520 7365 7276 6963 6520 7270  sable service rp
│ │ │ -00298440: 6362 696e 640a 2020 626c 6f63 6b3a 0a0a  cbind.  block:..
│ │ │ -00298450: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00298460: 6520 7270 6362 696e 6420 5365 7276 6963  e rpcbind Servic
│ │ │ -00298470: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ -00298480: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -00298490: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ -002984a0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ -002984b0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -002984c0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -002984d0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ -002984e0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ -002984f0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ -00298500: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -00298510: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00298520: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00298530: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00298540: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00298550: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00298560: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00298570: 653a 2044 6973 6162 6c65 2072 7063 6269  e: Disable rpcbi
│ │ │ -00298580: 6e64 2053 6572 7669 6365 202d 2045 6e73  nd Service - Ens
│ │ │ -00298590: 7572 6520 7270 6362 696e 642e 7365 7276  ure rpcbind.serv
│ │ │ -002985a0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -002985b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002985c0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002985d0: 206e 616d 653a 2072 7063 6269 6e64 2e73   name: rpcbind.s
│ │ │ -002985e0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -002985f0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00298600: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -00298610: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00298620: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -00298630: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -00298640: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -00298650: 7263 6828 2272 7063 6269 6e64 2e73 6572  rch("rpcbind.ser
│ │ │ -00298660: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00298670: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00298680: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00298690: 6973 7473 202d 2072 7063 6269 6e64 2e73  ists - rpcbind.s
│ │ │ -002986a0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -002986b0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -002986c0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -002986d0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002986e0: 7270 6362 696e 642e 736f 636b 6574 0a20  rpcbind.socket. 
│ │ │ -002986f0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -00298700: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -00298710: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00298720: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00298730: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -00298740: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00298750: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00298760: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00298770: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00298780: 7361 626c 6520 7270 6362 696e 6420 5365  sable rpcbind Se
│ │ │ -00298790: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -002987a0: 536f 636b 6574 2072 7063 6269 6e64 0a20  Socket rpcbind. 
│ │ │ -002987b0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002987c0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -002987d0: 2020 6e61 6d65 3a20 7270 6362 696e 642e    name: rpcbind.
│ │ │ -002987e0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002987f0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00298800: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00298810: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00298820: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00298830: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00298840: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00298850: 2073 6561 7263 6828 2272 7063 6269 6e64   search("rpcbind
│ │ │ -00298860: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00298870: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00298880: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -00298890: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -002988a0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -002988b0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002988c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002988d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002988e0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -002988f0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00298900: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00298910: 7669 6365 5f72 7063 6269 6e64 5f64 6973  vice_rpcbind_dis
│ │ │ -00298920: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -00298930: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -00298940: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00298950: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00298960: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00297ad0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00297ae0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00297af0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +00297b80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00297ba0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00297bc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00297bf0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00297c00: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00297c30: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00297c40: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00297c50: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00297c60: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00297c70: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00297c80: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00297c90: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +00297ca0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00297cb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00297cc0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00297cd0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +00297ce0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00297cf0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00297d00: 6365 5f72 7063 6269 6e64 5f64 6973 6162  ce_rpcbind_disab
│ │ │ +00297d10: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +00297d20: 6162 6c65 2072 7063 6269 6e64 2053 6572  able rpcbind Ser
│ │ │ +00297d30: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +00297d40: 6572 7669 6365 2072 7063 6269 6e64 0a20  ervice rpcbind. 
│ │ │ +00297d50: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00297d60: 653a 2044 6973 6162 6c65 2072 7063 6269  e: Disable rpcbi
│ │ │ +00297d70: 6e64 2053 6572 7669 6365 202d 2043 6f6c  nd Service - Col
│ │ │ +00297d80: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +00297d90: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +00297da0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +00297db0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00297dc0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +00297dd0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +00297de0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +00297df0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +00297e00: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +00297e10: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00297e20: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00297e30: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +00297e40: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +00297e50: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00297e60: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00297e70: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00297e80: 626c 6520 7270 6362 696e 6420 5365 7276  ble rpcbind Serv
│ │ │ +00297e90: 6963 6520 2d20 456e 7375 7265 2072 7063  ice - Ensure rpc
│ │ │ +00297ea0: 6269 6e64 2e73 6572 7669 6365 2069 7320  bind.service is 
│ │ │ +00297eb0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +00297ec0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00297ed0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00297ee0: 7270 6362 696e 642e 7365 7276 6963 650a  rpcbind.service.
│ │ │ +00297ef0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00297f00: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +00297f10: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00297f20: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00297f30: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +00297f40: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00297f50: 6573 2069 7320 7365 6172 6368 2822 7270  es is search("rp
│ │ │ +00297f60: 6362 696e 642e 7365 7276 6963 6522 2c20  cbind.service", 
│ │ │ +00297f70: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00297f80: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00297f90: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00297fa0: 7270 6362 696e 642e 736f 636b 6574 0a20  rpcbind.socket. 
│ │ │ +00297fb0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00297fc0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00297fd0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00297fe0: 6974 2d66 696c 6573 2072 7063 6269 6e64  it-files rpcbind
│ │ │ +00297ff0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +00298000: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +00298010: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00298020: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00298030: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00298040: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00298050: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00298060: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00298070: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00298080: 206e 616d 653a 2044 6973 6162 6c65 2072   name: Disable r
│ │ │ +00298090: 7063 6269 6e64 2053 6572 7669 6365 202d  pcbind Service -
│ │ │ +002980a0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +002980b0: 7270 6362 696e 640a 2020 2020 616e 7369  rpcbind.    ansi
│ │ │ +002980c0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002980d0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002980e0: 2072 7063 6269 6e64 2e73 6f63 6b65 740a   rpcbind.socket.
│ │ │ +002980f0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00298100: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +00298110: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00298120: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00298130: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +00298140: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +00298150: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00298160: 2822 7270 6362 696e 642e 736f 636b 6574  ("rpcbind.socket
│ │ │ +00298170: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00298180: 6529 0a20 2074 6167 733a 0a20 202d 2050  e).  tags:.  - P
│ │ │ +00298190: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +002981a0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +002981b0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002981c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002981d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002981e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002981f0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +00298200: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00298210: 640a 2020 2d20 7365 7276 6963 655f 7270  d.  - service_rp
│ │ │ +00298220: 6362 696e 645f 6469 7361 626c 6564 0a20  cbind_disabled. 
│ │ │ +00298230: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00298240: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00298250: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00298260: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00298270: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +00298330: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ +00298340: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
│ │ │ +002983e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ +00298490: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ +002984a0: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ +002984b0: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ +002984c0: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ +002984d0: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ +002984e0: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ +002984f0: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ +00298500: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ +00298510: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ +00298520: 2072 7063 6269 6e64 2e73 6572 7669 6365   rpcbind.service
│ │ │ +00298530: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +00298540: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +00298550: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +00298560: 202d 206e 616d 653a 2072 7063 6269 6e64   - name: rpcbind
│ │ │ +00298570: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +00298580: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00298590: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +002985a0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +002985b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +00298660: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00298670: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002983d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00298400: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ +00298410: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ +00298450: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00298460: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002986f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00298710: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00298760: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00298790: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +002987b0: 655f 7270 6362 696e 640a 0a63 6c61 7373  e_rpcbind..class
│ │ │ +002987c0: 2064 6973 6162 6c65 5f72 7063 6269 6e64   disable_rpcbind
│ │ │ +002987d0: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ +002987e0: 7063 6269 6e64 273a 0a20 2020 2065 6e61  pcbind':.    ena
│ │ │ +002987f0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +00298800: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00298810: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +00298820: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00298830: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +002988e0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +002988f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ +00298950: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +00298960: 6564 203d 205b 2272 7063 6269 6e64 225d  ed = ["rpcbind"]
│ │ │  00298970: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Re │ │ │ -0029a570: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0029a580: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0029a590: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0029a5a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0029a5b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0029a5c0: 7365 2220 6964 3d22 6964 3130 3530 223e se" id="id1050"> │ │ │ -0029a5d0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0029a5e0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0029a5f0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0029a600: 226e 6673 2d73 6572 7665 7222 5d0a 3c2f  "nfs-server"].
R │ │ │ -0029a6c0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ -0029a6d0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ -0029a6e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +00298700: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00298720: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00298770: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00298780: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0029a760: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0029a780: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ -0029a770: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0029a790: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ -0029a7c0: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ -0029a7e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0029a810: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ -0029a820: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ -0029a830: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ -0029a840: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ -0029a850: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ -0029a860: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ -0029a870: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ -0029a880: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ -0029a890: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ -0029a8a0: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ -0029a8b0: 616d 653a 206e 6673 2d73 6572 7665 722e  ame: nfs-server.
│ │ │ -0029a8c0: 7365 7276 6963 650a 2020 2020 2020 2020  service.        
│ │ │ -0029a8d0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0029a8e0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ -0029a8f0: 650a 2020 2020 2020 2d20 6e61 6d65 3a20  e.      - name: 
│ │ │ -0029a900: 6e66 732d 7365 7276 6572 2e73 6f63 6b65  nfs-server.socke
│ │ │ -0029a910: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ -0029a920: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -0029a930: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ -0029a950: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0029a960: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0029a970: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0029a980: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0029a990: 6431 3035 3222 2074 6162 696e 6465 783d d1052" tabindex= │ │ │ -0029a9a0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0029a9b0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0029a9c0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0029a9d0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0029a9e0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0029a9f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0029aa00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0029aa10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0029aab0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0029ab00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0029aa90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0029aac0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0029aae0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0029aaf0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0029ab10: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0029ab20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0029ab40: 7564 6520 6469 7361 626c 655f 6e66 732d  ude disable_nfs-
│ │ │ -0029ab50: 7365 7276 6572 0a0a 636c 6173 7320 6469  server..class di
│ │ │ -0029ab60: 7361 626c 655f 6e66 732d 7365 7276 6572  sable_nfs-server
│ │ │ -0029ab70: 207b 0a20 2073 6572 7669 6365 207b 276e   {.  service {'n
│ │ │ -0029ab80: 6673 2d73 6572 7665 7227 3a0a 2020 2020  fs-server':.    
│ │ │ -0029ab90: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -0029aba0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -0029abb0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -0029abc0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -0029ac80: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0029ac90: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0029acd0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0029ace0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0029acf0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0029ad00: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0029ad10: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0029ad20: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0029ad30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0029ad70: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0029ad80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0029ada0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0029adb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0029add0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0029ade0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0029adf0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0029ae00: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0029ae10: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0029ae20: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -0029ae30: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -0029ae40: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -0029ae50: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -0029ae60: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -0029ae70: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0029ae80: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0029ae90: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ -0029aea0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0029aeb0: 7365 7276 6963 655f 6e66 735f 6469 7361 service_nfs_disa │ │ │ -0029aec0: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e bled. - unknown │ │ │ -0029aed0: 5f73 6576 6572 6974 790a 0a2d 206e 616d _severity..- nam │ │ │ -0029aee0: 653a 2044 6973 6162 6c65 204e 6574 776f e: Disable Netwo │ │ │ -0029aef0: 726b 2046 696c 6520 5379 7374 656d 2028 rk File System ( │ │ │ -0029af00: 6e66 7329 202d 2044 6973 6162 6c65 2073 nfs) - Disable s │ │ │ -0029af10: 6572 7669 6365 206e 6673 2d73 6572 7665 ervice nfs-serve │ │ │ -0029af20: 720a 2020 626c 6f63 6b3a 0a0a 2020 2d20 r. block:.. - │ │ │ -0029af30: 6e61 6d65 3a20 4469 7361 626c 6520 4e65 name: Disable Ne │ │ │ -0029af40: 7477 6f72 6b20 4669 6c65 2053 7973 7465 twork File Syste │ │ │ -0029af50: 6d20 286e 6673 2920 2d20 436f 6c6c 6563 m (nfs) - Collec │ │ │ -0029af60: 7420 7379 7374 656d 6420 5365 7276 6963 t systemd Servic │ │ │ -0029af70: 6573 2050 7265 7365 6e74 2069 6e0a 2020 es Present in. │ │ │ -0029af80: 2020 2020 7468 6520 5379 7374 656d 0a20 the System. │ │ │ -0029af90: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -0029afa0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -0029afb0: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -0029afc0: 6974 2d66 696c 6573 202d 2d74 7970 6520 it-files --type │ │ │ -0029afd0: 7365 7276 6963 650a 2020 2020 7265 6769 service. regi │ │ │ -0029afe0: 7374 6572 3a20 7365 7276 6963 655f 6578 ster: service_ex │ │ │ -0029aff0: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -0029b000: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -0029b010: 2066 6169 6c65 645f 7768 656e 3a20 7365 failed_when: se │ │ │ -0029b020: 7276 6963 655f 6578 6973 7473 2e72 6320 rvice_exists.rc │ │ │ -0029b030: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -0029b040: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -0029b050: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -0029b060: 6973 6162 6c65 204e 6574 776f 726b 2046 isable Network F │ │ │ -0029b070: 696c 6520 5379 7374 656d 2028 6e66 7329 ile System (nfs) │ │ │ -0029b080: 202d 2045 6e73 7572 6520 6e66 732d 7365 - Ensure nfs-se │ │ │ -0029b090: 7276 6572 2e73 6572 7669 6365 2069 7320 rver.service is │ │ │ -0029b0a0: 4d61 736b 6564 0a20 2020 2061 6e73 6962 Masked. ansib │ │ │ -0029b0b0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -0029b0c0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -0029b0d0: 6e66 732d 7365 7276 6572 2e73 6572 7669 nfs-server.servi │ │ │ -0029b0e0: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -0029b0f0: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -0029b100: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -0029b110: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -0029b120: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -0029b130: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -0029b140: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -0029b150: 226e 6673 2d73 6572 7665 722e 7365 7276 "nfs-server.serv │ │ │ -0029b160: 6963 6522 2c20 6d75 6c74 696c 696e 653d ice", multiline= │ │ │ -0029b170: 5472 7565 290a 0a20 202d 206e 616d 653a True).. - name: │ │ │ -0029b180: 2055 6e69 7420 536f 636b 6574 2045 7869 Unit Socket Exi │ │ │ -0029b190: 7374 7320 2d20 6e66 732d 7365 7276 6572 sts - nfs-server │ │ │ -0029b1a0: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ -0029b1b0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -0029b1c0: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -0029b1d0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -0029b1e0: 7320 6e66 732d 7365 7276 6572 2e73 6f63 s nfs-server.soc │ │ │ -0029b1f0: 6b65 740a 2020 2020 7265 6769 7374 6572 ket. register │ │ │ -0029b200: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ -0029b210: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -0029b220: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -0029b230: 2066 6169 6c65 645f 7768 656e 3a20 736f failed_when: so │ │ │ -0029b240: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -0029b250: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ -0029b260: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ -0029b270: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ -0029b280: 653a 2044 6973 6162 6c65 204e 6574 776f e: Disable Netwo │ │ │ -0029b290: 726b 2046 696c 6520 5379 7374 656d 2028 rk File System ( │ │ │ -0029b2a0: 6e66 7329 202d 2044 6973 6162 6c65 2053 nfs) - Disable S │ │ │ -0029b2b0: 6f63 6b65 7420 6e66 732d 7365 7276 6572 ocket nfs-server │ │ │ -0029b2c0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -0029b2d0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ -0029b2e0: 2020 2020 6e61 6d65 3a20 6e66 732d 7365 name: nfs-se │ │ │ -0029b2f0: 7276 6572 2e73 6f63 6b65 740a 2020 2020 rver.socket. │ │ │ -0029b300: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -0029b310: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -0029b320: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -0029b330: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -0029b340: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -0029b350: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -0029b360: 6573 2069 7320 7365 6172 6368 2822 6e66 es is search("nf │ │ │ -0029b370: 732d 7365 7276 6572 2e73 6f63 6b65 7422 s-server.socket" │ │ │ -0029b380: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -0029b390: 290a 2020 7461 6773 3a0a 2020 2d20 4e49 ). tags:. - NI │ │ │ -0029b3a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -0029b3b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -0029b3c0: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ -0029b3d0: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ -0029b3e0: 290a 2020 2d20 6469 7361 626c 655f 7374 ). - disable_st │ │ │ -0029b3f0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0029b400: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0029b410: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0029b420: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0029b430: 640a 2020 2d20 7365 7276 6963 655f 6e66 d. - service_nf │ │ │ -0029b440: 735f 6469 7361 626c 6564 0a20 202d 2073 s_disabled. - s │ │ │ -0029b450: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ -0029b460: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e lock. - unknown │ │ │ -0029b470: 5f73 6576 6572 6974 790a 2020 7768 656e _severity. when │ │ │ -0029b480: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -0029b490: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -0029b4a0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
│ │ │ +0029a620: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0029a6c0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0029a6d0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0029a6e0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0029a6f0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0029a700: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0029a710: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0029a720: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0029a730: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0029a740: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0029a750: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0029a760: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0029a770: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0029a780: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0029a790: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0029a7a0: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ +0029a7b0: 6673 5f64 6973 6162 6c65 640a 2020 2d20  fs_disabled.  - 
│ │ │ +0029a7c0: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0029a7d0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +0029a7e0: 6520 4e65 7477 6f72 6b20 4669 6c65 2053  e Network File S
│ │ │ +0029a7f0: 7973 7465 6d20 286e 6673 2920 2d20 4469  ystem (nfs) - Di
│ │ │ +0029a800: 7361 626c 6520 7365 7276 6963 6520 6e66  sable service nf
│ │ │ +0029a810: 732d 7365 7276 6572 0a20 2062 6c6f 636b  s-server.  block
│ │ │ +0029a820: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +0029a830: 6162 6c65 204e 6574 776f 726b 2046 696c  able Network Fil
│ │ │ +0029a840: 6520 5379 7374 656d 2028 6e66 7329 202d  e System (nfs) -
│ │ │ +0029a850: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +0029a860: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +0029a870: 7420 696e 0a20 2020 2020 2074 6865 2053  t in.      the S
│ │ │ +0029a880: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +0029a890: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +0029a8a0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +0029a8b0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +0029a8c0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +0029a8d0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +0029a8e0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +0029a8f0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +0029a900: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +0029a910: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +0029a920: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +0029a930: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +0029a940: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +0029a950: 6e61 6d65 3a20 4469 7361 626c 6520 4e65  name: Disable Ne
│ │ │ +0029a960: 7477 6f72 6b20 4669 6c65 2053 7973 7465  twork File Syste
│ │ │ +0029a970: 6d20 286e 6673 2920 2d20 456e 7375 7265  m (nfs) - Ensure
│ │ │ +0029a980: 206e 6673 2d73 6572 7665 722e 7365 7276   nfs-server.serv
│ │ │ +0029a990: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +0029a9a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0029a9b0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0029a9c0: 206e 616d 653a 206e 6673 2d73 6572 7665   name: nfs-serve
│ │ │ +0029a9d0: 722e 7365 7276 6963 650a 2020 2020 2020  r.service.      
│ │ │ +0029a9e0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0029a9f0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0029aa00: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +0029aa10: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +0029aa20: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0029aa30: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0029aa40: 7365 6172 6368 2822 6e66 732d 7365 7276  search("nfs-serv
│ │ │ +0029aa50: 6572 2e73 6572 7669 6365 222c 206d 756c  er.service", mul
│ │ │ +0029aa60: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +0029aa70: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +0029aa80: 6b65 7420 4578 6973 7473 202d 206e 6673  ket Exists - nfs
│ │ │ +0029aa90: 2d73 6572 7665 722e 736f 636b 6574 0a20  -server.socket. 
│ │ │ +0029aaa0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0029aab0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0029aac0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0029aad0: 6974 2d66 696c 6573 206e 6673 2d73 6572  it-files nfs-ser
│ │ │ +0029aae0: 7665 722e 736f 636b 6574 0a20 2020 2072  ver.socket.    r
│ │ │ +0029aaf0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +0029ab00: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +0029ab10: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +0029ab20: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +0029ab30: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +0029ab40: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +0029ab50: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +0029ab60: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +0029ab70: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0029ab80: 6520 4e65 7477 6f72 6b20 4669 6c65 2053  e Network File S
│ │ │ +0029ab90: 7973 7465 6d20 286e 6673 2920 2d20 4469  ystem (nfs) - Di
│ │ │ +0029aba0: 7361 626c 6520 536f 636b 6574 206e 6673  sable Socket nfs
│ │ │ +0029abb0: 2d73 6572 7665 720a 2020 2020 616e 7369  -server.    ansi
│ │ │ +0029abc0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0029abd0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0029abe0: 206e 6673 2d73 6572 7665 722e 736f 636b   nfs-server.sock
│ │ │ +0029abf0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +0029ac00: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +0029ac10: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0029ac20: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0029ac30: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +0029ac40: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +0029ac50: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +0029ac60: 7263 6828 226e 6673 2d73 6572 7665 722e  rch("nfs-server.
│ │ │ +0029ac70: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +0029ac80: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +0029ac90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0029aca0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0029acb0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0029acc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0029acd0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0029ace0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0029acf0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0029ad00: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0029ad10: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0029ad20: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0029ad30: 7669 6365 5f6e 6673 5f64 6973 6162 6c65  vice_nfs_disable
│ │ │ +0029ad40: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +0029ad50: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ +0029ad60: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0029ad70: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +0029ad80: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0029ad90: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0029ada0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +0029adb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation K │ │ │ +0029ae60: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ +0029ae70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0029aef0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 │ │ │ +0029af40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 < │ │ │ +0029af70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
│ │ │ +0029a610: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0029a640: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0029a650: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0029a690: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0029a6a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ +0029af00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0029af10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:medium
Reb │ │ │ +0029af50: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ +0029af60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

apiVers │ │ │ +0029afb0: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ +0029afc0: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ +0029afd0: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ +0029afe0: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ +0029aff0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ +0029b000: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ +0029b010: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ +0029b020: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ +0029b030: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ +0029b040: 202d 206e 616d 653a 206e 6673 2d73 6572 - name: nfs-ser │ │ │ +0029b050: 7665 722e 7365 7276 6963 650a 2020 2020 ver.service. │ │ │ +0029b060: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +0029b070: 7365 0a20 2020 2020 2020 206d 6173 6b3a se. mask: │ │ │ +0029b080: 2074 7275 650a 2020 2020 2020 2d20 6e61 true. - na │ │ │ +0029b090: 6d65 3a20 6e66 732d 7365 7276 6572 2e73 me: nfs-server.s │ │ │ +0029b0a0: 6f63 6b65 740a 2020 2020 2020 2020 656e ocket. en │ │ │ +0029b0b0: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +0029b0c0: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ +0029b0d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

Remediation Pup │ │ │ +0029b190: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0029b1a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +0029b270: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0029b280: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0029b2d0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +0029b2e0: 6e66 732d 7365 7276 6572 0a0a 636c 6173  nfs-server..clas
│ │ │ +0029b2f0: 7320 6469 7361 626c 655f 6e66 732d 7365  s disable_nfs-se
│ │ │ +0029b300: 7276 6572 207b 0a20 2073 6572 7669 6365  rver {.  service
│ │ │ +0029b310: 207b 276e 6673 2d73 6572 7665 7227 3a0a   {'nfs-server':.
│ │ │ +0029b320: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0029b330: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +0029b340: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +0029b350: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +0029b410: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0029b420: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0029b430: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +0029b480: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0029b490: 735d 0a6d 6173 6b65 6420 3d20 5b22 6e66 s].masked = ["nf │ │ │ +0029b4a0: 732d 7365 7276 6572 225d 0a3c 2f63 6f64 s-server"].
Rem │ │ │ -0029c490: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0029c4a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0029c4b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +0029b250: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0029b260: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0029b2a0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0029b2b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -0029c550: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0029c5a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0029c5e0: 636c 7564 6520 7265 6d6f 7665 5f6e 6673  clude remove_nfs
│ │ │ -0029c5f0: 2d6b 6572 6e65 6c2d 7365 7276 6572 0a0a  -kernel-server..
│ │ │ -0029c600: 636c 6173 7320 7265 6d6f 7665 5f6e 6673  class remove_nfs
│ │ │ -0029c610: 2d6b 6572 6e65 6c2d 7365 7276 6572 207b  -kernel-server {
│ │ │ -0029c620: 0a20 2070 6163 6b61 6765 207b 2027 6e66  .  package { 'nf
│ │ │ -0029c630: 732d 6b65 726e 656c 2d73 6572 7665 7227  s-kernel-server'
│ │ │ -0029c640: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0029c650: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0029c660: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0029c670: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -0029c720: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0029c730: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -0029c7f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0029c800: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ -0029c530: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0029c560: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0029c580: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0029c590: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0029c5b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0029c5c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -0029c7c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0029c7e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0029c810: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0029c830: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0029c860: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0029c870: 696e 7374 616c 6c20 6e66 732d 6b65 726e  install nfs-kern
│ │ │ -0029c880: 656c 2d73 6572 7665 7220 5061 636b 6167  el-server Packag
│ │ │ -0029c890: 653a 2045 6e73 7572 6520 6e66 732d 6b65  e: Ensure nfs-ke
│ │ │ -0029c8a0: 726e 656c 2d73 6572 7665 7220 6973 2072  rnel-server is r
│ │ │ -0029c8b0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0029c8c0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0029c8d0: 653a 0a20 2020 206e 616d 653a 206e 6673  e:.    name: nfs
│ │ │ -0029c8e0: 2d6b 6572 6e65 6c2d 7365 7276 6572 0a20  -kernel-server. 
│ │ │ -0029c8f0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -0029c900: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ -0029c910: 412d 5354 4947 2d55 4254 552d 3232 2d32  A-STIG-UBTU-22-2
│ │ │ -0029c920: 3135 3034 300a 2020 2d20 6469 7361 626c  15040.  - disabl
│ │ │ -0029c930: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0029c940: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0029c950: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0029c960: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -0029c970: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0029c980: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0029c990: 6765 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ge_nfs-kernel-se
│ │ │ -0029c9a0: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +0029c4b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +0029c540: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0029c550: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0029c5a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0029c5e0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0029c5f0: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276   nfs-kernel-serv
│ │ │ +0029c600: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ +0029c610: 7265 206e 6673 2d6b 6572 6e65 6c2d 7365  re nfs-kernel-se
│ │ │ +0029c620: 7276 6572 2069 7320 7265 6d6f 7665 6427  rver is removed'
│ │ │ +0029c630: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0029c640: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0029c650: 6e61 6d65 3a20 6e66 732d 6b65 726e 656c  name: nfs-kernel
│ │ │ +0029c660: 2d73 6572 7665 720a 2020 2020 7374 6174  -server.    stat
│ │ │ +0029c670: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +0029c680: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ +0029c690: 5542 5455 2d32 322d 3231 3530 3430 0a20  UBTU-22-215040. 
│ │ │ +0029c6a0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0029c6b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0029c6c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0029c6d0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +0029c6e0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +0029c6f0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0029c700: 2020 2d20 7061 636b 6167 655f 6e66 732d    - package_nfs-
│ │ │ +0029c710: 6b65 726e 656c 2d73 6572 7665 725f 7265  kernel-server_re
│ │ │ +0029c720: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediati │ │ │ +0029c7e0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0029c7f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0029c870: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0029c900: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0029c910: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +0029c530: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0029c560: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0029c570: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0029c5b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0029c5c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +0029c880: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0029c890: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0029c8d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0029c8e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +0029c930: 7265 6d6f 7665 5f6e 6673 2d6b 6572 6e65  remove_nfs-kerne
│ │ │ +0029c940: 6c2d 7365 7276 6572 0a0a 636c 6173 7320  l-server..class 
│ │ │ +0029c950: 7265 6d6f 7665 5f6e 6673 2d6b 6572 6e65  remove_nfs-kerne
│ │ │ +0029c960: 6c2d 7365 7276 6572 207b 0a20 2070 6163  l-server {.  pac
│ │ │ +0029c970: 6b61 6765 207b 2027 6e66 732d 6b65 726e  kage { 'nfs-kern
│ │ │ +0029c980: 656c 2d73 6572 7665 7227 3a0a 2020 2020  el-server':.    
│ │ │ +0029c990: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0029c9a0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0029c9c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation │ │ │ -002aeaa0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002aeab0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002aeb40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002aeb60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002aeb70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002aeb80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002aeb90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002aebb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002aebe0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -002aebf0: 6d6f 7665 5f78 696e 6574 640a 0a63 6c61  move_xinetd..cla
│ │ │ -002aec00: 7373 2072 656d 6f76 655f 7869 6e65 7464  ss remove_xinetd
│ │ │ -002aec10: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -002aec20: 7869 6e65 7464 273a 0a20 2020 2065 6e73  xinetd':.    ens
│ │ │ -002aec30: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -002aec40: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -002aed00: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002aed10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002aeda0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002aedd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002aedf0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002aee00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002aee20: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002aee30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002aee50: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002aee60: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002aee70: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002aee80: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002aee90: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002aeea0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002aeeb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002aeec0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -002aeed0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -002aeee0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002aeef0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -002aef00: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -002aef10: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002aef20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002aef30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002aef40: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -002aef50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002aef60: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -002aef70: 6765 5f78 696e 6574 645f 7265 6d6f 7665  ge_xinetd_remove
│ │ │ -002aef80: 640a 0a2d 206e 616d 653a 2027 556e 696e  d..- name: 'Unin
│ │ │ -002aef90: 7374 616c 6c20 7869 6e65 7464 2070 6163  stall xinetd pac
│ │ │ -002aefa0: 6b61 6765 2069 6620 6e6f 7420 7573 6564  kage if not used
│ │ │ -002aefb0: 2062 7920 6e65 7477 6f72 6b20 7365 7276   by network serv
│ │ │ -002aefc0: 6963 6573 3a20 456e 7375 7265 2078 696e  ices: Ensure xin
│ │ │ -002aefd0: 6574 6420 6973 0a20 2020 2072 656d 6f76  etd is.    remov
│ │ │ -002aefe0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002aeff0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002af000: 2020 206e 616d 653a 2078 696e 6574 640a     name: xinetd.
│ │ │ -002af010: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -002af020: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -002af030: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -002af040: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -002af050: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -002af060: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -002af070: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002af080: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -002af090: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002af0a0: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ -002af0b0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -002af0c0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -002af0d0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002af0e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002af0f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002af100: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -002af110: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002af120: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -002af130: 636b 6167 655f 7869 6e65 7464 5f72 656d  ckage_xinetd_rem
│ │ │ -002af140: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
< │ │ │ +002aeb30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002aeb40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002aeb60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002aeb70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002aeb90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002aebb0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002aebe0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +002aebf0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +002aec00: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +002aec10: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +002aec20: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +002aec30: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +002aec40: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +002aec50: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +002aec60: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002aec70: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ +002aec80: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002aec90: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +002aeca0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002aecb0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002aecc0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002aecd0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +002aece0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +002aecf0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002aed00: 0a20 202d 2070 6163 6b61 6765 5f78 696e  .  - package_xin
│ │ │ +002aed10: 6574 645f 7265 6d6f 7665 640a 0a2d 206e  etd_removed..- n
│ │ │ +002aed20: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +002aed30: 7869 6e65 7464 2070 6163 6b61 6765 2069  xinetd package i
│ │ │ +002aed40: 6620 6e6f 7420 7573 6564 2062 7920 6e65  f not used by ne
│ │ │ +002aed50: 7477 6f72 6b20 7365 7276 6963 6573 3a20  twork services: 
│ │ │ +002aed60: 456e 7375 7265 2078 696e 6574 6420 6973  Ensure xinetd is
│ │ │ +002aed70: 0a20 2020 2072 656d 6f76 6564 270a 2020  .    removed'.  
│ │ │ +002aed80: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002aed90: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +002aeda0: 653a 2078 696e 6574 640a 2020 2020 7374  e: xinetd.    st
│ │ │ +002aedb0: 6174 653a 2061 6273 656e 740a 2020 7768  ate: absent.  wh
│ │ │ +002aedc0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +002aedd0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +002aede0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +002aedf0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002aee00: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002aee10: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002aee20: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002aee30: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +002aee40: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002aee50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002aee60: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +002aee70: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002aee80: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002aee90: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002aeea0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +002aeeb0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002aeec0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002aeed0: 7869 6e65 7464 5f72 656d 6f76 6564 0a3c  xinetd_removed.<
│ │ │ +002aeee0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002aef90: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002aefa0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +002af080: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002af090: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002af0e0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +002af0f0: 7869 6e65 7464 0a0a 636c 6173 7320 7265  xinetd..class re
│ │ │ +002af100: 6d6f 7665 5f78 696e 6574 6420 7b0a 2020  move_xinetd {.  
│ │ │ +002af110: 7061 636b 6167 6520 7b20 2778 696e 6574  package { 'xinet
│ │ │ +002af120: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +002af130: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002af140: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Re
│ │ │ -002b0880: 6d65 6469 6174 696f 6e20 4f53 4275 696c  mediation OSBuil
│ │ │ -002b0890: 6420 426c 7565 7072 696e 7420 736e 6970  d Blueprint snip
│ │ │ -002b08a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -002b08b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002b08c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002b08d0: 7365 2220 6964 3d22 6964 3130 3931 223e se" id="id1091"> │ │ │ -002b08e0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -002b08f0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -002b0900: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002b0910: 2278 696e 6574 6422 5d0a 3c2f 636f 6465  "xinetd"].
Remed │ │ │ -002b09d0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -002b09e0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
Complexity:low
Disrup │ │ │ +002af060: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002af070: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002af0b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002af0c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -002b0a80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472
apiVersion: mac
│ │ │ -002b0b30: 6869 6e65 636f 6e66 6967 7572 6174 696f  hineconfiguratio
│ │ │ -002b0b40: 6e2e 6f70 656e 7368 6966 742e 696f 2f76  n.openshift.io/v
│ │ │ -002b0b50: 310a 6b69 6e64 3a20 4d61 6368 696e 6543  1.kind: MachineC
│ │ │ -002b0b60: 6f6e 6669 670a 7370 6563 3a0a 2020 636f  onfig.spec:.  co
│ │ │ -002b0b70: 6e66 6967 3a0a 2020 2020 6967 6e69 7469  nfig:.    igniti
│ │ │ -002b0b80: 6f6e 3a0a 2020 2020 2020 7665 7273 696f  on:.      versio
│ │ │ -002b0b90: 6e3a 2033 2e31 2e30 0a20 2020 2073 7973  n: 3.1.0.    sys
│ │ │ -002b0ba0: 7465 6d64 3a0a 2020 2020 2020 756e 6974  temd:.      unit
│ │ │ -002b0bb0: 733a 0a20 2020 2020 202d 206e 616d 653a  s:.      - name:
│ │ │ -002b0bc0: 2078 696e 6574 642e 7365 7276 6963 650a   xinetd.service.
│ │ │ -002b0bd0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002b0be0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002b0bf0: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ -002b0c00: 2d20 6e61 6d65 3a20 7869 6e65 7464 2e73  - name: xinetd.s
│ │ │ -002b0c10: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -002b0c20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002b0c30: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -002b0c40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -002b0d00: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002b0d10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -002b0a70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002b0aa0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 ion:med │ │ │ -002b0ab0: 6975 6d3c 2f74 643e 3c2f 7472 3e3c 7472 ium
Reboot:true
Strat │ │ │ -002b0af0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002b0b00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -002b0de0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002b0df0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -002b0e40: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -002b0e50: 7869 6e65 7464 0a0a 636c 6173 7320 6469  xinetd..class di
│ │ │ -002b0e60: 7361 626c 655f 7869 6e65 7464 207b 0a20  sable_xinetd {. 
│ │ │ -002b0e70: 2073 6572 7669 6365 207b 2778 696e 6574   service {'xinet
│ │ │ -002b0e80: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -002b0e90: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -002b0ea0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -002b0eb0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ -002b0f70: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002b0f80: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disru │ │ │ -002b0dc0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002b0dd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002b0e10: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -002b0e20: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002b1060: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002b1070: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002b10c0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -002b10d0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -002b10e0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -002b10f0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -002b1100: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002b1110: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ -002b1120: 2e37 0a20 202d 204e 4953 542d 3830 302d  .7.  - NIST-800-
│ │ │ -002b1130: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002b1140: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002b1150: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002b1160: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -002b1170: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002b1180: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002b1190: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002b11a0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002b11b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002b11c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002b11d0: 202d 2073 6572 7669 6365 5f78 696e 6574   - service_xinet
│ │ │ -002b11e0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ -002b11f0: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ -002b1200: 7464 2053 6572 7669 6365 202d 2044 6973  td Service - Dis
│ │ │ -002b1210: 6162 6c65 2073 6572 7669 6365 2078 696e  able service xin
│ │ │ -002b1220: 6574 640a 2020 626c 6f63 6b3a 0a0a 2020  etd.  block:..  
│ │ │ -002b1230: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002b1240: 7869 6e65 7464 2053 6572 7669 6365 202d  xinetd Service -
│ │ │ -002b1250: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -002b1260: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -002b1270: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -002b1280: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002b1290: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002b12a0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002b12b0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -002b12c0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -002b12d0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -002b12e0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002b12f0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -002b1300: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -002b1310: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -002b1320: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002b1330: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002b1340: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002b1350: 4469 7361 626c 6520 7869 6e65 7464 2053  Disable xinetd S
│ │ │ -002b1360: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -002b1370: 7869 6e65 7464 2e73 6572 7669 6365 2069  xinetd.service i
│ │ │ -002b1380: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -002b1390: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -002b13a0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -002b13b0: 3a20 7869 6e65 7464 2e73 6572 7669 6365  : xinetd.service
│ │ │ -002b13c0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -002b13d0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -002b13e0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002b13f0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -002b1400: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -002b1410: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -002b1420: 6e65 7320 6973 2073 6561 7263 6828 2278  nes is search("x
│ │ │ -002b1430: 696e 6574 642e 7365 7276 6963 6522 2c20  inetd.service", 
│ │ │ -002b1440: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002b1450: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002b1460: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002b1470: 7869 6e65 7464 2e73 6f63 6b65 740a 2020  xinetd.socket.  
│ │ │ -002b1480: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002b1490: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -002b14a0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002b14b0: 742d 6669 6c65 7320 7869 6e65 7464 2e73  t-files xinetd.s
│ │ │ -002b14c0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -002b14d0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -002b14e0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002b14f0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002b1500: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002b1510: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002b1520: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002b1530: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002b1540: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002b1550: 616d 653a 2044 6973 6162 6c65 2078 696e  ame: Disable xin
│ │ │ -002b1560: 6574 6420 5365 7276 6963 6520 2d20 4469  etd Service - Di
│ │ │ -002b1570: 7361 626c 6520 536f 636b 6574 2078 696e  sable Socket xin
│ │ │ -002b1580: 6574 640a 2020 2020 616e 7369 626c 652e  etd.    ansible.
│ │ │ -002b1590: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002b15a0: 0a20 2020 2020 206e 616d 653a 2078 696e  .      name: xin
│ │ │ -002b15b0: 6574 642e 736f 636b 6574 0a20 2020 2020  etd.socket.     
│ │ │ -002b15c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002b15d0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002b15e0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -002b15f0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002b1600: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002b1610: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002b1620: 7320 6973 2073 6561 7263 6828 2278 696e  s is search("xin
│ │ │ -002b1630: 6574 642e 736f 636b 6574 222c 206d 756c  etd.socket", mul
│ │ │ -002b1640: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -002b1650: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -002b1660: 302d 3137 312d 332e 342e 370a 2020 2d20  0-171-3.4.7.  - 
│ │ │ -002b1670: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002b1680: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002b1690: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -002b16a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002b16b0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -002b16c0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002b16d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002b16e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002b16f0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002b1700: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002b1710: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002b1720: 6963 655f 7869 6e65 7464 5f64 6973 6162  ice_xinetd_disab
│ │ │ -002b1730: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -002b1740: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -002b1750: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -002b1760: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -002b1770: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002b0880: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +002b0890: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
Complexity:low
Disrup │ │ │ -002b1040: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002b1050: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002b1090: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002b10a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +002b0930: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002b09d0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002b09e0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002b09f0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002b0a00: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002b0a10: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +002b0a20: 4953 542d 3830 302d 3137 312d 332e 342e  IST-800-171-3.4.
│ │ │ +002b0a30: 370a 2020 2d20 4e49 5354 2d38 3030 2d35  7.  - NIST-800-5
│ │ │ +002b0a40: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +002b0a50: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +002b0a60: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002b0a70: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +002b0a80: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002b0a90: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002b0aa0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002b0ab0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +002b0ac0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002b0ad0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002b0ae0: 2d20 7365 7276 6963 655f 7869 6e65 7464  - service_xinetd
│ │ │ +002b0af0: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ +002b0b00: 653a 2044 6973 6162 6c65 2078 696e 6574  e: Disable xinet
│ │ │ +002b0b10: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ +002b0b20: 626c 6520 7365 7276 6963 6520 7869 6e65  ble service xine
│ │ │ +002b0b30: 7464 0a20 2062 6c6f 636b 3a0a 0a20 202d  td.  block:..  -
│ │ │ +002b0b40: 206e 616d 653a 2044 6973 6162 6c65 2078   name: Disable x
│ │ │ +002b0b50: 696e 6574 6420 5365 7276 6963 6520 2d20  inetd Service - 
│ │ │ +002b0b60: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +002b0b70: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +002b0b80: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +002b0b90: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002b0ba0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002b0bb0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002b0bc0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +002b0bd0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +002b0be0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +002b0bf0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002b0c00: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002b0c10: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +002b0c20: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +002b0c30: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002b0c40: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002b0c50: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +002b0c60: 6973 6162 6c65 2078 696e 6574 6420 5365  isable xinetd Se
│ │ │ +002b0c70: 7276 6963 6520 2d20 456e 7375 7265 2078  rvice - Ensure x
│ │ │ +002b0c80: 696e 6574 642e 7365 7276 6963 6520 6973  inetd.service is
│ │ │ +002b0c90: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +002b0ca0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002b0cb0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002b0cc0: 2078 696e 6574 642e 7365 7276 6963 650a   xinetd.service.
│ │ │ +002b0cd0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002b0ce0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +002b0cf0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002b0d00: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002b0d10: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +002b0d20: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002b0d30: 6573 2069 7320 7365 6172 6368 2822 7869  es is search("xi
│ │ │ +002b0d40: 6e65 7464 2e73 6572 7669 6365 222c 206d  netd.service", m
│ │ │ +002b0d50: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +002b0d60: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +002b0d70: 6f63 6b65 7420 4578 6973 7473 202d 2078  ocket Exists - x
│ │ │ +002b0d80: 696e 6574 642e 736f 636b 6574 0a20 2020  inetd.socket.   
│ │ │ +002b0d90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002b0da0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002b0db0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002b0dc0: 2d66 696c 6573 2078 696e 6574 642e 736f  -files xinetd.so
│ │ │ +002b0dd0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +002b0de0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +002b0df0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002b0e00: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002b0e10: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002b0e20: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002b0e30: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002b0e40: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002b0e50: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002b0e60: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ +002b0e70: 7464 2053 6572 7669 6365 202d 2044 6973  td Service - Dis
│ │ │ +002b0e80: 6162 6c65 2053 6f63 6b65 7420 7869 6e65  able Socket xine
│ │ │ +002b0e90: 7464 0a20 2020 2061 6e73 6962 6c65 2e62  td.    ansible.b
│ │ │ +002b0ea0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +002b0eb0: 2020 2020 2020 6e61 6d65 3a20 7869 6e65        name: xine
│ │ │ +002b0ec0: 7464 2e73 6f63 6b65 740a 2020 2020 2020  td.socket.      
│ │ │ +002b0ed0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002b0ee0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +002b0ef0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +002b0f00: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002b0f10: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +002b0f20: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +002b0f30: 2069 7320 7365 6172 6368 2822 7869 6e65   is search("xine
│ │ │ +002b0f40: 7464 2e73 6f63 6b65 7422 2c20 6d75 6c74  td.socket", mult
│ │ │ +002b0f50: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +002b0f60: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +002b0f70: 2d31 3731 2d33 2e34 2e37 0a20 202d 204e  -171-3.4.7.  - N
│ │ │ +002b0f80: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +002b0f90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002b0fa0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002b0fb0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002b0fc0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +002b0fd0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002b0fe0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002b0ff0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002b1000: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +002b1010: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002b1020: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002b1030: 6365 5f78 696e 6574 645f 6469 7361 626c  ce_xinetd_disabl
│ │ │ +002b1040: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +002b1050: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +002b1060: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +002b1070: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002b1080: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
R │ │ │ +002b1140: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +002b1150: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +002b1160: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002b0920: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b0950: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b0960: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b09a0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b09b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002b11e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b1200: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +002b11f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b1210: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +002b1240: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +002b1260: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002b1290: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +002b12a0: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +002b12b0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +002b12c0: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +002b12d0: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +002b12e0: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +002b12f0: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +002b1300: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +002b1310: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +002b1320: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +002b1330: 616d 653a 2078 696e 6574 642e 7365 7276  ame: xinetd.serv
│ │ │ +002b1340: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ +002b1350: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002b1360: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ +002b1370: 2020 2020 2d20 6e61 6d65 3a20 7869 6e65      - name: xine
│ │ │ +002b1380: 7464 2e73 6f63 6b65 740a 2020 2020 2020  td.socket.      
│ │ │ +002b1390: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002b13a0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +002b13b0: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ +002b1470: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002b1480: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +002b1510: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002b1530: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002b1540: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b1550: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002b1560: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002b1580: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +002b15c0: 626c 655f 7869 6e65 7464 0a0a 636c 6173  ble_xinetd..clas
│ │ │ +002b15d0: 7320 6469 7361 626c 655f 7869 6e65 7464  s disable_xinetd
│ │ │ +002b15e0: 207b 0a20 2073 6572 7669 6365 207b 2778   {.  service {'x
│ │ │ +002b15f0: 696e 6574 6427 3a0a 2020 2020 656e 6162  inetd':.    enab
│ │ │ +002b1600: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002b1610: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002b1620: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002b1630: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002b1640: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +002b16f0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +002b1700: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002b1710: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002b1750: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +002b1760: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +002b1770: 6420 3d20 5b22 7869 6e65 7464 225d 0a3c  d = ["xinetd"].<
│ │ │  002b1780: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -002b3380: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002b3390: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002b33a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002b3430: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b3440: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002b3490: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002b34d0: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ -002b34e0: 7365 7276 0a0a 636c 6173 7320 7265 6d6f  serv..class remo
│ │ │ -002b34f0: 7665 5f79 7073 6572 7620 7b0a 2020 7061  ve_ypserv {.  pa
│ │ │ -002b3500: 636b 6167 6520 7b20 2779 7073 6572 7627  ckage { 'ypserv'
│ │ │ -002b3510: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -002b3520: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -002b3530: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002b3540: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -002b35f0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002b3600: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -002b36c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b36d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -002b3420: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002b3450: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002b3460: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002b34a0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002b34b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -002b3690: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -002b36b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -002b36e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -002b3700: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002b3730: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -002b3740: 696e 7374 616c 6c20 7970 7365 7276 2050  install ypserv P
│ │ │ -002b3750: 6163 6b61 6765 3a20 456e 7375 7265 2079  ackage: Ensure y
│ │ │ -002b3760: 7073 6572 7620 6973 2072 656d 6f76 6564  pserv is removed
│ │ │ -002b3770: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -002b3780: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -002b3790: 206e 616d 653a 2079 7073 6572 760a 2020   name: ypserv.  
│ │ │ -002b37a0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -002b37b0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002b37c0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002b37d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002b37e0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -002b37f0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -002b3800: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002b3810: 4941 2d35 2831 2928 6329 0a20 202d 2050  IA-5(1)(c).  - P
│ │ │ -002b3820: 4349 2d44 5353 2d52 6571 2d32 2e32 2e32  CI-DSS-Req-2.2.2
│ │ │ -002b3830: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002b3840: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002b3850: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -002b3860: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002b3870: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -002b3880: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002b3890: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002b38a0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002b38b0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002b38c0: 6b61 6765 5f79 7073 6572 765f 7265 6d6f  kage_ypserv_remo
│ │ │ -002b38d0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +002b3430: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002b34d0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +002b34e0: 6c20 7970 7365 7276 2050 6163 6b61 6765  l ypserv Package
│ │ │ +002b34f0: 3a20 456e 7375 7265 2079 7073 6572 7620  : Ensure ypserv 
│ │ │ +002b3500: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002b3510: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002b3520: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002b3530: 2079 7073 6572 760a 2020 2020 7374 6174   ypserv.    stat
│ │ │ +002b3540: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +002b3550: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +002b3560: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +002b3570: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +002b3580: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002b3590: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ +002b35a0: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ +002b35b0: 2928 6329 0a20 202d 2050 4349 2d44 5353  )(c).  - PCI-DSS
│ │ │ +002b35c0: 2d52 6571 2d32 2e32 2e32 0a20 202d 2050  -Req-2.2.2.  - P
│ │ │ +002b35d0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +002b35e0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ +002b35f0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002b3600: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +002b3610: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +002b3620: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002b3630: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002b3640: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002b3650: 6564 0a20 202d 2070 6163 6b61 6765 5f79  ed.  - package_y
│ │ │ +002b3660: 7073 6572 765f 7265 6d6f 7665 640a 3c2f  pserv_removed.
R │ │ │ +002b3720: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002b3730: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +002b3420: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b3450: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b3460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b34a0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b34b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002b37d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002b3870: 696e 636c 7564 6520 7265 6d6f 7665 5f79  include remove_y
│ │ │ +002b3880: 7073 6572 760a 0a63 6c61 7373 2072 656d  pserv..class rem
│ │ │ +002b3890: 6f76 655f 7970 7365 7276 207b 0a20 2070  ove_ypserv {.  p
│ │ │ +002b38a0: 6163 6b61 6765 207b 2027 7970 7365 7276  ackage { 'ypserv
│ │ │ +002b38b0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002b38c0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +002b38d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remedi │ │ │ -002b4730: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002b4740: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002b4750: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -002b47a0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -002b47b0: 5d0a 6d61 736b 6564 203d 205b 2279 7073  ].masked = ["yps
│ │ │ -002b47c0: 6572 7622 5d0a 3c2f 636f 6465 3e3c 2f70  erv"].

Remediati │ │ │ -002b4880: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -002b4890: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +002b37c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b37f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b3800: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b3840: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b3850: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -002b4990: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ -002b49d0: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ -002b49e0: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ -002b49f0: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ -002b4a00: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ -002b4a10: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ -002b4a20: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ -002b4a30: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ -002b4a40: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ -002b4a50: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ -002b4a60: 2020 2020 202d 206e 616d 653a 2079 7073       - name: yps
│ │ │ -002b4a70: 6572 762e 7365 7276 6963 650a 2020 2020  erv.service.    
│ │ │ -002b4a80: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002b4a90: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -002b4aa0: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ -002b4ab0: 6d65 3a20 7970 7365 7276 2e73 6f63 6b65  me: ypserv.socke
│ │ │ -002b4ac0: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ -002b4ad0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -002b4ae0: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ -002b4b00: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002b4b10: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002b4b20: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002b4b30: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002b4b40: 6431 3130 3322 2074 6162 696e 6465 783d d1103" tabindex= │ │ │ -002b4b50: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002b4b60: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002b4b70: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002b4b80: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002b4b90: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002b4ba0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002b4bb0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b4bc0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -002b4920: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002b4930: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002b4950: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ -002b4960: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ -002b49a0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002b49b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -002b4c60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002b4cb0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -002b4c40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002b4c70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002b4c90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002b4ca0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002b4cc0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -002b4cd0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -002b4cf0: 7564 6520 6469 7361 626c 655f 7970 7365  ude disable_ypse
│ │ │ -002b4d00: 7276 0a0a 636c 6173 7320 6469 7361 626c  rv..class disabl
│ │ │ -002b4d10: 655f 7970 7365 7276 207b 0a20 2073 6572  e_ypserv {.  ser
│ │ │ -002b4d20: 7669 6365 207b 2779 7073 6572 7627 3a0a  vice {'ypserv':.
│ │ │ -002b4d30: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -002b4d40: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -002b4d50: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -002b4d60: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -002b4e20: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002b4e30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002b4ec0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002b4ef0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002b4f10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002b4f20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002b4f40: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002b4f50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002b4f70: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002b4f80: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002b4f90: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002b4fa0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002b4fb0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -002b4fc0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002b4fd0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002b4fe0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002b4ff0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002b5000: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002b5010: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002b5020: 7365 7276 6963 655f 7970 7365 7276 5f64  service_ypserv_d
│ │ │ -002b5030: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ -002b5040: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ -002b5050: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -002b5060: 6520 7365 7276 6963 6520 7970 7365 7276  e service ypserv
│ │ │ -002b5070: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -002b5080: 616d 653a 2044 6973 6162 6c65 2079 7073  ame: Disable yps
│ │ │ -002b5090: 6572 7620 5365 7276 6963 6520 2d20 436f  erv Service - Co
│ │ │ -002b50a0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -002b50b0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -002b50c0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -002b50d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002b50e0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002b50f0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002b5100: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -002b5110: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -002b5120: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -002b5130: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -002b5140: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -002b5150: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -002b5160: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -002b5170: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -002b5180: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -002b5190: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -002b51a0: 6162 6c65 2079 7073 6572 7620 5365 7276  able ypserv Serv
│ │ │ -002b51b0: 6963 6520 2d20 456e 7375 7265 2079 7073  ice - Ensure yps
│ │ │ -002b51c0: 6572 762e 7365 7276 6963 6520 6973 204d  erv.service is M
│ │ │ -002b51d0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -002b51e0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -002b51f0: 643a 0a20 2020 2020 206e 616d 653a 2079  d:.      name: y
│ │ │ -002b5200: 7073 6572 762e 7365 7276 6963 650a 2020  pserv.service.  
│ │ │ -002b5210: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002b5220: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -002b5230: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -002b5240: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002b5250: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -002b5260: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -002b5270: 2069 7320 7365 6172 6368 2822 7970 7365   is search("ypse
│ │ │ -002b5280: 7276 2e73 6572 7669 6365 222c 206d 756c  rv.service", mul
│ │ │ -002b5290: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -002b52a0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -002b52b0: 6b65 7420 4578 6973 7473 202d 2079 7073  ket Exists - yps
│ │ │ -002b52c0: 6572 762e 736f 636b 6574 0a20 2020 2061  erv.socket.    a
│ │ │ -002b52d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -002b52e0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -002b52f0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -002b5300: 696c 6573 2079 7073 6572 762e 736f 636b  iles ypserv.sock
│ │ │ -002b5310: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -002b5320: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002b5330: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -002b5340: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -002b5350: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -002b5360: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -002b5370: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -002b5380: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -002b5390: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -002b53a0: 3a20 4469 7361 626c 6520 7970 7365 7276  : Disable ypserv
│ │ │ -002b53b0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002b53c0: 6c65 2053 6f63 6b65 7420 7970 7365 7276  le Socket ypserv
│ │ │ -002b53d0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002b53e0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002b53f0: 2020 2020 6e61 6d65 3a20 7970 7365 7276      name: ypserv
│ │ │ -002b5400: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -002b5410: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002b5420: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -002b5430: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -002b5440: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -002b5450: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -002b5460: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -002b5470: 7320 7365 6172 6368 2822 7970 7365 7276  s search("ypserv
│ │ │ -002b5480: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -002b5490: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -002b54a0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002b54b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002b54c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002b54d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002b54e0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -002b54f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002b5500: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002b5510: 655f 7970 7365 7276 5f64 6973 6162 6c65  e_ypserv_disable
│ │ │ -002b5520: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -002b5530: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -002b5540: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -002b5550: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -002b5560: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
Comp │ │ │ +002b47d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002b47e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002b4800: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002b4820: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002b4830: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002b4870: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002b4880: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +002b4890: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +002b48a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +002b48b0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +002b48c0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +002b48d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002b48e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002b48f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002b4900: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002b4910: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002b4920: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002b4930: 6572 7669 6365 5f79 7073 6572 765f 6469  ervice_ypserv_di
│ │ │ +002b4940: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +002b4950: 4469 7361 626c 6520 7970 7365 7276 2053  Disable ypserv S
│ │ │ +002b4960: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002b4970: 2073 6572 7669 6365 2079 7073 6572 760a   service ypserv.
│ │ │ +002b4980: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +002b4990: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ +002b49a0: 7276 2053 6572 7669 6365 202d 2043 6f6c  rv Service - Col
│ │ │ +002b49b0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +002b49c0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +002b49d0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +002b49e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002b49f0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002b4a00: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002b4a10: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +002b4a20: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +002b4a30: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +002b4a40: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002b4a50: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002b4a60: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +002b4a70: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +002b4a80: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +002b4a90: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +002b4aa0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002b4ab0: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ +002b4ac0: 6365 202d 2045 6e73 7572 6520 7970 7365  ce - Ensure ypse
│ │ │ +002b4ad0: 7276 2e73 6572 7669 6365 2069 7320 4d61  rv.service is Ma
│ │ │ +002b4ae0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +002b4af0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002b4b00: 3a0a 2020 2020 2020 6e61 6d65 3a20 7970  :.      name: yp
│ │ │ +002b4b10: 7365 7276 2e73 6572 7669 6365 0a20 2020  serv.service.   
│ │ │ +002b4b20: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002b4b30: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +002b4b40: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +002b4b50: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002b4b60: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002b4b70: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002b4b80: 6973 2073 6561 7263 6828 2279 7073 6572  is search("ypser
│ │ │ +002b4b90: 762e 7365 7276 6963 6522 2c20 6d75 6c74  v.service", mult
│ │ │ +002b4ba0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +002b4bb0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +002b4bc0: 6574 2045 7869 7374 7320 2d20 7970 7365  et Exists - ypse
│ │ │ +002b4bd0: 7276 2e73 6f63 6b65 740a 2020 2020 616e  rv.socket.    an
│ │ │ +002b4be0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002b4bf0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002b4c00: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002b4c10: 6c65 7320 7970 7365 7276 2e73 6f63 6b65  les ypserv.socke
│ │ │ +002b4c20: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +002b4c30: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002b4c40: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002b4c50: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002b4c60: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +002b4c70: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +002b4c80: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002b4c90: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002b4ca0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002b4cb0: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ +002b4cc0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +002b4cd0: 6520 536f 636b 6574 2079 7073 6572 760a  e Socket ypserv.
│ │ │ +002b4ce0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002b4cf0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002b4d00: 2020 206e 616d 653a 2079 7073 6572 762e     name: ypserv.
│ │ │ +002b4d10: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +002b4d20: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002b4d30: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002b4d40: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002b4d50: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +002b4d60: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002b4d70: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002b4d80: 2073 6561 7263 6828 2279 7073 6572 762e   search("ypserv.
│ │ │ +002b4d90: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +002b4da0: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +002b4db0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002b4dc0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002b4dd0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002b4de0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002b4df0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002b4e00: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002b4e10: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002b4e20: 5f79 7073 6572 765f 6469 7361 626c 6564  _ypserv_disabled
│ │ │ +002b4e30: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +002b4e40: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +002b4e50: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +002b4e60: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002b4e70: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +002b4e90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002b4ea0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002b4eb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002b4ec0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002b4ed0: 6431 3130 3222 2074 6162 696e 6465 783d d1102" tabindex= │ │ │ +002b4ee0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002b4ef0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002b4f00: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002b4f10: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002b4f20: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002b4f30: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +002b4f40: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +002b4f50: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +002b5020: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +002b5040: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b5070: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +002b5000: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ +002b5010: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ +002b5050: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b5060: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ +002b5090: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ +002b50a0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ +002b50b0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ +002b50c0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ +002b50d0: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ +002b50e0: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ +002b50f0: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ +002b5100: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ +002b5110: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ +002b5120: 653a 2079 7073 6572 762e 7365 7276 6963  e: ypserv.servic
│ │ │ +002b5130: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ +002b5140: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +002b5150: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ +002b5160: 2020 2d20 6e61 6d65 3a20 7970 7365 7276    - name: ypserv
│ │ │ +002b5170: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +002b5180: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002b5190: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +002b51a0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +002b51b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002b5260: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002b5270: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002b52f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b5310: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b5360: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +002b5390: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +002b53b0: 655f 7970 7365 7276 0a0a 636c 6173 7320  e_ypserv..class 
│ │ │ +002b53c0: 6469 7361 626c 655f 7970 7365 7276 207b  disable_ypserv {
│ │ │ +002b53d0: 0a20 2073 6572 7669 6365 207b 2779 7073  .  service {'yps
│ │ │ +002b53e0: 6572 7627 3a0a 2020 2020 656e 6162 6c65  erv':.    enable
│ │ │ +002b53f0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +002b5400: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +002b5410: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +002b5420: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +002b54e0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002b54f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +002b5540: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +002b5550: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +002b5560: 3d20 5b22 7970 7365 7276 225d 0a3c 2f63  = ["ypserv"].
│ │ │ 002b5580: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002b6af0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002b6b00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b6b10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +002b5300: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b5320: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b5370: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +002b5380: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -002b6bb0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002b6c00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002b6c40: 636c 7564 6520 7265 6d6f 7665 5f72 7368  clude remove_rsh
│ │ │ -002b6c50: 2d63 6c69 656e 740a 0a63 6c61 7373 2072  -client..class r
│ │ │ -002b6c60: 656d 6f76 655f 7273 682d 636c 6965 6e74  emove_rsh-client
│ │ │ -002b6c70: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -002b6c80: 7273 682d 636c 6965 6e74 273a 0a20 2020  rsh-client':.   
│ │ │ -002b6c90: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -002b6ca0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -002b6d60: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002b6d70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Co │ │ │ -002b6b90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002b6bc0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002b6be0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002b6bf0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002b6c10: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002b6c20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -002b6e50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002b6e60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002b6eb0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -002b6ec0: 6c6c 2072 7368 2050 6163 6b61 6765 3a20  ll rsh Package: 
│ │ │ -002b6ed0: 456e 7375 7265 2072 7368 2d63 6c69 656e  Ensure rsh-clien
│ │ │ -002b6ee0: 7420 6973 2072 656d 6f76 6564 270a 2020  t is removed'.  
│ │ │ -002b6ef0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002b6f00: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -002b6f10: 653a 2072 7368 2d63 6c69 656e 740a 2020  e: rsh-client.  
│ │ │ -002b6f20: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -002b6f30: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002b6f40: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -002b6f50: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002b6f60: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -002b6f70: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -002b6f80: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002b6f90: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002b6fa0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002b6fb0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002b6fc0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002b6fd0: 655f 7273 685f 7265 6d6f 7665 640a 2020  e_rsh_removed.  
│ │ │ -002b6fe0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -002b6ff0: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +002b6af0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +002b6b00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002b6b10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -002b6e30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002b6e40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002b6e80: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002b6e90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +002b6ba0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b6bb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002b6c00: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002b6c40: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002b6c50: 2072 7368 2050 6163 6b61 6765 3a20 456e   rsh Package: En
│ │ │ +002b6c60: 7375 7265 2072 7368 2d63 6c69 656e 7420  sure rsh-client 
│ │ │ +002b6c70: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002b6c80: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002b6c90: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002b6ca0: 2072 7368 2d63 6c69 656e 740a 2020 2020   rsh-client.    
│ │ │ +002b6cb0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +002b6cc0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +002b6cd0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ +002b6ce0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +002b6cf0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002b6d00: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +002b6d10: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +002b6d20: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002b6d30: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002b6d40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002b6d50: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002b6d60: 7273 685f 7265 6d6f 7665 640a 2020 2d20  rsh_removed.  - 
│ │ │ +002b6d70: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +002b6d80: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002b6e40: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002b6e50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ +002b6b90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002b6bc0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002b6bd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002b6c10: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002b6c20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002b6ed0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002b6ef0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002b6f40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002b6f70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +002b6f90: 655f 7273 682d 636c 6965 6e74 0a0a 636c  e_rsh-client..cl
│ │ │ +002b6fa0: 6173 7320 7265 6d6f 7665 5f72 7368 2d63  ass remove_rsh-c
│ │ │ +002b6fb0: 6c69 656e 7420 7b0a 2020 7061 636b 6167  lient {.  packag
│ │ │ +002b6fc0: 6520 7b20 2772 7368 2d63 6c69 656e 7427  e { 'rsh-client'
│ │ │ +002b6fd0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +002b6fe0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +002b6ff0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 002b7000: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation Pu │ │ │ -002b9690: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002b96a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +002b6f00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002b6f10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002b6f50: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002b6f60: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002b9720: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b9740: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002b9790: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002b97c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -002b97e0: 655f 7461 6c6b 0a0a 636c 6173 7320 7265  e_talk..class re
│ │ │ -002b97f0: 6d6f 7665 5f74 616c 6b20 7b0a 2020 7061  move_talk {.  pa
│ │ │ -002b9800: 636b 6167 6520 7b20 2774 616c 6b27 3a0a  ckage { 'talk':.
│ │ │ -002b9810: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002b9820: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002b9830: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -002b98f0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002b9900: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ -002b9750: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b9760: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002b97a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002b97b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -002b9980: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002b99a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002b99f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002b9a20: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002b9990: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002b99b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002b9a00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002b9a10: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -002b9a40: 7374 616c 6c20 7461 6c6b 2050 6163 6b61  stall talk Packa
│ │ │ -002b9a50: 6765 3a20 456e 7375 7265 2074 616c 6b20  ge: Ensure talk 
│ │ │ -002b9a60: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -002b9a70: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002b9a80: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002b9a90: 2074 616c 6b0a 2020 2020 7374 6174 653a   talk.    state:
│ │ │ -002b9aa0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -002b9ab0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002b9ac0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -002b9ad0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -002b9ae0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002b9af0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002b9b00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002b9b10: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -002b9b20: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002b9b30: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -002b9b40: 636b 6167 655f 7461 6c6b 5f72 656d 6f76  ckage_talk_remov
│ │ │ -002b9b50: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002b9680: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +002b9690: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +002b96a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002b9720: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002b9740: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002b9790: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002b97c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002b9730: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002b9750: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002b97a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002b97b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +002b97e0: 7374 616c 6c20 7461 6c6b 2050 6163 6b61  stall talk Packa
│ │ │ +002b97f0: 6765 3a20 456e 7375 7265 2074 616c 6b20  ge: Ensure talk 
│ │ │ +002b9800: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002b9810: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002b9820: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002b9830: 2074 616c 6b0a 2020 2020 7374 6174 653a   talk.    state:
│ │ │ +002b9840: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002b9850: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002b9860: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +002b9870: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +002b9880: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002b9890: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002b98a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002b98b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002b98c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002b98d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002b98e0: 636b 6167 655f 7461 6c6b 5f72 656d 6f76  ckage_talk_remov
│ │ │ +002b98f0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002b9900: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +002b99b0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002b99c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +002b9a50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002b9a70: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002b9a90: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002b9ac0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002b9ad0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +002b9b00: 6f76 655f 7461 6c6b 0a0a 636c 6173 7320  ove_talk..class 
│ │ │ +002b9b10: 7265 6d6f 7665 5f74 616c 6b20 7b0a 2020  remove_talk {.  
│ │ │ +002b9b20: 7061 636b 6167 6520 7b20 2774 616c 6b27  package { 'talk'
│ │ │ +002b9b30: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +002b9b40: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +002b9b50: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 002b9b60: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
R │ │ │ -002bb0e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002bb0f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002bb190: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002bb230: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -002bb240: 656c 6e65 740a 0a63 6c61 7373 2072 656d  elnet..class rem
│ │ │ -002bb250: 6f76 655f 7465 6c6e 6574 207b 0a20 2070  ove_telnet {.  p
│ │ │ -002bb260: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ -002bb270: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002bb280: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002bb290: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002bb350: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002bb360: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002bb3e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002bb420: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ -002bb180: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002bb1b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002bb1c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002bb200: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002bb210: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -002bb3f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002bb410: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002bb440: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002bb460: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002bb490: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2752  - name: 'R
│ │ │ -002bb4a0: 656d 6f76 6520 7465 6c6e 6574 2043 6c69  emove telnet Cli
│ │ │ -002bb4b0: 656e 7473 3a20 456e 7375 7265 2074 656c  ents: Ensure tel
│ │ │ -002bb4c0: 6e65 7420 6973 2072 656d 6f76 6564 270a  net is removed'.
│ │ │ -002bb4d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002bb4e0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -002bb4f0: 616d 653a 2074 656c 6e65 740a 2020 2020  ame: telnet.    
│ │ │ -002bb500: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002bb510: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -002bb520: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ -002bb530: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -002bb540: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002bb550: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -002bb560: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002bb570: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002bb580: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002bb590: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -002bb5a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002bb5b0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002bb5c0: 5f74 656c 6e65 745f 7265 6d6f 7665 640a  _telnet_removed.
│ │ │ +002bb0e0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +002bb0f0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
< │ │ │ +002bb1d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002bb1e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002bb230: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ +002bb240: 7465 6c6e 6574 2043 6c69 656e 7473 3a20  telnet Clients: 
│ │ │ +002bb250: 456e 7375 7265 2074 656c 6e65 7420 6973  Ensure telnet is
│ │ │ +002bb260: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +002bb270: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +002bb280: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +002bb290: 656c 6e65 740a 2020 2020 7374 6174 653a  elnet.    state:
│ │ │ +002bb2a0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002bb2b0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002bb2c0: 2d33 2e31 2e31 330a 2020 2d20 5043 492d  -3.1.13.  - PCI-
│ │ │ +002bb2d0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002bb2e0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +002bb2f0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002bb300: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002bb310: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002bb320: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +002bb330: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002bb340: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002bb350: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ +002bb360: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.
Remed │ │ │ +002bb420: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002bb430: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +002bb1b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002bb1c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002bb200: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002bb210: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +002bb4c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002bb4d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002bb4f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002bb510: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002bb520: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002bb560: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +002bb570: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ +002bb580: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ +002bb590: 7465 6c6e 6574 207b 0a20 2070 6163 6b61  telnet {.  packa
│ │ │ +002bb5a0: 6765 207b 2027 7465 6c6e 6574 273a 0a20  ge { 'telnet':. 
│ │ │ +002bb5b0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002bb5c0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002bb5d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remedia │ │ │ -002bd100: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002bd110: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002bd120: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002bd130: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002bd140: 7365 2220 6964 3d22 6964 3131 3231 223e se" id="id1121"> │ │ │ -002bd150: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002bd1c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002bd1e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002bd210: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002bd1a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002bd1b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002bd1f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002bd200: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -002bd250: 6520 7265 6d6f 7665 5f74 6674 7064 2d68 e remove_tftpd-h │ │ │ -002bd260: 7061 0a0a 636c 6173 7320 7265 6d6f 7665 pa..class remove │ │ │ -002bd270: 5f74 6674 7064 2d68 7061 207b 0a20 2070 _tftpd-hpa {. p │ │ │ -002bd280: 6163 6b61 6765 207b 2027 7466 7470 642d ackage { 'tftpd- │ │ │ -002bd290: 6870 6127 3a0a 2020 2020 656e 7375 7265 hpa':. ensure │ │ │ -002bd2a0: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ -002bd2b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediat │ │ │ -002bd370: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -002bd380: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002bd390: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002bd3a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002bd3b0: 7365 2220 6964 3d22 6964 3131 3232 223e se" id="id1122"> │ │ │ -002bd3c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002bd430: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002bd450: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002bd480: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002bd410: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002bd420: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002bd460: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002bd470: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -002bd4c0: 2027 556e 696e 7374 616c 6c20 7466 7470 'Uninstall tftp │ │ │ -002bd4d0: 642d 6870 6120 5061 636b 6167 653a 2045 d-hpa Package: E │ │ │ -002bd4e0: 6e73 7572 6520 7466 7470 642d 6870 6120 nsure tftpd-hpa │ │ │ -002bd4f0: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ -002bd500: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -002bd510: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -002bd520: 2074 6674 7064 2d68 7061 0a20 2020 2073 tftpd-hpa. s │ │ │ -002bd530: 7461 7465 3a20 6162 7365 6e74 0a20 2074 tate: absent. t │ │ │ -002bd540: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002bd550: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -002bd560: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -002bd570: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -002bd580: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -002bd590: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -002bd5a0: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -002bd5b0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ -002bd5c0: 7472 6174 6567 790a 2020 2d20 6869 6768 trategy. - high │ │ │ -002bd5d0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f _severity. - lo │ │ │ -002bd5e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -002bd5f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -002bd600: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -002bd610: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -002bd620: 5f74 6674 702d 7365 7276 6572 5f72 656d _tftp-server_rem │ │ │ -002bd630: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072 oved.
│ │ │ +002bd120: 3c64 6976 2063 6c61 7373 3d22 7061 6e65

│ │ │ +002bd1c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002bd1e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002bd210: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002bd1a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002bd1b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002bd1d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002bd1f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002bd200: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002bd240: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002bd250: 3a20 2755 6e69 6e73 7461 6c6c 2074 6674 : 'Uninstall tft │ │ │ +002bd260: 7064 2d68 7061 2050 6163 6b61 6765 3a20 pd-hpa Package: │ │ │ +002bd270: 456e 7375 7265 2074 6674 7064 2d68 7061 Ensure tftpd-hpa │ │ │ +002bd280: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ +002bd290: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +002bd2a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +002bd2b0: 3a20 7466 7470 642d 6870 610a 2020 2020 : tftpd-hpa. │ │ │ +002bd2c0: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ +002bd2d0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +002bd2e0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002bd2f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +002bd300: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +002bd310: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +002bd320: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +002bd330: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +002bd340: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ +002bd350: 7374 7261 7465 6779 0a20 202d 2068 6967 strategy. - hig │ │ │ +002bd360: 685f 7365 7665 7269 7479 0a20 202d 206c h_severity. - l │ │ │ +002bd370: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +002bd380: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +002bd390: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002bd3a0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +002bd3b0: 655f 7466 7470 2d73 6572 7665 725f 7265 e_tftp-server_re │ │ │ +002bd3c0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.

Remediati │ │ │ +002bd480: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002bd490: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002bd510: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002bd520: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002bd530: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002bd570: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002bd580: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002bd5a0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002bd5b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002bd5d0: 7265 6d6f 7665 5f74 6674 7064 2d68 7061  remove_tftpd-hpa
│ │ │ +002bd5e0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ +002bd5f0: 6674 7064 2d68 7061 207b 0a20 2070 6163  ftpd-hpa {.  pac
│ │ │ +002bd600: 6b61 6765 207b 2027 7466 7470 642d 6870  kage { 'tftpd-hp
│ │ │ +002bd610: 6127 3a0a 2020 2020 656e 7375 7265 203d  a':.    ensure =
│ │ │ +002bd620: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002bd630: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Rem │ │ │ -002bea80: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -002bea90: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -002beaa0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002beae0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -002beaf0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -002beb00: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -002beb10: 7466 7470 642d 6870 6122 5d0a 3c2f 636f tftpd-hpa"].
< │ │ │ -002beb30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002beb40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002beb50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002beb60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002beb70: 6431 3132 3622 2074 6162 696e 6465 783d d1126" tabindex= │ │ │ -002beb80: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002beb90: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002beba0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002bebb0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002bebc0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002bebd0: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ -002bebe0: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ -002bebf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ -002becc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002bece0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002bed10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -002beca0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ -002becb0: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ -002becf0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002bed00: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ -002bed30: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ -002bed40: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ -002bed50: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ -002bed60: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ -002bed70: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ -002bed80: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ -002bed90: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ -002beda0: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ -002bedb0: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ -002bedc0: 653a 2074 6674 7064 2d68 7061 2e73 6572  e: tftpd-hpa.ser
│ │ │ -002bedd0: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ -002bede0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002bedf0: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ -002bee00: 2020 2020 202d 206e 616d 653a 2074 6674       - name: tft
│ │ │ -002bee10: 7064 2d68 7061 2e73 6f63 6b65 740a 2020  pd-hpa.socket.  
│ │ │ -002bee20: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -002bee30: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -002bee40: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c  k: true.<
│ │ │ -002bee50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002bef00: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002bef10: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002bef20: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002bef30: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002bef40: 7365 2220 6964 3d22 6964 3131 3237 223e se" id="id1127"> │ │ │ -002bef50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002befc0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002befe0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002bf010: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -002bf030: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -002befa0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002befb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002beff0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002bf000: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -002bf050: 6469 7361 626c 655f 7466 7470 642d 6870 disable_tftpd-hp │ │ │ -002bf060: 610a 0a63 6c61 7373 2064 6973 6162 6c65 a..class disable │ │ │ -002bf070: 5f74 6674 7064 2d68 7061 207b 0a20 2073 _tftpd-hpa {. s │ │ │ -002bf080: 6572 7669 6365 207b 2774 6674 7064 2d68 ervice {'tftpd-h │ │ │ -002bf090: 7061 273a 0a20 2020 2065 6e61 626c 6520 pa':. enable │ │ │ -002bf0a0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020 => false,. │ │ │ -002bf0b0: 2065 6e73 7572 6520 3d26 6774 3b20 2773 ensure => 's │ │ │ -002bf0c0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c topped',. }.}.< │ │ │ -002bf0d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
│ │ │ -002bf180: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002bf190: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002bf1a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002bf270: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002bf280: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -002bf2e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002bf2f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -002bf300: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -002bf310: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -002bf320: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002bf330: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -002bf340: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -002bf350: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002bf360: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -002bf370: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -002bf380: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -002bf390: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002bf3a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002bf3b0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -002bf3c0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -002bf3d0: 6365 5f74 6674 705f 6469 7361 626c 6564  ce_tftp_disabled
│ │ │ -002bf3e0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -002bf3f0: 6520 7466 7470 642d 6870 6120 5365 7276  e tftpd-hpa Serv
│ │ │ -002bf400: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -002bf410: 7276 6963 6520 7466 7470 642d 6870 610a  rvice tftpd-hpa.
│ │ │ -002bf420: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -002bf430: 6d65 3a20 4469 7361 626c 6520 7466 7470  me: Disable tftp
│ │ │ -002bf440: 642d 6870 6120 5365 7276 6963 6520 2d20  d-hpa Service - 
│ │ │ -002bf450: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -002bf460: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -002bf470: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -002bf480: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002bf490: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -002bf4a0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -002bf4b0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -002bf4c0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -002bf4d0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -002bf4e0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -002bf4f0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -002bf500: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -002bf510: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -002bf520: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -002bf530: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -002bf540: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -002bf550: 6973 6162 6c65 2074 6674 7064 2d68 7061  isable tftpd-hpa
│ │ │ -002bf560: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ -002bf570: 6520 7466 7470 642d 6870 612e 7365 7276  e tftpd-hpa.serv
│ │ │ -002bf580: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -002bf590: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002bf5a0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002bf5b0: 206e 616d 653a 2074 6674 7064 2d68 7061   name: tftpd-hpa
│ │ │ -002bf5c0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -002bf5d0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -002bf5e0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002bf5f0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -002bf600: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002bf610: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -002bf620: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -002bf630: 6561 7263 6828 2274 6674 7064 2d68 7061  earch("tftpd-hpa
│ │ │ -002bf640: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -002bf650: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -002bf660: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -002bf670: 7420 4578 6973 7473 202d 2074 6674 7064  t Exists - tftpd
│ │ │ -002bf680: 2d68 7061 2e73 6f63 6b65 740a 2020 2020  -hpa.socket.    
│ │ │ -002bf690: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002bf6a0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002bf6b0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002bf6c0: 6669 6c65 7320 7466 7470 642d 6870 612e  files tftpd-hpa.
│ │ │ -002bf6d0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -002bf6e0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -002bf6f0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002bf700: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002bf710: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -002bf720: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002bf730: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -002bf740: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -002bf750: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -002bf760: 6e61 6d65 3a20 4469 7361 626c 6520 7466  name: Disable tf
│ │ │ -002bf770: 7470 642d 6870 6120 5365 7276 6963 6520  tpd-hpa Service 
│ │ │ -002bf780: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -002bf790: 2074 6674 7064 2d68 7061 0a20 2020 2061   tftpd-hpa.    a
│ │ │ -002bf7a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002bf7b0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002bf7c0: 6d65 3a20 7466 7470 642d 6870 612e 736f  me: tftpd-hpa.so
│ │ │ -002bf7d0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -002bf7e0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002bf7f0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -002bf800: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -002bf810: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -002bf820: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -002bf830: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -002bf840: 6561 7263 6828 2274 6674 7064 2d68 7061  earch("tftpd-hpa
│ │ │ -002bf850: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -002bf860: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -002bf870: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -002bf880: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -002bf890: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -002bf8a0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002bf8b0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -002bf8c0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002bf8d0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -002bf8e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002bf8f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002bf900: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -002bf910: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002bf920: 7365 7276 6963 655f 7466 7470 5f64 6973  service_tftp_dis
│ │ │ -002bf930: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -002bf940: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -002bf950: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -002bf960: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -002bf970: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +002bea80: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +002bea90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +002beaa0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -002bf250: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002bf260: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002bf2a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002bf2b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002beb30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002beb40: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002beb90: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002bebd0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +002bebe0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002bebf0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002bec00: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002bec10: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +002bec20: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002bec30: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002bec40: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +002bec50: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +002bec60: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +002bec70: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +002bec80: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +002bec90: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002beca0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002becb0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002becc0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +002becd0: 7466 7470 5f64 6973 6162 6c65 640a 0a2d  tftp_disabled..-
│ │ │ +002bece0: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +002becf0: 6674 7064 2d68 7061 2053 6572 7669 6365  ftpd-hpa Service
│ │ │ +002bed00: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +002bed10: 6365 2074 6674 7064 2d68 7061 0a20 2062  ce tftpd-hpa.  b
│ │ │ +002bed20: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +002bed30: 2044 6973 6162 6c65 2074 6674 7064 2d68   Disable tftpd-h
│ │ │ +002bed40: 7061 2053 6572 7669 6365 202d 2043 6f6c  pa Service - Col
│ │ │ +002bed50: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +002bed60: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +002bed70: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +002bed80: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002bed90: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002beda0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002bedb0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +002bedc0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +002bedd0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +002bede0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002bedf0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002bee00: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +002bee10: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +002bee20: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +002bee30: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +002bee40: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002bee50: 626c 6520 7466 7470 642d 6870 6120 5365  ble tftpd-hpa Se
│ │ │ +002bee60: 7276 6963 6520 2d20 456e 7375 7265 2074  rvice - Ensure t
│ │ │ +002bee70: 6674 7064 2d68 7061 2e73 6572 7669 6365  ftpd-hpa.service
│ │ │ +002bee80: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +002bee90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +002beea0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +002beeb0: 6d65 3a20 7466 7470 642d 6870 612e 7365  me: tftpd-hpa.se
│ │ │ +002beec0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +002beed0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +002beee0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002beef0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +002bef00: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +002bef10: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +002bef20: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +002bef30: 6368 2822 7466 7470 642d 6870 612e 7365  ch("tftpd-hpa.se
│ │ │ +002bef40: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +002bef50: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +002bef60: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +002bef70: 7869 7374 7320 2d20 7466 7470 642d 6870  xists - tftpd-hp
│ │ │ +002bef80: 612e 736f 636b 6574 0a20 2020 2061 6e73  a.socket.    ans
│ │ │ +002bef90: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +002befa0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +002befb0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +002befc0: 6573 2074 6674 7064 2d68 7061 2e73 6f63  es tftpd-hpa.soc
│ │ │ +002befd0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +002befe0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002beff0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002bf000: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002bf010: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +002bf020: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002bf030: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002bf040: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002bf050: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +002bf060: 653a 2044 6973 6162 6c65 2074 6674 7064  e: Disable tftpd
│ │ │ +002bf070: 2d68 7061 2053 6572 7669 6365 202d 2044  -hpa Service - D
│ │ │ +002bf080: 6973 6162 6c65 2053 6f63 6b65 7420 7466  isable Socket tf
│ │ │ +002bf090: 7470 642d 6870 610a 2020 2020 616e 7369  tpd-hpa.    ansi
│ │ │ +002bf0a0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002bf0b0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002bf0c0: 2074 6674 7064 2d68 7061 2e73 6f63 6b65   tftpd-hpa.socke
│ │ │ +002bf0d0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +002bf0e0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +002bf0f0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002bf100: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +002bf110: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +002bf120: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +002bf130: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +002bf140: 6368 2822 7466 7470 642d 6870 612e 736f  ch("tftpd-hpa.so
│ │ │ +002bf150: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +002bf160: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +002bf170: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002bf180: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +002bf190: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002bf1a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002bf1b0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +002bf1c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002bf1d0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +002bf1e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002bf1f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002bf200: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +002bf210: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002bf220: 7669 6365 5f74 6674 705f 6469 7361 626c  vice_tftp_disabl
│ │ │ +002bf230: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +002bf240: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +002bf250: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +002bf260: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002bf270: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
R │ │ │ +002bf330: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +002bf340: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +002bf350: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +002beb20: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002beb50: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002beb60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002beba0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002bebb0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +002bf3d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002bf3f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +002bf3e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002bf400: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +002bf430: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +002bf450: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002bf480: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +002bf490: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +002bf4a0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +002bf4b0: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +002bf4c0: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +002bf4d0: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +002bf4e0: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +002bf4f0: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +002bf500: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +002bf510: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +002bf520: 616d 653a 2074 6674 7064 2d68 7061 2e73  ame: tftpd-hpa.s
│ │ │ +002bf530: 6572 7669 6365 0a20 2020 2020 2020 2065  ervice.        e
│ │ │ +002bf540: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002bf550: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +002bf560: 0a20 2020 2020 202d 206e 616d 653a 2074  .      - name: t
│ │ │ +002bf570: 6674 7064 2d68 7061 2e73 6f63 6b65 740a  ftpd-hpa.socket.
│ │ │ +002bf580: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +002bf590: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +002bf5a0: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ +002bf660: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002bf670: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002bf700: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002bf710: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002bf730: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002bf750: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002bf760: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +002bf7a0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +002bf7b0: 6520 6469 7361 626c 655f 7466 7470 642d e disable_tftpd- │ │ │ +002bf7c0: 6870 610a 0a63 6c61 7373 2064 6973 6162 hpa..class disab │ │ │ +002bf7d0: 6c65 5f74 6674 7064 2d68 7061 207b 0a20 le_tftpd-hpa {. │ │ │ +002bf7e0: 2073 6572 7669 6365 207b 2774 6674 7064 service {'tftpd │ │ │ +002bf7f0: 2d68 7061 273a 0a20 2020 2065 6e61 626c -hpa':. enabl │ │ │ +002bf800: 6520 3d26 6774 3b20 6661 6c73 652c 0a20 e => false,. │ │ │ +002bf810: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +002bf820: 2773 746f 7070 6564 272c 0a20 207d 0a7d 'stopped',. }.} │ │ │ +002bf830: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
Remediation OS │ │ │ +002bf8f0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +002bf900: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002bf910: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ +002bf950: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +002bf960: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +002bf970: 203d 205b 2274 6674 7064 2d68 7061 225d   = ["tftpd-hpa"]
│ │ │  002bf980: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation P │ │ │ -002c07a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -002c07b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002c0830: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002c0850: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002c08a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002c08d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002c0840: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002c0860: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002c08b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002c08c0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -002c08f0: 7665 5f72 7379 6e63 0a0a 636c 6173 7320  ve_rsync..class 
│ │ │ -002c0900: 7265 6d6f 7665 5f72 7379 6e63 207b 0a20  remove_rsync {. 
│ │ │ -002c0910: 2070 6163 6b61 6765 207b 2027 7273 796e   package { 'rsyn
│ │ │ -002c0920: 6327 3a0a 2020 2020 656e 7375 7265 203d  c':.    ensure =
│ │ │ -002c0930: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -002c0940: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -002c0a00: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002c0a10: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002c0a90: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002c0aa0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002c0ab0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002c0af0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002c0b00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002c0b20: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002c0b30: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -002c0b50: 556e 696e 7374 616c 6c20 7273 796e 6320  Uninstall rsync 
│ │ │ -002c0b60: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -002c0b70: 7273 796e 6320 6973 2072 656d 6f76 6564  rsync is removed
│ │ │ -002c0b80: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -002c0b90: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -002c0ba0: 206e 616d 653a 2072 7379 6e63 0a20 2020   name: rsync.   
│ │ │ -002c0bb0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -002c0bc0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002c0bd0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002c0be0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002c0bf0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002c0c00: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -002c0c10: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002c0c20: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002c0c30: 6163 6b61 6765 5f72 7379 6e63 5f72 656d  ackage_rsync_rem
│ │ │ -002c0c40: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation A
│ │ │ +002c07a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002c07b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +002c0840: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002c0860: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002c0880: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002c08b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002c08c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +002c08f0: 6e73 7461 6c6c 2072 7379 6e63 2050 6163  nstall rsync Pac
│ │ │ +002c0900: 6b61 6765 3a20 456e 7375 7265 2072 7379  kage: Ensure rsy
│ │ │ +002c0910: 6e63 2069 7320 7265 6d6f 7665 6427 0a20  nc is removed'. 
│ │ │ +002c0920: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002c0930: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +002c0940: 6d65 3a20 7273 796e 630a 2020 2020 7374  me: rsync.    st
│ │ │ +002c0950: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +002c0960: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +002c0970: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +002c0980: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002c0990: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002c09a0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +002c09b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002c09c0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +002c09d0: 6167 655f 7273 796e 635f 7265 6d6f 7665  age_rsync_remove
│ │ │ +002c09e0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002c09f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002c0aa0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002c0ab0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002c0b30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002c0b50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002c0ba0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002c0bd0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002c0b40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002c0b60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002c0bb0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002c0bc0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +002c0bf0: 7665 5f72 7379 6e63 0a0a 636c 6173 7320  ve_rsync..class 
│ │ │ +002c0c00: 7265 6d6f 7665 5f72 7379 6e63 207b 0a20  remove_rsync {. 
│ │ │ +002c0c10: 2070 6163 6b61 6765 207b 2027 7273 796e   package { 'rsyn
│ │ │ +002c0c20: 6327 3a0a 2020 2020 656e 7375 7265 203d  c':.    ensure =
│ │ │ +002c0c30: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002c0c40: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -002c1a80: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -002c1a90: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -002c1af0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -002c1b00: 6564 203d 205b 2272 7379 6e63 6422 5d0a  ed = ["rsyncd"].
│ │ │ -002c1b10: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ -002c1bd0: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -002c1be0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002c1c70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002c1c90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002c1ca0: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -002c1cc0: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -002c1cd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002c1cf0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002c1d00: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -002c1d20: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -002c1d30: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -002c1d40: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -002c1d50: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -002c1d60: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -002c1d70: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -002c1d80: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -002c1d90: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -002c1da0: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -002c1db0: 206e 616d 653a 2072 7379 6e63 642e 7365   name: rsyncd.se
│ │ │ -002c1dc0: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -002c1dd0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002c1de0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -002c1df0: 2020 2020 2020 2d20 6e61 6d65 3a20 7273        - name: rs
│ │ │ -002c1e00: 796e 6364 2e73 6f63 6b65 740a 2020 2020  yncd.socket.    
│ │ │ -002c1e10: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002c1e20: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -002c1e30: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediati │ │ │ -002c1ef0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002c1f00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002c1f80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002c1f90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002c1fa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002c1fe0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002c1ff0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002c2010: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -002c2030: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -002c2040: 7361 626c 655f 7273 796e 6364 0a0a 636c  sable_rsyncd..cl
│ │ │ -002c2050: 6173 7320 6469 7361 626c 655f 7273 796e  ass disable_rsyn
│ │ │ -002c2060: 6364 207b 0a20 2073 6572 7669 6365 207b  cd {.  service {
│ │ │ -002c2070: 2772 7379 6e63 6427 3a0a 2020 2020 656e  'rsyncd':.    en
│ │ │ -002c2080: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -002c2090: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002c20a0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -002c20b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002c2170: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002c2180: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002c2200: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002c2210: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002c2230: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002c2240: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002c2260: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002c2280: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002c22b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002c22c0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002c22d0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002c22e0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002c22f0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002c2300: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -002c2310: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -002c2320: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -002c2330: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002c2340: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002c2350: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002c2360: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002c2370: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002c2380: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002c2390: 7365 7276 6963 655f 7273 796e 6364 5f64  service_rsyncd_d
│ │ │ -002c23a0: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ -002c23b0: 2045 6e73 7572 6520 7273 796e 6364 2073   Ensure rsyncd s
│ │ │ -002c23c0: 6572 7669 6365 2069 7320 6469 7361 626c  ervice is disabl
│ │ │ -002c23d0: 6564 202d 2044 6973 6162 6c65 2073 6572  ed - Disable ser
│ │ │ -002c23e0: 7669 6365 2072 7379 6e63 640a 2020 626c  vice rsyncd.  bl
│ │ │ -002c23f0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -002c2400: 456e 7375 7265 2072 7379 6e63 6420 7365  Ensure rsyncd se
│ │ │ -002c2410: 7276 6963 6520 6973 2064 6973 6162 6c65  rvice is disable
│ │ │ -002c2420: 6420 2d20 436f 6c6c 6563 7420 7379 7374  d - Collect syst
│ │ │ -002c2430: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ -002c2440: 7365 6e74 2069 6e0a 2020 2020 2020 7468  sent in.      th
│ │ │ -002c2450: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -002c2460: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002c2470: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002c2480: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002c2490: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -002c24a0: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -002c24b0: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -002c24c0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -002c24d0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -002c24e0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -002c24f0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -002c2500: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -002c2510: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -002c2520: 202d 206e 616d 653a 2045 6e73 7572 6520   - name: Ensure 
│ │ │ -002c2530: 7273 796e 6364 2073 6572 7669 6365 2069  rsyncd service i
│ │ │ -002c2540: 7320 6469 7361 626c 6564 202d 2045 6e73  s disabled - Ens
│ │ │ -002c2550: 7572 6520 7273 796e 6364 2e73 6572 7669  ure rsyncd.servi
│ │ │ -002c2560: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -002c2570: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002c2580: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002c2590: 6e61 6d65 3a20 7273 796e 6364 2e73 6572  name: rsyncd.ser
│ │ │ -002c25a0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -002c25b0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -002c25c0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -002c25d0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -002c25e0: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -002c25f0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -002c2600: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -002c2610: 6828 2272 7379 6e63 642e 7365 7276 6963  h("rsyncd.servic
│ │ │ -002c2620: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -002c2630: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -002c2640: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -002c2650: 7320 2d20 7273 796e 6364 2e73 6f63 6b65  s - rsyncd.socke
│ │ │ -002c2660: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -002c2670: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002c2680: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002c2690: 2d75 6e69 742d 6669 6c65 7320 7273 796e  -unit-files rsyn
│ │ │ -002c26a0: 6364 2e73 6f63 6b65 740a 2020 2020 7265  cd.socket.    re
│ │ │ -002c26b0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -002c26c0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -002c26d0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002c26e0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002c26f0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -002c2700: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -002c2710: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -002c2720: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -002c2730: 202d 206e 616d 653a 2045 6e73 7572 6520   - name: Ensure 
│ │ │ -002c2740: 7273 796e 6364 2073 6572 7669 6365 2069  rsyncd service i
│ │ │ -002c2750: 7320 6469 7361 626c 6564 202d 2044 6973  s disabled - Dis
│ │ │ -002c2760: 6162 6c65 2053 6f63 6b65 7420 7273 796e  able Socket rsyn
│ │ │ -002c2770: 6364 0a20 2020 2061 6e73 6962 6c65 2e62  cd.    ansible.b
│ │ │ -002c2780: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002c2790: 2020 2020 2020 6e61 6d65 3a20 7273 796e        name: rsyn
│ │ │ -002c27a0: 6364 2e73 6f63 6b65 740a 2020 2020 2020  cd.socket.      
│ │ │ -002c27b0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -002c27c0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -002c27d0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -002c27e0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -002c27f0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002c2800: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -002c2810: 2069 7320 7365 6172 6368 2822 7273 796e   is search("rsyn
│ │ │ -002c2820: 6364 2e73 6f63 6b65 7422 2c20 6d75 6c74  cd.socket", mult
│ │ │ -002c2830: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -002c2840: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -002c2850: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002c2860: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -002c2870: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002c2880: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002c2890: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002c28a0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002c28b0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002c28c0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002c28d0: 2d20 7365 7276 6963 655f 7273 796e 6364  - service_rsyncd
│ │ │ -002c28e0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -002c28f0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -002c2900: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -002c2910: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -002c2920: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -002c2930: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Complexity │ │ │ +002c1b20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002c1b40: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002c1b50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c1b60: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002c1b70: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002c1b90: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002c1bc0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002c1bd0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002c1be0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002c1bf0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002c1c00: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002c1c10: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002c1c20: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +002c1c30: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +002c1c40: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002c1c50: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002c1c60: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002c1c70: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002c1c80: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002c1c90: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002c1ca0: 6572 7669 6365 5f72 7379 6e63 645f 6469  ervice_rsyncd_di
│ │ │ +002c1cb0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +002c1cc0: 456e 7375 7265 2072 7379 6e63 6420 7365  Ensure rsyncd se
│ │ │ +002c1cd0: 7276 6963 6520 6973 2064 6973 6162 6c65  rvice is disable
│ │ │ +002c1ce0: 6420 2d20 4469 7361 626c 6520 7365 7276  d - Disable serv
│ │ │ +002c1cf0: 6963 6520 7273 796e 6364 0a20 2062 6c6f  ice rsyncd.  blo
│ │ │ +002c1d00: 636b 3a0a 0a20 202d 206e 616d 653a 2045  ck:..  - name: E
│ │ │ +002c1d10: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ +002c1d20: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ +002c1d30: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +002c1d40: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +002c1d50: 656e 7420 696e 0a20 2020 2020 2074 6865  ent in.      the
│ │ │ +002c1d60: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +002c1d70: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +002c1d80: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +002c1d90: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +002c1da0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +002c1db0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +002c1dc0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +002c1dd0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002c1de0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002c1df0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +002c1e00: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002c1e10: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002c1e20: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002c1e30: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ +002c1e40: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ +002c1e50: 2064 6973 6162 6c65 6420 2d20 456e 7375   disabled - Ensu
│ │ │ +002c1e60: 7265 2072 7379 6e63 642e 7365 7276 6963  re rsyncd.servic
│ │ │ +002c1e70: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +002c1e80: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002c1e90: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002c1ea0: 616d 653a 2072 7379 6e63 642e 7365 7276  ame: rsyncd.serv
│ │ │ +002c1eb0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +002c1ec0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +002c1ed0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002c1ee0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +002c1ef0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +002c1f00: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +002c1f10: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002c1f20: 2822 7273 796e 6364 2e73 6572 7669 6365  ("rsyncd.service
│ │ │ +002c1f30: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +002c1f40: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +002c1f50: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +002c1f60: 202d 2072 7379 6e63 642e 736f 636b 6574   - rsyncd.socket
│ │ │ +002c1f70: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002c1f80: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +002c1f90: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +002c1fa0: 756e 6974 2d66 696c 6573 2072 7379 6e63  unit-files rsync
│ │ │ +002c1fb0: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ +002c1fc0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002c1fd0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002c1fe0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002c1ff0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002c2000: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002c2010: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002c2020: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002c2030: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002c2040: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ +002c2050: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ +002c2060: 2064 6973 6162 6c65 6420 2d20 4469 7361   disabled - Disa
│ │ │ +002c2070: 626c 6520 536f 636b 6574 2072 7379 6e63  ble Socket rsync
│ │ │ +002c2080: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +002c2090: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +002c20a0: 2020 2020 206e 616d 653a 2072 7379 6e63       name: rsync
│ │ │ +002c20b0: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ +002c20c0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002c20d0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +002c20e0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +002c20f0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +002c2100: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002c2110: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002c2120: 6973 2073 6561 7263 6828 2272 7379 6e63  is search("rsync
│ │ │ +002c2130: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ +002c2140: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +002c2150: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +002c2160: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +002c2170: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +002c2180: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002c2190: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002c21a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002c21b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +002c21c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002c21d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002c21e0: 2073 6572 7669 6365 5f72 7379 6e63 645f   service_rsyncd_
│ │ │ +002c21f0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +002c2200: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +002c2210: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +002c2220: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +002c2230: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +002c2240: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +002c2300: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ +002c2310: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002c2320: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002c2330: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002c2340: 7365 2220 6964 3d22 6964 3131 3336 223e se" id="id1136"> │ │ │ +002c2350: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002c23c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ +002c23a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002c23b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ +002c23f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ +002c2400: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ +002c2440: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ +002c2450: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ +002c2460: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ +002c2470: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ +002c2480: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ +002c2490: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ +002c24a0: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ +002c24b0: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ +002c24c0: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ +002c24d0: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ +002c24e0: 2020 202d 206e 616d 653a 2072 7379 6e63     - name: rsync
│ │ │ +002c24f0: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ +002c2500: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002c2510: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +002c2520: 7275 650a 2020 2020 2020 2d20 6e61 6d65  rue.      - name
│ │ │ +002c2530: 3a20 7273 796e 6364 2e73 6f63 6b65 740a  : rsyncd.socket.
│ │ │ +002c2540: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +002c2550: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +002c2560: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ +002c2620: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002c2630: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002c26c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002c26d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002c26f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002c2710: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002c2720: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +002c2760: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +002c2770: 6520 6469 7361 626c 655f 7273 796e 6364 e disable_rsyncd │ │ │ +002c2780: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +002c2790: 7273 796e 6364 207b 0a20 2073 6572 7669 rsyncd {. servi │ │ │ +002c27a0: 6365 207b 2772 7379 6e63 6427 3a0a 2020 ce {'rsyncd':. │ │ │ +002c27b0: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +002c27c0: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +002c27d0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +002c27e0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +002c27f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ +002c28a0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +002c28b0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +002c28c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +002c2900: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +002c2910: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +002c2920: 0a6d 6173 6b65 6420 3d20 5b22 7273 796e  .masked = ["rsyn
│ │ │ +002c2930: 6364 225d 0a3c 2f63 6f64 653e 3c2f 7072  cd"].
Reme │ │ │ -002c4190: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002c41a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002c4230: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002c4260: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002c4280: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002c4290: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002c42b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002c42c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -002c42e0: 6c75 6465 2072 656d 6f76 655f 6375 7073  lude remove_cups
│ │ │ -002c42f0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f63  ..class remove_c
│ │ │ -002c4300: 7570 7320 7b0a 2020 7061 636b 6167 6520  ups {.  package 
│ │ │ -002c4310: 7b20 2763 7570 7327 3a0a 2020 2020 656e  { 'cups':.    en
│ │ │ -002c4320: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002c4330: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002c43f0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002c4400: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002c4410: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002c44b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002c4500: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002c4540: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002c4550: 4355 5053 2050 6163 6b61 6765 3a20 456e  CUPS Package: En
│ │ │ -002c4560: 7375 7265 2063 7570 7320 6973 2072 656d  sure cups is rem
│ │ │ -002c4570: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002c4580: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002c4590: 0a20 2020 206e 616d 653a 2063 7570 730a  .    name: cups.
│ │ │ -002c45a0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -002c45b0: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -002c45c0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002c45d0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002c45e0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002c45f0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002c4600: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002c4610: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002c4620: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002c4630: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002c4640: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002c4650: 640a 2020 2d20 7061 636b 6167 655f 6375  d.  - package_cu
│ │ │ -002c4660: 7073 5f72 656d 6f76 6564 0a20 202d 2075  ps_removed.  - u
│ │ │ -002c4670: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +002c4190: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +002c41a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +002c41b0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Co │ │ │ -002c4490: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002c44c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002c44e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c44f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002c4510: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c4520: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +002c4250: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002c42a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002c42e0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +002c42f0: 4355 5053 2050 6163 6b61 6765 3a20 456e  CUPS Package: En
│ │ │ +002c4300: 7375 7265 2063 7570 7320 6973 2072 656d  sure cups is rem
│ │ │ +002c4310: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002c4320: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +002c4330: 0a20 2020 206e 616d 653a 2063 7570 730a  .    name: cups.
│ │ │ +002c4340: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002c4350: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +002c4360: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002c4370: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002c4380: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +002c4390: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +002c43a0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +002c43b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002c43c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002c43d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002c43e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002c43f0: 640a 2020 2d20 7061 636b 6167 655f 6375  d.  - package_cu
│ │ │ +002c4400: 7073 5f72 656d 6f76 6564 0a20 202d 2075  ps_removed.  - u
│ │ │ +002c4410: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +002c4420: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002c44e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002c44f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ +002c4230: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002c4260: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002c4280: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002c4290: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002c42b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002c42c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +002c45c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002c45d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +002c4630: 5f63 7570 730a 0a63 6c61 7373 2072 656d  _cups..class rem
│ │ │ +002c4640: 6f76 655f 6375 7073 207b 0a20 2070 6163  ove_cups {.  pac
│ │ │ +002c4650: 6b61 6765 207b 2027 6375 7073 273a 0a20  kage { 'cups':. 
│ │ │ +002c4660: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002c4670: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002c4680: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ -002c5960: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -002c5970: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -002c59c0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -002c59d0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -002c59e0: 3d20 5b22 6375 7073 225d 0a3c 2f63 6f64  = ["cups"].
Reme │ │ │ -002c5aa0: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ -002c5ab0: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
low
Disru │ │ │ +002c45a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002c45b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002c45f0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002c4600: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002c5bb0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002c5be0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ -002c5c00: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ -002c5c10: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ -002c5c20: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ -002c5c30: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ -002c5c40: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ -002c5c50: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ -002c5c60: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ -002c5c70: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ -002c5c80: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ -002c5c90: 3a20 6375 7073 2e73 6572 7669 6365 0a20  : cups.service. 
│ │ │ -002c5ca0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -002c5cb0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -002c5cc0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -002c5cd0: 206e 616d 653a 2063 7570 732e 736f 636b   name: cups.sock
│ │ │ -002c5ce0: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -002c5cf0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002c5d00: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -002c5d20: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Re │ │ │ -002c5dc0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002c5dd0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002c5de0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -002c5b70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ -002c5b80: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ -002c5bc0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002c5bd0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002c5e70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002c5e80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002c5ed0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -002c5f10: 6c75 6465 2064 6973 6162 6c65 5f63 7570  lude disable_cup
│ │ │ -002c5f20: 730a 0a63 6c61 7373 2064 6973 6162 6c65  s..class disable
│ │ │ -002c5f30: 5f63 7570 7320 7b0a 2020 7365 7276 6963  _cups {.  servic
│ │ │ -002c5f40: 6520 7b27 6375 7073 273a 0a20 2020 2065  e {'cups':.    e
│ │ │ -002c5f50: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -002c5f60: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -002c5f70: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -002c5f80: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -002c6040: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -002c6050: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -002c60d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002c6160: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002c6170: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -002c5e60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002c5e90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002c5ea0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002c5ee0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -002c5ef0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -002c60e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002c60f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002c6130: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002c6140: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ -002c6190: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002c61a0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002c61b0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002c61c0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002c61d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002c61e0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002c61f0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002c6200: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002c6210: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -002c6220: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002c6230: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002c6240: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002c6250: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -002c6260: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -002c6270: 6572 7669 6365 5f63 7570 735f 6469 7361  ervice_cups_disa
│ │ │ -002c6280: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ -002c6290: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ -002c62a0: 653a 2044 6973 6162 6c65 2074 6865 2043  e: Disable the C
│ │ │ -002c62b0: 5550 5320 5365 7276 6963 6520 2d20 4469  UPS Service - Di
│ │ │ -002c62c0: 7361 626c 6520 7365 7276 6963 6520 6375  sable service cu
│ │ │ -002c62d0: 7073 0a20 2062 6c6f 636b 3a0a 0a20 202d  ps.  block:..  -
│ │ │ -002c62e0: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ -002c62f0: 6865 2043 5550 5320 5365 7276 6963 6520  he CUPS Service 
│ │ │ -002c6300: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002c6310: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002c6320: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002c6330: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002c6340: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002c6350: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002c6360: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -002c6370: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -002c6380: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -002c6390: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002c63a0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002c63b0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002c63c0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -002c63d0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002c63e0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002c63f0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002c6400: 2044 6973 6162 6c65 2074 6865 2043 5550   Disable the CUP
│ │ │ -002c6410: 5320 5365 7276 6963 6520 2d20 456e 7375  S Service - Ensu
│ │ │ -002c6420: 7265 2063 7570 732e 7365 7276 6963 6520  re cups.service 
│ │ │ -002c6430: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -002c6440: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002c6450: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002c6460: 653a 2063 7570 732e 7365 7276 6963 650a  e: cups.service.
│ │ │ -002c6470: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002c6480: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -002c6490: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002c64a0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -002c64b0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -002c64c0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -002c64d0: 6573 2069 7320 7365 6172 6368 2822 6375  es is search("cu
│ │ │ -002c64e0: 7073 2e73 6572 7669 6365 222c 206d 756c  ps.service", mul
│ │ │ -002c64f0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -002c6500: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -002c6510: 6b65 7420 4578 6973 7473 202d 2063 7570  ket Exists - cup
│ │ │ -002c6520: 732e 736f 636b 6574 0a20 2020 2061 6e73  s.socket.    ans
│ │ │ -002c6530: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002c6540: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002c6550: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002c6560: 6573 2063 7570 732e 736f 636b 6574 0a20  es cups.socket. 
│ │ │ -002c6570: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -002c6580: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -002c6590: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -002c65a0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -002c65b0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -002c65c0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -002c65d0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -002c65e0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002c65f0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -002c6600: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ -002c6610: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -002c6620: 2053 6f63 6b65 7420 6375 7073 0a20 2020   Socket cups.   
│ │ │ -002c6630: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002c6640: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002c6650: 6e61 6d65 3a20 6375 7073 2e73 6f63 6b65  name: cups.socke
│ │ │ -002c6660: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002c6670: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002c6680: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002c6690: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002c66a0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002c66b0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002c66c0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002c66d0: 6368 2822 6375 7073 2e73 6f63 6b65 7422  ch("cups.socket"
│ │ │ -002c66e0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -002c66f0: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ -002c6700: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002c6710: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002c6720: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002c6730: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002c6740: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002c6750: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002c6760: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002c6770: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002c6780: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002c6790: 640a 2020 2d20 7365 7276 6963 655f 6375  d.  - service_cu
│ │ │ -002c67a0: 7073 5f64 6973 6162 6c65 640a 2020 2d20  ps_disabled.  - 
│ │ │ -002c67b0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -002c67c0: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77  block.  - unknow
│ │ │ -002c67d0: 6e5f 7365 7665 7269 7479 0a20 2077 6865  n_severity.  whe
│ │ │ -002c67e0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002c67f0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002c6800: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.Remediation Ans
│ │ │ +002c5960: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002c5970: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +002c59f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002c5a10: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002c5a60: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002c5a90: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +002c5ab0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +002c5ac0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +002c5ad0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +002c5ae0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +002c5af0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002c5b00: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +002c5b10: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +002c5b20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002c5b30: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +002c5b40: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002c5b50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002c5b60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002c5b70: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002c5b80: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +002c5b90: 655f 6375 7073 5f64 6973 6162 6c65 640a  e_cups_disabled.
│ │ │ +002c5ba0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +002c5bb0: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469  rity..- name: Di
│ │ │ +002c5bc0: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ +002c5bd0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002c5be0: 2073 6572 7669 6365 2063 7570 730a 2020   service cups.  
│ │ │ +002c5bf0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002c5c00: 3a20 4469 7361 626c 6520 7468 6520 4355  : Disable the CU
│ │ │ +002c5c10: 5053 2053 6572 7669 6365 202d 2043 6f6c  PS Service - Col
│ │ │ +002c5c20: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +002c5c30: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +002c5c40: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +002c5c50: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002c5c60: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002c5c70: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002c5c80: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +002c5c90: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +002c5ca0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +002c5cb0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002c5cc0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002c5cd0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +002c5ce0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +002c5cf0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +002c5d00: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +002c5d10: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002c5d20: 626c 6520 7468 6520 4355 5053 2053 6572  ble the CUPS Ser
│ │ │ +002c5d30: 7669 6365 202d 2045 6e73 7572 6520 6375  vice - Ensure cu
│ │ │ +002c5d40: 7073 2e73 6572 7669 6365 2069 7320 4d61  ps.service is Ma
│ │ │ +002c5d50: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +002c5d60: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002c5d70: 3a0a 2020 2020 2020 6e61 6d65 3a20 6375  :.      name: cu
│ │ │ +002c5d80: 7073 2e73 6572 7669 6365 0a20 2020 2020  ps.service.     
│ │ │ +002c5d90: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002c5da0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002c5db0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002c5dc0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002c5dd0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002c5de0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002c5df0: 2073 6561 7263 6828 2263 7570 732e 7365   search("cups.se
│ │ │ +002c5e00: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +002c5e10: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +002c5e20: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +002c5e30: 7869 7374 7320 2d20 6375 7073 2e73 6f63  xists - cups.soc
│ │ │ +002c5e40: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002c5e50: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002c5e60: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002c5e70: 7374 2d75 6e69 742d 6669 6c65 7320 6375  st-unit-files cu
│ │ │ +002c5e80: 7073 2e73 6f63 6b65 740a 2020 2020 7265  ps.socket.    re
│ │ │ +002c5e90: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +002c5ea0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +002c5eb0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002c5ec0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002c5ed0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002c5ee0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +002c5ef0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +002c5f00: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +002c5f10: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +002c5f20: 2074 6865 2043 5550 5320 5365 7276 6963   the CUPS Servic
│ │ │ +002c5f30: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +002c5f40: 6574 2063 7570 730a 2020 2020 616e 7369  et cups.    ansi
│ │ │ +002c5f50: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002c5f60: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002c5f70: 2063 7570 732e 736f 636b 6574 0a20 2020   cups.socket.   
│ │ │ +002c5f80: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002c5f90: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +002c5fa0: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +002c5fb0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002c5fc0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002c5fd0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +002c5fe0: 6e65 7320 6973 2073 6561 7263 6828 2263  nes is search("c
│ │ │ +002c5ff0: 7570 732e 736f 636b 6574 222c 206d 756c  ups.socket", mul
│ │ │ +002c6000: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002c6010: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002c6020: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002c6030: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002c6040: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002c6050: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +002c6060: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002c6070: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002c6080: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002c6090: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002c60a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002c60b0: 2073 6572 7669 6365 5f63 7570 735f 6469   service_cups_di
│ │ │ +002c60c0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002c60d0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002c60e0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002c60f0: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ +002c6100: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002c6110: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002c6120: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediat
│ │ │ +002c61e0: 696f 6e20 4b75 6265 726e 6574 6573 2073  ion Kubernetes s
│ │ │ +002c61f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ +002c5a20: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002c5a30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002c5a70: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002c5a80: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Reboot:true │ │ │ +002c62f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ +002c6330: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ +002c6340: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ +002c6350: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ +002c6360: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ +002c6370: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ +002c6380: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ +002c6390: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ +002c63a0: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ +002c63b0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ +002c63c0: 2020 2020 2020 2d20 6e61 6d65 3a20 6375        - name: cu
│ │ │ +002c63d0: 7073 2e73 6572 7669 6365 0a20 2020 2020  ps.service.     
│ │ │ +002c63e0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002c63f0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ +002c6400: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ +002c6410: 653a 2063 7570 732e 736f 636b 6574 0a20  e: cups.socket. 
│ │ │ +002c6420: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +002c6430: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +002c6440: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e  sk: true.
│ │ │ +002c6450: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002c6500: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002c6510: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002c6520: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Com │ │ │ +002c6280: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002c62b0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +002c62c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ +002c6300: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002c6310: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +002c65c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002c65e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002c6610: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002c65a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002c65b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002c65d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002c65f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002c6600: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +002c6650: 2064 6973 6162 6c65 5f63 7570 730a 0a63 disable_cups..c │ │ │ +002c6660: 6c61 7373 2064 6973 6162 6c65 5f63 7570 lass disable_cup │ │ │ +002c6670: 7320 7b0a 2020 7365 7276 6963 6520 7b27 s {. service {' │ │ │ +002c6680: 6375 7073 273a 0a20 2020 2065 6e61 626c cups':. enabl │ │ │ +002c6690: 6520 3d26 6774 3b20 6661 6c73 652c 0a20 e => false,. │ │ │ +002c66a0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +002c66b0: 2773 746f 7070 6564 272c 0a20 207d 0a7d 'stopped',. }.} │ │ │ +002c66c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

Remediation OS │ │ │ +002c6780: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +002c6790: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002c67a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ +002c67e0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +002c67f0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +002c6800: 203d 205b 2263 7570 7322 5d0a 3c2f 636f   = ["cups"].
< │ │ │ 002c6820: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002c6830: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002c6840: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002c6850: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002c6860: 6431 3134 3922 2074 6162 696e 6465 783d d1149" tabindex= │ │ │ 002c6870: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -182241,90 +182241,90 @@ │ │ │ 002c7e00: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 002c7e10: 743d 2223 6964 3131 3531 2220 7461 6269 t="#id1151" tabi │ │ │ 002c7e20: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 002c7e30: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 002c7e40: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 002c7e50: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 002c7e60: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -002c7e70: 223e 5265 6d65 6469 6174 696f 6e20 5075 ">Remediation Pu │ │ │ -002c7e80: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002c7e90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002c7f10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002c7f30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002c7f80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002c7fb0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -002c7fd0: 655f 7371 7569 640a 0a63 6c61 7373 2072  e_squid..class r
│ │ │ -002c7fe0: 656d 6f76 655f 7371 7569 6420 7b0a 2020  emove_squid {.  
│ │ │ -002c7ff0: 7061 636b 6167 6520 7b20 2773 7175 6964  package { 'squid
│ │ │ -002c8000: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002c8010: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002c8020: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002c80e0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002c80f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002c8170: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002c81b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ -002c7f40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002c7f50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002c7f90: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002c7fa0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ -002c8180: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002c81a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002c81d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002c81f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002c8220: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -002c8230: 6e69 6e73 7461 6c6c 2073 7175 6964 2050  ninstall squid P
│ │ │ -002c8240: 6163 6b61 6765 3a20 456e 7375 7265 2073  ackage: Ensure s
│ │ │ -002c8250: 7175 6964 2069 7320 7265 6d6f 7665 6427  quid is removed'
│ │ │ -002c8260: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -002c8270: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -002c8280: 6e61 6d65 3a20 7371 7569 640a 2020 2020  name: squid.    
│ │ │ -002c8290: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002c82a0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -002c82b0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002c82c0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002c82d0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002c82e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002c82f0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002c8300: 655f 7371 7569 645f 7265 6d6f 7665 640a  e_squid_removed.
│ │ │ -002c8310: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -002c8320: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediation An
│ │ │ +002c7e80: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +002c7e90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
│ │ │ +002c7f10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002c7f30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002c7f80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002c7fb0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002c7f20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002c7f40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002c7f90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002c7fa0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +002c7fd0: 7374 616c 6c20 7371 7569 6420 5061 636b  stall squid Pack
│ │ │ +002c7fe0: 6167 653a 2045 6e73 7572 6520 7371 7569  age: Ensure squi
│ │ │ +002c7ff0: 6420 6973 2072 656d 6f76 6564 270a 2020  d is removed'.  
│ │ │ +002c8000: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002c8010: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +002c8020: 653a 2073 7175 6964 0a20 2020 2073 7461  e: squid.    sta
│ │ │ +002c8030: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +002c8040: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +002c8050: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002c8060: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002c8070: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002c8080: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002c8090: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +002c80a0: 7175 6964 5f72 656d 6f76 6564 0a20 202d  quid_removed.  -
│ │ │ +002c80b0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +002c80c0: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +002c80d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002c8180: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002c8190: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002c8210: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002c8230: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002c8280: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002c82b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002c8220: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002c8240: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002c8290: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002c82a0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +002c82d0: 7665 5f73 7175 6964 0a0a 636c 6173 7320  ve_squid..class 
│ │ │ +002c82e0: 7265 6d6f 7665 5f73 7175 6964 207b 0a20  remove_squid {. 
│ │ │ +002c82f0: 2070 6163 6b61 6765 207b 2027 7371 7569   package { 'squi
│ │ │ +002c8300: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +002c8310: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002c8320: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remed │ │ │ -002c9130: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002c9140: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002c9150: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -002c91a0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -002c91b0: 735d 0a6d 6173 6b65 6420 3d20 5b22 7371 s].masked = ["sq │ │ │ -002c91c0: 7569 6422 5d0a 3c2f 636f 6465 3e3c 2f70 uid"].

Remediati │ │ │ -002c9280: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -002c9290: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ -002c9390: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ -002c93d0: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ -002c93e0: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ -002c93f0: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ -002c9400: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ -002c9410: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ -002c9420: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ -002c9430: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ -002c9440: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ -002c9450: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ -002c9460: 2020 2020 202d 206e 616d 653a 2073 7175       - name: squ
│ │ │ -002c9470: 6964 2e73 6572 7669 6365 0a20 2020 2020  id.service.     
│ │ │ -002c9480: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002c9490: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -002c94a0: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ -002c94b0: 653a 2073 7175 6964 2e73 6f63 6b65 740a  e: squid.socket.
│ │ │ -002c94c0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002c94d0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002c94e0: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ -002c95a0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002c95b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002c9320: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002c9330: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002c9350: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ -002c9360: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ -002c93a0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c93b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -002c9640: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002c9650: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002c9670: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002c9690: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002c96a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002c96e0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002c96f0: 6520 6469 7361 626c 655f 7371 7569 640a e disable_squid. │ │ │ -002c9700: 0a63 6c61 7373 2064 6973 6162 6c65 5f73 .class disable_s │ │ │ -002c9710: 7175 6964 207b 0a20 2073 6572 7669 6365 quid {. service │ │ │ -002c9720: 207b 2773 7175 6964 273a 0a20 2020 2065 {'squid':. e │ │ │ -002c9730: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ -002c9740: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ -002c9750: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ -002c9760: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ -002c9820: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002c9830: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002c98b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002c98c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002c98d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002c9910: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002c9920: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002c9940: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002c9950: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -002c9970: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002c9980: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002c9990: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002c99a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002c99b0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002c99c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002c99d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002c99e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002c99f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002c9a00: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -002c9a10: 7175 6964 5f64 6973 6162 6c65 640a 2020  quid_disabled.  
│ │ │ -002c9a20: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -002c9a30: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ -002c9a40: 626c 6520 5371 7569 6420 2d20 4469 7361  ble Squid - Disa
│ │ │ -002c9a50: 626c 6520 7365 7276 6963 6520 7371 7569  ble service squi
│ │ │ -002c9a60: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -002c9a70: 6e61 6d65 3a20 4469 7361 626c 6520 5371  name: Disable Sq
│ │ │ -002c9a80: 7569 6420 2d20 436f 6c6c 6563 7420 7379  uid - Collect sy
│ │ │ -002c9a90: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002c9aa0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002c9ab0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002c9ac0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002c9ad0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002c9ae0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -002c9af0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -002c9b00: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002c9b10: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002c9b20: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002c9b30: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002c9b40: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002c9b50: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002c9b60: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002c9b70: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002c9b80: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ -002c9b90: 6964 202d 2045 6e73 7572 6520 7371 7569  id - Ensure squi
│ │ │ -002c9ba0: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -002c9bb0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -002c9bc0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002c9bd0: 0a20 2020 2020 206e 616d 653a 2073 7175  .      name: squ
│ │ │ -002c9be0: 6964 2e73 6572 7669 6365 0a20 2020 2020  id.service.     
│ │ │ -002c9bf0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002c9c00: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -002c9c10: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -002c9c20: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002c9c30: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002c9c40: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -002c9c50: 2073 6561 7263 6828 2273 7175 6964 2e73   search("squid.s
│ │ │ -002c9c60: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -002c9c70: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -002c9c80: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -002c9c90: 4578 6973 7473 202d 2073 7175 6964 2e73  Exists - squid.s
│ │ │ -002c9ca0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -002c9cb0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -002c9cc0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -002c9cd0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002c9ce0: 7371 7569 642e 736f 636b 6574 0a20 2020  squid.socket.   
│ │ │ -002c9cf0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002c9d00: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002c9d10: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002c9d20: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002c9d30: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002c9d40: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -002c9d50: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002c9d60: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002c9d70: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002c9d80: 626c 6520 5371 7569 6420 2d20 4469 7361  ble Squid - Disa
│ │ │ -002c9d90: 626c 6520 536f 636b 6574 2073 7175 6964  ble Socket squid
│ │ │ -002c9da0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002c9db0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002c9dc0: 2020 2020 6e61 6d65 3a20 7371 7569 642e      name: squid.
│ │ │ -002c9dd0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002c9de0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002c9df0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002c9e00: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002c9e10: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -002c9e20: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002c9e30: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -002c9e40: 2073 6561 7263 6828 2273 7175 6964 2e73   search("squid.s
│ │ │ -002c9e50: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -002c9e60: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -002c9e70: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002c9e80: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002c9e90: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002c9ea0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -002c9eb0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002c9ec0: 2020 2d20 7365 7276 6963 655f 7371 7569    - service_squi
│ │ │ -002c9ed0: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -002c9ee0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -002c9ef0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e  lock.  - unknown
│ │ │ -002c9f00: 5f73 6576 6572 6974 790a 2020 7768 656e  _severity.  when
│ │ │ -002c9f10: 3a20 2820 2273 7175 6964 2220 696e 2061  : ( "squid" in a
│ │ │ -002c9f20: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -002c9f30: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ -002c9f40: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -002c9f50: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -002c9f60: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).
Com │ │ │ +002c91d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002c9200: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002c9220: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002c9230: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002c9250: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002c9260: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002c9280: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002c9290: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002c92a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002c92b0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002c92c0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002c92d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002c92e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002c92f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002c9300: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +002c9310: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002c9320: 6963 655f 7371 7569 645f 6469 7361 626c  ice_squid_disabl
│ │ │ +002c9330: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +002c9340: 6576 6572 6974 790a 0a2d 206e 616d 653a  everity..- name:
│ │ │ +002c9350: 2044 6973 6162 6c65 2053 7175 6964 202d   Disable Squid -
│ │ │ +002c9360: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +002c9370: 2073 7175 6964 0a20 2062 6c6f 636b 3a0a   squid.  block:.
│ │ │ +002c9380: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002c9390: 6c65 2053 7175 6964 202d 2043 6f6c 6c65  le Squid - Colle
│ │ │ +002c93a0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +002c93b0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +002c93c0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +002c93d0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002c93e0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002c93f0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002c9400: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +002c9410: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +002c9420: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +002c9430: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002c9440: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002c9450: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +002c9460: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002c9470: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002c9480: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002c9490: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002c94a0: 6520 5371 7569 6420 2d20 456e 7375 7265  e Squid - Ensure
│ │ │ +002c94b0: 2073 7175 6964 2e73 6572 7669 6365 2069   squid.service i
│ │ │ +002c94c0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +002c94d0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002c94e0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002c94f0: 3a20 7371 7569 642e 7365 7276 6963 650a  : squid.service.
│ │ │ +002c9500: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002c9510: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +002c9520: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002c9530: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002c9540: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +002c9550: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002c9560: 6573 2069 7320 7365 6172 6368 2822 7371  es is search("sq
│ │ │ +002c9570: 7569 642e 7365 7276 6963 6522 2c20 6d75  uid.service", mu
│ │ │ +002c9580: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +002c9590: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +002c95a0: 636b 6574 2045 7869 7374 7320 2d20 7371  cket Exists - sq
│ │ │ +002c95b0: 7569 642e 736f 636b 6574 0a20 2020 2061  uid.socket.    a
│ │ │ +002c95c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002c95d0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +002c95e0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002c95f0: 696c 6573 2073 7175 6964 2e73 6f63 6b65  iles squid.socke
│ │ │ +002c9600: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +002c9610: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002c9620: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002c9630: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002c9640: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +002c9650: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +002c9660: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002c9670: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002c9680: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002c9690: 2044 6973 6162 6c65 2053 7175 6964 202d   Disable Squid -
│ │ │ +002c96a0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +002c96b0: 7371 7569 640a 2020 2020 616e 7369 626c  squid.    ansibl
│ │ │ +002c96c0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +002c96d0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +002c96e0: 7175 6964 2e73 6f63 6b65 740a 2020 2020  quid.socket.    
│ │ │ +002c96f0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002c9700: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002c9710: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +002c9720: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002c9730: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002c9740: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002c9750: 6573 2069 7320 7365 6172 6368 2822 7371  es is search("sq
│ │ │ +002c9760: 7569 642e 736f 636b 6574 222c 206d 756c  uid.socket", mul
│ │ │ +002c9770: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002c9780: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +002c9790: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002c97a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002c97b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002c97c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002c97d0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002c97e0: 5f73 7175 6964 5f64 6973 6162 6c65 640a  _squid_disabled.
│ │ │ +002c97f0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002c9800: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ +002c9810: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ +002c9820: 2077 6865 6e3a 2028 2022 7371 7569 6422   when: ( "squid"
│ │ │ +002c9830: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002c9840: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ +002c9850: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002c9860: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002c9870: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
< │ │ │ +002c9890: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002c98a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002c98b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002c98c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002c98d0: 6431 3135 3622 2074 6162 696e 6465 783d d1156" tabindex= │ │ │ +002c98e0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002c98f0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002c9900: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002c9910: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002c9920: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002c9930: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +002c9940: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +002c9950: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +002c9a20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +002c9a40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002c9a70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +002c9a00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ +002c9a10: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ +002c9a50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002c9a60: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ +002c9a90: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ +002c9aa0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ +002c9ab0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ +002c9ac0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ +002c9ad0: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ +002c9ae0: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ +002c9af0: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ +002c9b00: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ +002c9b10: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ +002c9b20: 653a 2073 7175 6964 2e73 6572 7669 6365  e: squid.service
│ │ │ +002c9b30: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +002c9b40: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +002c9b50: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +002c9b60: 202d 206e 616d 653a 2073 7175 6964 2e73   - name: squid.s
│ │ │ +002c9b70: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ +002c9b80: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002c9b90: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +002c9ba0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002c9c60: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002c9c70: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002c9d40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002c9d50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002c9da0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002c9db0: 7371 7569 640a 0a63 6c61 7373 2064 6973  squid..class dis
│ │ │ +002c9dc0: 6162 6c65 5f73 7175 6964 207b 0a20 2073  able_squid {.  s
│ │ │ +002c9dd0: 6572 7669 6365 207b 2773 7175 6964 273a  ervice {'squid':
│ │ │ +002c9de0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +002c9df0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +002c9e00: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +002c9e10: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ +002c9ed0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +002c9ee0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +002c9ef0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[custo │ │ │ +002c9f40: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +002c9f50: 6573 5d0a 6d61 736b 6564 203d 205b 2273 es].masked = ["s │ │ │ +002c9f60: 7175 6964 225d 0a3c 2f63 6f64 653e 3c2f quid"].Rem │ │ │ -002cb700: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002cb710: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002cb720: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>

low
Disru │ │ │ +002c9d20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002c9d30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002c9d70: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002c9d80: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -002cb7c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002cb810: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002cb850: 636c 7564 6520 7265 6d6f 7665 5f73 616d  clude remove_sam
│ │ │ -002cb860: 6261 0a0a 636c 6173 7320 7265 6d6f 7665  ba..class remove
│ │ │ -002cb870: 5f73 616d 6261 207b 0a20 2070 6163 6b61  _samba {.  packa
│ │ │ -002cb880: 6765 207b 2027 7361 6d62 6127 3a0a 2020  ge { 'samba':.  
│ │ │ -002cb890: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002cb8a0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -002cb8b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002cb960: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002cb970: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002cb980: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ -002cb7a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002cb7d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002cb7f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002cb800: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002cb820: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002cb830: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -002cba50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002cba60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -002cbac0: 616c 6c20 5361 6d62 6120 5061 636b 6167  all Samba Packag
│ │ │ -002cbad0: 653a 2045 6e73 7572 6520 7361 6d62 6120  e: Ensure samba 
│ │ │ -002cbae0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -002cbaf0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002cbb00: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002cbb10: 2073 616d 6261 0a20 2020 2073 7461 7465   samba.    state
│ │ │ -002cbb20: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -002cbb30: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002cbb40: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002cbb50: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002cbb60: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002cbb70: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002cbb80: 0a20 202d 2070 6163 6b61 6765 5f73 616d  .  - package_sam
│ │ │ -002cbb90: 6261 5f72 656d 6f76 6564 0a20 202d 2075  ba_removed.  - u
│ │ │ -002cbba0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +002cb700: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +002cb710: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +002cb720: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -002cba30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002cba40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002cba80: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002cba90: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002cb7b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002cb7c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002cb810: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002cb850: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002cb860: 2053 616d 6261 2050 6163 6b61 6765 3a20   Samba Package: 
│ │ │ +002cb870: 456e 7375 7265 2073 616d 6261 2069 7320  Ensure samba is 
│ │ │ +002cb880: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +002cb890: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +002cb8a0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7361  ge:.    name: sa
│ │ │ +002cb8b0: 6d62 610a 2020 2020 7374 6174 653a 2061  mba.    state: a
│ │ │ +002cb8c0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +002cb8d0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002cb8e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002cb8f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002cb900: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +002cb910: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002cb920: 2d20 7061 636b 6167 655f 7361 6d62 615f  - package_samba_
│ │ │ +002cb930: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +002cb940: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +002cb960: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002cba00: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002cba10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002cba20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +002cb7a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002cb7d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002cb7e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002cb820: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002cb830: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002cbab0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002cbac0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002cbb10: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002cbb50: 6e63 6c75 6465 2072 656d 6f76 655f 7361  nclude remove_sa
│ │ │ +002cbb60: 6d62 610a 0a63 6c61 7373 2072 656d 6f76  mba..class remov
│ │ │ +002cbb70: 655f 7361 6d62 6120 7b0a 2020 7061 636b  e_samba {.  pack
│ │ │ +002cbb80: 6167 6520 7b20 2773 616d 6261 273a 0a20  age { 'samba':. 
│ │ │ +002cbb90: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002cbba0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002cbbb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remed │ │ │ -002cc940: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002cc950: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002cc960: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -002cc9b0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -002cc9c0: 735d 0a6d 6173 6b65 6420 3d20 5b22 736d s].masked = ["sm │ │ │ -002cc9d0: 6264 225d 0a3c 2f63 6f64 653e 3c2f 7072 bd"].
Remediatio │ │ │ -002cca90: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ -002ccaa0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002ccab0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
C │ │ │ +002cbaa0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002cbad0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002cbae0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002cbb20: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002cbb30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -002ccb50: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ -002ccb30: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002ccb40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002ccb60: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ -002ccb80: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002ccb90: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ -002ccbb0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002ccbc0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ -002ccbe0: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ -002ccbf0: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ -002ccc00: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ -002ccc10: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ -002ccc20: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ -002ccc30: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ -002ccc40: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ -002ccc50: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ -002ccc60: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ -002ccc70: 2020 2020 2d20 6e61 6d65 3a20 736d 6264      - name: smbd
│ │ │ -002ccc80: 2e73 6572 7669 6365 0a20 2020 2020 2020  .service.       
│ │ │ -002ccc90: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002ccca0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -002cccb0: 7565 0a20 2020 2020 202d 206e 616d 653a  ue.      - name:
│ │ │ -002cccc0: 2073 6d62 642e 736f 636b 6574 0a20 2020   smbd.socket.   
│ │ │ -002cccd0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002ccce0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -002cccf0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediat │ │ │ -002ccdb0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002ccdc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002cce00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002cce10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002cce20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002cce30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002cce40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002cce50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002cce60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002ccea0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002cceb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002cced0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -002ccee0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -002ccf00: 6973 6162 6c65 5f73 6d62 640a 0a63 6c61  isable_smbd..cla
│ │ │ -002ccf10: 7373 2064 6973 6162 6c65 5f73 6d62 6420  ss disable_smbd 
│ │ │ -002ccf20: 7b0a 2020 7365 7276 6963 6520 7b27 736d  {.  service {'sm
│ │ │ -002ccf30: 6264 273a 0a20 2020 2065 6e61 626c 6520  bd':.    enable 
│ │ │ -002ccf40: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -002ccf50: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -002ccf60: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -002ccf70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002cd020: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002cd030: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002cd040: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002cd110: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002cd120: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -002cd180: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002cd190: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -002cd1a0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -002cd1b0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -002cd1c0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002cd1d0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002cd1e0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002cd1f0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -002cd200: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002cd210: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002cd220: 2d20 7365 7276 6963 655f 736d 625f 6469  - service_smb_di
│ │ │ -002cd230: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -002cd240: 4469 7361 626c 6520 5361 6d62 6120 2d20  Disable Samba - 
│ │ │ -002cd250: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -002cd260: 736d 6264 0a20 2062 6c6f 636b 3a0a 0a20  smbd.  block:.. 
│ │ │ -002cd270: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002cd280: 2053 616d 6261 202d 2043 6f6c 6c65 6374   Samba - Collect
│ │ │ -002cd290: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -002cd2a0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -002cd2b0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -002cd2c0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002cd2d0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002cd2e0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002cd2f0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -002cd300: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002cd310: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -002cd320: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002cd330: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002cd340: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -002cd350: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002cd360: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002cd370: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002cd380: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002cd390: 5361 6d62 6120 2d20 456e 7375 7265 2073  Samba - Ensure s
│ │ │ -002cd3a0: 6d62 642e 7365 7276 6963 6520 6973 204d  mbd.service is M
│ │ │ -002cd3b0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -002cd3c0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -002cd3d0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -002cd3e0: 6d62 642e 7365 7276 6963 650a 2020 2020  mbd.service.    
│ │ │ -002cd3f0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002cd400: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -002cd410: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -002cd420: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -002cd430: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002cd440: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -002cd450: 7320 7365 6172 6368 2822 736d 6264 2e73  s search("smbd.s
│ │ │ -002cd460: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -002cd470: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -002cd480: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -002cd490: 4578 6973 7473 202d 2073 6d62 642e 736f  Exists - smbd.so
│ │ │ -002cd4a0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002cd4b0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002cd4c0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002cd4d0: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ -002cd4e0: 6d62 642e 736f 636b 6574 0a20 2020 2072  mbd.socket.    r
│ │ │ -002cd4f0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -002cd500: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -002cd510: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -002cd520: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -002cd530: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002cd540: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -002cd550: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -002cd560: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -002cd570: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002cd580: 6520 5361 6d62 6120 2d20 4469 7361 626c  e Samba - Disabl
│ │ │ -002cd590: 6520 536f 636b 6574 2073 6d62 640a 2020  e Socket smbd.  
│ │ │ -002cd5a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002cd5b0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002cd5c0: 206e 616d 653a 2073 6d62 642e 736f 636b   name: smbd.sock
│ │ │ -002cd5d0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -002cd5e0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -002cd5f0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002cd600: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -002cd610: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -002cd620: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -002cd630: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -002cd640: 7263 6828 2273 6d62 642e 736f 636b 6574  rch("smbd.socket
│ │ │ -002cd650: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -002cd660: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -002cd670: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002cd680: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002cd690: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002cd6a0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -002cd6b0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002cd6c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002cd6d0: 7365 7276 6963 655f 736d 625f 6469 7361  service_smb_disa
│ │ │ -002cd6e0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -002cd6f0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -002cd700: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -002cd710: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -002cd720: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002cc940: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +002cc950: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disru │ │ │ -002cd0f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002cd100: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002cd140: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002cd150: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +002cc9e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002cca10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002cca30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002cca40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002cca60: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002cca70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002cca90: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002ccaa0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002ccab0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002ccac0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002ccad0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002ccae0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002ccaf0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002ccb00: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002ccb10: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002ccb20: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002ccb30: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002ccb40: 7669 6365 5f73 6d62 5f64 6973 6162 6c65  vice_smb_disable
│ │ │ +002ccb50: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +002ccb60: 6c65 2053 616d 6261 202d 2044 6973 6162  le Samba - Disab
│ │ │ +002ccb70: 6c65 2073 6572 7669 6365 2073 6d62 640a  le service smbd.
│ │ │ +002ccb80: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +002ccb90: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ +002ccba0: 6120 2d20 436f 6c6c 6563 7420 7379 7374  a - Collect syst
│ │ │ +002ccbb0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +002ccbc0: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +002ccbd0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +002ccbe0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002ccbf0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002ccc00: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +002ccc10: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +002ccc20: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +002ccc30: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +002ccc40: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002ccc50: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +002ccc60: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002ccc70: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002ccc80: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002ccc90: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +002ccca0: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ +002cccb0: 202d 2045 6e73 7572 6520 736d 6264 2e73   - Ensure smbd.s
│ │ │ +002cccc0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +002cccd0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002ccce0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002cccf0: 2020 2020 6e61 6d65 3a20 736d 6264 2e73      name: smbd.s
│ │ │ +002ccd00: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002ccd10: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002ccd20: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002ccd30: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002ccd40: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +002ccd50: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +002ccd60: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002ccd70: 7263 6828 2273 6d62 642e 7365 7276 6963  rch("smbd.servic
│ │ │ +002ccd80: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +002ccd90: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +002ccda0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +002ccdb0: 7320 2d20 736d 6264 2e73 6f63 6b65 740a  s - smbd.socket.
│ │ │ +002ccdc0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002ccdd0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002ccde0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002ccdf0: 6e69 742d 6669 6c65 7320 736d 6264 2e73  nit-files smbd.s
│ │ │ +002cce00: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002cce10: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002cce20: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002cce30: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002cce40: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002cce50: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002cce60: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002cce70: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002cce80: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002cce90: 616d 653a 2044 6973 6162 6c65 2053 616d  ame: Disable Sam
│ │ │ +002ccea0: 6261 202d 2044 6973 6162 6c65 2053 6f63  ba - Disable Soc
│ │ │ +002cceb0: 6b65 7420 736d 6264 0a20 2020 2061 6e73  ket smbd.    ans
│ │ │ +002ccec0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002cced0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002ccee0: 3a20 736d 6264 2e73 6f63 6b65 740a 2020  : smbd.socket.  
│ │ │ +002ccef0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002ccf00: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +002ccf10: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +002ccf20: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +002ccf30: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002ccf40: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +002ccf50: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +002ccf60: 736d 6264 2e73 6f63 6b65 7422 2c20 6d75  smbd.socket", mu
│ │ │ +002ccf70: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +002ccf80: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +002ccf90: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002ccfa0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002ccfb0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002ccfc0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002ccfd0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002ccfe0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002ccff0: 6365 5f73 6d62 5f64 6973 6162 6c65 640a  ce_smb_disabled.
│ │ │ +002cd000: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002cd010: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +002cd020: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002cd030: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002cd040: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +002cd100: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +002cd110: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
< │ │ │ +002cd210: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002cd240: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +002cd260: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +002cd270: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +002cd280: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +002cd290: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +002cd2a0: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +002cd2b0: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +002cd2c0: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +002cd2d0: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +002cd2e0: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +002cd2f0: 3a20 736d 6264 2e73 6572 7669 6365 0a20  : smbd.service. 
│ │ │ +002cd300: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +002cd310: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +002cd320: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +002cd330: 206e 616d 653a 2073 6d62 642e 736f 636b   name: smbd.sock
│ │ │ +002cd340: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ +002cd350: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002cd360: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ +002cd380: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002cd420: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002cd430: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002cd440: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +002cd1d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +002cd1e0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +002cd220: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002cd230: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +002cd4d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002cd4e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002cd530: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +002cd570: 6c75 6465 2064 6973 6162 6c65 5f73 6d62  lude disable_smb
│ │ │ +002cd580: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +002cd590: 5f73 6d62 6420 7b0a 2020 7365 7276 6963  _smbd {.  servic
│ │ │ +002cd5a0: 6520 7b27 736d 6264 273a 0a20 2020 2065  e {'smbd':.    e
│ │ │ +002cd5b0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +002cd5c0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +002cd5d0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +002cd5e0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ +002cd6a0: 6e20 4f53 4275 696c 6420 426c 7565 7072  n OSBuild Bluepr
│ │ │ +002cd6b0: 696e 7420 736e 6970 7065 7420 e287 b23c  int snippet ...<
│ │ │ +002cd6c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
C │ │ │ +002cd4c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002cd4f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002cd500: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002cd540: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +002cd550: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -002ceee0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002cef30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002cef70: 636c 7564 6520 7265 6d6f 7665 5f73 6e6d  clude remove_snm
│ │ │ -002cef80: 700a 0a63 6c61 7373 2072 656d 6f76 655f  p..class remove_
│ │ │ -002cef90: 736e 6d70 207b 0a20 2070 6163 6b61 6765  snmp {.  package
│ │ │ -002cefa0: 207b 2027 736e 6d70 273a 0a20 2020 2065   { 'snmp':.    e
│ │ │ -002cefb0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -002cefc0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -002cefe0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002ceff0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002cf000: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002cf010: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002cf020: 6431 3137 3222 2074 6162 696e 6465 783d d1172" tabindex= │ │ │ -002cf030: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002cf040: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002cf050: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002cf060: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002cf070: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002cf080: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002cf090: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002cf0a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ -002ceec0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002ceef0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002cef10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002cef20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002cef40: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002cef50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -002cf130: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002cf140: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002cf190: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002cf1d0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -002cf1e0: 206e 6574 2d73 6e6d 7020 5061 636b 6167   net-snmp Packag
│ │ │ -002cf1f0: 653a 2045 6e73 7572 6520 736e 6d70 2069  e: Ensure snmp i
│ │ │ -002cf200: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -002cf210: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002cf220: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002cf230: 736e 6d70 0a20 2020 2073 7461 7465 3a20  snmp.    state: 
│ │ │ -002cf240: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -002cf250: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002cf260: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002cf270: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -002cf280: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -002cf290: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -002cf2a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002cf2b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002cf2c0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002cf2d0: 5f6e 6574 2d73 6e6d 705f 7265 6d6f 7665  _net-snmp_remove
│ │ │ -002cf2e0: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -002cf2f0: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.
│ │ │ +002cee40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
C │ │ │ -002cf120: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002cf150: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002cf160: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002cf1a0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002cf1b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002ceed0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002ceee0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002cef30: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002cef70: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002cef80: 206e 6574 2d73 6e6d 7020 5061 636b 6167   net-snmp Packag
│ │ │ +002cef90: 653a 2045 6e73 7572 6520 736e 6d70 2069  e: Ensure snmp i
│ │ │ +002cefa0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +002cefb0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +002cefc0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +002cefd0: 736e 6d70 0a20 2020 2073 7461 7465 3a20  snmp.    state: 
│ │ │ +002cefe0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +002ceff0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002cf000: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002cf010: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +002cf020: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002cf030: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002cf040: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002cf050: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002cf060: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +002cf070: 5f6e 6574 2d73 6e6d 705f 7265 6d6f 7665  _net-snmp_remove
│ │ │ +002cf080: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +002cf090: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.Remediat
│ │ │ +002cf150: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +002cf160: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +002cf1a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002cf1b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002cf1c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002cf1d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002cf1e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +002cf270: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +002cf280: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ +002ceec0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002ceef0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002cef00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002cef40: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002cef50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +002cf1f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002cf200: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +002cf240: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002cf250: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +002cf2a0: 2072 656d 6f76 655f 736e 6d70 0a0a 636c remove_snmp..cl │ │ │ +002cf2b0: 6173 7320 7265 6d6f 7665 5f73 6e6d 7020 ass remove_snmp │ │ │ +002cf2c0: 7b0a 2020 7061 636b 6167 6520 7b20 2773 {. package { 's │ │ │ +002cf2d0: 6e6d 7027 3a0a 2020 2020 656e 7375 7265 nmp':. ensure │ │ │ +002cf2e0: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ +002cf2f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remed │ │ │ -002d0100: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002d0110: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002d0120: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -002d0170: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -002d0180: 735d 0a6d 6173 6b65 6420 3d20 5b22 736e s].masked = ["sn │ │ │ -002d0190: 6d70 6422 5d0a 3c2f 636f 6465 3e3c 2f70 mpd"].

Remediati │ │ │ -002d0250: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -002d0260: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ -002d0360: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ -002d03a0: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ -002d03b0: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ -002d03c0: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ -002d03d0: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ -002d03e0: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ -002d03f0: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ -002d0400: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ -002d0410: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ -002d0420: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ -002d0430: 2020 2020 202d 206e 616d 653a 2073 6e6d       - name: snm
│ │ │ -002d0440: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ -002d0450: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002d0460: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -002d0470: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ -002d0480: 653a 2073 6e6d 7064 2e73 6f63 6b65 740a  e: snmpd.socket.
│ │ │ -002d0490: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002d04a0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002d04b0: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ -002d0570: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002d0580: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002d02f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002d0300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002d0320: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ -002d0330: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ -002d0370: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002d0380: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -002d0610: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002d0620: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002d0640: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002d0660: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002d0670: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002d06b0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002d06c0: 6520 6469 7361 626c 655f 736e 6d70 640a e disable_snmpd. │ │ │ -002d06d0: 0a63 6c61 7373 2064 6973 6162 6c65 5f73 .class disable_s │ │ │ -002d06e0: 6e6d 7064 207b 0a20 2073 6572 7669 6365 nmpd {. service │ │ │ -002d06f0: 207b 2773 6e6d 7064 273a 0a20 2020 2065 {'snmpd':. e │ │ │ -002d0700: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ -002d0710: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ -002d0720: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ -002d0730: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ -002d07f0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002d0800: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002d0880: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002d0890: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002d08a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002d08e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002d08f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002d0910: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002d0920: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -002d0940: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002d0950: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002d0960: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002d0970: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002d0980: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002d0990: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002d09a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002d09b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002d09c0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -002d09d0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002d09e0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -002d09f0: 736e 6d70 645f 6469 7361 626c 6564 0a0a  snmpd_disabled..
│ │ │ -002d0a00: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002d0a10: 736e 6d70 6420 5365 7276 6963 6520 2d20  snmpd Service - 
│ │ │ -002d0a20: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -002d0a30: 736e 6d70 640a 2020 626c 6f63 6b3a 0a0a  snmpd.  block:..
│ │ │ -002d0a40: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002d0a50: 6520 736e 6d70 6420 5365 7276 6963 6520  e snmpd Service 
│ │ │ -002d0a60: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002d0a70: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002d0a80: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002d0a90: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002d0aa0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002d0ab0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002d0ac0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -002d0ad0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -002d0ae0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -002d0af0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002d0b00: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002d0b10: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002d0b20: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -002d0b30: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002d0b40: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002d0b50: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002d0b60: 2044 6973 6162 6c65 2073 6e6d 7064 2053   Disable snmpd S
│ │ │ -002d0b70: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -002d0b80: 736e 6d70 642e 7365 7276 6963 6520 6973  snmpd.service is
│ │ │ -002d0b90: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -002d0ba0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002d0bb0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002d0bc0: 2073 6e6d 7064 2e73 6572 7669 6365 0a20   snmpd.service. 
│ │ │ -002d0bd0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -002d0be0: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -002d0bf0: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -002d0c00: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -002d0c10: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002d0c20: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002d0c30: 7320 6973 2073 6561 7263 6828 2273 6e6d  s is search("snm
│ │ │ -002d0c40: 7064 2e73 6572 7669 6365 222c 206d 756c  pd.service", mul
│ │ │ -002d0c50: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -002d0c60: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -002d0c70: 6b65 7420 4578 6973 7473 202d 2073 6e6d  ket Exists - snm
│ │ │ -002d0c80: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ -002d0c90: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -002d0ca0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -002d0cb0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -002d0cc0: 6c65 7320 736e 6d70 642e 736f 636b 6574  les snmpd.socket
│ │ │ -002d0cd0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002d0ce0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -002d0cf0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002d0d00: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002d0d10: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -002d0d20: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -002d0d30: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002d0d40: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002d0d50: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002d0d60: 4469 7361 626c 6520 736e 6d70 6420 5365  Disable snmpd Se
│ │ │ -002d0d70: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -002d0d80: 536f 636b 6574 2073 6e6d 7064 0a20 2020  Socket snmpd.   
│ │ │ -002d0d90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002d0da0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002d0db0: 6e61 6d65 3a20 736e 6d70 642e 736f 636b  name: snmpd.sock
│ │ │ -002d0dc0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -002d0dd0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -002d0de0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002d0df0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -002d0e00: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -002d0e10: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -002d0e20: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -002d0e30: 7263 6828 2273 6e6d 7064 2e73 6f63 6b65  rch("snmpd.socke
│ │ │ -002d0e40: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -002d0e50: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -002d0e60: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002d0e70: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002d0e80: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002d0e90: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -002d0ea0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -002d0eb0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002d0ec0: 2073 6572 7669 6365 5f73 6e6d 7064 5f64   service_snmpd_d
│ │ │ -002d0ed0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002d0ee0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002d0ef0: 6b0a 2020 7768 656e 3a20 2820 2273 6e6d  k.  when: ( "snm
│ │ │ -002d0f00: 7022 2069 6e20 616e 7369 626c 655f 6661  p" in ansible_fa
│ │ │ -002d0f10: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ -002d0f20: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ -002d0f30: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002d0f40: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
Com │ │ │ +002d01a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002d01d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002d01f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002d0200: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002d0220: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002d0230: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002d0250: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002d0260: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002d0270: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002d0280: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002d0290: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002d02a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002d02b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002d02c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002d02d0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002d02e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002d02f0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002d0300: 7669 6365 5f73 6e6d 7064 5f64 6973 6162  vice_snmpd_disab
│ │ │ +002d0310: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +002d0320: 6162 6c65 2073 6e6d 7064 2053 6572 7669  able snmpd Servi
│ │ │ +002d0330: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +002d0340: 7669 6365 2073 6e6d 7064 0a20 2062 6c6f  vice snmpd.  blo
│ │ │ +002d0350: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +002d0360: 6973 6162 6c65 2073 6e6d 7064 2053 6572  isable snmpd Ser
│ │ │ +002d0370: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +002d0380: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +002d0390: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +002d03a0: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +002d03b0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002d03c0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +002d03d0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +002d03e0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +002d03f0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +002d0400: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +002d0410: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +002d0420: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002d0430: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +002d0440: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +002d0450: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +002d0460: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +002d0470: 6e61 6d65 3a20 4469 7361 626c 6520 736e  name: Disable sn
│ │ │ +002d0480: 6d70 6420 5365 7276 6963 6520 2d20 456e  mpd Service - En
│ │ │ +002d0490: 7375 7265 2073 6e6d 7064 2e73 6572 7669  sure snmpd.servi
│ │ │ +002d04a0: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +002d04b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002d04c0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +002d04d0: 6e61 6d65 3a20 736e 6d70 642e 7365 7276  name: snmpd.serv
│ │ │ +002d04e0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +002d04f0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +002d0500: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002d0510: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +002d0520: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +002d0530: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +002d0540: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002d0550: 2822 736e 6d70 642e 7365 7276 6963 6522  ("snmpd.service"
│ │ │ +002d0560: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +002d0570: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +002d0580: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +002d0590: 2d20 736e 6d70 642e 736f 636b 6574 0a20  - snmpd.socket. 
│ │ │ +002d05a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002d05b0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002d05c0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002d05d0: 6974 2d66 696c 6573 2073 6e6d 7064 2e73  it-files snmpd.s
│ │ │ +002d05e0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002d05f0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002d0600: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002d0610: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002d0620: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002d0630: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002d0640: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002d0650: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002d0660: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002d0670: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ +002d0680: 7064 2053 6572 7669 6365 202d 2044 6973  pd Service - Dis
│ │ │ +002d0690: 6162 6c65 2053 6f63 6b65 7420 736e 6d70  able Socket snmp
│ │ │ +002d06a0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +002d06b0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +002d06c0: 2020 2020 206e 616d 653a 2073 6e6d 7064       name: snmpd
│ │ │ +002d06d0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +002d06e0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002d06f0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002d0700: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +002d0710: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +002d0720: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002d0730: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002d0740: 7320 7365 6172 6368 2822 736e 6d70 642e  s search("snmpd.
│ │ │ +002d0750: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +002d0760: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +002d0770: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002d0780: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002d0790: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002d07a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002d07b0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +002d07c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002d07d0: 640a 2020 2d20 7365 7276 6963 655f 736e  d.  - service_sn
│ │ │ +002d07e0: 6d70 645f 6469 7361 626c 6564 0a20 202d  mpd_disabled.  -
│ │ │ +002d07f0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +002d0800: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2028  _block.  when: (
│ │ │ +002d0810: 2022 736e 6d70 2220 696e 2061 6e73 6962   "snmp" in ansib
│ │ │ +002d0820: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002d0830: 7320 616e 6420 226c 696e 7578 2d62 6173  s and "linux-bas
│ │ │ +002d0840: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002d0850: 6374 732e 7061 636b 6167 6573 0a20 2020  cts.packages.   
│ │ │ +002d0860: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +002d0870: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +002d0920: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ +002d0930: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002d0970: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002d0980: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002d0990: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002d09a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002d09b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002d09c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002d09d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:mediumRe │ │ │ +002d0a10: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ +002d0a20: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue │ │ │ +002d0a30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74 Strategy:disable< │ │ │ +002d0a60: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ +002d0a70: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ +002d0a80: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ +002d0a90: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ +002d0aa0: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ +002d0ab0: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ +002d0ac0: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ +002d0ad0: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ +002d0ae0: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ +002d0af0: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ +002d0b00: 2020 2d20 6e61 6d65 3a20 736e 6d70 642e - name: snmpd. │ │ │ +002d0b10: 7365 7276 6963 650a 2020 2020 2020 2020 service. │ │ │ +002d0b20: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +002d0b30: 2020 2020 2020 206d 6173 6b3a 2074 7275 mask: tru │ │ │ +002d0b40: 650a 2020 2020 2020 2d20 6e61 6d65 3a20 e. - name: │ │ │ +002d0b50: 736e 6d70 642e 736f 636b 6574 0a20 2020 snmpd.socket. │ │ │ +002d0b60: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +002d0b70: 6c73 650a 2020 2020 2020 2020 6d61 736b lse. mask │ │ │ +002d0b80: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f : true.
Remediat │ │ │ +002d0c40: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002d0c50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002d0c90: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002d0ca0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002d0cb0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002d0cc0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002d0cd0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002d0ce0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002d0cf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002d0d30: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002d0d40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002d0d60: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +002d0d70: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ +002d0d90: 6973 6162 6c65 5f73 6e6d 7064 0a0a 636c  isable_snmpd..cl
│ │ │ +002d0da0: 6173 7320 6469 7361 626c 655f 736e 6d70  ass disable_snmp
│ │ │ +002d0db0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ +002d0dc0: 736e 6d70 6427 3a0a 2020 2020 656e 6162  snmpd':.    enab
│ │ │ +002d0dd0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002d0de0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002d0df0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002d0e00: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002d0e10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +002d0ec0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +002d0ed0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002d0ee0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002d0f20: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +002d0f30: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +002d0f40: 6420 3d20 5b22 736e 6d70 6422 5d0a 3c2f  d = ["snmpd"].
Remedi │ │ │ -00317db0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00317dc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00317dd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
...i
│ │ │ -00317e10: 6e63 6c75 6465 2073 7368 5f70 7269 7661  nclude ssh_priva
│ │ │ -00317e20: 7465 5f6b 6579 5f70 6572 6d73 0a0a 636c  te_key_perms..cl
│ │ │ -00317e30: 6173 7320 7373 685f 7072 6976 6174 655f  ass ssh_private_
│ │ │ -00317e40: 6b65 795f 7065 726d 7320 7b0a 2020 6578  key_perms {.  ex
│ │ │ -00317e50: 6563 207b 2027 7373 6864 5f70 7269 765f  ec { 'sshd_priv_
│ │ │ -00317e60: 6b65 7927 3a0a 2020 2020 636f 6d6d 616e  key':.    comman
│ │ │ -00317e70: 6420 3d26 6774 3b20 2263 686d 6f64 2030  d => "chmod 0
│ │ │ -00317e80: 3630 3020 2f65 7463 2f73 7368 2f2a 5f6b  600 /etc/ssh/*_k
│ │ │ -00317e90: 6579 222c 0a20 2020 2070 6174 6820 2020  ey",.    path   
│ │ │ -00317ea0: 203d 2667 743b 2027 2f62 696e 3a2f 7573   => '/bin:/us
│ │ │ -00317eb0: 722f 6269 6e27 0a20 207d 0a7d 0a3c 2f63  r/bin'.  }.}.
│ │ │ -00317ed0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00317f70: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00317f80: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00318020: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ -003180d0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -003180e0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -003180f0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00318100: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00318110: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00318120: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -00318130: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -00318140: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -00318150: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -00318160: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -00318170: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00318180: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00318190: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -003181a0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -003181b0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -003181c0: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -003181d0: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -003181e0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -003181f0: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ -00318200: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00318210: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00318220: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00318230: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00318240: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ -00318250: 2d20 6e61 6d65 3a20 4669 6e64 2072 6f6f  - name: Find roo
│ │ │ -00318260: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ -00318270: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ -00318280: 7469 6e2e 636f 6d6d 616e 643a 2066 696e  tin.command: fin
│ │ │ -00318290: 6420 2d48 202f 6574 632f 7373 682f 202d  d -H /etc/ssh/ -
│ │ │ -003182a0: 6d61 7864 6570 7468 2031 202d 7573 6572  maxdepth 1 -user
│ │ │ -003182b0: 2072 6f6f 7420 2d72 6567 6578 2022 2e2a   root -regex ".*
│ │ │ -003182c0: 5f6b 6579 2422 0a20 2020 202d 7479 7065  _key$".    -type
│ │ │ -003182d0: 2066 202d 6772 6f75 7020 726f 6f74 202d   f -group root -
│ │ │ -003182e0: 7065 726d 202f 752b 7873 2c67 2b78 7772  perm /u+xs,g+xwr
│ │ │ -003182f0: 732c 6f2b 7877 7274 0a20 2072 6567 6973  s,o+xwrt.  regis
│ │ │ -00318300: 7465 723a 2072 6f6f 745f 6f77 6e65 645f  ter: root_owned_
│ │ │ -00318310: 6b65 7973 0a20 2063 6861 6e67 6564 5f77  keys.  changed_w
│ │ │ -00318320: 6865 6e3a 2066 616c 7365 0a20 2066 6169  hen: false.  fai
│ │ │ -00318330: 6c65 645f 7768 656e 3a20 6661 6c73 650a  led_when: false.
│ │ │ -00318340: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -00318350: 6c73 650a 2020 7768 656e 3a20 2722 6c69  lse.  when: '"li
│ │ │ -00318360: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00318370: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00318380: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00318390: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -003183a0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -003183b0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -003183c0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -003183d0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -003183e0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -003183f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00318400: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00318410: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -00318420: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00318430: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00318440: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -00318450: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -00318460: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -00318470: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ -00318480: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00318490: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -003184a0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -003184b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -003184c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ -003184d0: 2d20 6e61 6d65 3a20 5365 7420 7065 726d  - name: Set perm
│ │ │ -003184e0: 6973 7369 6f6e 7320 666f 7220 726f 6f74  issions for root
│ │ │ -003184f0: 3a72 6f6f 742d 6f77 6e65 6420 6b65 7973  :root-owned keys
│ │ │ -00318500: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00318510: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ -00318520: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ -00318530: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ -00318540: 2d78 7772 732c 6f2d 7877 7274 0a20 2020  -xwrs,o-xwrt.   
│ │ │ -00318550: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ -00318560: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ -00318570: 7b7b 2072 6f6f 745f 6f77 6e65 645f 6b65  {{ root_owned_ke
│ │ │ -00318580: 7973 2e73 7464 6f75 745f 6c69 6e65 7320  ys.stdout_lines 
│ │ │ -00318590: 7d7d 270a 2020 7768 656e 3a20 2722 6c69  }}'.  when: '"li
│ │ │ -003185a0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -003185b0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -003185c0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -003185d0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -003185e0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -003185f0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -00318600: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -00318610: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -00318620: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -00318630: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00318640: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00318650: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -00318660: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00318670: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00318680: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -00318690: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -003186a0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -003186b0: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ -003186c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -003186d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -003186e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -003186f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00318700: 5f72 6562 6f6f 745f 6e65 6564 6564 0a3c  _reboot_needed.<
│ │ │ +00317db0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +00317dc0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ -00318010: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00318040: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00318050: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00318090: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ -003180a0: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
- n
│ │ │ +00317f00: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00317f10: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00317f20: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00317f30: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00317f40: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00317f50: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ +00317f60: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00317f70: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ +00317f80: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ +00317f90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00317fa0: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ +00317fb0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00317fc0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00317fd0: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ +00317fe0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00317ff0: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +00318000: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ +00318010: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ +00318020: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ +00318030: 7072 6976 6174 655f 6b65 790a 2020 2d20  private_key.  - 
│ │ │ +00318040: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00318050: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00318060: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00318070: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00318080: 6f6f 745f 6e65 6564 6564 0a0a 2d20 6e61  oot_needed..- na
│ │ │ +00318090: 6d65 3a20 4669 6e64 2072 6f6f 743a 726f  me: Find root:ro
│ │ │ +003180a0: 6f74 2d6f 776e 6564 206b 6579 730a 2020  ot-owned keys.  
│ │ │ +003180b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +003180c0: 636f 6d6d 616e 643a 2066 696e 6420 2d48  command: find -H
│ │ │ +003180d0: 202f 6574 632f 7373 682f 202d 6d61 7864   /etc/ssh/ -maxd
│ │ │ +003180e0: 6570 7468 2031 202d 7573 6572 2072 6f6f  epth 1 -user roo
│ │ │ +003180f0: 7420 2d72 6567 6578 2022 2e2a 5f6b 6579  t -regex ".*_key
│ │ │ +00318100: 2422 0a20 2020 202d 7479 7065 2066 202d  $".    -type f -
│ │ │ +00318110: 6772 6f75 7020 726f 6f74 202d 7065 726d  group root -perm
│ │ │ +00318120: 202f 752b 7873 2c67 2b78 7772 732c 6f2b   /u+xs,g+xwrs,o+
│ │ │ +00318130: 7877 7274 0a20 2072 6567 6973 7465 723a  xwrt.  register:
│ │ │ +00318140: 2072 6f6f 745f 6f77 6e65 645f 6b65 7973   root_owned_keys
│ │ │ +00318150: 0a20 2063 6861 6e67 6564 5f77 6865 6e3a  .  changed_when:
│ │ │ +00318160: 2066 616c 7365 0a20 2066 6169 6c65 645f   false.  failed_
│ │ │ +00318170: 7768 656e 3a20 6661 6c73 650a 2020 6368  when: false.  ch
│ │ │ +00318180: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +00318190: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +003181a0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +003181b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +003181c0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +003181d0: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ +003181e0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +003181f0: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ +00318200: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ +00318210: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00318220: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ +00318230: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00318240: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00318250: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ +00318260: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00318270: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +00318280: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ +00318290: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ +003182a0: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ +003182b0: 7072 6976 6174 655f 6b65 790a 2020 2d20  private_key.  - 
│ │ │ +003182c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +003182d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +003182e0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +003182f0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00318300: 6f6f 745f 6e65 6564 6564 0a0a 2d20 6e61  oot_needed..- na
│ │ │ +00318310: 6d65 3a20 5365 7420 7065 726d 6973 7369  me: Set permissi
│ │ │ +00318320: 6f6e 7320 666f 7220 726f 6f74 3a72 6f6f  ons for root:roo
│ │ │ +00318330: 742d 6f77 6e65 6420 6b65 7973 0a20 2061  t-owned keys.  a
│ │ │ +00318340: 6e73 6962 6c65 2e62 7569 6c74 696e 2e66  nsible.builtin.f
│ │ │ +00318350: 696c 653a 0a20 2020 2070 6174 683a 2027  ile:.    path: '
│ │ │ +00318360: 7b7b 2069 7465 6d20 7d7d 270a 2020 2020  {{ item }}'.    
│ │ │ +00318370: 6d6f 6465 3a20 752d 7873 2c67 2d78 7772  mode: u-xs,g-xwr
│ │ │ +00318380: 732c 6f2d 7877 7274 0a20 2020 2073 7461  s,o-xwrt.    sta
│ │ │ +00318390: 7465 3a20 6669 6c65 0a20 2077 6974 685f  te: file.  with_
│ │ │ +003183a0: 6974 656d 733a 0a20 202d 2027 7b7b 2072  items:.  - '{{ r
│ │ │ +003183b0: 6f6f 745f 6f77 6e65 645f 6b65 7973 2e73  oot_owned_keys.s
│ │ │ +003183c0: 7464 6f75 745f 6c69 6e65 7320 7d7d 270a  tdout_lines }}'.
│ │ │ +003183d0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +003183e0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +003183f0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00318400: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00318410: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ +00318420: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00318430: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ +00318440: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ +00318450: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00318460: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ +00318470: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00318480: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00318490: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ +003184a0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +003184b0: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +003184c0: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ +003184d0: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ +003184e0: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ +003184f0: 7072 6976 6174 655f 6b65 790a 2020 2d20  private_key.  - 
│ │ │ +00318500: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00318510: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00318520: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00318530: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00318540: 6f6f 745f 6e65 6564 6564 0a3c 2f63 6f64  oot_needed.
Reme │ │ │ +00318600: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00318610: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
..
│ │ │ +00318660: 0a69 6e63 6c75 6465 2073 7368 5f70 7269  .include ssh_pri
│ │ │ +00318670: 7661 7465 5f6b 6579 5f70 6572 6d73 0a0a  vate_key_perms..
│ │ │ +00318680: 636c 6173 7320 7373 685f 7072 6976 6174  class ssh_privat
│ │ │ +00318690: 655f 6b65 795f 7065 726d 7320 7b0a 2020  e_key_perms {.  
│ │ │ +003186a0: 6578 6563 207b 2027 7373 6864 5f70 7269  exec { 'sshd_pri
│ │ │ +003186b0: 765f 6b65 7927 3a0a 2020 2020 636f 6d6d  v_key':.    comm
│ │ │ +003186c0: 616e 6420 3d26 6774 3b20 2263 686d 6f64  and => "chmod
│ │ │ +003186d0: 2030 3630 3020 2f65 7463 2f73 7368 2f2a   0600 /etc/ssh/*
│ │ │ +003186e0: 5f6b 6579 222c 0a20 2020 2070 6174 6820  _key",.    path 
│ │ │ +003186f0: 2020 203d 2667 743b 2027 2f62 696e 3a2f     => '/bin:/
│ │ │ +00318700: 7573 722f 6269 6e27 0a20 207d 0a7d 0a3c  usr/bin'.  }.}.<
│ │ │  00318710: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediat │ │ │ -00319b70: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00319b80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00319bc0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00319bd0: 6520 7373 685f 7075 626c 6963 5f6b 6579 e ssh_public_key │ │ │ -00319be0: 5f70 6572 6d73 0a0a 636c 6173 7320 7373 _perms..class ss │ │ │ -00319bf0: 685f 7075 626c 6963 5f6b 6579 5f70 6572 h_public_key_per │ │ │ -00319c00: 6d73 207b 0a20 2065 7865 6320 7b20 2773 ms {. exec { 's │ │ │ -00319c10: 7368 645f 7075 625f 6b65 7927 3a0a 2020 shd_pub_key':. │ │ │ -00319c20: 2020 636f 6d6d 616e 6420 3d26 6774 3b20 command => │ │ │ -00319c30: 2263 686d 6f64 2030 3634 3420 2f65 7463 "chmod 0644 /etc │ │ │ -00319c40: 2f73 7368 2f2a 2e70 7562 222c 0a20 2020 /ssh/*.pub",. │ │ │ -00319c50: 2070 6174 6820 2020 203d 2667 743b 2027 path => ' │ │ │ -00319c60: 2f62 696e 3a2f 7573 722f 6269 6e27 0a20 /bin:/usr/bin'. │ │ │ -00319c70: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ -00319d30: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00319d40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -00319dc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -00319e50: 7464 3e63 6f6e 6669 6775 7265 3c2f 7464 td>configure
Comp │ │ │ +00317e50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00317e60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00317e80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00317ea0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00317eb0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:configure │ │ │ +00317ee0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00319dd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00319de0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00319e20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00319e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:

- name: │ │ │ -00319e80: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00319e90: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00319ea0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00319eb0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00319ec0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00319ed0: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -00319ee0: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -00319ef0: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -00319f00: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -00319f10: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -00319f20: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -00319f30: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -00319f40: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -00319f50: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -00319f60: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -00319f70: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -00319f80: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -00319f90: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -00319fa0: 7373 696f 6e73 5f73 7368 645f 7075 625f ssions_sshd_pub_ │ │ │ -00319fb0: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70 key. - low_comp │ │ │ -00319fc0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -00319fd0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ -00319fe0: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ -00319ff0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0031a000: 6564 0a0a 2d20 6e61 6d65 3a20 4669 6e64 ed..- name: Find │ │ │ -0031a010: 202f 6574 632f 7373 682f 2066 696c 6528 /etc/ssh/ file( │ │ │ -0031a020: 7329 0a20 2061 6e73 6962 6c65 2e62 7569 s). ansible.bui │ │ │ -0031a030: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 6669 ltin.command: fi │ │ │ -0031a040: 6e64 202d 5020 2f65 7463 2f73 7368 2f20 nd -P /etc/ssh/ │ │ │ -0031a050: 2d6d 6178 6465 7074 6820 3120 2d70 6572 -maxdepth 1 -per │ │ │ -0031a060: 6d20 2f75 2b78 732c 672b 7877 732c 6f2b m /u+xs,g+xws,o+ │ │ │ -0031a070: 7877 7420 202d 7479 7065 0a20 2020 2066 xwt -type. f │ │ │ -0031a080: 202d 7265 6765 7874 7970 6520 706f 7369 -regextype posi │ │ │ -0031a090: 782d 6578 7465 6e64 6564 202d 7265 6765 x-extended -rege │ │ │ -0031a0a0: 7820 225e 2e2a 5c2e 7075 6224 220a 2020 x "^.*\.pub$". │ │ │ -0031a0b0: 7265 6769 7374 6572 3a20 6669 6c65 735f register: files_ │ │ │ -0031a0c0: 666f 756e 640a 2020 6368 616e 6765 645f found. changed_ │ │ │ -0031a0d0: 7768 656e 3a20 6661 6c73 650a 2020 6661 when: false. fa │ │ │ -0031a0e0: 696c 6564 5f77 6865 6e3a 2066 616c 7365 iled_when: false │ │ │ -0031a0f0: 0a20 2063 6865 636b 5f6d 6f64 653a 2066 . check_mode: f │ │ │ -0031a100: 616c 7365 0a20 2077 6865 6e3a 2027 226c alse. when: '"l │ │ │ -0031a110: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ -0031a120: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -0031a130: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ -0031a140: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -0031a150: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38 .1.13. - NIST-8 │ │ │ -0031a160: 3030 2d31 3731 2d33 2e31 332e 3130 0a20 00-171-3.13.10. │ │ │ -0031a170: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -0031a180: 432d 3137 2861 290a 2020 2d20 4e49 5354 C-17(a). - NIST │ │ │ -0031a190: 2d38 3030 2d35 332d 4143 2d36 2831 290a -800-53-AC-6(1). │ │ │ -0031a1a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0031a1b0: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -0031a1c0: 4453 532d 5265 712d 322e 322e 340a 2020 DSS-Req-2.2.4. │ │ │ -0031a1d0: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ -0031a1e0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -0031a1f0: 322e 360a 2020 2d20 636f 6e66 6967 7572 2.6. - configur │ │ │ -0031a200: 655f 7374 7261 7465 6779 0a20 202d 2066 e_strategy. - f │ │ │ -0031a210: 696c 655f 7065 726d 6973 7369 6f6e 735f ile_permissions_ │ │ │ -0031a220: 7373 6864 5f70 7562 5f6b 6579 0a20 202d sshd_pub_key. - │ │ │ -0031a230: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -0031a240: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -0031a250: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -0031a260: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -0031a270: 626f 6f74 5f6e 6565 6465 640a 0a2d 206e boot_needed..- n │ │ │ -0031a280: 616d 653a 2053 6574 2070 6572 6d69 7373 ame: Set permiss │ │ │ -0031a290: 696f 6e73 2066 6f72 202f 6574 632f 7373 ions for /etc/ss │ │ │ -0031a2a0: 682f 2066 696c 6528 7329 0a20 2061 6e73 h/ file(s). ans │ │ │ -0031a2b0: 6962 6c65 2e62 7569 6c74 696e 2e66 696c ible.builtin.fil │ │ │ -0031a2c0: 653a 0a20 2020 2070 6174 683a 2027 7b7b e:. path: '{{ │ │ │ -0031a2d0: 2069 7465 6d20 7d7d 270a 2020 2020 6d6f item }}'. mo │ │ │ -0031a2e0: 6465 3a20 752d 7873 2c67 2d78 7773 2c6f de: u-xs,g-xws,o │ │ │ -0031a2f0: 2d78 7774 0a20 2020 2073 7461 7465 3a20 -xwt. state: │ │ │ -0031a300: 6669 6c65 0a20 2077 6974 685f 6974 656d file. with_item │ │ │ -0031a310: 733a 0a20 202d 2027 7b7b 2066 696c 6573 s:. - '{{ files │ │ │ -0031a320: 5f66 6f75 6e64 2e73 7464 6f75 745f 6c69 _found.stdout_li │ │ │ -0031a330: 6e65 7320 7d7d 270a 2020 7768 656e 3a20 nes }}'. when: │ │ │ -0031a340: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -0031a350: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -0031a360: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ -0031a370: 0a20 202d 204e 4953 542d 3830 302d 3137 . - NIST-800-17 │ │ │ -0031a380: 312d 332e 312e 3133 0a20 202d 204e 4953 1-3.1.13. - NIS │ │ │ -0031a390: 542d 3830 302d 3137 312d 332e 3133 2e31 T-800-171-3.13.1 │ │ │ -0031a3a0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35 0. - NIST-800-5 │ │ │ -0031a3b0: 332d 4143 2d31 3728 6129 0a20 202d 204e 3-AC-17(a). - N │ │ │ -0031a3c0: 4953 542d 3830 302d 3533 2d41 432d 3628 IST-800-53-AC-6( │ │ │ -0031a3d0: 3129 0a20 202d 204e 4953 542d 3830 302d 1). - NIST-800- │ │ │ -0031a3e0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -0031a3f0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34 CI-DSS-Req-2.2.4 │ │ │ -0031a400: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -0031a410: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -0031a420: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669 -2.2.6. - confi │ │ │ -0031a430: 6775 7265 5f73 7472 6174 6567 790a 2020 gure_strategy. │ │ │ -0031a440: 2d20 6669 6c65 5f70 6572 6d69 7373 696f - file_permissio │ │ │ -0031a450: 6e73 5f73 7368 645f 7075 625f 6b65 790a ns_sshd_pub_key. │ │ │ -0031a460: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0031a470: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0031a480: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -0031a490: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -0031a4a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a3c _reboot_needed.< │ │ │ +00319b70: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +00319b80: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00319b90: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00319ba0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00319bb0: 7365 2220 6964 3d22 6964 3132 3630 223e se" id="id1260"> │ │ │ +00319bc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00319c30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00319c50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00319c80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00319c10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00319c20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00319c60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00319c70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
configure
│ │ │ +00319cb0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d

- nam
│ │ │ +00319cc0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00319cd0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00319ce0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00319cf0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00319d00: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00319d10: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +00319d20: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00319d30: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +00319d40: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +00319d50: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00319d60: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +00319d70: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00319d80: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +00319d90: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +00319da0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00319db0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +00319dc0: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +00319dd0: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +00319de0: 6d69 7373 696f 6e73 5f73 7368 645f 7075  missions_sshd_pu
│ │ │ +00319df0: 625f 6b65 790a 2020 2d20 6c6f 775f 636f  b_key.  - low_co
│ │ │ +00319e00: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00319e10: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00319e20: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00319e30: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00319e40: 6564 6564 0a0a 2d20 6e61 6d65 3a20 4669  eded..- name: Fi
│ │ │ +00319e50: 6e64 202f 6574 632f 7373 682f 2066 696c  nd /etc/ssh/ fil
│ │ │ +00319e60: 6528 7329 0a20 2061 6e73 6962 6c65 2e62  e(s).  ansible.b
│ │ │ +00319e70: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +00319e80: 6669 6e64 202d 5020 2f65 7463 2f73 7368  find -P /etc/ssh
│ │ │ +00319e90: 2f20 2d6d 6178 6465 7074 6820 3120 2d70  / -maxdepth 1 -p
│ │ │ +00319ea0: 6572 6d20 2f75 2b78 732c 672b 7877 732c  erm /u+xs,g+xws,
│ │ │ +00319eb0: 6f2b 7877 7420 202d 7479 7065 0a20 2020  o+xwt  -type.   
│ │ │ +00319ec0: 2066 202d 7265 6765 7874 7970 6520 706f   f -regextype po
│ │ │ +00319ed0: 7369 782d 6578 7465 6e64 6564 202d 7265  six-extended -re
│ │ │ +00319ee0: 6765 7820 225e 2e2a 5c2e 7075 6224 220a  gex "^.*\.pub$".
│ │ │ +00319ef0: 2020 7265 6769 7374 6572 3a20 6669 6c65    register: file
│ │ │ +00319f00: 735f 666f 756e 640a 2020 6368 616e 6765  s_found.  change
│ │ │ +00319f10: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +00319f20: 6661 696c 6564 5f77 6865 6e3a 2066 616c  failed_when: fal
│ │ │ +00319f30: 7365 0a20 2063 6865 636b 5f6d 6f64 653a  se.  check_mode:
│ │ │ +00319f40: 2066 616c 7365 0a20 2077 6865 6e3a 2027   false.  when: '
│ │ │ +00319f50: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00319f60: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00319f70: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00319f80: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +00319f90: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354  -3.1.13.  - NIST
│ │ │ +00319fa0: 2d38 3030 2d31 3731 2d33 2e31 332e 3130  -800-171-3.13.10
│ │ │ +00319fb0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00319fc0: 2d41 432d 3137 2861 290a 2020 2d20 4e49  -AC-17(a).  - NI
│ │ │ +00319fd0: 5354 2d38 3030 2d35 332d 4143 2d36 2831  ST-800-53-AC-6(1
│ │ │ +00319fe0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00319ff0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +0031a000: 492d 4453 532d 5265 712d 322e 322e 340a  I-DSS-Req-2.2.4.
│ │ │ +0031a010: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0031a020: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +0031a030: 322e 322e 360a 2020 2d20 636f 6e66 6967  2.2.6.  - config
│ │ │ +0031a040: 7572 655f 7374 7261 7465 6779 0a20 202d  ure_strategy.  -
│ │ │ +0031a050: 2066 696c 655f 7065 726d 6973 7369 6f6e   file_permission
│ │ │ +0031a060: 735f 7373 6864 5f70 7562 5f6b 6579 0a20  s_sshd_pub_key. 
│ │ │ +0031a070: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0031a080: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0031a090: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0031a0a0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0031a0b0: 7265 626f 6f74 5f6e 6565 6465 640a 0a2d  reboot_needed..-
│ │ │ +0031a0c0: 206e 616d 653a 2053 6574 2070 6572 6d69   name: Set permi
│ │ │ +0031a0d0: 7373 696f 6e73 2066 6f72 202f 6574 632f  ssions for /etc/
│ │ │ +0031a0e0: 7373 682f 2066 696c 6528 7329 0a20 2061  ssh/ file(s).  a
│ │ │ +0031a0f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e66  nsible.builtin.f
│ │ │ +0031a100: 696c 653a 0a20 2020 2070 6174 683a 2027  ile:.    path: '
│ │ │ +0031a110: 7b7b 2069 7465 6d20 7d7d 270a 2020 2020  {{ item }}'.    
│ │ │ +0031a120: 6d6f 6465 3a20 752d 7873 2c67 2d78 7773  mode: u-xs,g-xws
│ │ │ +0031a130: 2c6f 2d78 7774 0a20 2020 2073 7461 7465  ,o-xwt.    state
│ │ │ +0031a140: 3a20 6669 6c65 0a20 2077 6974 685f 6974  : file.  with_it
│ │ │ +0031a150: 656d 733a 0a20 202d 2027 7b7b 2066 696c  ems:.  - '{{ fil
│ │ │ +0031a160: 6573 5f66 6f75 6e64 2e73 7464 6f75 745f  es_found.stdout_
│ │ │ +0031a170: 6c69 6e65 7320 7d7d 270a 2020 7768 656e  lines }}'.  when
│ │ │ +0031a180: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0031a190: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0031a1a0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0031a1b0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0031a1c0: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ +0031a1d0: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ +0031a1e0: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ +0031a1f0: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ +0031a200: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +0031a210: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ +0031a220: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0031a230: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ +0031a240: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ +0031a250: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0031a260: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ +0031a270: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ +0031a280: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ +0031a290: 696f 6e73 5f73 7368 645f 7075 625f 6b65  ions_sshd_pub_ke
│ │ │ +0031a2a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0031a2b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0031a2c0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0031a2d0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0031a2e0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0031a2f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +0031a3b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0031a3c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
include ssh_
│ │ │ +0031a410: 7075 626c 6963 5f6b 6579 5f70 6572 6d73  public_key_perms
│ │ │ +0031a420: 0a0a 636c 6173 7320 7373 685f 7075 626c  ..class ssh_publ
│ │ │ +0031a430: 6963 5f6b 6579 5f70 6572 6d73 207b 0a20  ic_key_perms {. 
│ │ │ +0031a440: 2065 7865 6320 7b20 2773 7368 645f 7075   exec { 'sshd_pu
│ │ │ +0031a450: 625f 6b65 7927 3a0a 2020 2020 636f 6d6d  b_key':.    comm
│ │ │ +0031a460: 616e 6420 3d26 6774 3b20 2263 686d 6f64  and => "chmod
│ │ │ +0031a470: 2030 3634 3420 2f65 7463 2f73 7368 2f2a   0644 /etc/ssh/*
│ │ │ +0031a480: 2e70 7562 222c 0a20 2020 2070 6174 6820  .pub",.    path 
│ │ │ +0031a490: 2020 203d 2667 743b 2027 2f62 696e 3a2f     => '/bin:/
│ │ │ +0031a4a0: 7573 722f 6269 6e27 0a20 207d 0a7d 0a3c  usr/bin'.  }.}.<
│ │ │  0031a4b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -004fde10: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -004fde20: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -004fde30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -004fde40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[[p
│ │ │ -004fde80: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -004fde90: 2022 6175 6469 7370 642d 706c 7567 696e   "audispd-plugin
│ │ │ -004fdea0: 7322 0a76 6572 7369 6f6e 203d 2022 2a22  s".version = "*"
│ │ │ -004fdeb0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ -004fdf70: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -004fdf80: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -004fe000: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -004fe020: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -004fe070: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -004fe0c0: 5f61 7564 6973 7064 2d70 6c75 6769 6e73  _audispd-plugins
│ │ │ -004fe0d0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -004fe0e0: 6175 6469 7370 642d 706c 7567 696e 7320  audispd-plugins 
│ │ │ -004fe0f0: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ -004fe100: 7564 6973 7064 2d70 6c75 6769 6e73 273a  udispd-plugins':
│ │ │ -004fe110: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -004fe120: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -004fe130: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -004fe1f0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -004fe200: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -004fe280: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -004fe310: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disr │ │ │ -004fe030: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -004fe040: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -004fe080: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -004fe090: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ -004fe290: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -004fe2a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -004fe2e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -004fe2f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -004fe330: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -004fe340: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -004fe350: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -004fe360: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -004fe370: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -004fe380: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -004fe390: 5542 5455 2d32 322d 3635 3330 3230 0a20  UBTU-22-653020. 
│ │ │ -004fe3a0: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -004fe3b0: 302e 352e 330a 2020 2d20 5043 492d 4453  0.5.3.  - PCI-DS
│ │ │ -004fe3c0: 5376 342d 3130 2e33 0a20 202d 2050 4349  Sv4-10.3.  - PCI
│ │ │ -004fe3d0: 2d44 5353 7634 2d31 302e 332e 330a 2020  -DSSv4-10.3.3.  
│ │ │ -004fe3e0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -004fe3f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -004fe400: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -004fe410: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -004fe420: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -004fe430: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -004fe440: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ -004fe450: 6974 2d61 7564 6973 7064 2d70 6c75 6769  it-audispd-plugi
│ │ │ -004fe460: 6e73 5f69 6e73 7461 6c6c 6564 0a0a 2d20  ns_installed..- 
│ │ │ -004fe470: 6e61 6d65 3a20 456e 7375 7265 2061 7564  name: Ensure aud
│ │ │ -004fe480: 6973 7064 2d70 6c75 6769 6e73 2069 7320  ispd-plugins is 
│ │ │ -004fe490: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -004fe4a0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -004fe4b0: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ -004fe4c0: 7564 6973 7064 2d70 6c75 6769 6e73 0a20  udispd-plugins. 
│ │ │ -004fe4d0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -004fe4e0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -004fe4f0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -004fe500: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -004fe510: 7327 0a20 2074 6167 733a 0a20 202d 2044  s'.  tags:.  - D
│ │ │ -004fe520: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ -004fe530: 2d36 3533 3032 300a 2020 2d20 5043 492d  -653020.  - PCI-
│ │ │ -004fe540: 4453 532d 5265 712d 3130 2e35 2e33 0a20  DSS-Req-10.5.3. 
│ │ │ -004fe550: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -004fe560: 330a 2020 2d20 5043 492d 4453 5376 342d  3.  - PCI-DSSv4-
│ │ │ -004fe570: 3130 2e33 2e33 0a20 202d 2065 6e61 626c  10.3.3.  - enabl
│ │ │ -004fe580: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -004fe590: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -004fe5a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -004fe5b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -004fe5c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -004fe5d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -004fe5e0: 636b 6167 655f 6175 6469 742d 6175 6469  ckage_audit-audi
│ │ │ -004fe5f0: 7370 642d 706c 7567 696e 735f 696e 7374  spd-plugins_inst
│ │ │ -004fe600: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


< │ │ │ +004fdf00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +004fdf10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +004fdf60: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +004fdf70: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +004fdf80: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +004fdf90: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +004fdfa0: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ +004fdfb0: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ +004fdfc0: 2d36 3533 3032 300a 2020 2d20 5043 492d  -653020.  - PCI-
│ │ │ +004fdfd0: 4453 532d 5265 712d 3130 2e35 2e33 0a20  DSS-Req-10.5.3. 
│ │ │ +004fdfe0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +004fdff0: 330a 2020 2d20 5043 492d 4453 5376 342d  3.  - PCI-DSSv4-
│ │ │ +004fe000: 3130 2e33 2e33 0a20 202d 2065 6e61 626c  10.3.3.  - enabl
│ │ │ +004fe010: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +004fe020: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +004fe030: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +004fe040: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +004fe050: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +004fe060: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +004fe070: 636b 6167 655f 6175 6469 742d 6175 6469  ckage_audit-audi
│ │ │ +004fe080: 7370 642d 706c 7567 696e 735f 696e 7374  spd-plugins_inst
│ │ │ +004fe090: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +004fe0a0: 6e73 7572 6520 6175 6469 7370 642d 706c  nsure audispd-pl
│ │ │ +004fe0b0: 7567 696e 7320 6973 2069 6e73 7461 6c6c  ugins is install
│ │ │ +004fe0c0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +004fe0d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +004fe0e0: 2020 6e61 6d65 3a20 6175 6469 7370 642d    name: audispd-
│ │ │ +004fe0f0: 706c 7567 696e 730a 2020 2020 7374 6174  plugins.    stat
│ │ │ +004fe100: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +004fe110: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +004fe120: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +004fe130: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +004fe140: 6773 3a0a 2020 2d20 4449 5341 2d53 5449  gs:.  - DISA-STI
│ │ │ +004fe150: 472d 5542 5455 2d32 322d 3635 3330 3230  G-UBTU-22-653020
│ │ │ +004fe160: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +004fe170: 2d31 302e 352e 330a 2020 2d20 5043 492d  -10.5.3.  - PCI-
│ │ │ +004fe180: 4453 5376 342d 3130 2e33 0a20 202d 2050  DSSv4-10.3.  - P
│ │ │ +004fe190: 4349 2d44 5353 7634 2d31 302e 332e 330a  CI-DSSv4-10.3.3.
│ │ │ +004fe1a0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +004fe1b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +004fe1c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +004fe1d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +004fe1e0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +004fe1f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +004fe200: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +004fe210: 7564 6974 2d61 7564 6973 7064 2d70 6c75  udit-audispd-plu
│ │ │ +004fe220: 6769 6e73 5f69 6e73 7461 6c6c 6564 0a3c  gins_installed.<
│ │ │ +004fe230: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +004fe2e0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +004fe2f0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +004fdee0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +004fdef0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +004fdf30: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +004fdf40: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +004fe3d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +004fe3e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +004fe430: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ +004fe440: 7564 6973 7064 2d70 6c75 6769 6e73 0a0a  udispd-plugins..
│ │ │ +004fe450: 636c 6173 7320 696e 7374 616c 6c5f 6175  class install_au
│ │ │ +004fe460: 6469 7370 642d 706c 7567 696e 7320 7b0a  dispd-plugins {.
│ │ │ +004fe470: 2020 7061 636b 6167 6520 7b20 2761 7564    package { 'aud
│ │ │ +004fe480: 6973 7064 2d70 6c75 6769 6e73 273a 0a20  ispd-plugins':. 
│ │ │ +004fe490: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +004fe4a0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +004fe4b0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +004fe4c0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +004fe570: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +004fe580: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[[packages]].n
│ │ │ +004fe5e0: 616d 6520 3d20 2261 7564 6973 7064 2d70  ame = "audispd-p
│ │ │ +004fe5f0: 6c75 6769 6e73 220a 7665 7273 696f 6e20  lugins".version 
│ │ │ +004fe600: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remedi │ │ │ -004ffa40: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -004ffa50: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -004ffa60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[[packag
│ │ │ -004ffab0: 6573 5d5d 0a6e 616d 6520 3d20 2261 7564  es]].name = "aud
│ │ │ -004ffac0: 6974 6422 0a76 6572 7369 6f6e 203d 2022  itd".version = "
│ │ │ -004ffad0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -004ffae0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -004ffb90: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -004ffba0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -004ffc70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -004ffcc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:low
Disrup │ │ │ +004fe3b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +004fe3c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +004fe400: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +004fe410: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -004ffc30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -004ffc50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -004ffca0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -004ffcb0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include insta
│ │ │ -004ffce0: 6c6c 5f61 7564 6974 640a 0a63 6c61 7373  ll_auditd..class
│ │ │ -004ffcf0: 2069 6e73 7461 6c6c 5f61 7564 6974 6420   install_auditd 
│ │ │ -004ffd00: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ -004ffd10: 7564 6974 6427 3a0a 2020 2020 656e 7375  uditd':.    ensu
│ │ │ -004ffd20: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -004ffd30: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -004ffd50: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -004ffd60: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -004ffd70: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -004ffd80: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -004ffd90: 6431 3437 3922 2074 6162 696e 6465 783d d1479" tabindex= │ │ │ -004ffda0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -004ffdb0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -004ffdc0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -004ffdd0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -004ffde0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -004ffdf0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -004ffe00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -004ffe10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -004ffea0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -004ffeb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -004fff00: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -004fff40: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -004fff50: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -004fff60: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -004fff70: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -004fff80: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ -004fff90: 412d 5354 4947 2d55 4254 552d 3232 2d36  A-STIG-UBTU-22-6
│ │ │ -004fffa0: 3533 3031 300a 2020 2d20 4e49 5354 2d38  53010.  - NIST-8
│ │ │ -004fffb0: 3030 2d35 332d 4143 2d37 2861 290a 2020  00-53-AC-7(a).  
│ │ │ -004fffc0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -004fffd0: 2d31 3228 3229 0a20 202d 204e 4953 542d  -12(2).  - NIST-
│ │ │ -004fffe0: 3830 302d 3533 2d41 552d 3134 0a20 202d  800-53-AU-14.  -
│ │ │ -004ffff0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00500000: 3228 6129 0a20 202d 204e 4953 542d 3830  2(a).  - NIST-80
│ │ │ -00500010: 302d 3533 2d41 552d 3728 3129 0a20 202d  0-53-AU-7(1).  -
│ │ │ -00500020: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00500030: 3728 3229 0a20 202d 204e 4953 542d 3830  7(2).  - NIST-80
│ │ │ -00500040: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00500050: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00500060: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ -00500070: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ -00500080: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ -00500090: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -005000a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -005000b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -005000c0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -005000d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -005000e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -005000f0: 2070 6163 6b61 6765 5f61 7564 6974 5f69   package_audit_i
│ │ │ -00500100: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -00500110: 3a20 456e 7375 7265 2061 7564 6974 6420  : Ensure auditd 
│ │ │ -00500120: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -00500130: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00500140: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00500150: 3a20 6175 6469 7464 0a20 2020 2073 7461  : auditd.    sta
│ │ │ -00500160: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00500170: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00500180: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00500190: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -005001a0: 6167 733a 0a20 202d 2044 4953 412d 5354  ags:.  - DISA-ST
│ │ │ -005001b0: 4947 2d55 4254 552d 3232 2d36 3533 3031  IG-UBTU-22-65301
│ │ │ -005001c0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -005001d0: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ -005001e0: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -005001f0: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ -00500200: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ -00500210: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ -00500220: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00500230: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ -00500240: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ -00500250: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00500260: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00500270: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -00500280: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -00500290: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -005002a0: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -005002b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -005002c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -005002d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -005002e0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -005002f0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00500300: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00500310: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ -00500320: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
C │ │ │ -004ffe90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -004ffec0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -004ffed0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -004fff10: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -004fff20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +004ffae0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +004ffaf0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +004ffb10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +004ffb30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +004ffb40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +004ffb80: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +004ffb90: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +004ffba0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +004ffbb0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +004ffbc0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +004ffbd0: 7461 6773 3a0a 2020 2d20 4449 5341 2d53 tags:. - DISA-S │ │ │ +004ffbe0: 5449 472d 5542 5455 2d32 322d 3635 3330 TIG-UBTU-22-6530 │ │ │ +004ffbf0: 3130 0a20 202d 204e 4953 542d 3830 302d 10. - NIST-800- │ │ │ +004ffc00: 3533 2d41 432d 3728 6129 0a20 202d 204e 53-AC-7(a). - N │ │ │ +004ffc10: 4953 542d 3830 302d 3533 2d41 552d 3132 IST-800-53-AU-12 │ │ │ +004ffc20: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ +004ffc30: 2d35 332d 4155 2d31 340a 2020 2d20 4e49 -53-AU-14. - NI │ │ │ +004ffc40: 5354 2d38 3030 2d35 332d 4155 2d32 2861 ST-800-53-AU-2(a │ │ │ +004ffc50: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +004ffc60: 332d 4155 2d37 2831 290a 2020 2d20 4e49 3-AU-7(1). - NI │ │ │ +004ffc70: 5354 2d38 3030 2d35 332d 4155 2d37 2832 ST-800-53-AU-7(2 │ │ │ +004ffc80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +004ffc90: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +004ffca0: 492d 4453 532d 5265 712d 3130 2e31 0a20 I-DSS-Req-10.1. │ │ │ +004ffcb0: 202d 2050 4349 2d44 5353 7634 2d31 302e - PCI-DSSv4-10. │ │ │ +004ffcc0: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +004ffcd0: 3130 2e32 2e31 0a20 202d 2065 6e61 626c 10.2.1. - enabl │ │ │ +004ffce0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +004ffcf0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +004ffd00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +004ffd10: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +004ffd20: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +004ffd30: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +004ffd40: 636b 6167 655f 6175 6469 745f 696e 7374 ckage_audit_inst │ │ │ +004ffd50: 616c 6c65 640a 0a2d 206e 616d 653a 2045 alled..- name: E │ │ │ +004ffd60: 6e73 7572 6520 6175 6469 7464 2069 7320 nsure auditd is │ │ │ +004ffd70: 696e 7374 616c 6c65 640a 2020 616e 7369 installed. ansi │ │ │ +004ffd80: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +004ffd90: 6167 653a 0a20 2020 206e 616d 653a 2061 age:. name: a │ │ │ +004ffda0: 7564 6974 640a 2020 2020 7374 6174 653a uditd. state: │ │ │ +004ffdb0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ +004ffdc0: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +004ffdd0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +004ffde0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +004ffdf0: 3a0a 2020 2d20 4449 5341 2d53 5449 472d :. - DISA-STIG- │ │ │ +004ffe00: 5542 5455 2d32 322d 3635 3330 3130 0a20 UBTU-22-653010. │ │ │ +004ffe10: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ +004ffe20: 432d 3728 6129 0a20 202d 204e 4953 542d C-7(a). - NIST- │ │ │ +004ffe30: 3830 302d 3533 2d41 552d 3132 2832 290a 800-53-AU-12(2). │ │ │ +004ffe40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +004ffe50: 4155 2d31 340a 2020 2d20 4e49 5354 2d38 AU-14. - NIST-8 │ │ │ +004ffe60: 3030 2d35 332d 4155 2d32 2861 290a 2020 00-53-AU-2(a). │ │ │ +004ffe70: 2d20 4e49 5354 2d38 3030 2d35 332d 4155 - NIST-800-53-AU │ │ │ +004ffe80: 2d37 2831 290a 2020 2d20 4e49 5354 2d38 -7(1). - NIST-8 │ │ │ +004ffe90: 3030 2d35 332d 4155 2d37 2832 290a 2020 00-53-AU-7(2). │ │ │ +004ffea0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +004ffeb0: 2d36 2861 290a 2020 2d20 5043 492d 4453 -6(a). - PCI-DS │ │ │ +004ffec0: 532d 5265 712d 3130 2e31 0a20 202d 2050 S-Req-10.1. - P │ │ │ +004ffed0: 4349 2d44 5353 7634 2d31 302e 320a 2020 CI-DSSv4-10.2. │ │ │ +004ffee0: 2d20 5043 492d 4453 5376 342d 3130 2e32 - PCI-DSSv4-10.2 │ │ │ +004ffef0: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ +004fff00: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +004fff10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +004fff20: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +004fff30: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +004fff40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +004fff50: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +004fff60: 655f 6175 6469 745f 696e 7374 616c 6c65 e_audit_installe │ │ │ +004fff70: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.
< │ │ │ +004fff80: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +00500030: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00500040: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +005000c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +005000e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00500130: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00500160: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00500180: 6c5f 6175 6469 7464 0a0a 636c 6173 7320  l_auditd..class 
│ │ │ +00500190: 696e 7374 616c 6c5f 6175 6469 7464 207b  install_auditd {
│ │ │ +005001a0: 0a20 2070 6163 6b61 6765 207b 2027 6175  .  package { 'au
│ │ │ +005001b0: 6469 7464 273a 0a20 2020 2065 6e73 7572  ditd':.    ensur
│ │ │ +005001c0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +005001d0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ +00500290: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +005002a0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +005002b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[[pack │ │ │ +00500300: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ +00500310: 7564 6974 6422 0a76 6572 7369 6f6e 203d uditd".version = │ │ │ +00500320: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".Remedi │ │ │ -00502150: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00502160: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00502170: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...

.[customi
│ │ │ -005021c0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -005021d0: 5d0a 656e 6162 6c65 6420 3d20 5b22 6175  ].enabled = ["au
│ │ │ -005021e0: 6469 7464 225d 0a3c 2f63 6f64 653e 3c2f  ditd"].
Remediat │ │ │ -005022a0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -005022b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -005022f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00502300: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00502310: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00502320: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00502330: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -005023c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -005023d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:< │ │ │ +005000d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +005000f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00500140: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00500150: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complex │ │ │ -00502340: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00502350: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00502390: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -005023a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include e
│ │ │ -005023f0: 6e61 626c 655f 6175 6469 7464 0a0a 636c  nable_auditd..cl
│ │ │ -00502400: 6173 7320 656e 6162 6c65 5f61 7564 6974  ass enable_audit
│ │ │ -00502410: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -00502420: 6175 6469 7464 273a 0a20 2020 2065 6e61  auditd':.    ena
│ │ │ -00502430: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -00502440: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00502450: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -00502460: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00502470: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -00502520: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00502530: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -005025c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -005025e0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00502600: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00502630: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00502640: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00502650: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -00502670: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00502680: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00502690: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -005026a0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -005026b0: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ -005026c0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ -005026d0: 5455 2d32 322d 3635 3330 3135 0a20 202d  TU-22-653015.  -
│ │ │ -005026e0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -005026f0: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ -00502700: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ -00502710: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -00502720: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -00502730: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ -00502740: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ -00502750: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00502760: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ -00502770: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ -00502780: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00502790: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ -005027a0: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │ -005027b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -005027c0: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ -005027d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -005027e0: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -005027f0: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ -00502800: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ -00502810: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ -00502820: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -00502830: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ -00502840: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00502850: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00502860: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00502870: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00502880: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00502890: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -005028a0: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ -005028b0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -005028c0: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -005028d0: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ -005028e0: 6365 2061 7564 6974 640a 2020 626c 6f63  ce auditd.  bloc
│ │ │ -005028f0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -00502900: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00502910: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -00502920: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00502930: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -00502940: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -00502950: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -00502960: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ -00502970: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -00502980: 6175 6469 7464 0a20 2020 2061 6e73 6962  auditd.    ansib
│ │ │ -00502990: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -005029a0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -005029b0: 6175 6469 7464 0a20 2020 2020 2065 6e61  auditd.      ena
│ │ │ -005029c0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -005029d0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -005029e0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -005029f0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -00502a00: 2020 2d20 2722 6175 6469 7464 2220 696e    - '"auditd" in
│ │ │ -00502a10: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00502a20: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00502a30: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ -00502a40: 310a 2020 2d20 4449 5341 2d53 5449 472d  1.  - DISA-STIG-
│ │ │ -00502a50: 5542 5455 2d32 322d 3635 3330 3135 0a20  UBTU-22-653015. 
│ │ │ -00502a60: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -00502a70: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ -00502a80: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ -00502a90: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00502aa0: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ -00502ab0: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ -00502ac0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -00502ad0: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ -00502ae0: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ -00502af0: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -00502b00: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ -00502b10: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ -00502b20: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ -00502b30: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ -00502b40: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ -00502b50: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00502b60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00502b70: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ -00502b80: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ -00502b90: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00502ba0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00502bb0: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ -00502bc0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00502bd0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00502be0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00502bf0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00502c00: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00502c10: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00502c20: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ -00502c30: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00502c40: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00502c50: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -00502c60: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00502c70: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00502c80: 6573 270a 2020 2d20 2722 6175 6469 7464  es'.  - '"auditd
│ │ │ -00502c90: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00502ca0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
Comp │ │ │ +005021f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00502200: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00502220: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00502240: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00502250: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00502290: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +005022a0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +005022b0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +005022c0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +005022d0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +005022e0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ +005022f0: 2e34 2e31 2e31 0a20 202d 2044 4953 412d .4.1.1. - DISA- │ │ │ +00502300: 5354 4947 2d55 4254 552d 3232 2d36 3533 STIG-UBTU-22-653 │ │ │ +00502310: 3031 350a 2020 2d20 4e49 5354 2d38 3030 015. - NIST-800 │ │ │ +00502320: 2d31 3731 2d33 2e33 2e31 0a20 202d 204e -171-3.3.1. - N │ │ │ +00502330: 4953 542d 3830 302d 3137 312d 332e 332e IST-800-171-3.3. │ │ │ +00502340: 320a 2020 2d20 4e49 5354 2d38 3030 2d31 2. - NIST-800-1 │ │ │ +00502350: 3731 2d33 2e33 2e36 0a20 202d 204e 4953 71-3.3.6. - NIS │ │ │ +00502360: 542d 3830 302d 3533 2d41 432d 3228 6729 T-800-53-AC-2(g) │ │ │ +00502370: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00502380: 2d41 432d 3628 3929 0a20 202d 204e 4953 -AC-6(9). - NIS │ │ │ +00502390: 542d 3830 302d 3533 2d41 552d 3130 0a20 T-800-53-AU-10. │ │ │ +005023a0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ +005023b0: 552d 3132 2863 290a 2020 2d20 4e49 5354 U-12(c). - NIST │ │ │ +005023c0: 2d38 3030 2d35 332d 4155 2d31 3428 3129 -800-53-AU-14(1) │ │ │ +005023d0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +005023e0: 2d41 552d 3228 6429 0a20 202d 204e 4953 -AU-2(d). - NIS │ │ │ +005023f0: 542d 3830 302d 3533 2d41 552d 330a 2020 T-800-53-AU-3. │ │ │ +00502400: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00502410: 2d36 2861 290a 2020 2d20 4e49 5354 2d38 -6(a). - NIST-8 │ │ │ +00502420: 3030 2d35 332d 5349 2d34 2832 3329 0a20 00-53-SI-4(23). │ │ │ +00502430: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ +00502440: 302e 310a 2020 2d20 5043 492d 4453 5376 0.1. - PCI-DSSv │ │ │ +00502450: 342d 3130 2e32 0a20 202d 2050 4349 2d44 4-10.2. - PCI-D │ │ │ +00502460: 5353 7634 2d31 302e 322e 310a 2020 2d20 SSv4-10.2.1. - │ │ │ +00502470: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +00502480: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +00502490: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +005024a0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +005024b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +005024c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +005024d0: 202d 2073 6572 7669 6365 5f61 7564 6974 - service_audit │ │ │ +005024e0: 645f 656e 6162 6c65 640a 0a2d 206e 616d d_enabled..- nam │ │ │ +005024f0: 653a 2045 6e61 626c 6520 6175 6469 7464 e: Enable auditd │ │ │ +00502500: 2053 6572 7669 6365 202d 2045 6e61 626c Service - Enabl │ │ │ +00502510: 6520 7365 7276 6963 6520 6175 6469 7464 e service auditd │ │ │ +00502520: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e . block:.. - n │ │ │ +00502530: 616d 653a 2047 6174 6865 7220 7468 6520 ame: Gather the │ │ │ +00502540: 7061 636b 6167 6520 6661 6374 730a 2020 package facts. │ │ │ +00502550: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +00502560: 6e2e 7061 636b 6167 655f 6661 6374 733a n.package_facts: │ │ │ +00502570: 0a20 2020 2020 206d 616e 6167 6572 3a20 . manager: │ │ │ +00502580: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20 auto.. - name: │ │ │ +00502590: 456e 6162 6c65 2061 7564 6974 6420 5365 Enable auditd Se │ │ │ +005025a0: 7276 6963 6520 2d20 456e 6162 6c65 2053 rvice - Enable S │ │ │ +005025b0: 6572 7669 6365 2061 7564 6974 640a 2020 ervice auditd. │ │ │ +005025c0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +005025d0: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ +005025e0: 206e 616d 653a 2061 7564 6974 640a 2020 name: auditd. │ │ │ +005025f0: 2020 2020 656e 6162 6c65 643a 2074 7275 enabled: tru │ │ │ +00502600: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +00502610: 7461 7274 6564 0a20 2020 2020 206d 6173 tarted. mas │ │ │ +00502620: 6b65 643a 2066 616c 7365 0a20 2020 2077 ked: false. w │ │ │ +00502630: 6865 6e3a 0a20 2020 202d 2027 2261 7564 hen:. - '"aud │ │ │ +00502640: 6974 6422 2069 6e20 616e 7369 626c 655f itd" in ansible_ │ │ │ +00502650: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +00502660: 2020 7461 6773 3a0a 2020 2d20 434a 4953 tags:. - CJIS │ │ │ +00502670: 2d35 2e34 2e31 2e31 0a20 202d 2044 4953 -5.4.1.1. - DIS │ │ │ +00502680: 412d 5354 4947 2d55 4254 552d 3232 2d36 A-STIG-UBTU-22-6 │ │ │ +00502690: 3533 3031 350a 2020 2d20 4e49 5354 2d38 53015. - NIST-8 │ │ │ +005026a0: 3030 2d31 3731 2d33 2e33 2e31 0a20 202d 00-171-3.3.1. - │ │ │ +005026b0: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ +005026c0: 332e 320a 2020 2d20 4e49 5354 2d38 3030 3.2. - NIST-800 │ │ │ +005026d0: 2d31 3731 2d33 2e33 2e36 0a20 202d 204e -171-3.3.6. - N │ │ │ +005026e0: 4953 542d 3830 302d 3533 2d41 432d 3228 IST-800-53-AC-2( │ │ │ +005026f0: 6729 0a20 202d 204e 4953 542d 3830 302d g). - NIST-800- │ │ │ +00502700: 3533 2d41 432d 3628 3929 0a20 202d 204e 53-AC-6(9). - N │ │ │ +00502710: 4953 542d 3830 302d 3533 2d41 552d 3130 IST-800-53-AU-10 │ │ │ +00502720: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00502730: 2d41 552d 3132 2863 290a 2020 2d20 4e49 -AU-12(c). - NI │ │ │ +00502740: 5354 2d38 3030 2d35 332d 4155 2d31 3428 ST-800-53-AU-14( │ │ │ +00502750: 3129 0a20 202d 204e 4953 542d 3830 302d 1). - NIST-800- │ │ │ +00502760: 3533 2d41 552d 3228 6429 0a20 202d 204e 53-AU-2(d). - N │ │ │ +00502770: 4953 542d 3830 302d 3533 2d41 552d 330a IST-800-53-AU-3. │ │ │ +00502780: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00502790: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ +005027a0: 2d38 3030 2d35 332d 5349 2d34 2832 3329 -800-53-SI-4(23) │ │ │ +005027b0: 0a20 202d 2050 4349 2d44 5353 2d52 6571 . - PCI-DSS-Req │ │ │ +005027c0: 2d31 302e 310a 2020 2d20 5043 492d 4453 -10.1. - PCI-DS │ │ │ +005027d0: 5376 342d 3130 2e32 0a20 202d 2050 4349 Sv4-10.2. - PCI │ │ │ +005027e0: 2d44 5353 7634 2d31 302e 322e 310a 2020 -DSSv4-10.2.1. │ │ │ +005027f0: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ +00502800: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +00502810: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +00502820: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +00502830: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +00502840: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00502850: 0a20 202d 2073 6572 7669 6365 5f61 7564 . - service_aud │ │ │ +00502860: 6974 645f 656e 6162 6c65 640a 2020 2d20 itd_enabled. - │ │ │ +00502870: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ +00502880: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020 block. when:. │ │ │ +00502890: 2d20 2722 6c69 6e75 782d 6261 7365 2220 - '"linux-base" │ │ │ +005028a0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +005028b0: 2e70 6163 6b61 6765 7327 0a20 202d 2027 .packages'. - ' │ │ │ +005028c0: 2261 7564 6974 6422 2069 6e20 616e 7369 "auditd" in ansi │ │ │ +005028d0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +005028e0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265 es'.
Remediation │ │ │ +005029a0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +005029b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +00502a40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00502a60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00502a70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00502a80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00502a90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00502ab0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +00502af0: 6c65 5f61 7564 6974 640a 0a63 6c61 7373  le_auditd..class
│ │ │ +00502b00: 2065 6e61 626c 655f 6175 6469 7464 207b   enable_auditd {
│ │ │ +00502b10: 0a20 2073 6572 7669 6365 207b 2761 7564  .  service {'aud
│ │ │ +00502b20: 6974 6427 3a0a 2020 2020 656e 6162 6c65  itd':.    enable
│ │ │ +00502b30: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ +00502b40: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ +00502b50: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ +00502b60: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +00502c10: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00502c20: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00502c30: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +00502c80: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00502c90: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +00502ca0: 3d20 5b22 6175 6469 7464 225d 0a3c 2f63  = ["auditd"].
│ │ │ 00502cc0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -186,14 +169,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -850,27 +850,14 @@ │ │ │ │ $ apt-get remove prelink │ │ │ │ The use of the prelink package can interfere with the operation of AIDE since it │ │ │ │ Rationale: binaries. Prelinking can also increase damage caused by vulnerability in a common library │ │ │ │ like libc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_prelink_removed │ │ │ │ References: _c_i_s 1.5.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_prelink │ │ │ │ - │ │ │ │ -class remove_prelink { │ │ │ │ - package { 'prelink': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Check If Prelinked Is Installed │ │ │ │ ansible.builtin.stat: │ │ │ │ @@ -904,14 +891,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_disruption │ │ │ │ - medium_complexity │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_prelink_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_prelink │ │ │ │ + │ │ │ │ +class remove_prelink { │ │ │ │ + package { 'prelink': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ if [[ -f /usr/sbin/prelink ]]; │ │ │ │ @@ -2162,31 +2162,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -2213,14 +2196,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -8075,31 +8075,14 @@ │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -8120,14 +8103,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -8149,31 +8149,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215010 │ │ │ │ _s_t_i_g_r_e_f SV-260478r991587_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260478 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -8196,14 +8179,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-215010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -8218,31 +8218,14 @@ │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM │ │ │ │ options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -8251,14 +8234,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -11282,31 +11282,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access │ │ │ │ Control system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -11316,14 +11299,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -11343,31 +11343,14 @@ │ │ │ │ _o_s_-_s_r_g 000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG-OS-000324-GPOS- │ │ │ │ 00125, SRG-OS-000370-GPOS-00155 │ │ │ │ References: _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ _s_t_i_g_i_d UBTU-22-431010 │ │ │ │ _s_t_i_g_r_e_f SV-260556r958702_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260556 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -11378,14 +11361,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-431010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -12019,31 +12019,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an │ │ │ │ Rationale: attacker gains root access on the local system, they could tamper with or remove log data │ │ │ │ that is stored on the local system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12064,14 +12047,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12099,31 +12099,14 @@ │ │ │ │ system is compromised. Additionally, centralized logs facilitate correlation of events │ │ │ │ across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.2.1.2.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12159,14 +12142,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -12192,31 +12192,14 @@ │ │ │ │ Rationale: determine cause of failure and any information necessary to return to operations with │ │ │ │ least disruption to system processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.2.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12251,14 +12234,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -13541,27 +13541,14 @@ │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -13582,14 +13569,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -20190,31 +20190,14 @@ │ │ │ │ nftables service The nftables service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable nftables.service │ │ │ │ Rationale: The nftables service restores the nftables rules from the rules files referenced in the / │ │ │ │ etc/sysconfig/nftables.conf file during boot or the starting of the nftables service │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_enabled │ │ │ │ References: _c_i_s 4.2.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_nftables │ │ │ │ - │ │ │ │ -class enable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -20248,14 +20231,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_enabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_nftables │ │ │ │ + │ │ │ │ +class enable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -20279,50 +20279,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: nftables should be disabled if another firewall service is used as it may lead to │ │ │ │ conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.3.1.2 │ │ │ │ _p_c_i_d_s_s_4 1.2.1, 1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nftables"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nftables.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nftables.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nftables │ │ │ │ - │ │ │ │ -class disable_nftables { │ │ │ │ - service {'nftables': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -20378,14 +20342,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "nftables" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nftables.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nftables.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nftables │ │ │ │ + │ │ │ │ +class disable_nftables { │ │ │ │ + service {'nftables': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nftables"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'nftables' 2>/dev/null | grep - │ │ │ │ @@ -21761,50 +21761,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t AC-18(a), AC-18(3), CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["bluetooth"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: bluetooth.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: bluetooth.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_bluetooth │ │ │ │ - │ │ │ │ -class disable_bluetooth { │ │ │ │ - service {'bluetooth': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -21868,14 +21832,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_bluetooth_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: bluetooth.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: bluetooth.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_bluetooth │ │ │ │ + │ │ │ │ +class disable_bluetooth { │ │ │ │ + service {'bluetooth': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["bluetooth"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -28684,27 +28684,14 @@ │ │ │ │ $ apt-get remove autofs │ │ │ │ With automounting enabled anyone with physical access could attach a USB drive or disc │ │ │ │ Rationale: and have its contents available in the filesystem even if they lacked permissions to │ │ │ │ mount it themselves. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_autofs_removed │ │ │ │ References: _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_autofs │ │ │ │ - │ │ │ │ -class remove_autofs { │ │ │ │ - package { 'autofs': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove autofs Package: Ensure autofs is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28713,14 +28700,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_autofs_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_autofs │ │ │ │ + │ │ │ │ +class remove_autofs { │ │ │ │ + package { 'autofs': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove autofs │ │ │ │ @@ -28777,50 +28777,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.18.1.4, A.6.2.1, A.6.2.2, A.7.1.1, │ │ │ │ A.9.2.1, A.9.2.2, A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-3, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["autofs"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: autofs.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: autofs.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_autofs │ │ │ │ - │ │ │ │ -class disable_autofs { │ │ │ │ - service {'autofs': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -28881,14 +28845,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_autofs_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "autofs" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: autofs.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: autofs.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_autofs │ │ │ │ + │ │ │ │ +class disable_autofs { │ │ │ │ + service {'autofs': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["autofs"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'autofs' 2>/dev/null | grep - │ │ │ │ @@ -34916,50 +34916,14 @@ │ │ │ │ $ sudo systemctl mask --now apport.service │ │ │ │ The Apport service modifies the kernel fs.suid_dumpable configuration at runtime which │ │ │ │ Rationale: prevents other hardening from being persistent. Disabling the service prevents this │ │ │ │ behavior. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_apport_disabled │ │ │ │ References: _c_i_s 1.5.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apport"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apport.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apport.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apport │ │ │ │ - │ │ │ │ -class disable_apport { │ │ │ │ - service {'apport': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35009,14 +34973,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_apport_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"apport" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apport.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apport.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apport │ │ │ │ + │ │ │ │ +class disable_apport { │ │ │ │ + service {'apport': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apport"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'apport' 2>/dev/null | grep - │ │ │ │ @@ -35068,27 +35068,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_avahi-daemon │ │ │ │ - │ │ │ │ -class remove_avahi-daemon { │ │ │ │ - package { 'avahi-daemon': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall avahi Server Package: Ensure avahi-daemon is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35100,14 +35087,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_avahi_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_avahi-daemon │ │ │ │ + │ │ │ │ +class remove_avahi-daemon { │ │ │ │ + package { 'avahi-daemon': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove avahi-daemon │ │ │ │ @@ -35152,50 +35152,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["avahi-daemon"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: avahi-daemon.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: avahi-daemon.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_avahi-daemon │ │ │ │ - │ │ │ │ -class disable_avahi-daemon { │ │ │ │ - service {'avahi-daemon': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35257,14 +35221,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi-daemon" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: avahi-daemon.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: avahi-daemon.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_avahi-daemon │ │ │ │ + │ │ │ │ +class disable_avahi-daemon { │ │ │ │ + service {'avahi-daemon': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["avahi-daemon"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'avahi-daemon' 2>/dev/null | grep - │ │ │ │ @@ -36357,31 +36357,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36408,14 +36391,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -36446,31 +36446,14 @@ │ │ │ │ SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -36505,14 +36488,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38353,27 +38353,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, more and more replaced │ │ │ │ Rationale: by LDAP. NIS does not support efficiently security constraints, ACL, etc. and should not │ │ │ │ be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38382,14 +38369,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -38446,27 +38446,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_isc-dhcp-server │ │ │ │ - │ │ │ │ -class remove_isc-dhcp-server { │ │ │ │ - package { 'isc-dhcp-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure isc-dhcp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38480,14 +38467,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_isc-dhcp-server │ │ │ │ + │ │ │ │ +class remove_isc-dhcp-server { │ │ │ │ + package { 'isc-dhcp-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove isc-dhcp-server │ │ │ │ @@ -38518,50 +38518,14 @@ │ │ │ │ dhcpd6 service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd6.service │ │ │ │ Rationale: Unmanaged or unintentionally activated DHCP servers may provide faulty information to │ │ │ │ clients, interfering with the operation of a legitimate site DHCP server if there is one. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd6.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd6.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd6 │ │ │ │ - │ │ │ │ -class disable_dhcpd6 { │ │ │ │ - service {'dhcpd6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38611,14 +38575,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd6.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd6.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd6 │ │ │ │ + │ │ │ │ +class disable_dhcpd6 { │ │ │ │ + service {'dhcpd6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38662,50 +38662,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dhcpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dhcpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dhcpd │ │ │ │ - │ │ │ │ -class disable_dhcpd { │ │ │ │ - service {'dhcpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38761,14 +38725,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dhcpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dhcpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dhcpd │ │ │ │ + │ │ │ │ +class disable_dhcpd { │ │ │ │ + service {'dhcpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dhcpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -38820,27 +38820,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind9 │ │ │ │ - │ │ │ │ -class remove_bind9 { │ │ │ │ - package { 'bind9': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind9 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38852,14 +38839,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind9 │ │ │ │ + │ │ │ │ +class remove_bind9 { │ │ │ │ + package { 'bind9': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind9 │ │ │ │ @@ -38892,27 +38892,14 @@ │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38921,14 +38908,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -38959,50 +38959,14 @@ │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or │ │ │ │ Rationale: DHCP server, it is recommended that the package be removed to reduce the potential attack │ │ │ │ surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dnsmasq.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dnsmasq.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39052,14 +39016,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dnsmasq.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dnsmasq.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39114,27 +39114,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS- │ │ │ │ 00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39150,14 +39137,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -39200,50 +39200,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: vsftpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: vsftpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39299,14 +39263,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: vsftpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: vsftpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39343,27 +39343,14 @@ │ │ │ │ Rationale: recommended SFTP be used if file transfer is required. Unless there is a need to run the │ │ │ │ system as a FTP server (for example, to allow anonymous downloads), it is recommended │ │ │ │ that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39374,14 +39361,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -39436,27 +39436,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39468,14 +39455,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -39517,50 +39517,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apache2.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apache2.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39616,14 +39580,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apache2.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apache2.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39668,27 +39668,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39700,14 +39687,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -39737,50 +39737,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nginx.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nginx.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39830,14 +39794,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nginx.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nginx.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -39874,27 +39874,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot-core │ │ │ │ - │ │ │ │ -class remove_dovecot-core { │ │ │ │ - package { 'dovecot-core': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot-core is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39903,14 +39890,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot-core │ │ │ │ + │ │ │ │ +class remove_dovecot-core { │ │ │ │ + package { 'dovecot-core': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot-core │ │ │ │ @@ -39940,50 +39940,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be │ │ │ │ disabled if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dovecot.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dovecot.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40033,14 +39997,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dovecot.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dovecot.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40087,27 +40087,14 @@ │ │ │ │ command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software │ │ │ │ is removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ldap-utils │ │ │ │ - │ │ │ │ -class remove_ldap-utils { │ │ │ │ - package { 'ldap-utils': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure ldap-utils is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40116,14 +40103,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ldap-utils │ │ │ │ + │ │ │ │ +class remove_ldap-utils { │ │ │ │ + package { 'ldap-utils': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ldap-utils │ │ │ │ @@ -40169,27 +40169,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_slapd │ │ │ │ - │ │ │ │ -class remove_slapd { │ │ │ │ - package { 'slapd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure slapd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40201,14 +40188,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_slapd │ │ │ │ + │ │ │ │ +class remove_slapd { │ │ │ │ + package { 'slapd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove slapd │ │ │ │ @@ -40238,50 +40238,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up │ │ │ │ information from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software │ │ │ │ be disabled to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: slapd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: slapd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40331,14 +40295,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: slapd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: slapd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40472,27 +40472,14 @@ │ │ │ │ then this service should be disabled. The rpcbind package can be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40513,14 +40500,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40563,50 +40563,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be │ │ │ │ disabled to reduce the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rpcbind.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rpcbind.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40660,14 +40624,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rpcbind.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rpcbind.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40717,50 +40717,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nfs-server.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nfs-server.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -40817,14 +40781,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nfs-server.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nfs-server.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -40858,27 +40858,14 @@ │ │ │ │ these services be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ _c_i_s 2.1.9 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215040 │ │ │ │ _s_t_i_g_r_e_f SV-279937r1156364_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-279937 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -40888,14 +40875,27 @@ │ │ │ │ - DISA-STIG-UBTU-22-215040 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -42019,27 +42019,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42071,14 +42058,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42135,50 +42135,14 @@ │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: xinetd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: xinetd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42236,14 +42200,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: xinetd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: xinetd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42302,27 +42302,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42338,14 +42325,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -42376,50 +42376,14 @@ │ │ │ │ disabled. The ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or │ │ │ │ NIS+ domain. This service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: ypserv.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: ypserv.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42469,14 +42433,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: ypserv.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: ypserv.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -42518,27 +42518,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-client │ │ │ │ - │ │ │ │ -class remove_rsh-client { │ │ │ │ - package { 'rsh-client': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh-client is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42550,14 +42537,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-client │ │ │ │ + │ │ │ │ +class remove_rsh-client { │ │ │ │ + package { 'rsh-client': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-client │ │ │ │ @@ -42639,27 +42639,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42670,14 +42657,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -42718,27 +42718,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), │ │ │ │ 164.312(e)(2)(ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42750,14 +42737,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -42816,27 +42816,14 @@ │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42850,14 +42837,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -42903,50 +42903,14 @@ │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR │ │ │ │ 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: tftpd-hpa.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: tftpd-hpa.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43002,14 +42966,50 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: tftpd-hpa.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: tftpd-hpa.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -43041,27 +43041,14 @@ │ │ │ │ package can be removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43070,14 +43057,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -43108,50 +43108,14 @@ │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for │ │ │ │ communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rsyncd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rsyncd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsyncd │ │ │ │ - │ │ │ │ -class disable_rsyncd { │ │ │ │ - service {'rsyncd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43206,14 +43170,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rsyncd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rsyncd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsyncd │ │ │ │ + │ │ │ │ +class disable_rsyncd { │ │ │ │ + service {'rsyncd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -43263,27 +43263,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_cups │ │ │ │ - │ │ │ │ -class remove_cups { │ │ │ │ - package { 'cups': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall CUPS Package: Ensure cups is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43295,14 +43282,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_cups_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_cups │ │ │ │ + │ │ │ │ +class remove_cups { │ │ │ │ + package { 'cups': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove cups │ │ │ │ @@ -43343,50 +43343,14 @@ │ │ │ │ References: SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.5, SR 1.6, SR 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR │ │ │ │ 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["cups"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: cups.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: cups.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_cups │ │ │ │ - │ │ │ │ -class disable_cups { │ │ │ │ - service {'cups': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43442,14 +43406,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_cups_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: cups.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: cups.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_cups │ │ │ │ + │ │ │ │ +class disable_cups { │ │ │ │ + service {'cups': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["cups"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -43490,27 +43490,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43519,14 +43506,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -43557,50 +43557,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be │ │ │ │ removed if not needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: squid.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: squid.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43651,14 +43615,50 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: squid.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: squid.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep - │ │ │ │ @@ -43701,27 +43701,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43730,14 +43717,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -43767,50 +43767,14 @@ │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smbd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: smbd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: smbd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smbd │ │ │ │ - │ │ │ │ -class disable_smbd { │ │ │ │ - service {'smbd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43860,14 +43824,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: smbd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: smbd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smbd │ │ │ │ + │ │ │ │ +class disable_smbd { │ │ │ │ + service {'smbd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smbd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -43909,27 +43909,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a │ │ │ │ safeguard against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_snmp │ │ │ │ - │ │ │ │ -class remove_snmp { │ │ │ │ - package { 'snmp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -43940,14 +43927,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_snmp │ │ │ │ + │ │ │ │ +class remove_snmp { │ │ │ │ + package { 'snmp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove snmp │ │ │ │ @@ -43978,50 +43978,14 @@ │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled │ │ │ │ if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: snmpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: snmpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -44072,14 +44036,50 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmp" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: snmpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: snmpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmp' 2>/dev/null | grep - │ │ │ │ @@ -50038,26 +50038,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -50121,14 +50109,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ @@ -50166,23 +50166,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -50246,14 +50237,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -94547,31 +94547,14 @@ │ │ │ │ _p_c_i_d_s_s Req-10.5.3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000342-GPOS-00133 │ │ │ │ References: _c_i_s 6.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.3.3, 10.3 │ │ │ │ _s_t_i_g_i_d UBTU-22-653020 │ │ │ │ _s_t_i_g_r_e_f SV-260592r1101709_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260592 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "audispd-plugins" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_audispd-plugins │ │ │ │ - │ │ │ │ -class install_audispd-plugins { │ │ │ │ - package { 'audispd-plugins': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -94600,14 +94583,31 @@ │ │ │ │ - PCI-DSSv4-10.3.3 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit-audispd-plugins_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_audispd-plugins │ │ │ │ + │ │ │ │ +class install_audispd-plugins { │ │ │ │ + package { 'audispd-plugins': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "audispd-plugins" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -94644,31 +94644,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653010 │ │ │ │ _s_t_i_g_r_e_f SV-260590r1015022_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260590 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -94711,14 +94694,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -94784,31 +94784,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653015 │ │ │ │ _s_t_i_g_r_e_f SV-260591r1015023_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260591 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -94877,14 +94860,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2204-guide-standard.html │ │ │ @@ -20316,127 +20316,127 @@ │ │ │ 0004f5b0: 2d74 6172 6765 743d 2223 6964 3236 2220 -target="#id26" │ │ │ 0004f5c0: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 0004f5d0: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 0004f5e0: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 0004f5f0: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 0004f600: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 0004f610: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -0004f620: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0004f630: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0004f640: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ -0004f690: 616d 6520 3d20 2272 7379 736c 6f67 220a  ame = "rsyslog".
│ │ │ -0004f6a0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -0004f760: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0004f770: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0004f780: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -0004f800: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0004f810: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0004f830: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0004f850: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0004f860: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0004f8a0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0004f8b0: 6520 696e 7374 616c 6c5f 7273 7973 6c6f e install_rsyslo │ │ │ -0004f8c0: 670a 0a63 6c61 7373 2069 6e73 7461 6c6c g..class install │ │ │ -0004f8d0: 5f72 7379 736c 6f67 207b 0a20 2070 6163 _rsyslog {. pac │ │ │ -0004f8e0: 6b61 6765 207b 2027 7273 7973 6c6f 6727 kage { 'rsyslog' │ │ │ -0004f8f0: 3a0a 2020 2020 656e 7375 7265 203d 2667 :. ensure =&g │ │ │ -0004f900: 743b 2027 696e 7374 616c 6c65 6427 2c0a t; 'installed',. │ │ │ -0004f910: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ -0004f9d0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0004f9e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -0004fa70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0004fa90: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0004fab0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0004fae0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0004faf0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -0004fb00: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -0004fb20: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0004fb30: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0004fb40: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0004fb50: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0004fb60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0004fb70: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -0004fb80: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0004fb90: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0004fba0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0004fbb0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0004fbc0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0004fbd0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0004fbe0: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ -0004fbf0: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -0004fc00: 2045 6e73 7572 6520 7273 7973 6c6f 6720   Ensure rsyslog 
│ │ │ -0004fc10: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0004fc20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0004fc30: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0004fc40: 3a20 7273 7973 6c6f 670a 2020 2020 7374  : rsyslog.    st
│ │ │ -0004fc50: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -0004fc60: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0004fc70: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0004fc80: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0004fc90: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0004fca0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0004fcb0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0004fcc0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0004fcd0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0004fce0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0004fcf0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0004fd00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0004fd10: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ -0004fd20: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a3c  slog_installed.<
│ │ │ +0004f620: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +0004f630: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
Complexity │ │ │ +0004f6c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0004f6e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0004f6f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0004f700: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0004f710: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0004f730: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +0004f770: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0004f780: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0004f790: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0004f7a0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0004f7b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0004f7c0: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +0004f7d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0004f7e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0004f7f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0004f800: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0004f810: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0004f820: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0004f830: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +0004f840: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +0004f850: 3a20 456e 7375 7265 2072 7379 736c 6f67  : Ensure rsyslog
│ │ │ +0004f860: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +0004f870: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0004f880: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0004f890: 653a 2072 7379 736c 6f67 0a20 2020 2073  e: rsyslog.    s
│ │ │ +0004f8a0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +0004f8b0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0004f8c0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0004f8d0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +0004f8e0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0004f8f0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0004f900: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0004f910: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0004f920: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0004f930: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0004f940: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0004f950: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0004f960: 640a 2020 2d20 7061 636b 6167 655f 7273  d.  - package_rs
│ │ │ +0004f970: 7973 6c6f 675f 696e 7374 616c 6c65 640a  yslog_installed.
│ │ │ +0004f980: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +0004fa30: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0004fa40: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ +0004faf0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0004fb40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0004fad0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0004fb00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0004fb20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0004fb30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0004fb50: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0004fb60: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0004fb80: 7564 6520 696e 7374 616c 6c5f 7273 7973  ude install_rsys
│ │ │ +0004fb90: 6c6f 670a 0a63 6c61 7373 2069 6e73 7461  log..class insta
│ │ │ +0004fba0: 6c6c 5f72 7379 736c 6f67 207b 0a20 2070  ll_rsyslog {.  p
│ │ │ +0004fbb0: 6163 6b61 6765 207b 2027 7273 7973 6c6f  ackage { 'rsyslo
│ │ │ +0004fbc0: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ +0004fbd0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +0004fbe0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0004fbf0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +0004fca0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0004fcb0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0004fcc0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ +0004fd10: 6e61 6d65 203d 2022 7273 7973 6c6f 6722  name = "rsyslog"
│ │ │ +0004fd20: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  0004fd30: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation O │ │ │ -000510d0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -000510e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000510f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -00051130: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -00051140: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -00051150: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │ -00051160: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -00051210: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00051220: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00051230: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -000512b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000512e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00051300: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00051310: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00051330: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00051350: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00051360: 6465 2065 6e61 626c 655f 7273 7973 6c6f  de enable_rsyslo
│ │ │ -00051370: 670a 0a63 6c61 7373 2065 6e61 626c 655f  g..class enable_
│ │ │ -00051380: 7273 7973 6c6f 6720 7b0a 2020 7365 7276  rsyslog {.  serv
│ │ │ -00051390: 6963 6520 7b27 7273 7973 6c6f 6727 3a0a  ice {'rsyslog':.
│ │ │ -000513a0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -000513b0: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ -000513c0: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ -000513d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -000513e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -00051490: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000514a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000514b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000514c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000514d0: 7365 2220 6964 3d22 6964 3333 223e 3c74 se" id="id33"> │ │ │ -00051520: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00051530: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00051540: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00051580: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00051590: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000515b0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000515d0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000515e0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000515f0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00051600: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00051610: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00051620: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -00051630: 5542 5455 2d32 322d 3635 3230 3130 0a20  UBTU-22-652010. 
│ │ │ -00051640: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00051650: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -00051660: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00051670: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00051680: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00051690: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000516a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000516b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000516c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000516d0: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -000516e0: 7973 6c6f 675f 656e 6162 6c65 640a 0a2d  yslog_enabled..-
│ │ │ -000516f0: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ -00051700: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ -00051710: 456e 6162 6c65 2073 6572 7669 6365 2072  Enable service r
│ │ │ -00051720: 7379 736c 6f67 0a20 2062 6c6f 636b 3a0a  syslog.  block:.
│ │ │ -00051730: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00051740: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00051750: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00051760: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00051770: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00051780: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00051790: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ -000517a0: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ -000517b0: 6e61 626c 6520 5365 7276 6963 6520 7273  nable Service rs
│ │ │ -000517c0: 7973 6c6f 670a 2020 2020 616e 7369 626c  yslog.    ansibl
│ │ │ -000517d0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -000517e0: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -000517f0: 7379 736c 6f67 0a20 2020 2020 2065 6e61  syslog.      ena
│ │ │ -00051800: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -00051810: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -00051820: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -00051830: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -00051840: 2020 2d20 2722 7273 7973 6c6f 6722 2069    - '"rsyslog" i
│ │ │ -00051850: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00051860: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00051870: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -00051880: 5542 5455 2d32 322d 3635 3230 3130 0a20  UBTU-22-652010. 
│ │ │ -00051890: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000518a0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -000518b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000518c0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000518d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000518e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000518f0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00051900: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00051910: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00051920: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -00051930: 7973 6c6f 675f 656e 6162 6c65 640a 2020  yslog_enabled.  
│ │ │ -00051940: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00051950: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00051960: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00051970: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00051980: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +000510c0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +000510d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +000510e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
< │ │ │ +00051160: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00051180: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000511d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00051220: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00051230: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00051240: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00051250: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00051260: 2044 4953 412d 5354 4947 2d55 4254 552d   DISA-STIG-UBTU-
│ │ │ +00051270: 3232 2d36 3532 3031 300a 2020 2d20 4e49  22-652010.  - NI
│ │ │ +00051280: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ +00051290: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000512a0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +000512b0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000512c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000512d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000512e0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +000512f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00051300: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00051310: 2073 6572 7669 6365 5f72 7379 736c 6f67   service_rsyslog
│ │ │ +00051320: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ +00051330: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ +00051340: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +00051350: 6520 7365 7276 6963 6520 7273 7973 6c6f  e service rsyslo
│ │ │ +00051360: 670a 2020 626c 6f63 6b3a 0a0a 2020 2d20  g.  block:..  - 
│ │ │ +00051370: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00051380: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00051390: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +000513a0: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ +000513b0: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ +000513c0: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ +000513d0: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ +000513e0: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +000513f0: 2053 6572 7669 6365 2072 7379 736c 6f67   Service rsyslog
│ │ │ +00051400: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00051410: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00051420: 2020 2020 6e61 6d65 3a20 7273 7973 6c6f      name: rsyslo
│ │ │ +00051430: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ +00051440: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +00051450: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +00051460: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +00051470: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +00051480: 2272 7379 736c 6f67 2220 696e 2061 6e73  "rsyslog" in ans
│ │ │ +00051490: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +000514a0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +000514b0: 2044 4953 412d 5354 4947 2d55 4254 552d   DISA-STIG-UBTU-
│ │ │ +000514c0: 3232 2d36 3532 3031 300a 2020 2d20 4e49  22-652010.  - NI
│ │ │ +000514d0: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ +000514e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000514f0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +00051500: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00051510: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00051520: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00051530: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00051540: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00051550: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00051560: 2073 6572 7669 6365 5f72 7379 736c 6f67   service_rsyslog
│ │ │ +00051570: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ +00051580: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00051590: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +000515a0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +000515b0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000515c0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation P │ │ │ +00051680: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00051690: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ +00051190: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000511a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000511e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000511f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +00051760: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00051770: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000517c0: 696e 636c 7564 6520 656e 6162 6c65 5f72  include enable_r
│ │ │ +000517d0: 7379 736c 6f67 0a0a 636c 6173 7320 656e  syslog..class en
│ │ │ +000517e0: 6162 6c65 5f72 7379 736c 6f67 207b 0a20  able_rsyslog {. 
│ │ │ +000517f0: 2073 6572 7669 6365 207b 2772 7379 736c   service {'rsysl
│ │ │ +00051800: 6f67 273a 0a20 2020 2065 6e61 626c 6520  og':.    enable 
│ │ │ +00051810: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +00051820: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +00051830: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Rem │ │ │ +000518f0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00051900: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00051910: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[custom │ │ │ +00051960: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00051970: 735d 0a65 6e61 626c 6564 203d 205b 2272 s].enabled = ["r │ │ │ +00051980: 7379 736c 6f67 225d 0a3c 2f63 6f64 653e syslog"]. │ │ │ 00051990: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remediation OSB │ │ │ -00072f90: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00072fa0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[cu
│ │ │ -00072ff0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -00073000: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -00073010: 5b22 6170 706f 7274 225d 0a3c 2f63 6f64  ["apport"].
Remedi │ │ │ -000730d0: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ -000730e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000730f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +00051740: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00051750: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00051790: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000517a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Reboot:true │ │ │ -000731e0: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -00073220: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -00073230: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -00073240: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -00073250: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -00073260: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -00073270: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -00073280: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -00073290: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -000732a0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -000732b0: 2020 2020 2020 2d20 6e61 6d65 3a20 6170        - name: ap
│ │ │ -000732c0: 706f 7274 2e73 6572 7669 6365 0a20 2020  port.service.   
│ │ │ -000732d0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -000732e0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -000732f0: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -00073300: 616d 653a 2061 7070 6f72 742e 736f 636b  ame: apport.sock
│ │ │ -00073310: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -00073320: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00073330: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -00073350: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -000733f0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00073400: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -00073170: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000731a0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -000731b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -000731f0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00073200: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -000734b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000734d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00073500: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00073490: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000734a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000734c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000734e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000734f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00073540: 2064 6973 6162 6c65 5f61 7070 6f72 740a disable_apport. │ │ │ -00073550: 0a63 6c61 7373 2064 6973 6162 6c65 5f61 .class disable_a │ │ │ -00073560: 7070 6f72 7420 7b0a 2020 7365 7276 6963 pport {. servic │ │ │ -00073570: 6520 7b27 6170 706f 7274 273a 0a20 2020 e {'apport':. │ │ │ -00073580: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ -00073590: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ -000735a0: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ -000735b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediatio │ │ │ -00073670: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00073680: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -00073710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00073730: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00073740: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00073750: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00073760: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00073780: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -000737b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000737c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000737d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000737e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000737f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00073800: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00073810: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00073820: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00073830: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00073840: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00073850: 0a20 202d 2073 6572 7669 6365 5f61 7070  .  - service_app
│ │ │ -00073860: 6f72 745f 6469 7361 626c 6564 0a20 202d  ort_disabled.  -
│ │ │ -00073870: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -00073880: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ -00073890: 6c65 2041 7070 6f72 7420 5365 7276 6963  le Apport Servic
│ │ │ -000738a0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -000738b0: 6963 6520 6170 706f 7274 0a20 2062 6c6f  ice apport.  blo
│ │ │ -000738c0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -000738d0: 6973 6162 6c65 2041 7070 6f72 7420 5365  isable Apport Se
│ │ │ -000738e0: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -000738f0: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00073900: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00073910: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00073920: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00073930: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00073940: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00073950: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -00073960: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -00073970: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -00073980: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00073990: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -000739a0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -000739b0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -000739c0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -000739d0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -000739e0: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ -000739f0: 7070 6f72 7420 5365 7276 6963 6520 2d20  pport Service - 
│ │ │ -00073a00: 456e 7375 7265 2061 7070 6f72 742e 7365  Ensure apport.se
│ │ │ -00073a10: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00073a20: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00073a30: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00073a40: 2020 206e 616d 653a 2061 7070 6f72 742e     name: apport.
│ │ │ -00073a50: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -00073a60: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -00073a70: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00073a80: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -00073a90: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00073aa0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -00073ab0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00073ac0: 6172 6368 2822 6170 706f 7274 2e73 6572  arch("apport.ser
│ │ │ -00073ad0: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00073ae0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00073af0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00073b00: 6973 7473 202d 2061 7070 6f72 742e 736f  ists - apport.so
│ │ │ -00073b10: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00073b20: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00073b30: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00073b40: 6973 742d 756e 6974 2d66 696c 6573 2061  ist-unit-files a
│ │ │ -00073b50: 7070 6f72 742e 736f 636b 6574 0a20 2020  pport.socket.   
│ │ │ -00073b60: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -00073b70: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -00073b80: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -00073b90: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -00073ba0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -00073bb0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -00073bc0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00073bd0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00073be0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00073bf0: 626c 6520 4170 706f 7274 2053 6572 7669  ble Apport Servi
│ │ │ -00073c00: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -00073c10: 6b65 7420 6170 706f 7274 0a20 2020 2061  ket apport.    a
│ │ │ -00073c20: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00073c30: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00073c40: 6d65 3a20 6170 706f 7274 2e73 6f63 6b65  me: apport.socke
│ │ │ -00073c50: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -00073c60: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -00073c70: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00073c80: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00073c90: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -00073ca0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -00073cb0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00073cc0: 6368 2822 6170 706f 7274 2e73 6f63 6b65  ch("apport.socke
│ │ │ -00073cd0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -00073ce0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -00073cf0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00073d00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00073d10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00073d20: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -00073d30: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00073d40: 7365 7276 6963 655f 6170 706f 7274 5f64  service_apport_d
│ │ │ -00073d50: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -00073d60: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -00073d70: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365  k.  - unknown_se
│ │ │ -00073d80: 7665 7269 7479 0a20 2077 6865 6e3a 2027  verity.  when: '
│ │ │ -00073d90: 2261 7070 6f72 7422 2069 6e20 616e 7369  "apport" in ansi
│ │ │ -00073da0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00073db0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation Ans │ │ │ +00072f90: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00072fa0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00073070: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00073080: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +000730d0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000730e0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000730f0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00073100: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00073110: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00073120: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00073130: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00073140: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00073150: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00073160: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00073170: 7365 7276 6963 655f 6170 706f 7274 5f64  service_apport_d
│ │ │ +00073180: 6973 6162 6c65 640a 2020 2d20 756e 6b6e  isabled.  - unkn
│ │ │ +00073190: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20  own_severity..- 
│ │ │ +000731a0: 6e61 6d65 3a20 4469 7361 626c 6520 4170  name: Disable Ap
│ │ │ +000731b0: 706f 7274 2053 6572 7669 6365 202d 2044  port Service - D
│ │ │ +000731c0: 6973 6162 6c65 2073 6572 7669 6365 2061  isable service a
│ │ │ +000731d0: 7070 6f72 740a 2020 626c 6f63 6b3a 0a0a  pport.  block:..
│ │ │ +000731e0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +000731f0: 6520 4170 706f 7274 2053 6572 7669 6365  e Apport Service
│ │ │ +00073200: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +00073210: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +00073220: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +00073230: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +00073240: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00073250: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00073260: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00073270: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00073280: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00073290: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +000732a0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +000732b0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +000732c0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +000732d0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +000732e0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +000732f0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00073300: 3a20 4469 7361 626c 6520 4170 706f 7274  : Disable Apport
│ │ │ +00073310: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +00073320: 6520 6170 706f 7274 2e73 6572 7669 6365  e apport.service
│ │ │ +00073330: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00073340: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00073350: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00073360: 6d65 3a20 6170 706f 7274 2e73 6572 7669  me: apport.servi
│ │ │ +00073370: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +00073380: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +00073390: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +000733a0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +000733b0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +000733c0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +000733d0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +000733e0: 2261 7070 6f72 742e 7365 7276 6963 6522  "apport.service"
│ │ │ +000733f0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +00073400: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +00073410: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +00073420: 2d20 6170 706f 7274 2e73 6f63 6b65 740a  - apport.socket.
│ │ │ +00073430: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00073440: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00073450: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00073460: 6e69 742d 6669 6c65 7320 6170 706f 7274  nit-files apport
│ │ │ +00073470: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +00073480: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +00073490: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +000734a0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +000734b0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +000734c0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +000734d0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +000734e0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +000734f0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00073500: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ +00073510: 7070 6f72 7420 5365 7276 6963 6520 2d20  pport Service - 
│ │ │ +00073520: 4469 7361 626c 6520 536f 636b 6574 2061  Disable Socket a
│ │ │ +00073530: 7070 6f72 740a 2020 2020 616e 7369 626c  pport.    ansibl
│ │ │ +00073540: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00073550: 643a 0a20 2020 2020 206e 616d 653a 2061  d:.      name: a
│ │ │ +00073560: 7070 6f72 742e 736f 636b 6574 0a20 2020  pport.socket.   
│ │ │ +00073570: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +00073580: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00073590: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +000735a0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +000735b0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +000735c0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +000735d0: 6e65 7320 6973 2073 6561 7263 6828 2261  nes is search("a
│ │ │ +000735e0: 7070 6f72 742e 736f 636b 6574 222c 206d  pport.socket", m
│ │ │ +000735f0: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ +00073600: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00073610: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00073620: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00073630: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00073640: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00073650: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00073660: 6365 5f61 7070 6f72 745f 6469 7361 626c  ce_apport_disabl
│ │ │ +00073670: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +00073680: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ +00073690: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +000736a0: 790a 2020 7768 656e 3a20 2722 6170 706f  y.  when: '"appo
│ │ │ +000736b0: 7274 2220 696e 2061 6e73 6962 6c65 5f66  rt" in ansible_f
│ │ │ +000736c0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +000736d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +00073780: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ +00073790: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ +000737a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +00073050: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00073060: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000730a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +000730b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00073890: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +000738c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +000738e0: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +000738f0: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +00073900: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +00073910: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +00073920: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +00073930: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +00073940: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +00073950: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +00073960: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +00073970: 3a20 6170 706f 7274 2e73 6572 7669 6365  : apport.service
│ │ │ +00073980: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +00073990: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +000739a0: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +000739b0: 202d 206e 616d 653a 2061 7070 6f72 742e   - name: apport.
│ │ │ +000739c0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +000739d0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +000739e0: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +000739f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00073aa0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00073ab0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +00073850: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +00073860: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +000738a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +000738b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00073b50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00073b60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00073bb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00073bf0: 6c75 6465 2064 6973 6162 6c65 5f61 7070  lude disable_app
│ │ │ +00073c00: 6f72 740a 0a63 6c61 7373 2064 6973 6162  ort..class disab
│ │ │ +00073c10: 6c65 5f61 7070 6f72 7420 7b0a 2020 7365  le_apport {.  se
│ │ │ +00073c20: 7276 6963 6520 7b27 6170 706f 7274 273a  rvice {'apport':
│ │ │ +00073c30: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +00073c40: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +00073c50: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +00073c60: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ +00073d20: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00073d30: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00073d40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ +00073d80: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00073d90: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00073da0: 6d61 736b 6564 203d 205b 2261 7070 6f72  masked = ["appor
│ │ │ +00073db0: 7422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  t"].
Remediati │ │ │ -00075730: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00075740: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00075750: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ -000757a0: 6e61 6d65 203d 2022 6372 6f6e 220a 7665  name = "cron".ve
│ │ │ -000757b0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -000757d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000757e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000757f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00075800: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00075810: 6439 3422 2074 6162 696e 6465 783d 2230 d94" tabindex="0 │ │ │ -00075820: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00075830: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00075840: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00075850: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00075860: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00075870: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00075880: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000758c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ +00073b40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00073b70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00073b80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00073bc0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00073bd0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00075930: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00075950: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00075980: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000759a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00075910: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00075920: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00075960: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00075970: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000759c0: 696e 7374 616c 6c5f 6372 6f6e 0a0a 636c install_cron..cl │ │ │ -000759d0: 6173 7320 696e 7374 616c 6c5f 6372 6f6e ass install_cron │ │ │ -000759e0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -000759f0: 6372 6f6e 273a 0a20 2020 2065 6e73 7572 cron':. ensur │ │ │ -00075a00: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ -00075a10: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remedi │ │ │ -00075ad0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00075ae0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00075b20: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00075b90: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00075bb0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00075be0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00075c00: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00075b70: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00075b80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00075bc0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00075bd0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00075c20: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00075c30: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00075c40: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00075c50: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00075c60: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00075c70: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -00075c80: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -00075c90: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -00075ca0: 360a 2020 2d20 656e 6162 6c65 5f73 7472 6. - enable_str │ │ │ -00075cb0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -00075cc0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -00075cd0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -00075ce0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -00075cf0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -00075d00: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -00075d10: 5f63 726f 6e5f 696e 7374 616c 6c65 640a _cron_installed. │ │ │ -00075d20: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ -00075d30: 6372 6f6e 2069 7320 696e 7374 616c 6c65 cron is installe │ │ │ -00075d40: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -00075d50: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -00075d60: 206e 616d 653a 2063 726f 6e0a 2020 2020 name: cron. │ │ │ -00075d70: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ -00075d80: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ -00075d90: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -00075da0: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -00075db0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -00075dc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -00075dd0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -00075de0: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -00075df0: 322e 322e 360a 2020 2d20 656e 6162 6c65 2.2.6. - enable │ │ │ -00075e00: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -00075e10: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -00075e20: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00075e30: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -00075e40: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00075e50: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -00075e60: 6b61 6765 5f63 726f 6e5f 696e 7374 616c kage_cron_instal │ │ │ -00075e70: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.

< │ │ │ +000757c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000757d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000757f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00075800: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00075820: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00075840: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00075870: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00075880: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00075890: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +000758a0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +000758b0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +000758c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000758d0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +000758e0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +000758f0: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +00075900: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00075910: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00075920: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00075930: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00075940: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00075950: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00075960: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ +00075970: 6f6e 5f69 6e73 7461 6c6c 6564 0a0a 2d20  on_installed..- 
│ │ │ +00075980: 6e61 6d65 3a20 456e 7375 7265 2063 726f  name: Ensure cro
│ │ │ +00075990: 6e20 6973 2069 6e73 7461 6c6c 6564 0a20  n is installed. 
│ │ │ +000759a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000759b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000759c0: 6d65 3a20 6372 6f6e 0a20 2020 2073 7461  me: cron.    sta
│ │ │ +000759d0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +000759e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +000759f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00075a00: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +00075a10: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00075a20: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00075a30: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +00075a40: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00075a50: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ +00075a60: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00075a70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00075a80: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00075a90: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00075aa0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00075ab0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00075ac0: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564  e_cron_installed
│ │ │ +00075ad0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00075b80: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00075b90: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +00075c30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00075c40: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00075c90: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00075cd0: 6c75 6465 2069 6e73 7461 6c6c 5f63 726f  lude install_cro
│ │ │ +00075ce0: 6e0a 0a63 6c61 7373 2069 6e73 7461 6c6c  n..class install
│ │ │ +00075cf0: 5f63 726f 6e20 7b0a 2020 7061 636b 6167  _cron {.  packag
│ │ │ +00075d00: 6520 7b20 2763 726f 6e27 3a0a 2020 2020  e { 'cron':.    
│ │ │ +00075d10: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +00075d20: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +00075d30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +00075de0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00075df0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00075e00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00075e10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00075e40: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +00075e50: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +00075e60: 6372 6f6e 220a 7665 7273 696f 6e20 3d20 cron".version = │ │ │ +00075e70: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Re │ │ │ -00077090: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000770a0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000770b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000770c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000770d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000770e0: 7365 2220 6964 3d22 6964 3938 223e 3c70 se" id="id98">

.[custo │ │ │ -00077100: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00077110: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -00077120: 6372 6f6e 225d 0a3c 2f63 6f64 653e 3c2f cron"].Remediatio │ │ │ -000771e0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000771f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

low< │ │ │ -000772c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00077310: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
C │ │ │ +00075c20: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00075c50: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00075c60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00075ca0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00075cb0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00077280: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -000772a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -000772f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00077300: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ -00077330: 655f 6372 6f6e 0a0a 636c 6173 7320 656e  e_cron..class en
│ │ │ -00077340: 6162 6c65 5f63 726f 6e20 7b0a 2020 7365  able_cron {.  se
│ │ │ -00077350: 7276 6963 6520 7b27 6372 6f6e 273a 0a20  rvice {'cron':. 
│ │ │ -00077360: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00077370: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -00077380: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -00077390: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000773a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00077450: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00077460: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00077470: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00077480: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00077490: 7365 2220 6964 3d22 6964 3130 3022 3e3c se" id="id100">< │ │ │ -000774a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000774b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000774c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000774d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000774e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000774f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00077500: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00077540: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00077550: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00077570: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00077580: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -000775a0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000775b0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -000775c0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000775d0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000775e0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000775f0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00077600: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00077610: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00077620: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00077630: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00077640: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00077650: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00077660: 2d20 7365 7276 6963 655f 6372 6f6e 5f65  - service_cron_e
│ │ │ -00077670: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -00077680: 456e 6162 6c65 2063 726f 6e20 5365 7276  Enable cron Serv
│ │ │ -00077690: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ -000776a0: 7669 6365 2063 726f 6e0a 2020 626c 6f63  vice cron.  bloc
│ │ │ -000776b0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -000776c0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000776d0: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -000776e0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000776f0: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -00077700: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -00077710: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -00077720: 6372 6f6e 2053 6572 7669 6365 202d 2045  cron Service - E
│ │ │ -00077730: 6e61 626c 6520 5365 7276 6963 6520 6372  nable Service cr
│ │ │ -00077740: 6f6e 0a20 2020 2061 6e73 6962 6c65 2e62  on.    ansible.b
│ │ │ -00077750: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00077760: 2020 2020 2020 6e61 6d65 3a20 6372 6f6e        name: cron
│ │ │ -00077770: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00077780: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -00077790: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -000777a0: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -000777b0: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -000777c0: 6372 6f6e 2220 696e 2061 6e73 6962 6c65  cron" in ansible
│ │ │ -000777d0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000777e0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000777f0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00077800: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00077810: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00077820: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00077830: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00077840: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00077850: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00077860: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00077870: 6372 6f6e 5f65 6e61 626c 6564 0a20 202d  cron_enabled.  -
│ │ │ -00077880: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00077890: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -000778a0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000778b0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000778c0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00077090: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +000770a0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low< │ │ │ +00077150: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000771a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00077130: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00077160: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00077180: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00077190: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000771b0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000771c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000771e0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +000771f0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00077200: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00077210: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00077220: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00077230: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00077240: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00077250: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00077260: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00077270: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00077280: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00077290: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000772a0: 6564 0a20 202d 2073 6572 7669 6365 5f63  ed.  - service_c
│ │ │ +000772b0: 726f 6e5f 656e 6162 6c65 640a 0a2d 206e  ron_enabled..- n
│ │ │ +000772c0: 616d 653a 2045 6e61 626c 6520 6372 6f6e  ame: Enable cron
│ │ │ +000772d0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +000772e0: 6520 7365 7276 6963 6520 6372 6f6e 0a20  e service cron. 
│ │ │ +000772f0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00077300: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00077310: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00077320: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00077330: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00077340: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00077350: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00077360: 6162 6c65 2063 726f 6e20 5365 7276 6963  able cron Servic
│ │ │ +00077370: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +00077380: 6365 2063 726f 6e0a 2020 2020 616e 7369  ce cron.    ansi
│ │ │ +00077390: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +000773a0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +000773b0: 2063 726f 6e0a 2020 2020 2020 656e 6162   cron.      enab
│ │ │ +000773c0: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +000773d0: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +000773e0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +000773f0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +00077400: 202d 2027 2263 726f 6e22 2069 6e20 616e   - '"cron" in an
│ │ │ +00077410: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00077420: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00077430: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00077440: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00077450: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00077460: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00077470: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00077480: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00077490: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000774a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +000774b0: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ +000774c0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +000774d0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +000774e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +000774f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00077500: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00077520: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +000775c0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000775d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00077680: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000776a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000776d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00077660: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00077670: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00077690: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000776b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000776c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00077710: 2065 6e61 626c 655f 6372 6f6e 0a0a 636c enable_cron..cl │ │ │ +00077720: 6173 7320 656e 6162 6c65 5f63 726f 6e20 ass enable_cron │ │ │ +00077730: 7b0a 2020 7365 7276 6963 6520 7b27 6372 {. service {'cr │ │ │ +00077740: 6f6e 273a 0a20 2020 2065 6e61 626c 6520 on':. enable │ │ │ +00077750: 3d26 6774 3b20 7472 7565 2c0a 2020 2020 => true,. │ │ │ +00077760: 656e 7375 7265 203d 2667 743b 2027 7275 ensure => 'ru │ │ │ +00077770: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f nning',. }.}.

Re │ │ │ +00077830: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00077840: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00077850: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00077860: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00077870: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00077880: 7365 2220 6964 3d22 6964 3130 3022 3e3c se" id="id100">< │ │ │ +00077890: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000778a0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000778b0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000778c0: 2263 726f 6e22 5d0a 3c2f 636f 6465 3e3c "cron"].< │ │ │ 000778d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Rem │ │ │ -00078e90: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00078ea0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00078eb0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00078f30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00078f60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00078f80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00078f90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00078fb0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00078fc0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00078fe0: 6c75 6465 2072 656d 6f76 655f 696e 6574  lude remove_inet
│ │ │ -00078ff0: 7574 696c 732d 7465 6c6e 6574 640a 0a63  utils-telnetd..c
│ │ │ -00079000: 6c61 7373 2072 656d 6f76 655f 696e 6574  lass remove_inet
│ │ │ -00079010: 7574 696c 732d 7465 6c6e 6574 6420 7b0a  utils-telnetd {.
│ │ │ -00079020: 2020 7061 636b 6167 6520 7b20 2769 6e65    package { 'ine
│ │ │ -00079030: 7475 7469 6c73 2d74 656c 6e65 7464 273a  tutils-telnetd':
│ │ │ -00079040: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00079050: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00079060: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00079070: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00079120: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00079130: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000791b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000791d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00079220: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00079250: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00079270: 7461 6c6c 2074 6865 2069 6e65 742d 6261  tall the inet-ba
│ │ │ -00079280: 7365 6420 7465 6c6e 6574 2073 6572 7665  sed telnet serve
│ │ │ -00079290: 723a 2045 6e73 7572 6520 696e 6574 7574  r: Ensure inetut
│ │ │ -000792a0: 696c 732d 7465 6c6e 6574 6420 6973 2072  ils-telnetd is r
│ │ │ -000792b0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -000792c0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000792d0: 653a 0a20 2020 206e 616d 653a 2069 6e65  e:.    name: ine
│ │ │ -000792e0: 7475 7469 6c73 2d74 656c 6e65 7464 0a20  tutils-telnetd. 
│ │ │ -000792f0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00079300: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00079310: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00079320: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00079330: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00079340: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -00079350: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00079360: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -00079370: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -00079380: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00079390: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000793a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000793b0: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ -000793c0: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -000793d0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00078e90: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00078ea0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00078eb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -000791e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000791f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00079230: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00079240: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
low< │ │ │ +00078f50: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00078fa0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00078fe0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00078ff0: 7468 6520 696e 6574 2d62 6173 6564 2074  the inet-based t
│ │ │ +00079000: 656c 6e65 7420 7365 7276 6572 3a20 456e  elnet server: En
│ │ │ +00079010: 7375 7265 2069 6e65 7475 7469 6c73 2d74  sure inetutils-t
│ │ │ +00079020: 656c 6e65 7464 2069 7320 7265 6d6f 7665  elnetd is remove
│ │ │ +00079030: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00079040: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00079050: 2020 6e61 6d65 3a20 696e 6574 7574 696c    name: inetutil
│ │ │ +00079060: 732d 7465 6c6e 6574 640a 2020 2020 7374  s-telnetd.    st
│ │ │ +00079070: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00079080: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00079090: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000790a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +000790b0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +000790c0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +000790d0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +000790e0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +000790f0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +00079100: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00079110: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00079120: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00079130: 2d20 7061 636b 6167 655f 696e 6574 7574  - package_inetut
│ │ │ +00079140: 696c 732d 7465 6c6e 6574 645f 7265 6d6f  ils-telnetd_remo
│ │ │ +00079150: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +00079210: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00079220: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ +00078f30: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00078f60: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00078f80: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00078f90: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00078fb0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00078fc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +000792a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000792c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00079310: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00079340: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +000792b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000792d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00079320: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00079330: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00079360: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ +00079370: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ +00079380: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ +00079390: 6e65 7464 207b 0a20 2070 6163 6b61 6765  netd {.  package
│ │ │ +000793a0: 207b 2027 696e 6574 7574 696c 732d 7465   { 'inetutils-te
│ │ │ +000793b0: 6c6e 6574 6427 3a0a 2020 2020 656e 7375  lnetd':.    ensu
│ │ │ +000793c0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +000793d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  000793e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation Pu │ │ │ -0007a1d0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0007a1e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0007a2b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0007a2c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -0007a320: 5f6e 6973 0a0a 636c 6173 7320 7265 6d6f  _nis..class remo
│ │ │ -0007a330: 7665 5f6e 6973 207b 0a20 2070 6163 6b61  ve_nis {.  packa
│ │ │ -0007a340: 6765 207b 2027 6e69 7327 3a0a 2020 2020  ge { 'nis':.    
│ │ │ -0007a350: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -0007a360: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -0007a380: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0007a420: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0007a430: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007a440: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ -0007a290: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0007a2a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0007a2e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0007a2f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -0007a4e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007a530: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0007a570: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0007a580: 7468 6520 6e69 7320 7061 636b 6167 653a  the nis package:
│ │ │ -0007a590: 2045 6e73 7572 6520 6e69 7320 6973 2072   Ensure nis is r
│ │ │ -0007a5a0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0007a5b0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0007a5c0: 653a 0a20 2020 206e 616d 653a 206e 6973  e:.    name: nis
│ │ │ -0007a5d0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -0007a5e0: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ -0007a5f0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0007a600: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0007a610: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0007a620: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -0007a630: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0007a640: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0007a650: 7061 636b 6167 655f 6e69 735f 7265 6d6f  package_nis_remo
│ │ │ -0007a660: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation An │ │ │ +0007a1d0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0007a1e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -0007a4c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007a4f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007a510: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007a520: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007a540: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007a550: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0007a260: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007a280: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007a2d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007a300: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +0007a320: 7461 6c6c 2074 6865 206e 6973 2070 6163  tall the nis pac
│ │ │ +0007a330: 6b61 6765 3a20 456e 7375 7265 206e 6973  kage: Ensure nis
│ │ │ +0007a340: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +0007a350: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0007a360: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0007a370: 3a20 6e69 730a 2020 2020 7374 6174 653a  : nis.    state:
│ │ │ +0007a380: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +0007a390: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0007a3a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0007a3b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0007a3c0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +0007a3d0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +0007a3e0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0007a3f0: 0a20 202d 2070 6163 6b61 6765 5f6e 6973  .  - package_nis
│ │ │ +0007a400: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007a410: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007a4c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0007a4d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007a4e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007a4f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007a500: 7365 2220 6964 3d22 6964 3130 3822 3e3c se" id="id108">< │ │ │ +0007a510: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007a520: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007a530: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007a540: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007a550: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0007a5e0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0007a5f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ +0007a290: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007a2a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007a2e0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007a2f0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ +0007a560: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007a570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0007a5b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007a5c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +0007a610: 2072 656d 6f76 655f 6e69 730a 0a63 6c61 remove_nis..cla │ │ │ +0007a620: 7373 2072 656d 6f76 655f 6e69 7320 7b0a ss remove_nis {. │ │ │ +0007a630: 2020 7061 636b 6167 6520 7b20 276e 6973 package { 'nis │ │ │ +0007a640: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +0007a650: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +0007a660: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Re │ │ │ -0007b290: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0007b2a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007b2b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0007b350: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007b3a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0007b3e0: 636c 7564 6520 7265 6d6f 7665 5f6e 7470  clude remove_ntp
│ │ │ -0007b3f0: 6461 7465 0a0a 636c 6173 7320 7265 6d6f  date..class remo
│ │ │ -0007b400: 7665 5f6e 7470 6461 7465 207b 0a20 2070  ve_ntpdate {.  p
│ │ │ -0007b410: 6163 6b61 6765 207b 2027 6e74 7064 6174  ackage { 'ntpdat
│ │ │ -0007b420: 6527 3a0a 2020 2020 656e 7375 7265 203d  e':.    ensure =
│ │ │ -0007b430: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0007b440: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -0007b500: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -0007b510: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -0007b5d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007b5e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ -0007b330: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007b360: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007b380: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007b390: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007b3b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007b3c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -0007b5a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0007b5c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0007b5f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0007b610: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0007b640: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0007b650: 696e 7374 616c 6c20 7468 6520 6e74 7064  install the ntpd
│ │ │ -0007b660: 6174 6520 7061 636b 6167 653a 2045 6e73  ate package: Ens
│ │ │ -0007b670: 7572 6520 6e74 7064 6174 6520 6973 2072  ure ntpdate is r
│ │ │ -0007b680: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0007b690: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0007b6a0: 653a 0a20 2020 206e 616d 653a 206e 7470  e:.    name: ntp
│ │ │ -0007b6b0: 6461 7465 0a20 2020 2073 7461 7465 3a20  date.    state: 
│ │ │ -0007b6c0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0007b6d0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0007b6e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0007b6f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0007b700: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -0007b710: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -0007b720: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0007b730: 2020 2d20 7061 636b 6167 655f 6e74 7064    - package_ntpd
│ │ │ -0007b740: 6174 655f 7265 6d6f 7665 640a 3c2f 636f  ate_removed.
< │ │ │ +0007b340: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007b350: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007b3a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0007b3e0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0007b3f0: 2074 6865 206e 7470 6461 7465 2070 6163   the ntpdate pac
│ │ │ +0007b400: 6b61 6765 3a20 456e 7375 7265 206e 7470  kage: Ensure ntp
│ │ │ +0007b410: 6461 7465 2069 7320 7265 6d6f 7665 6427  date is removed'
│ │ │ +0007b420: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0007b430: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0007b440: 6e61 6d65 3a20 6e74 7064 6174 650a 2020  name: ntpdate.  
│ │ │ +0007b450: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0007b460: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +0007b470: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0007b480: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0007b490: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0007b4a0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +0007b4b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0007b4c0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0007b4d0: 6b61 6765 5f6e 7470 6461 7465 5f72 656d  kage_ntpdate_rem
│ │ │ +0007b4e0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation
│ │ │ +0007b5a0: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +0007b5b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +0007b680: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +0007b330: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007b360: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007b370: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007b3b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007b3c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0007b640: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0007b660: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0007b6b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007b6c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0007b6f0: 6f76 655f 6e74 7064 6174 650a 0a63 6c61  ove_ntpdate..cla
│ │ │ +0007b700: 7373 2072 656d 6f76 655f 6e74 7064 6174  ss remove_ntpdat
│ │ │ +0007b710: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ +0007b720: 276e 7470 6461 7465 273a 0a20 2020 2065  'ntpdate':.    e
│ │ │ +0007b730: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0007b740: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0007b760: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0007b770: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0007b780: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0007b790: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007b7a0: 6431 3133 2220 7461 6269 6e64 6578 3d22 d113" tabindex=" │ │ │ 0007b7b0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -31911,97 +31911,97 @@ │ │ │ 0007ca60: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 0007ca70: 3131 3522 2074 6162 696e 6465 783d 2230 115" tabindex="0 │ │ │ 0007ca80: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 0007ca90: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 0007caa0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 0007cab0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 0007cac0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0007cad0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0007cae0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0007cb90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007cbb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007cbe0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007cb70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007cb80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007cba0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007cbc0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007cbd0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007cc10: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0007cc20: 6465 2072 656d 6f76 655f 7465 6c6e 6574 de remove_telnet │ │ │ -0007cc30: 642d 7373 6c0a 0a63 6c61 7373 2072 656d d-ssl..class rem │ │ │ -0007cc40: 6f76 655f 7465 6c6e 6574 642d 7373 6c20 ove_telnetd-ssl │ │ │ -0007cc50: 7b0a 2020 7061 636b 6167 6520 7b20 2774 {. package { 't │ │ │ -0007cc60: 656c 6e65 7464 2d73 736c 273a 0a20 2020 elnetd-ssl':. │ │ │ -0007cc70: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ -0007cc80: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
Re │ │ │ -0007cd40: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0007cd50: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0007cdf0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007ce00: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007ce50: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0007ce90: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -0007cea0: 2074 6865 2073 736c 2063 6f6d 706c 6961   the ssl complia
│ │ │ -0007ceb0: 6e74 2074 656c 6e65 7420 7365 7276 6572  nt telnet server
│ │ │ -0007cec0: 3a20 456e 7375 7265 2074 656c 6e65 7464  : Ensure telnetd
│ │ │ -0007ced0: 2d73 736c 2069 7320 7265 6d6f 7665 6427  -ssl is removed'
│ │ │ -0007cee0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0007cef0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0007cf00: 6e61 6d65 3a20 7465 6c6e 6574 642d 7373  name: telnetd-ss
│ │ │ -0007cf10: 6c0a 2020 2020 7374 6174 653a 2061 6273  l.    state: abs
│ │ │ -0007cf20: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0007cf30: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0007cf40: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0007cf50: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0007cf60: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0007cf70: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -0007cf80: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -0007cf90: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -0007cfa0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0007cfb0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0007cfc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0007cfd0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0007cfe0: 655f 7465 6c6e 6574 642d 7373 6c5f 7265  e_telnetd-ssl_re
│ │ │ -0007cff0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

C │ │ │ -0007cde0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007ce10: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007ce20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007ce60: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0007ce70: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +0007cb70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0007cb80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0007cba0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0007cbc0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0007cbd0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0007cc10: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0007cc20: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +0007cc30: 6520 7373 6c20 636f 6d70 6c69 616e 7420  e ssl compliant 
│ │ │ +0007cc40: 7465 6c6e 6574 2073 6572 7665 723a 2045  telnet server: E
│ │ │ +0007cc50: 6e73 7572 6520 7465 6c6e 6574 642d 7373  nsure telnetd-ss
│ │ │ +0007cc60: 6c20 6973 2072 656d 6f76 6564 270a 2020  l is removed'.  
│ │ │ +0007cc70: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0007cc80: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0007cc90: 653a 2074 656c 6e65 7464 2d73 736c 0a20  e: telnetd-ssl. 
│ │ │ +0007cca0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0007ccb0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0007ccc0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0007ccd0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0007cce0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0007ccf0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0007cd00: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0007cd10: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +0007cd20: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +0007cd30: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0007cd40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0007cd50: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007cd60: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +0007cd70: 656c 6e65 7464 2d73 736c 5f72 656d 6f76  elnetd-ssl_remov
│ │ │ +0007cd80: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007cd90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0007ce40: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0007ce50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0007ced0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007cef0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007cf40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007cf70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0007cf90: 655f 7465 6c6e 6574 642d 7373 6c0a 0a63  e_telnetd-ssl..c
│ │ │ +0007cfa0: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ +0007cfb0: 6574 642d 7373 6c20 7b0a 2020 7061 636b  etd-ssl {.  pack
│ │ │ +0007cfc0: 6167 6520 7b20 2774 656c 6e65 7464 2d73  age { 'telnetd-s
│ │ │ +0007cfd0: 736c 273a 0a20 2020 2065 6e73 7572 6520  sl':.    ensure 
│ │ │ +0007cfe0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0007cff0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Re │ │ │ -0007e510: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0007e520: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007e530: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +0007cf00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007cf10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007cf50: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007cf60: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
low< │ │ │ -0007e5d0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007e620: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0007e660: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ -0007e670: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ -0007e680: 7665 5f74 656c 6e65 7464 207b 0a20 2070  ve_telnetd {.  p
│ │ │ -0007e690: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ -0007e6a0: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -0007e6b0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0007e6c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -0007e780: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -0007e790: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -0007e850: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007e860: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ -0007e5b0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007e5e0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007e600: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007e610: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007e630: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007e640: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -0007e820: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0007e840: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0007e870: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0007e890: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0007e8c0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0007e8d0: 696e 7374 616c 6c20 7468 6520 7465 6c6e  install the teln
│ │ │ -0007e8e0: 6574 2073 6572 7665 723a 2045 6e73 7572  et server: Ensur
│ │ │ -0007e8f0: 6520 7465 6c6e 6574 6420 6973 2072 656d  e telnetd is rem
│ │ │ -0007e900: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0007e910: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0007e920: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ -0007e930: 7464 0a20 2020 2073 7461 7465 3a20 6162  td.    state: ab
│ │ │ -0007e940: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0007e950: 2044 4953 412d 5354 4947 2d55 4254 552d   DISA-STIG-UBTU-
│ │ │ -0007e960: 3232 2d32 3135 3033 350a 2020 2d20 4e49  22-215035.  - NI
│ │ │ -0007e970: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0007e980: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0007e990: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0007e9a0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0007e9b0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -0007e9c0: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -0007e9d0: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -0007e9e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0007e9f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0007ea00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0007ea10: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0007ea20: 7465 6c6e 6574 645f 7265 6d6f 7665 640a  telnetd_removed.
│ │ │ +0007e510: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0007e520: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
< │ │ │ +0007e5c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007e5d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007e620: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0007e660: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0007e670: 2074 6865 2074 656c 6e65 7420 7365 7276   the telnet serv
│ │ │ +0007e680: 6572 3a20 456e 7375 7265 2074 656c 6e65  er: Ensure telne
│ │ │ +0007e690: 7464 2069 7320 7265 6d6f 7665 6427 0a20  td is removed'. 
│ │ │ +0007e6a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0007e6b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0007e6c0: 6d65 3a20 7465 6c6e 6574 640a 2020 2020  me: telnetd.    
│ │ │ +0007e6d0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0007e6e0: 7461 6773 3a0a 2020 2d20 4449 5341 2d53  tags:.  - DISA-S
│ │ │ +0007e6f0: 5449 472d 5542 5455 2d32 322d 3231 3530  TIG-UBTU-22-2150
│ │ │ +0007e700: 3335 0a20 202d 204e 4953 542d 3830 302d  35.  - NIST-800-
│ │ │ +0007e710: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0007e720: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0007e730: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0007e740: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0007e750: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0007e760: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +0007e770: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0007e780: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0007e790: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0007e7a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0007e7b0: 2070 6163 6b61 6765 5f74 656c 6e65 7464   package_telnetd
│ │ │ +0007e7c0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007e7d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007e880: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0007e890: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007e8a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007e8b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007e8c0: 7365 2220 6964 3d22 6964 3132 3022 3e3c se" id="id120">< │ │ │ +0007e8d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007e8e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007e8f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007e900: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007e910: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0007e9a0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0007e9b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ +0007e5b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007e5e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007e5f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007e630: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007e640: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +0007e920: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007e930: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0007e970: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007e980: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +0007e9d0: 2072 656d 6f76 655f 7465 6c6e 6574 640a remove_telnetd. │ │ │ +0007e9e0: 0a63 6c61 7373 2072 656d 6f76 655f 7465 .class remove_te │ │ │ +0007e9f0: 6c6e 6574 6420 7b0a 2020 7061 636b 6167 lnetd {. packag │ │ │ +0007ea00: 6520 7b20 2774 656c 6e65 7464 273a 0a20 e { 'telnetd':. │ │ │ +0007ea10: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +0007ea20: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 0007ea30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediat │ │ │ -00096080: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00096090: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000960a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000960f0: 5d0a 6e61 6d65 203d 2022 6175 6469 7464  ].name = "auditd
│ │ │ -00096100: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -00096110: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000961c0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000961d0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00096270: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00096310: 636c 7564 6520 696e 7374 616c 6c5f 6175  clude install_au
│ │ │ -00096320: 6469 7464 0a0a 636c 6173 7320 696e 7374  ditd..class inst
│ │ │ -00096330: 616c 6c5f 6175 6469 7464 207b 0a20 2070  all_auditd {.  p
│ │ │ -00096340: 6163 6b61 6765 207b 2027 6175 6469 7464  ackage { 'auditd
│ │ │ -00096350: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00096360: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -00096370: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -00096430: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -00096440: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -000964c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -00096550: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00096260: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00096290: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000962a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000962e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000962f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -000964d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000964e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00096520: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00096530: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -00096570: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00096580: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00096590: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000965a0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -000965b0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -000965c0: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -000965d0: 5542 5455 2d32 322d 3635 3330 3130 0a20  UBTU-22-653010. 
│ │ │ -000965e0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000965f0: 432d 3728 6129 0a20 202d 204e 4953 542d  C-7(a).  - NIST-
│ │ │ -00096600: 3830 302d 3533 2d41 552d 3132 2832 290a  800-53-AU-12(2).
│ │ │ -00096610: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00096620: 4155 2d31 340a 2020 2d20 4e49 5354 2d38  AU-14.  - NIST-8
│ │ │ -00096630: 3030 2d35 332d 4155 2d32 2861 290a 2020  00-53-AU-2(a).  
│ │ │ -00096640: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00096650: 2d37 2831 290a 2020 2d20 4e49 5354 2d38  -7(1).  - NIST-8
│ │ │ -00096660: 3030 2d35 332d 4155 2d37 2832 290a 2020  00-53-AU-7(2).  
│ │ │ -00096670: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00096680: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -00096690: 532d 5265 712d 3130 2e31 0a20 202d 2050  S-Req-10.1.  - P
│ │ │ -000966a0: 4349 2d44 5353 7634 2d31 302e 320a 2020  CI-DSSv4-10.2.  
│ │ │ -000966b0: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -000966c0: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ -000966d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000966e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000966f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00096700: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00096710: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00096720: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00096730: 655f 6175 6469 745f 696e 7374 616c 6c65  e_audit_installe
│ │ │ -00096740: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ -00096750: 6520 6175 6469 7464 2069 7320 696e 7374  e auditd is inst
│ │ │ -00096760: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -00096770: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00096780: 0a20 2020 206e 616d 653a 2061 7564 6974  .    name: audit
│ │ │ -00096790: 640a 2020 2020 7374 6174 653a 2070 7265  d.    state: pre
│ │ │ -000967a0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -000967b0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -000967c0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000967d0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -000967e0: 2d20 4449 5341 2d53 5449 472d 5542 5455  - DISA-STIG-UBTU
│ │ │ -000967f0: 2d32 322d 3635 3330 3130 0a20 202d 204e  -22-653010.  - N
│ │ │ -00096800: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ -00096810: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00096820: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ -00096830: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -00096840: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ -00096850: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ -00096860: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ -00096870: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00096880: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ -00096890: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000968a0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -000968b0: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ -000968c0: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ -000968d0: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ -000968e0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000968f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00096900: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00096910: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00096920: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00096930: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00096940: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ -00096950: 6469 745f 696e 7374 616c 6c65 640a 3c2f  dit_installed.
< │ │ │ +000960a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000960b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000960c0: 7365 2220 6964 3d22 6964 3134 3122 3e3c se" id="id141">< │ │ │ +000960d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000960e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000960f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00096100: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00096110: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00096120: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00096130: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00096170: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00096180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000961a0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000961b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +000961d0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000961e0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000961f0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00096200: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00096210: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +00096220: 2d55 4254 552d 3232 2d36 3533 3031 300a  -UBTU-22-653010.
│ │ │ +00096230: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00096240: 4143 2d37 2861 290a 2020 2d20 4e49 5354  AC-7(a).  - NIST
│ │ │ +00096250: 2d38 3030 2d35 332d 4155 2d31 3228 3229  -800-53-AU-12(2)
│ │ │ +00096260: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00096270: 2d41 552d 3134 0a20 202d 204e 4953 542d  -AU-14.  - NIST-
│ │ │ +00096280: 3830 302d 3533 2d41 552d 3228 6129 0a20  800-53-AU-2(a). 
│ │ │ +00096290: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +000962a0: 552d 3728 3129 0a20 202d 204e 4953 542d  U-7(1).  - NIST-
│ │ │ +000962b0: 3830 302d 3533 2d41 552d 3728 3229 0a20  800-53-AU-7(2). 
│ │ │ +000962c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000962d0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +000962e0: 5353 2d52 6571 2d31 302e 310a 2020 2d20  SS-Req-10.1.  - 
│ │ │ +000962f0: 5043 492d 4453 5376 342d 3130 2e32 0a20  PCI-DSSv4-10.2. 
│ │ │ +00096300: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00096310: 322e 310a 2020 2d20 656e 6162 6c65 5f73  2.1.  - enable_s
│ │ │ +00096320: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00096330: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00096340: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00096350: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00096360: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00096370: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00096380: 6765 5f61 7564 6974 5f69 6e73 7461 6c6c  ge_audit_install
│ │ │ +00096390: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +000963a0: 7265 2061 7564 6974 6420 6973 2069 6e73  re auditd is ins
│ │ │ +000963b0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000963c0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000963d0: 3a0a 2020 2020 6e61 6d65 3a20 6175 6469  :.    name: audi
│ │ │ +000963e0: 7464 0a20 2020 2073 7461 7465 3a20 7072  td.    state: pr
│ │ │ +000963f0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +00096400: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00096410: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00096420: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00096430: 202d 2044 4953 412d 5354 4947 2d55 4254   - DISA-STIG-UBT
│ │ │ +00096440: 552d 3232 2d36 3533 3031 300a 2020 2d20  U-22-653010.  - 
│ │ │ +00096450: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ +00096460: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00096470: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ +00096480: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00096490: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ +000964a0: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ +000964b0: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ +000964c0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +000964d0: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ +000964e0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +000964f0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00096500: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +00096510: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +00096520: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +00096530: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00096540: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00096550: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00096560: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00096570: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00096580: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00096590: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +000965a0: 7564 6974 5f69 6e73 7461 6c6c 6564 0a3c  udit_installed.<
│ │ │ +000965b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00096660: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00096670: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00096710: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00096720: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00096770: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000967b0: 6c75 6465 2069 6e73 7461 6c6c 5f61 7564  lude install_aud
│ │ │ +000967c0: 6974 640a 0a63 6c61 7373 2069 6e73 7461  itd..class insta
│ │ │ +000967d0: 6c6c 5f61 7564 6974 6420 7b0a 2020 7061  ll_auditd {.  pa
│ │ │ +000967e0: 636b 6167 6520 7b20 2761 7564 6974 6427  ckage { 'auditd'
│ │ │ +000967f0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00096800: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +00096810: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +000968d0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +000968e0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +000968f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +00096940: 6e61 6d65 203d 2022 6175 6469 7464 220a  name = "auditd".
│ │ │ +00096950: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
R │ │ │ -00098780: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00098790: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000987a0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000987b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000987e0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -000987f0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00098800: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -00098810: 5b22 6175 6469 7464 225d 0a3c 2f63 6f64  ["auditd"].
Remed │ │ │ -000988d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000988e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +00096700: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00096730: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00096740: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00096780: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00096790: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00098990: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000989b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000989e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00098970: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00098980: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000989a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000989c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000989d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00098a20: 2065 6e61 626c 655f 6175 6469 7464 0a0a enable_auditd.. │ │ │ -00098a30: 636c 6173 7320 656e 6162 6c65 5f61 7564 class enable_aud │ │ │ -00098a40: 6974 6420 7b0a 2020 7365 7276 6963 6520 itd {. service │ │ │ -00098a50: 7b27 6175 6469 7464 273a 0a20 2020 2065 {'auditd':. e │ │ │ -00098a60: 6e61 626c 6520 3d26 6774 3b20 7472 7565 nable => true │ │ │ -00098a70: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ -00098a80: 743b 2027 7275 6e6e 696e 6727 2c0a 2020 t; 'running',. │ │ │ -00098a90: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -00098b50: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00098b60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00098bf0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00098c10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00098c30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00098c60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00098c70: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00098c80: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -00098ca0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00098cb0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00098cc0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00098cd0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00098ce0: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ -00098cf0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ -00098d00: 5455 2d32 322d 3635 3330 3135 0a20 202d  TU-22-653015.  -
│ │ │ -00098d10: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00098d20: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ -00098d30: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ -00098d40: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -00098d50: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -00098d60: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ -00098d70: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ -00098d80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00098d90: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ -00098da0: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ -00098db0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00098dc0: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ -00098dd0: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │ -00098de0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00098df0: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ -00098e00: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00098e10: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -00098e20: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ -00098e30: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ -00098e40: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ -00098e50: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -00098e60: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ -00098e70: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00098e80: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00098e90: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00098ea0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00098eb0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00098ec0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00098ed0: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ -00098ee0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -00098ef0: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -00098f00: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ -00098f10: 6365 2061 7564 6974 640a 2020 626c 6f63  ce auditd.  bloc
│ │ │ -00098f20: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -00098f30: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00098f40: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -00098f50: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00098f60: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -00098f70: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -00098f80: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -00098f90: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ -00098fa0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -00098fb0: 6175 6469 7464 0a20 2020 2061 6e73 6962  auditd.    ansib
│ │ │ -00098fc0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00098fd0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00098fe0: 6175 6469 7464 0a20 2020 2020 2065 6e61  auditd.      ena
│ │ │ -00098ff0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -00099000: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -00099010: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -00099020: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -00099030: 2020 2d20 2722 6175 6469 7464 2220 696e    - '"auditd" in
│ │ │ -00099040: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00099050: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00099060: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ -00099070: 310a 2020 2d20 4449 5341 2d53 5449 472d  1.  - DISA-STIG-
│ │ │ -00099080: 5542 5455 2d32 322d 3635 3330 3135 0a20  UBTU-22-653015. 
│ │ │ -00099090: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -000990a0: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ -000990b0: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ -000990c0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -000990d0: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ -000990e0: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ -000990f0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -00099100: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ -00099110: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ -00099120: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -00099130: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ -00099140: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ -00099150: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ -00099160: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ -00099170: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ -00099180: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00099190: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000991a0: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ -000991b0: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ -000991c0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -000991d0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -000991e0: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ -000991f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00099200: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00099210: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00099220: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00099230: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00099240: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00099250: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ -00099260: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00099270: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00099280: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -00099290: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -000992a0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000992b0: 6573 270a 2020 2d20 2722 6175 6469 7464  es'.  - '"auditd
│ │ │ -000992c0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000992d0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00098830: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000988d0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +000988e0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +000988f0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00098900: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00098910: 6f0a 2020 7461 6773 3a0a 2020 2d20 434a  o.  tags:.  - CJ
│ │ │ +00098920: 4953 2d35 2e34 2e31 2e31 0a20 202d 2044  IS-5.4.1.1.  - D
│ │ │ +00098930: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ +00098940: 2d36 3533 3031 350a 2020 2d20 4e49 5354  -653015.  - NIST
│ │ │ +00098950: 2d38 3030 2d31 3731 2d33 2e33 2e31 0a20  -800-171-3.3.1. 
│ │ │ +00098960: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00098970: 332e 332e 320a 2020 2d20 4e49 5354 2d38  3.3.2.  - NIST-8
│ │ │ +00098980: 3030 2d31 3731 2d33 2e33 2e36 0a20 202d  00-171-3.3.6.  -
│ │ │ +00098990: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +000989a0: 3228 6729 0a20 202d 204e 4953 542d 3830  2(g).  - NIST-80
│ │ │ +000989b0: 302d 3533 2d41 432d 3628 3929 0a20 202d  0-53-AC-6(9).  -
│ │ │ +000989c0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +000989d0: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +000989e0: 3533 2d41 552d 3132 2863 290a 2020 2d20  53-AU-12(c).  - 
│ │ │ +000989f0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +00098a00: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +00098a10: 302d 3533 2d41 552d 3228 6429 0a20 202d  0-53-AU-2(d).  -
│ │ │ +00098a20: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00098a30: 330a 2020 2d20 4e49 5354 2d38 3030 2d35  3.  - NIST-800-5
│ │ │ +00098a40: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00098a50: 5354 2d38 3030 2d35 332d 5349 2d34 2832  ST-800-53-SI-4(2
│ │ │ +00098a60: 3329 0a20 202d 2050 4349 2d44 5353 2d52  3).  - PCI-DSS-R
│ │ │ +00098a70: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +00098a80: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +00098a90: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +00098aa0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00098ab0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00098ac0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00098ad0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00098ae0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00098af0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00098b00: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ +00098b10: 7564 6974 645f 656e 6162 6c65 640a 0a2d  uditd_enabled..-
│ │ │ +00098b20: 206e 616d 653a 2045 6e61 626c 6520 6175   name: Enable au
│ │ │ +00098b30: 6469 7464 2053 6572 7669 6365 202d 2045  ditd Service - E
│ │ │ +00098b40: 6e61 626c 6520 7365 7276 6963 6520 6175  nable service au
│ │ │ +00098b50: 6469 7464 0a20 2062 6c6f 636b 3a0a 0a20  ditd.  block:.. 
│ │ │ +00098b60: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00098b70: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00098b80: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00098b90: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +00098ba0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +00098bb0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00098bc0: 6d65 3a20 456e 6162 6c65 2061 7564 6974  me: Enable audit
│ │ │ +00098bd0: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +00098be0: 6c65 2053 6572 7669 6365 2061 7564 6974  le Service audit
│ │ │ +00098bf0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00098c00: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00098c10: 2020 2020 206e 616d 653a 2061 7564 6974       name: audit
│ │ │ +00098c20: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +00098c30: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +00098c40: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +00098c50: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +00098c60: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +00098c70: 2261 7564 6974 6422 2069 6e20 616e 7369  "auditd" in ansi
│ │ │ +00098c80: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00098c90: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00098ca0: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ +00098cb0: 2044 4953 412d 5354 4947 2d55 4254 552d   DISA-STIG-UBTU-
│ │ │ +00098cc0: 3232 2d36 3533 3031 350a 2020 2d20 4e49  22-653015.  - NI
│ │ │ +00098cd0: 5354 2d38 3030 2d31 3731 2d33 2e33 2e31  ST-800-171-3.3.1
│ │ │ +00098ce0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00098cf0: 312d 332e 332e 320a 2020 2d20 4e49 5354  1-3.3.2.  - NIST
│ │ │ +00098d00: 2d38 3030 2d31 3731 2d33 2e33 2e36 0a20  -800-171-3.3.6. 
│ │ │ +00098d10: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00098d20: 432d 3228 6729 0a20 202d 204e 4953 542d  C-2(g).  - NIST-
│ │ │ +00098d30: 3830 302d 3533 2d41 432d 3628 3929 0a20  800-53-AC-6(9). 
│ │ │ +00098d40: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00098d50: 552d 3130 0a20 202d 204e 4953 542d 3830  U-10.  - NIST-80
│ │ │ +00098d60: 302d 3533 2d41 552d 3132 2863 290a 2020  0-53-AU-12(c).  
│ │ │ +00098d70: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00098d80: 2d31 3428 3129 0a20 202d 204e 4953 542d  -14(1).  - NIST-
│ │ │ +00098d90: 3830 302d 3533 2d41 552d 3228 6429 0a20  800-53-AU-2(d). 
│ │ │ +00098da0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00098db0: 552d 330a 2020 2d20 4e49 5354 2d38 3030  U-3.  - NIST-800
│ │ │ +00098dc0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00098dd0: 4e49 5354 2d38 3030 2d35 332d 5349 2d34  NIST-800-53-SI-4
│ │ │ +00098de0: 2832 3329 0a20 202d 2050 4349 2d44 5353  (23).  - PCI-DSS
│ │ │ +00098df0: 2d52 6571 2d31 302e 310a 2020 2d20 5043  -Req-10.1.  - PC
│ │ │ +00098e00: 492d 4453 5376 342d 3130 2e32 0a20 202d  I-DSSv4-10.2.  -
│ │ │ +00098e10: 2050 4349 2d44 5353 7634 2d31 302e 322e   PCI-DSSv4-10.2.
│ │ │ +00098e20: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +00098e30: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00098e40: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00098e50: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00098e60: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00098e70: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00098e80: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00098e90: 5f61 7564 6974 645f 656e 6162 6c65 640a  _auditd_enabled.
│ │ │ +00098ea0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +00098eb0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +00098ec0: 3a0a 2020 2d20 2722 6c69 6e75 782d 6261  :.  - '"linux-ba
│ │ │ +00098ed0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00098ee0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00098ef0: 202d 2027 2261 7564 6974 6422 2069 6e20   - '"auditd" in 
│ │ │ +00098f00: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00098f10: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00098f20: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00098fd0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +00098fe0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00099060: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +000990f0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00098820: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00098850: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00098860: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000988a0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000988b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +00099070: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00099080: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +000990c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000990d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +00099110: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +00099120: 6162 6c65 5f61 7564 6974 640a 0a63 6c61  able_auditd..cla
│ │ │ +00099130: 7373 2065 6e61 626c 655f 6175 6469 7464  ss enable_auditd
│ │ │ +00099140: 207b 0a20 2073 6572 7669 6365 207b 2761   {.  service {'a
│ │ │ +00099150: 7564 6974 6427 3a0a 2020 2020 656e 6162  uditd':.    enab
│ │ │ +00099160: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +00099170: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00099180: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +00099190: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00099250: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00099260: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +000992b0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +000992c0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +000992d0: 3d20 5b22 6175 6469 7464 225d 0a3c 2f63  = ["auditd"].
│ │ │ 000992f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1828,14 +1811,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -1873,31 +1873,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS- │ │ │ │ 4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ _s_t_i_g_i_d UBTU-22-652010 │ │ │ │ _s_t_i_g_r_e_f SV-260588r991562_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260588 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1936,14 +1919,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null │ │ │ │ @@ -4284,50 +4284,14 @@ │ │ │ │ $ sudo systemctl mask --now apport.service │ │ │ │ The Apport service modifies the kernel fs.suid_dumpable │ │ │ │ Rationale: configuration at runtime which prevents other hardening from being │ │ │ │ persistent. Disabling the service prevents this behavior. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_apport_disabled │ │ │ │ References: _c_i_s 1.5.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apport"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apport.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apport.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apport │ │ │ │ - │ │ │ │ -class disable_apport { │ │ │ │ - service {'apport': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4380,14 +4344,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_apport_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"apport" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apport.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apport.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apport │ │ │ │ + │ │ │ │ +class disable_apport { │ │ │ │ + service {'apport': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apport"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'apport' 2>/dev/null | │ │ │ │ @@ -4445,31 +4445,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4496,14 +4479,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null │ │ │ │ @@ -4541,31 +4541,14 @@ │ │ │ │ 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, │ │ │ │ SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, │ │ │ │ A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -4600,14 +4583,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/ │ │ │ │ @@ -4650,27 +4650,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnetd │ │ │ │ - │ │ │ │ -class remove_inetutils-telnetd { │ │ │ │ - package { 'inetutils-telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the inet-based telnet server: Ensure inetutils-telnetd is │ │ │ │ removed' │ │ │ │ @@ -4683,14 +4670,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnetd │ │ │ │ + │ │ │ │ +class remove_inetutils-telnetd { │ │ │ │ + package { 'inetutils-telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnetd │ │ │ │ @@ -4724,27 +4724,14 @@ │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ NIS is the historical SUN service for central account management, │ │ │ │ Rationale: more and more replaced by LDAP. NIS does not support efficiently │ │ │ │ security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4753,14 +4740,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -4794,27 +4794,14 @@ │ │ │ │ ntpdate is a historical ntp synchronization client for unixes. It should be │ │ │ │ uninstalled. │ │ │ │ ntpdate is an old not security-compliant ntp client. It should be │ │ │ │ Rationale: replaced by modern ntp clients such as ntpd, able to use │ │ │ │ cryptographic mechanisms integrated in NTP. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntpdate_removed │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntpdate │ │ │ │ - │ │ │ │ -class remove_ntpdate { │ │ │ │ - package { 'ntpdate': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ntpdate package: Ensure ntpdate is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -4823,14 +4810,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntpdate_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntpdate │ │ │ │ + │ │ │ │ +class remove_ntpdate { │ │ │ │ + package { 'ntpdate': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ntpdate │ │ │ │ @@ -4881,27 +4881,14 @@ │ │ │ │ SR 2.7, SR 3.1, SR 3.5, SR 3.8, SR 4.1, SR 4.3, SR │ │ │ │ 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.13.2.1, A.14.1.3, A.14.2.2, A.14.2.3, A.14.2.4, │ │ │ │ A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd-ssl │ │ │ │ - │ │ │ │ -class remove_telnetd-ssl { │ │ │ │ - package { 'telnetd-ssl': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the ssl compliant telnet server: Ensure telnetd-ssl is │ │ │ │ removed' │ │ │ │ @@ -4914,14 +4901,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd-ssl_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd-ssl │ │ │ │ + │ │ │ │ +class remove_telnetd-ssl { │ │ │ │ + package { 'telnetd-ssl': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd-ssl │ │ │ │ @@ -4979,27 +4979,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, │ │ │ │ A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _s_t_i_g_i_d UBTU-22-215035 │ │ │ │ _s_t_i_g_r_e_f SV-260483r987796_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260483 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5012,14 +4999,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -6927,31 +6927,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653010 │ │ │ │ _s_t_i_g_r_e_f SV-260590r1015022_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260590 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6994,14 +6977,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null │ │ │ │ @@ -7085,31 +7085,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653015 │ │ │ │ _s_t_i_g_r_e_f SV-260591r1015023_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260591 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -7178,14 +7161,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2204-guide-stig.html │ │ │ @@ -15072,137 +15072,137 @@ │ │ │ 0003adf0: 2220 6461 7461 2d74 6172 6765 743d 2223 " data-target="# │ │ │ 0003ae00: 6964 3822 2074 6162 696e 6465 783d 2230 id8" tabindex="0 │ │ │ 0003ae10: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 0003ae20: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 0003ae30: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 0003ae40: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 0003ae50: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003ae60: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0003ae70: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0003ae80: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
<
│ │ │ -0003aec0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -0003aed0: 5d5d 0a6e 616d 6520 3d20 2261 6964 6522  ]].name = "aide"
│ │ │ -0003aee0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -0003aef0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ -0003afa0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0003afb0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003afc0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ -0003b060: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003b080: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003b0b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003b040: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003b050: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003b070: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003b090: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003b0a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0003b0f0: 2069 6e73 7461 6c6c 5f61 6964 650a 0a63 install_aide..c │ │ │ -0003b100: 6c61 7373 2069 6e73 7461 6c6c 5f61 6964 lass install_aid │ │ │ -0003b110: 6520 7b0a 2020 7061 636b 6167 6520 7b20 e {. package { │ │ │ -0003b120: 2761 6964 6527 3a0a 2020 2020 656e 7375 'aide':. ensu │ │ │ -0003b130: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -0003b140: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ -0003b160: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003b170: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003b180: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003b190: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003b1a0: 6431 3022 2074 6162 696e 6465 783d 2230 d10" tabindex="0 │ │ │ -0003b1b0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003b1c0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003b1d0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003b1e0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003b1f0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003b200: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0003b210: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0003b2c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003b2e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003b310: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003b2a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003b2b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003b2d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003b2f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003b300: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0003b350: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0003b360: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0003b370: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0003b380: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0003b390: 6167 733a 0a20 202d 2043 4a49 532d 352e ags:. - CJIS-5. │ │ │ -0003b3a0: 3130 2e31 2e33 0a20 202d 2044 4953 412d 10.1.3. - DISA- │ │ │ -0003b3b0: 5354 4947 2d55 4254 552d 3232 2d36 3531 STIG-UBTU-22-651 │ │ │ -0003b3c0: 3031 300a 2020 2d20 4e49 5354 2d38 3030 010. - NIST-800 │ │ │ -0003b3d0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -0003b3e0: 5043 492d 4453 532d 5265 712d 3131 2e35 PCI-DSS-Req-11.5 │ │ │ -0003b3f0: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ -0003b400: 312e 352e 320a 2020 2d20 656e 6162 6c65 1.5.2. - enable │ │ │ -0003b410: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0003b420: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0003b430: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0003b440: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -0003b450: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -0003b460: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -0003b470: 6b61 6765 5f61 6964 655f 696e 7374 616c kage_aide_instal │ │ │ -0003b480: 6c65 640a 0a2d 206e 616d 653a 2045 6e73 led..- name: Ens │ │ │ -0003b490: 7572 6520 6169 6465 2069 7320 696e 7374 ure aide is inst │ │ │ -0003b4a0: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ -0003b4b0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -0003b4c0: 0a20 2020 206e 616d 653a 2061 6964 650a . name: aide. │ │ │ -0003b4d0: 2020 2020 7374 6174 653a 2070 7265 7365 state: prese │ │ │ -0003b4e0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e nt. when: '"lin │ │ │ -0003b4f0: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ -0003b500: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ -0003b510: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ -0003b520: 434a 4953 2d35 2e31 302e 312e 330a 2020 CJIS-5.10.1.3. │ │ │ -0003b530: 2d20 4449 5341 2d53 5449 472d 5542 5455 - DISA-STIG-UBTU │ │ │ -0003b540: 2d32 322d 3635 3130 3130 0a20 202d 204e -22-651010. - N │ │ │ -0003b550: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -0003b560: 6129 0a20 202d 2050 4349 2d44 5353 2d52 a). - PCI-DSS-R │ │ │ -0003b570: 6571 2d31 312e 350a 2020 2d20 5043 492d eq-11.5. - PCI- │ │ │ -0003b580: 4453 5376 342d 3131 2e35 2e32 0a20 202d DSSv4-11.5.2. - │ │ │ -0003b590: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -0003b5a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0003b5b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0003b5c0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -0003b5d0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -0003b5e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0003b5f0: 2020 2d20 7061 636b 6167 655f 6169 6465 - package_aide │ │ │ -0003b600: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.

│ │ │ +0003aeb0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0003af20: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0003af40: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0003af70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0003af90: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0003af00: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0003af10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0003af50: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0003af60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +0003afb0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0003afc0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0003afd0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0003afe0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0003aff0: 6773 3a0a 2020 2d20 434a 4953 2d35 2e31 gs:. - CJIS-5.1 │ │ │ +0003b000: 302e 312e 330a 2020 2d20 4449 5341 2d53 0.1.3. - DISA-S │ │ │ +0003b010: 5449 472d 5542 5455 2d32 322d 3635 3130 TIG-UBTU-22-6510 │ │ │ +0003b020: 3130 0a20 202d 204e 4953 542d 3830 302d 10. - NIST-800- │ │ │ +0003b030: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ +0003b040: 4349 2d44 5353 2d52 6571 2d31 312e 350a CI-DSS-Req-11.5. │ │ │ +0003b050: 2020 2d20 5043 492d 4453 5376 342d 3131 - PCI-DSSv4-11 │ │ │ +0003b060: 2e35 2e32 0a20 202d 2065 6e61 626c 655f .5.2. - enable_ │ │ │ +0003b070: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0003b080: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0003b090: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0003b0a0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +0003b0b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0003b0c0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +0003b0d0: 6167 655f 6169 6465 5f69 6e73 7461 6c6c age_aide_install │ │ │ +0003b0e0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ +0003b0f0: 7265 2061 6964 6520 6973 2069 6e73 7461 re aide is insta │ │ │ +0003b100: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62 lled. ansible.b │ │ │ +0003b110: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +0003b120: 2020 2020 6e61 6d65 3a20 6169 6465 0a20 name: aide. │ │ │ +0003b130: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ +0003b140: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ +0003b150: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ +0003b160: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +0003b170: 7327 0a20 2074 6167 733a 0a20 202d 2043 s'. tags:. - C │ │ │ +0003b180: 4a49 532d 352e 3130 2e31 2e33 0a20 202d JIS-5.10.1.3. - │ │ │ +0003b190: 2044 4953 412d 5354 4947 2d55 4254 552d DISA-STIG-UBTU- │ │ │ +0003b1a0: 3232 2d36 3531 3031 300a 2020 2d20 4e49 22-651010. - NI │ │ │ +0003b1b0: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +0003b1c0: 290a 2020 2d20 5043 492d 4453 532d 5265 ). - PCI-DSS-Re │ │ │ +0003b1d0: 712d 3131 2e35 0a20 202d 2050 4349 2d44 q-11.5. - PCI-D │ │ │ +0003b1e0: 5353 7634 2d31 312e 352e 320a 2020 2d20 SSv4-11.5.2. - │ │ │ +0003b1f0: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +0003b200: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +0003b210: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +0003b220: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +0003b230: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +0003b240: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0003b250: 202d 2070 6163 6b61 6765 5f61 6964 655f - package_aide_ │ │ │ +0003b260: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.
Remediat │ │ │ +0003b320: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0003b330: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
Complexity │ │ │ +0003b3c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0003b3e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0003b3f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0003b400: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0003b410: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0003b430: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +0003b470: 616c 6c5f 6169 6465 0a0a 636c 6173 7320  all_aide..class 
│ │ │ +0003b480: 696e 7374 616c 6c5f 6169 6465 207b 0a20  install_aide {. 
│ │ │ +0003b490: 2070 6163 6b61 6765 207b 2027 6169 6465   package { 'aide
│ │ │ +0003b4a0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0003b4b0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +0003b4c0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +0003b580: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0003b590: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0003b5a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ +0003b5f0: 616d 6520 3d20 2261 6964 6522 0a76 6572  ame = "aide".ver
│ │ │ +0003b600: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Reme │ │ │ -00092c30: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00092c40: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00092c50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ -00092ca0: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ -00092cb0: 6e73 732d 7373 7322 0a76 6572 7369 6f6e  nss-sss".version
│ │ │ -00092cc0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediatio │ │ │ -00092d80: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00092d90: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -00092e20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00092e40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00092e60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00092e90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00092ea0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00092eb0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -00092ed0: 6c6c 5f6c 6962 6e73 732d 7373 730a 0a63  ll_libnss-sss..c
│ │ │ -00092ee0: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ -00092ef0: 6e73 732d 7373 7320 7b0a 2020 7061 636b  nss-sss {.  pack
│ │ │ -00092f00: 6167 6520 7b20 276c 6962 6e73 732d 7373  age { 'libnss-ss
│ │ │ -00092f10: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ -00092f20: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00092f30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00092f40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -00092ff0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00093000: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00093080: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00093090: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000930b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000930c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000930e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00093100: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00093130: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ -00093140: 7572 6520 6c69 626e 7373 2d73 7373 2069  ure libnss-sss i
│ │ │ -00093150: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00093160: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00093170: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00093180: 206c 6962 6e73 732d 7373 730a 2020 2020   libnss-sss.    
│ │ │ -00093190: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -000931a0: 2074 6167 733a 0a20 202d 2044 4953 412d   tags:.  - DISA-
│ │ │ -000931b0: 5354 4947 2d55 4254 552d 3232 2d32 3534  STIG-UBTU-22-254
│ │ │ -000931c0: 3031 300a 2020 2d20 656e 6162 6c65 5f73  010.  - enable_s
│ │ │ -000931d0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000931e0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000931f0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00093200: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00093210: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00093220: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00093230: 6765 5f6e 7373 5f73 7373 5f69 6e73 7461  ge_nss_sss_insta
│ │ │ -00093240: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.<
│ │ │ +00092c50: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Comp │ │ │ +00092cd0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00092ce0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00092d00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00092d20: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00092d30: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00092d70: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00092d80: 3a20 456e 7375 7265 206c 6962 6e73 732d : Ensure libnss- │ │ │ +00092d90: 7373 7320 6973 2069 6e73 7461 6c6c 6564 sss is installed │ │ │ +00092da0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ +00092db0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ +00092dc0: 6e61 6d65 3a20 6c69 626e 7373 2d73 7373 name: libnss-sss │ │ │ +00092dd0: 0a20 2020 2073 7461 7465 3a20 7072 6573 . state: pres │ │ │ +00092de0: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ +00092df0: 4449 5341 2d53 5449 472d 5542 5455 2d32 DISA-STIG-UBTU-2 │ │ │ +00092e00: 322d 3235 3430 3130 0a20 202d 2065 6e61 2-254010. - ena │ │ │ +00092e10: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00092e20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +00092e30: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +00092e40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +00092e50: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +00092e60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00092e70: 7061 636b 6167 655f 6e73 735f 7373 735f package_nss_sss_ │ │ │ +00092e80: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.
Remedia │ │ │ +00092f40: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00092f50: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00092f60: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00092f70: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00092f80: 7365 2220 6964 3d22 6964 3937 223e 3c74 se" id="id97"> │ │ │ +00092fd0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00092fe0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00092ff0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00093030: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00093040: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00093060: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00093080: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +00093090: 7374 616c 6c5f 6c69 626e 7373 2d73 7373  stall_libnss-sss
│ │ │ +000930a0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +000930b0: 6c69 626e 7373 2d73 7373 207b 0a20 2070  libnss-sss {.  p
│ │ │ +000930c0: 6163 6b61 6765 207b 2027 6c69 626e 7373  ackage { 'libnss
│ │ │ +000930d0: 2d73 7373 273a 0a20 2020 2065 6e73 7572  -sss':.    ensur
│ │ │ +000930e0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +000930f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ +000931b0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000931c0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000931d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ +00093210: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +00093220: 5d5d 0a6e 616d 6520 3d20 226c 6962 6e73  ]].name = "libns
│ │ │ +00093230: 732d 7373 7322 0a76 6572 7369 6f6e 203d  s-sss".version =
│ │ │ +00093240: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediat │ │ │ -00093ff0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00094000: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00094010: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00094060: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ -00094070: 2d70 7771 7561 6c69 7479 220a 7665 7273  -pwquality".vers
│ │ │ -00094080: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -00094140: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00094150: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00094160: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00094190: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00094200: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00094220: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00094250: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00094270: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000941e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000941f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00094230: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00094240: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00094290: 696e 7374 616c 6c5f 6c69 6270 616d 2d70 install_libpam-p │ │ │ -000942a0: 7771 7561 6c69 7479 0a0a 636c 6173 7320 wquality..class │ │ │ -000942b0: 696e 7374 616c 6c5f 6c69 6270 616d 2d70 install_libpam-p │ │ │ -000942c0: 7771 7561 6c69 7479 207b 0a20 2070 6163 wquality {. pac │ │ │ -000942d0: 6b61 6765 207b 2027 6c69 6270 616d 2d70 kage { 'libpam-p │ │ │ -000942e0: 7771 7561 6c69 7479 273a 0a20 2020 2065 wquality':. e │ │ │ -000942f0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73 nsure => 'ins │ │ │ -00094300: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c talled',. }.}.< │ │ │ -00094310: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ -000943c0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000943d0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00094470: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00094510: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00094520: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00094530: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00094540: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00094550: 6f0a 2020 7461 6773 3a0a 2020 2d20 4449  o.  tags:.  - DI
│ │ │ -00094560: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ -00094570: 3231 3530 3130 0a20 202d 2065 6e61 626c  215010.  - enabl
│ │ │ -00094580: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00094590: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000945a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000945b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000945c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000945d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000945e0: 636b 6167 655f 7061 6d5f 7077 7175 616c  ckage_pam_pwqual
│ │ │ -000945f0: 6974 795f 696e 7374 616c 6c65 640a 0a2d  ity_installed..-
│ │ │ -00094600: 206e 616d 653a 2045 6e73 7572 6520 6c69   name: Ensure li
│ │ │ -00094610: 6270 616d 2d70 7771 7561 6c69 7479 2069  bpam-pwquality i
│ │ │ -00094620: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00094630: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00094640: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00094650: 206c 6962 7061 6d2d 7077 7175 616c 6974   libpam-pwqualit
│ │ │ -00094660: 790a 2020 2020 7374 6174 653a 2070 7265  y.    state: pre
│ │ │ -00094670: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -00094680: 6962 7061 6d2d 7275 6e74 696d 6522 2069  ibpam-runtime" i
│ │ │ -00094690: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000946a0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -000946b0: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -000946c0: 5542 5455 2d32 322d 3231 3530 3130 0a20  UBTU-22-215010. 
│ │ │ -000946d0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000946e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000946f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00094700: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00094710: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00094720: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00094730: 640a 2020 2d20 7061 636b 6167 655f 7061  d.  - package_pa
│ │ │ -00094740: 6d5f 7077 7175 616c 6974 795f 696e 7374  m_pwquality_inst
│ │ │ -00094750: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


< │ │ │ +00094010: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00094020: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00094030: 7365 2220 6964 3d22 6964 3130 3122 3e3c se" id="id101">< │ │ │ +00094040: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00094050: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00094060: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00094070: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00094080: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00094110: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00094120: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -00094460: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00094490: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000944a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000944e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000944f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +00094090: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000940a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000940e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000940f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +00094140: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00094150: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00094160: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00094170: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00094180: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +00094190: 2d55 4254 552d 3232 2d32 3135 3031 300a  -UBTU-22-215010.
│ │ │ +000941a0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000941b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000941c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000941d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000941e0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000941f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00094200: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ +00094210: 616d 5f70 7771 7561 6c69 7479 5f69 6e73  am_pwquality_ins
│ │ │ +00094220: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +00094230: 456e 7375 7265 206c 6962 7061 6d2d 7077  Ensure libpam-pw
│ │ │ +00094240: 7175 616c 6974 7920 6973 2069 6e73 7461  quality is insta
│ │ │ +00094250: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +00094260: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00094270: 2020 2020 6e61 6d65 3a20 6c69 6270 616d      name: libpam
│ │ │ +00094280: 2d70 7771 7561 6c69 7479 0a20 2020 2073  -pwquality.    s
│ │ │ +00094290: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000942a0: 7768 656e 3a20 2722 6c69 6270 616d 2d72  when: '"libpam-r
│ │ │ +000942b0: 756e 7469 6d65 2220 696e 2061 6e73 6962  untime" in ansib
│ │ │ +000942c0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +000942d0: 7327 0a20 2074 6167 733a 0a20 202d 2044  s'.  tags:.  - D
│ │ │ +000942e0: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ +000942f0: 2d32 3135 3031 300a 2020 2d20 656e 6162  -215010.  - enab
│ │ │ +00094300: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00094310: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00094320: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00094330: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00094340: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00094350: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00094360: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ +00094370: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a3c  lity_installed.<
│ │ │ +00094380: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00094430: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00094440: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +000944e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000944f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00094540: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00094580: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ +00094590: 7061 6d2d 7077 7175 616c 6974 790a 0a63  pam-pwquality..c
│ │ │ +000945a0: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ +000945b0: 7061 6d2d 7077 7175 616c 6974 7920 7b0a  pam-pwquality {.
│ │ │ +000945c0: 2020 7061 636b 6167 6520 7b20 276c 6962    package { 'lib
│ │ │ +000945d0: 7061 6d2d 7077 7175 616c 6974 7927 3a0a  pam-pwquality':.
│ │ │ +000945e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000945f0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00094600: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000946c0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000946d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00094720: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +00094730: 6d65 203d 2022 6c69 6270 616d 2d70 7771  me = "libpam-pwq
│ │ │ +00094740: 7561 6c69 7479 220a 7665 7273 696f 6e20  uality".version 
│ │ │ +00094750: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediation │ │ │ -000953a0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000953b0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
C │ │ │ +000944d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00094500: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00094510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00094550: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00094560: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -000955d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000955e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00095630: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6c  nclude install_l
│ │ │ -00095640: 6962 7061 6d2d 7373 730a 0a63 6c61 7373  ibpam-sss..class
│ │ │ -00095650: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ -00095660: 7373 7320 7b0a 2020 7061 636b 6167 6520  sss {.  package 
│ │ │ -00095670: 7b20 276c 6962 7061 6d2d 7373 7327 3a0a  { 'libpam-sss':.
│ │ │ -00095680: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00095690: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -000956a0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00095760: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00095770: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00095840: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00095890: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:low
Disrup │ │ │ -000955b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000955c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00095600: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00095610: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -00095800: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00095820: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00095870: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00095880: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Ensur
│ │ │ -000958b0: 6520 6c69 6270 616d 2d73 7373 2069 7320  e libpam-sss is 
│ │ │ -000958c0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000958d0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000958e0: 6167 653a 0a20 2020 206e 616d 653a 206c  age:.    name: l
│ │ │ -000958f0: 6962 7061 6d2d 7373 730a 2020 2020 7374  ibpam-sss.    st
│ │ │ -00095900: 6174 653a 2070 7265 7365 6e74 0a20 2074  ate: present.  t
│ │ │ -00095910: 6167 733a 0a20 202d 2044 4953 412d 5354  ags:.  - DISA-ST
│ │ │ -00095920: 4947 2d55 4254 552d 3232 2d32 3534 3031  IG-UBTU-22-25401
│ │ │ -00095930: 300a 2020 2d20 656e 6162 6c65 5f73 7472  0.  - enable_str
│ │ │ -00095940: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00095950: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00095960: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00095970: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00095980: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00095990: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000959a0: 5f70 616d 5f73 7373 5f69 6e73 7461 6c6c  _pam_sss_install
│ │ │ -000959b0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000953a0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +000953b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00095440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00095460: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00095470: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00095480: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00095490: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000954b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ +000954f0: 7265 206c 6962 7061 6d2d 7373 7320 6973  re libpam-sss is
│ │ │ +00095500: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00095510: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00095520: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00095530: 6c69 6270 616d 2d73 7373 0a20 2020 2073  libpam-sss.    s
│ │ │ +00095540: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +00095550: 7461 6773 3a0a 2020 2d20 4449 5341 2d53  tags:.  - DISA-S
│ │ │ +00095560: 5449 472d 5542 5455 2d32 322d 3235 3430  TIG-UBTU-22-2540
│ │ │ +00095570: 3130 0a20 202d 2065 6e61 626c 655f 7374  10.  - enable_st
│ │ │ +00095580: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00095590: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000955a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000955b0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000955c0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000955d0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +000955e0: 655f 7061 6d5f 7373 735f 696e 7374 616c  e_pam_sss_instal
│ │ │ +000955f0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +000956b0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +000956c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00095740: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00095760: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000957b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000957e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00095800: 6c5f 6c69 6270 616d 2d73 7373 0a0a 636c  l_libpam-sss..cl
│ │ │ +00095810: 6173 7320 696e 7374 616c 6c5f 6c69 6270  ass install_libp
│ │ │ +00095820: 616d 2d73 7373 207b 0a20 2070 6163 6b61  am-sss {.  packa
│ │ │ +00095830: 6765 207b 2027 6c69 6270 616d 2d73 7373  ge { 'libpam-sss
│ │ │ +00095840: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00095850: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +00095860: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ +00095920: 6f6e 204f 5342 7569 6c64 2042 6c75 6570  on OSBuild Bluep
│ │ │ +00095930: 7269 6e74 2073 6e69 7070 6574 20e2 87b2  rint snippet ...
│ │ │ +00095940: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
.[[packages]]
│ │ │ +00095990: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ +000959a0: 7373 7322 0a76 6572 7369 6f6e 203d 2022  sss".version = "
│ │ │ +000959b0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 000959c0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
│ │ │ -00097670: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00097680: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00097690: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000976e0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000976f0: 2022 766c 6f63 6b22 0a76 6572 7369 6f6e   "vlock".version
│ │ │ -00097700: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000977c0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000977d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00097850: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00097890: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ +00095750: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00095770: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000957c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000957d0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -00097860: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00097880: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -000978b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -000978d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00097900: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -00097910: 7461 6c6c 5f76 6c6f 636b 0a0a 636c 6173  tall_vlock..clas
│ │ │ -00097920: 7320 696e 7374 616c 6c5f 766c 6f63 6b20  s install_vlock 
│ │ │ -00097930: 7b0a 2020 7061 636b 6167 6520 7b20 2776  {.  package { 'v
│ │ │ -00097940: 6c6f 636b 273a 0a20 2020 2065 6e73 7572  lock':.    ensur
│ │ │ -00097950: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00097960: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00097a20: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00097a30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00097ac0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00097ad0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00097af0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00097b10: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00097b20: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00097b60: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00097b70: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00097b80: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00097b90: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00097ba0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00097bb0: 7461 6773 3a0a 2020 2d20 4449 5341 2d53 tags:. - DISA-S │ │ │ -00097bc0: 5449 472d 5542 5455 2d32 322d 3431 3230 TIG-UBTU-22-4120 │ │ │ -00097bd0: 3235 0a20 202d 2065 6e61 626c 655f 7374 25. - enable_st │ │ │ -00097be0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00097bf0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00097c00: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00097c10: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00097c20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00097c30: 6565 6465 640a 2020 2d20 766c 6f63 6b5f eeded. - vlock_ │ │ │ -00097c40: 696e 7374 616c 6c65 640a 0a2d 206e 616d installed..- nam │ │ │ -00097c50: 653a 2045 6e73 7572 6520 766c 6f63 6b20 e: Ensure vlock │ │ │ -00097c60: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ -00097c70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -00097c80: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -00097c90: 3a20 766c 6f63 6b0a 2020 2020 7374 6174 : vlock. stat │ │ │ -00097ca0: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ -00097cb0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00097cc0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00097cd0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00097ce0: 6773 3a0a 2020 2d20 4449 5341 2d53 5449 gs:. - DISA-STI │ │ │ -00097cf0: 472d 5542 5455 2d32 322d 3431 3230 3235 G-UBTU-22-412025 │ │ │ -00097d00: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ -00097d10: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -00097d20: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00097d30: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00097d40: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00097d50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00097d60: 6465 640a 2020 2d20 766c 6f63 6b5f 696e ded. - vlock_in │ │ │ -00097d70: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +00097670: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00097680: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00097690: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00097760: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00097770: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000977c0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000977d0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000977e0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000977f0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00097800: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ +00097810: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ +00097820: 2d34 3132 3032 350a 2020 2d20 656e 6162  -412025.  - enab
│ │ │ +00097830: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00097840: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00097850: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00097860: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00097870: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00097880: 6f6f 745f 6e65 6564 6564 0a20 202d 2076  oot_needed.  - v
│ │ │ +00097890: 6c6f 636b 5f69 6e73 7461 6c6c 6564 0a0a  lock_installed..
│ │ │ +000978a0: 2d20 6e61 6d65 3a20 456e 7375 7265 2076  - name: Ensure v
│ │ │ +000978b0: 6c6f 636b 2069 7320 696e 7374 616c 6c65  lock is installe
│ │ │ +000978c0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +000978d0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +000978e0: 206e 616d 653a 2076 6c6f 636b 0a20 2020   name: vlock.   
│ │ │ +000978f0: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +00097900: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00097910: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00097920: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00097930: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ +00097940: 412d 5354 4947 2d55 4254 552d 3232 2d34  A-STIG-UBTU-22-4
│ │ │ +00097950: 3132 3032 350a 2020 2d20 656e 6162 6c65  12025.  - enable
│ │ │ +00097960: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00097970: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00097980: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00097990: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000979a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000979b0: 745f 6e65 6564 6564 0a20 202d 2076 6c6f  t_needed.  - vlo
│ │ │ +000979c0: 636b 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ck_installed.
│ │ │ +000979e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00097a80: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00097a90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00097aa0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +00097740: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00097750: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00097790: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000977a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +00097b20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00097b50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00097b70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00097b80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00097ba0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00097bc0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00097bd0: 6465 2069 6e73 7461 6c6c 5f76 6c6f 636b  de install_vlock
│ │ │ +00097be0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +00097bf0: 766c 6f63 6b20 7b0a 2020 7061 636b 6167  vlock {.  packag
│ │ │ +00097c00: 6520 7b20 2776 6c6f 636b 273a 0a20 2020  e { 'vlock':.   
│ │ │ +00097c10: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00097c20: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +00097c30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00097cf0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00097d00: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +00097d50: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +00097d60: 3d20 2276 6c6f 636b 220a 7665 7273 696f  = "vlock".versio
│ │ │ +00097d70: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  00097d80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000991d0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000991e0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000991f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00099240: 5d0a 6e61 6d65 203d 2022 6f70 656e 7363  ].name = "opensc
│ │ │ -00099250: 2d70 6b63 7331 3122 0a76 6572 7369 6f6e  -pkcs11".version
│ │ │ -00099260: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -00099320: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00099330: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000993b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000993c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000993e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000993f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00099410: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00099430: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00099460: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -00099470: 7461 6c6c 5f6f 7065 6e73 632d 706b 6373  tall_opensc-pkcs
│ │ │ -00099480: 3131 0a0a 636c 6173 7320 696e 7374 616c  11..class instal
│ │ │ -00099490: 6c5f 6f70 656e 7363 2d70 6b63 7331 3120  l_opensc-pkcs11 
│ │ │ -000994a0: 7b0a 2020 7061 636b 6167 6520 7b20 276f  {.  package { 'o
│ │ │ -000994b0: 7065 6e73 632d 706b 6373 3131 273a 0a20  pensc-pkcs11':. 
│ │ │ -000994c0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000994d0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -000994e0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000994f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -000995a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000995b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00099630: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00099650: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000996a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000996d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -000996f0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00099700: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00099710: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00099720: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00099730: 2d20 4449 5341 2d53 5449 472d 5542 5455  - DISA-STIG-UBTU
│ │ │ -00099740: 2d32 322d 3631 3230 3135 0a20 202d 204e  -22-612015.  - N
│ │ │ -00099750: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00099760: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00099770: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00099780: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00099790: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000997a0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000997b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000997c0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000997d0: 655f 6f70 656e 7363 5f69 6e73 7461 6c6c  e_opensc_install
│ │ │ -000997e0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -000997f0: 7265 206f 7065 6e73 632d 706b 6373 3131  re opensc-pkcs11
│ │ │ -00099800: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -00099810: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00099820: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00099830: 653a 206f 7065 6e73 632d 706b 6373 3131  e: opensc-pkcs11
│ │ │ -00099840: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -00099850: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -00099860: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00099870: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00099880: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00099890: 2044 4953 412d 5354 4947 2d55 4254 552d   DISA-STIG-UBTU-
│ │ │ -000998a0: 3232 2d36 3132 3031 350a 2020 2d20 4e49  22-612015.  - NI
│ │ │ -000998b0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000998c0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -000998d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000998e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000998f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00099900: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00099910: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00099920: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00099930: 5f6f 7065 6e73 635f 696e 7374 616c 6c65  _opensc_installe
│ │ │ -00099940: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000991d0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +000991e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000991f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00099200: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00099210: 7365 2220 6964 3d22 6964 3131 3622 3e3c se" id="id116">< │ │ │ +00099220: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00099230: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00099240: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00099250: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00099260: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +000992f0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00099300: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:< │ │ │ -00099640: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00099660: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000996b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000996c0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complex │ │ │ +00099270: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00099280: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000992c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000992d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +00099320: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00099330: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00099340: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00099350: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00099360: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +00099370: 2d55 4254 552d 3232 2d36 3132 3031 350a  -UBTU-22-612015.
│ │ │ +00099380: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00099390: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +000993a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000993b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000993c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000993d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000993e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000993f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00099400: 6163 6b61 6765 5f6f 7065 6e73 635f 696e  ackage_opensc_in
│ │ │ +00099410: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00099420: 2045 6e73 7572 6520 6f70 656e 7363 2d70   Ensure opensc-p
│ │ │ +00099430: 6b63 7331 3120 6973 2069 6e73 7461 6c6c  kcs11 is install
│ │ │ +00099440: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +00099450: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00099460: 2020 6e61 6d65 3a20 6f70 656e 7363 2d70    name: opensc-p
│ │ │ +00099470: 6b63 7331 310a 2020 2020 7374 6174 653a  kcs11.    state:
│ │ │ +00099480: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +00099490: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +000994a0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +000994b0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +000994c0: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ +000994d0: 5542 5455 2d32 322d 3631 3230 3135 0a20  UBTU-22-612015. 
│ │ │ +000994e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000994f0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +00099500: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00099510: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00099520: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00099530: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00099540: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00099550: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00099560: 636b 6167 655f 6f70 656e 7363 5f69 6e73  ckage_opensc_ins
│ │ │ +00099570: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Remediati │ │ │ +00099630: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00099640: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000996c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000996d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000996f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00099700: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00099720: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00099740: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00099770: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +00099780: 7461 6c6c 5f6f 7065 6e73 632d 706b 6373  tall_opensc-pkcs
│ │ │ +00099790: 3131 0a0a 636c 6173 7320 696e 7374 616c  11..class instal
│ │ │ +000997a0: 6c5f 6f70 656e 7363 2d70 6b63 7331 3120  l_opensc-pkcs11 
│ │ │ +000997b0: 7b0a 2020 7061 636b 6167 6520 7b20 276f  {.  package { 'o
│ │ │ +000997c0: 7065 6e73 632d 706b 6373 3131 273a 0a20  pensc-pkcs11':. 
│ │ │ +000997d0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000997e0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +000997f0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00099800: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000998b0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000998c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000998d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00099910: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +00099920: 6520 3d20 226f 7065 6e73 632d 706b 6373  e = "opensc-pkcs
│ │ │ +00099930: 3131 220a 7665 7273 696f 6e20 3d20 222a  11".version = "*
│ │ │ +00099940: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 00099950: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ -0009aa00: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0009aa10: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0009aa20: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -0009aa70: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -0009aa80: 2022 6c69 6270 616d 2d70 6b63 7331 3122   "libpam-pkcs11"
│ │ │ -0009aa90: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -0009aaa0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0009ab50: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0009ab60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -0009ac00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0009ac10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0009ac60: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0009aca0: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ -0009acb0: 7061 6d2d 706b 6373 3131 0a0a 636c 6173  pam-pkcs11..clas
│ │ │ -0009acc0: 7320 696e 7374 616c 6c5f 6c69 6270 616d  s install_libpam
│ │ │ -0009acd0: 2d70 6b63 7331 3120 7b0a 2020 7061 636b  -pkcs11 {.  pack
│ │ │ -0009ace0: 6167 6520 7b20 276c 6962 7061 6d2d 706b  age { 'libpam-pk
│ │ │ -0009acf0: 6373 3131 273a 0a20 2020 2065 6e73 7572  cs11':.    ensur
│ │ │ -0009ad00: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -0009ad10: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0009add0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0009ade0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -0009abf0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0009ac20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0009ac30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0009ac70: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0009ac80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -0009ae70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0009ae80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0009aea0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0009aec0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0009aed0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0009af10: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0009af20: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0009af30: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0009af40: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0009af50: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0009af60: 7461 6773 3a0a 2020 2d20 4449 5341 2d53 tags:. - DISA-S │ │ │ -0009af70: 5449 472d 5542 5455 2d32 322d 3631 3230 TIG-UBTU-22-6120 │ │ │ -0009af80: 3130 0a20 202d 204e 4953 542d 3830 302d 10. - NIST-800- │ │ │ -0009af90: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -0009afa0: 4349 2d44 5353 2d52 6571 2d38 2e33 0a20 CI-DSS-Req-8.3. │ │ │ -0009afb0: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ -0009afc0: 6779 0a20 202d 2069 6e73 7461 6c6c 5f73 gy. - install_s │ │ │ -0009afd0: 6d61 7274 6361 7264 5f70 6163 6b61 6765 martcard_package │ │ │ -0009afe0: 730a 2020 2d20 6c6f 775f 636f 6d70 6c65 s. - low_comple │ │ │ -0009aff0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0009b000: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0009b010: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0009b020: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0009b030: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265 ..- name: Ensure │ │ │ -0009b040: 206c 6962 7061 6d2d 706b 6373 3131 2069 libpam-pkcs11 i │ │ │ -0009b050: 7320 696e 7374 616c 6c65 640a 2020 616e s installed. an │ │ │ -0009b060: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -0009b070: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -0009b080: 206c 6962 7061 6d2d 706b 6373 3131 0a20 libpam-pkcs11. │ │ │ -0009b090: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -0009b0a0: 740a 2020 7768 656e 3a0a 2020 2d20 2722 t. when:. - '" │ │ │ -0009b0b0: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ -0009b0c0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0009b0d0: 6b61 6765 7327 0a20 202d 2061 6e73 6962 kages'. - ansib │ │ │ -0009b0e0: 6c65 5f61 7263 6869 7465 6374 7572 6520 le_architecture │ │ │ -0009b0f0: 213d 2022 7333 3930 7822 0a20 2074 6167 != "s390x". tag │ │ │ -0009b100: 733a 0a20 202d 2044 4953 412d 5354 4947 s:. - DISA-STIG │ │ │ -0009b110: 2d55 4254 552d 3232 2d36 3132 3031 300a -UBTU-22-612010. │ │ │ -0009b120: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0009b130: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -0009b140: 4453 532d 5265 712d 382e 330a 2020 2d20 DSS-Req-8.3. - │ │ │ -0009b150: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ -0009b160: 2020 2d20 696e 7374 616c 6c5f 736d 6172 - install_smar │ │ │ -0009b170: 7463 6172 645f 7061 636b 6167 6573 0a20 tcard_packages. │ │ │ -0009b180: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -0009b190: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -0009b1a0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -0009b1b0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -0009b1c0: 7265 626f 6f74 5f6e 6565 6465 640a 3c2f reboot_needed.
< │ │ │ +0009aaf0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0009ab00: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +0009ab50: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0009ab60: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0009ab70: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0009ab80: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0009ab90: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ +0009aba0: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ +0009abb0: 2d36 3132 3031 300a 2020 2d20 4e49 5354  -612010.  - NIST
│ │ │ +0009abc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0009abd0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +0009abe0: 382e 330a 2020 2d20 656e 6162 6c65 5f73  8.3.  - enable_s
│ │ │ +0009abf0: 7472 6174 6567 790a 2020 2d20 696e 7374  trategy.  - inst
│ │ │ +0009ac00: 616c 6c5f 736d 6172 7463 6172 645f 7061  all_smartcard_pa
│ │ │ +0009ac10: 636b 6167 6573 0a20 202d 206c 6f77 5f63  ckages.  - low_c
│ │ │ +0009ac20: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0009ac30: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0009ac40: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0009ac50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0009ac60: 6565 6465 640a 0a2d 206e 616d 653a 2045  eeded..- name: E
│ │ │ +0009ac70: 6e73 7572 6520 6c69 6270 616d 2d70 6b63  nsure libpam-pkc
│ │ │ +0009ac80: 7331 3120 6973 2069 6e73 7461 6c6c 6564  s11 is installed
│ │ │ +0009ac90: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0009aca0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0009acb0: 6e61 6d65 3a20 6c69 6270 616d 2d70 6b63  name: libpam-pkc
│ │ │ +0009acc0: 7331 310a 2020 2020 7374 6174 653a 2070  s11.    state: p
│ │ │ +0009acd0: 7265 7365 6e74 0a20 2077 6865 6e3a 0a20  resent.  when:. 
│ │ │ +0009ace0: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ +0009acf0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0009ad00: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ +0009ad10: 616e 7369 626c 655f 6172 6368 6974 6563  ansible_architec
│ │ │ +0009ad20: 7475 7265 2021 3d20 2273 3339 3078 220a  ture != "s390x".
│ │ │ +0009ad30: 2020 7461 6773 3a0a 2020 2d20 4449 5341    tags:.  - DISA
│ │ │ +0009ad40: 2d53 5449 472d 5542 5455 2d32 322d 3631  -STIG-UBTU-22-61
│ │ │ +0009ad50: 3230 3130 0a20 202d 204e 4953 542d 3830  2010.  - NIST-80
│ │ │ +0009ad60: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0009ad70: 2050 4349 2d44 5353 2d52 6571 2d38 2e33   PCI-DSS-Req-8.3
│ │ │ +0009ad80: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0009ad90: 7465 6779 0a20 202d 2069 6e73 7461 6c6c  tegy.  - install
│ │ │ +0009ada0: 5f73 6d61 7274 6361 7264 5f70 6163 6b61  _smartcard_packa
│ │ │ +0009adb0: 6765 730a 2020 2d20 6c6f 775f 636f 6d70  ges.  - low_comp
│ │ │ +0009adc0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0009add0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0009ade0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0009adf0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0009ae00: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0009ae10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +0009aec0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0009aed0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ +0009aad0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0009aae0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0009ab20: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0009ab30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0009af50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0009af70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0009afc0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +0009b010: 5f6c 6962 7061 6d2d 706b 6373 3131 0a0a  _libpam-pkcs11..
│ │ │ +0009b020: 636c 6173 7320 696e 7374 616c 6c5f 6c69  class install_li
│ │ │ +0009b030: 6270 616d 2d70 6b63 7331 3120 7b0a 2020  bpam-pkcs11 {.  
│ │ │ +0009b040: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ +0009b050: 6d2d 706b 6373 3131 273a 0a20 2020 2065  m-pkcs11':.    e
│ │ │ +0009b060: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +0009b070: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +0009b080: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0009b130: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0009b140: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0009b150: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0009b160: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0009b190: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +0009b1a0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +0009b1b0: 226c 6962 7061 6d2d 706b 6373 3131 220a  "libpam-pkcs11".
│ │ │ +0009b1c0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediat │ │ │ -000ba2d0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000ba2e0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000ba2f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000ba340: 5d0a 6e61 6d65 203d 2022 6170 7061 726d  ].name = "apparm
│ │ │ -000ba350: 6f72 220a 7665 7273 696f 6e20 3d20 222a  or".version = "*
│ │ │ -000ba360: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -000ba370: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000ba420: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000ba430: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +0009af80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0009af90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0009afd0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0009afe0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -000ba500: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000ba510: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000ba560: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -000ba570: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ -000ba580: 696e 7374 616c 6c5f 6170 7061 726d 6f72  install_apparmor
│ │ │ -000ba590: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000ba5a0: 6170 7061 726d 6f72 273a 0a20 2020 2065  apparmor':.    e
│ │ │ -000ba5b0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000ba5c0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000ba5d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000ba680: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000ba690: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disru │ │ │ -000ba4e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000ba4f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000ba530: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000ba540: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -000ba730: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000ba7d0: 6e61 6d65 3a20 456e 7375 7265 2061 7070  name: Ensure app
│ │ │ -000ba7e0: 6172 6d6f 7220 6973 2069 6e73 7461 6c6c  armor is install
│ │ │ -000ba7f0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000ba800: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -000ba810: 2020 6e61 6d65 3a20 6170 7061 726d 6f72    name: apparmor
│ │ │ -000ba820: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -000ba830: 656e 740a 2020 7768 656e 3a20 616e 7369  ent.  when: ansi
│ │ │ -000ba840: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ -000ba850: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ -000ba860: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ -000ba870: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ -000ba880: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ -000ba890: 5d0a 2020 7461 6773 3a0a 2020 2d20 4449  ].  tags:.  - DI
│ │ │ -000ba8a0: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ -000ba8b0: 3433 3130 3130 0a20 202d 2065 6e61 626c  431010.  - enabl
│ │ │ -000ba8c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000ba8d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000ba8e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000ba8f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000ba900: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000ba910: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000ba920: 636b 6167 655f 6170 7061 726d 6f72 5f69  ckage_apparmor_i
│ │ │ -000ba930: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000ba2d0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +000ba2e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +000ba2f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000ba300: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000ba310: 7365 2220 6964 3d22 6964 3136 3622 3e3c se" id="id166">< │ │ │ +000ba320: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000ba330: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000ba340: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000ba350: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000ba360: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000ba3f0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000ba400: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -000ba720: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000ba750: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000ba760: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000ba7a0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000ba7b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +000ba370: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000ba380: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000ba3c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000ba3d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: E
│ │ │ +000ba420: 6e73 7572 6520 6170 7061 726d 6f72 2069  nsure apparmor i
│ │ │ +000ba430: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +000ba440: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +000ba450: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +000ba460: 2061 7070 6172 6d6f 720a 2020 2020 7374   apparmor.    st
│ │ │ +000ba470: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +000ba480: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ +000ba490: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ +000ba4a0: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ +000ba4b0: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ +000ba4c0: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ +000ba4d0: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ +000ba4e0: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +000ba4f0: 2d55 4254 552d 3232 2d34 3331 3031 300a  -UBTU-22-431010.
│ │ │ +000ba500: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000ba510: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000ba520: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000ba530: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000ba540: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000ba550: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000ba560: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +000ba570: 7070 6172 6d6f 725f 696e 7374 616c 6c65  pparmor_installe
│ │ │ +000ba580: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000ba590: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +000ba640: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000ba650: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000ba720: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000ba730: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000ba780: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +000ba790: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ +000ba7a0: 696e 7374 616c 6c5f 6170 7061 726d 6f72  install_apparmor
│ │ │ +000ba7b0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000ba7c0: 6170 7061 726d 6f72 273a 0a20 2020 2065  apparmor':.    e
│ │ │ +000ba7d0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +000ba7e0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +000ba7f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000ba8a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +000ba8b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +000ba8c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000ba8d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000ba900: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +000ba910: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000ba920: 2261 7070 6172 6d6f 7222 0a76 6572 7369  "apparmor".versi
│ │ │ +000ba930: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  000ba940: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -000bbca0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000bbcb0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000bbcc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000bbcd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000bbd00: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -000bbd10: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -000bbd20: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -000bbd30: 5b22 6170 7061 726d 6f72 225d 0a3c 2f63  ["apparmor"].
│ │ │ -000bbd50: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000bbdf0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000bbe00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000bbe10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +000ba700: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000ba710: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000ba750: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000ba760: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -000bbe90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000bbec0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000bbee0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000bbef0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000bbf10: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000bbf30: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000bbf40: 6465 2065 6e61 626c 655f 6170 7061 726d  de enable_apparm
│ │ │ -000bbf50: 6f72 0a0a 636c 6173 7320 656e 6162 6c65  or..class enable
│ │ │ -000bbf60: 5f61 7070 6172 6d6f 7220 7b0a 2020 7365  _apparmor {.  se
│ │ │ -000bbf70: 7276 6963 6520 7b27 6170 7061 726d 6f72  rvice {'apparmor
│ │ │ -000bbf80: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -000bbf90: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -000bbfa0: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -000bbfb0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ +000bbd50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000bbd60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000bbdb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000bbdf0: 6c75 6465 2065 6e61 626c 655f 6170 7061  lude enable_appa
│ │ │ +000bbe00: 726d 6f72 0a0a 636c 6173 7320 656e 6162  rmor..class enab
│ │ │ +000bbe10: 6c65 5f61 7070 6172 6d6f 7220 7b0a 2020  le_apparmor {.  
│ │ │ +000bbe20: 7365 7276 6963 6520 7b27 6170 7061 726d  service {'apparm
│ │ │ +000bbe30: 6f72 273a 0a20 2020 2065 6e61 626c 6520  or':.    enable 
│ │ │ +000bbe40: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000bbe50: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000bbe60: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +000bbf20: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000bbf30: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000bbf40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000bbf50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000bbf60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000bbf70: 7365 2220 6964 3d22 6964 3137 3222 3e3c se" id="id172">< │ │ │ +000bbf80: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000bbf90: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000bbfa0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000bbfb0: 2261 7070 6172 6d6f 7222 5d0a 3c2f 636f "apparmor"].< │ │ │ 000bbfd0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000bbfe0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000bbff0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000bc000: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000bc010: 6431 3733 2220 7461 6269 6e64 6578 3d22 d173" tabindex=" │ │ │ 000bc020: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -53673,154 +53673,154 @@ │ │ │ 000d1a80: 6172 6765 743d 2223 6964 3230 3722 2074 arget="#id207" t │ │ │ 000d1a90: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 000d1aa0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 000d1ab0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 000d1ac0: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 000d1ad0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 000d1ae0: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -000d1af0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000d1b00: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -000d1b60: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -000d1b70: 6c65 6420 3d20 5b22 7273 7973 6c6f 6722  led = ["rsyslog"
│ │ │ -000d1b80: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -000d1b90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000d1c40: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000d1c50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ +000bbd40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000bbd70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000bbd80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000bbdc0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000bbdd0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -000d1d20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000d1d30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000d1d80: 696e 636c 7564 6520 656e 6162 6c65 5f72  include enable_r
│ │ │ -000d1d90: 7379 736c 6f67 0a0a 636c 6173 7320 656e  syslog..class en
│ │ │ -000d1da0: 6162 6c65 5f72 7379 736c 6f67 207b 0a20  able_rsyslog {. 
│ │ │ -000d1db0: 2073 6572 7669 6365 207b 2772 7379 736c   service {'rsysl
│ │ │ -000d1dc0: 6f67 273a 0a20 2020 2065 6e61 626c 6520  og':.    enable 
│ │ │ -000d1dd0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -000d1de0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -000d1df0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ -000d1eb0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000d1ec0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disru │ │ │ -000d1d00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000d1d10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000d1d50: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000d1d60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -000d1f60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000d1f70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000d1fc0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000d2000: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000d2010: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000d2020: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000d2030: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000d2040: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ -000d2050: 412d 5354 4947 2d55 4254 552d 3232 2d36  A-STIG-UBTU-22-6
│ │ │ -000d2060: 3532 3031 300a 2020 2d20 4e49 5354 2d38  52010.  - NIST-8
│ │ │ -000d2070: 3030 2d35 332d 4155 2d34 2831 290a 2020  00-53-AU-4(1).  
│ │ │ -000d2080: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000d2090: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -000d20a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000d20b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000d20c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000d20d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000d20e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000d20f0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -000d2100: 7669 6365 5f72 7379 736c 6f67 5f65 6e61  vice_rsyslog_ena
│ │ │ -000d2110: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -000d2120: 6162 6c65 2072 7379 736c 6f67 2053 6572  able rsyslog Ser
│ │ │ -000d2130: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -000d2140: 7276 6963 6520 7273 7973 6c6f 670a 2020  rvice rsyslog.  
│ │ │ -000d2150: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -000d2160: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ -000d2170: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ -000d2180: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000d2190: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000d21a0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000d21b0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ -000d21c0: 626c 6520 7273 7973 6c6f 6720 5365 7276  ble rsyslog Serv
│ │ │ -000d21d0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -000d21e0: 7669 6365 2072 7379 736c 6f67 0a20 2020  vice rsyslog.   
│ │ │ -000d21f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000d2200: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -000d2210: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ -000d2220: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ -000d2230: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -000d2240: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ -000d2250: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ -000d2260: 6865 6e3a 0a20 2020 202d 2027 2272 7379  hen:.    - '"rsy
│ │ │ -000d2270: 736c 6f67 2220 696e 2061 6e73 6962 6c65  slog" in ansible
│ │ │ -000d2280: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000d2290: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ -000d22a0: 412d 5354 4947 2d55 4254 552d 3232 2d36  A-STIG-UBTU-22-6
│ │ │ -000d22b0: 3532 3031 300a 2020 2d20 4e49 5354 2d38  52010.  - NIST-8
│ │ │ -000d22c0: 3030 2d35 332d 4155 2d34 2831 290a 2020  00-53-AU-4(1).  
│ │ │ -000d22d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000d22e0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -000d22f0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000d2300: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000d2310: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000d2320: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000d2330: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000d2340: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -000d2350: 7669 6365 5f72 7379 736c 6f67 5f65 6e61  vice_rsyslog_ena
│ │ │ -000d2360: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -000d2370: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -000d2380: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -000d2390: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -000d23a0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +000d1af0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +000d1b00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +000d1bc0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000d1bd0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -000d1f50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000d1f80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000d1f90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000d1fd0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000d1fe0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +000d1b90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000d1bb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000d1be0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000d1c00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000d1c40: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000d1c50: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000d1c60: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +000d1c70: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +000d1c80: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ +000d1c90: 5455 2d32 322d 3635 3230 3130 0a20 202d  TU-22-652010.  -
│ │ │ +000d1ca0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +000d1cb0: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +000d1cc0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +000d1cd0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000d1ce0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000d1cf0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000d1d00: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000d1d10: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000d1d20: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000d1d30: 2020 2d20 7365 7276 6963 655f 7273 7973    - service_rsys
│ │ │ +000d1d40: 6c6f 675f 656e 6162 6c65 640a 0a2d 206e  log_enabled..- n
│ │ │ +000d1d50: 616d 653a 2045 6e61 626c 6520 7273 7973  ame: Enable rsys
│ │ │ +000d1d60: 6c6f 6720 5365 7276 6963 6520 2d20 456e  log Service - En
│ │ │ +000d1d70: 6162 6c65 2073 6572 7669 6365 2072 7379  able service rsy
│ │ │ +000d1d80: 736c 6f67 0a20 2062 6c6f 636b 3a0a 0a20  slog.  block:.. 
│ │ │ +000d1d90: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +000d1da0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000d1db0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +000d1dc0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +000d1dd0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +000d1de0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +000d1df0: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ +000d1e00: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ +000d1e10: 626c 6520 5365 7276 6963 6520 7273 7973  ble Service rsys
│ │ │ +000d1e20: 6c6f 670a 2020 2020 616e 7369 626c 652e  log.    ansible.
│ │ │ +000d1e30: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +000d1e40: 0a20 2020 2020 206e 616d 653a 2072 7379  .      name: rsy
│ │ │ +000d1e50: 736c 6f67 0a20 2020 2020 2065 6e61 626c  slog.      enabl
│ │ │ +000d1e60: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +000d1e70: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +000d1e80: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +000d1e90: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +000d1ea0: 2d20 2722 7273 7973 6c6f 6722 2069 6e20  - '"rsyslog" in 
│ │ │ +000d1eb0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000d1ec0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +000d1ed0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ +000d1ee0: 5455 2d32 322d 3635 3230 3130 0a20 202d  TU-22-652010.  -
│ │ │ +000d1ef0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +000d1f00: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +000d1f10: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +000d1f20: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000d1f30: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000d1f40: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000d1f50: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000d1f60: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000d1f70: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000d1f80: 2020 2d20 7365 7276 6963 655f 7273 7973    - service_rsys
│ │ │ +000d1f90: 6c6f 675f 656e 6162 6c65 640a 2020 2d20  log_enabled.  - 
│ │ │ +000d1fa0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +000d1fb0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +000d1fc0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +000d1fd0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +000d1fe0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediati │ │ │ +000d20a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +000d20b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000d2130: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000d2140: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000d2160: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000d2170: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000d2190: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000d21b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000d21e0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +000d21f0: 626c 655f 7273 7973 6c6f 670a 0a63 6c61  ble_rsyslog..cla
│ │ │ +000d2200: 7373 2065 6e61 626c 655f 7273 7973 6c6f  ss enable_rsyslo
│ │ │ +000d2210: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ +000d2220: 7273 7973 6c6f 6727 3a0a 2020 2020 656e  rsyslog':.    en
│ │ │ +000d2230: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ +000d2240: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000d2250: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ +000d2260: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +000d2270: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000d2320: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000d2330: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000d2340: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000d2380: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +000d2390: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +000d23a0: 6420 3d20 5b22 7273 7973 6c6f 6722 5d0a  d = ["rsyslog"].
│ │ │  000d23b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OS │ │ │ -0010e090: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0010e0a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0010e0b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0010e0f0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0010e100: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -0010e110: 3d20 5b22 6b64 756d 702d 746f 6f6c 7322  = ["kdump-tools"
│ │ │ -0010e120: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -0010e130: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ku │ │ │ -0010e1e0: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -0010e1f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0010e280: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0010e2a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0010e2b0: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -0010e2d0: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -0010e2e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0010e300: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0010e310: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -0010e330: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -0010e340: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -0010e350: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -0010e360: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -0010e370: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -0010e380: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -0010e390: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -0010e3a0: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -0010e3b0: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -0010e3c0: 206e 616d 653a 206b 6475 6d70 2d74 6f6f   name: kdump-too
│ │ │ -0010e3d0: 6c73 2e73 6572 7669 6365 0a20 2020 2020  ls.service.     
│ │ │ -0010e3e0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0010e3f0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -0010e400: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ -0010e410: 653a 206b 6475 6d70 2d74 6f6f 6c73 2e73  e: kdump-tools.s
│ │ │ -0010e420: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -0010e430: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0010e440: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -0010e450: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0010e500: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0010e510: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0010e5b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0010e650: 636c 7564 6520 6469 7361 626c 655f 6b64  clude disable_kd
│ │ │ -0010e660: 756d 702d 746f 6f6c 730a 0a63 6c61 7373  ump-tools..class
│ │ │ -0010e670: 2064 6973 6162 6c65 5f6b 6475 6d70 2d74   disable_kdump-t
│ │ │ -0010e680: 6f6f 6c73 207b 0a20 2073 6572 7669 6365  ools {.  service
│ │ │ -0010e690: 207b 276b 6475 6d70 2d74 6f6f 6c73 273a   {'kdump-tools':
│ │ │ -0010e6a0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -0010e6b0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -0010e6c0: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -0010e6d0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0010e790: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0010e7a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0010e5a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0010e5d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0010e5e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0010e620: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0010e630: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -0010e830: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0010e840: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0010e860: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0010e880: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0010e890: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0010e8d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0010e8e0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0010e8f0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0010e900: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0010e910: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0010e920: 2074 6167 733a 0a20 202d 2044 4953 412d   tags:.  - DISA-
│ │ │ -0010e930: 5354 4947 2d55 4254 552d 3232 2d32 3133  STIG-UBTU-22-213
│ │ │ -0010e940: 3031 350a 2020 2d20 4e49 5354 2d38 3030  015.  - NIST-800
│ │ │ -0010e950: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0010e960: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0010e970: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0010e980: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -0010e990: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0010e9a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0010e9b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0010e9c0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0010e9d0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0010e9e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0010e9f0: 2020 2d20 7365 7276 6963 655f 6b64 756d    - service_kdum
│ │ │ -0010ea00: 705f 6469 7361 626c 6564 0a0a 2d20 6e61  p_disabled..- na
│ │ │ -0010ea10: 6d65 3a20 4469 7361 626c 6520 4b44 756d  me: Disable KDum
│ │ │ -0010ea20: 7020 4b65 726e 656c 2043 7261 7368 2041  p Kernel Crash A
│ │ │ -0010ea30: 6e61 6c79 7a65 7220 286b 6475 6d70 2920  nalyzer (kdump) 
│ │ │ -0010ea40: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -0010ea50: 6520 6b64 756d 702d 746f 6f6c 730a 2020  e kdump-tools.  
│ │ │ -0010ea60: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -0010ea70: 3a20 4469 7361 626c 6520 4b44 756d 7020  : Disable KDump 
│ │ │ -0010ea80: 4b65 726e 656c 2043 7261 7368 2041 6e61  Kernel Crash Ana
│ │ │ -0010ea90: 6c79 7a65 7220 286b 6475 6d70 2920 2d20  lyzer (kdump) - 
│ │ │ -0010eaa0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -0010eab0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -0010eac0: 0a20 2020 2020 2069 6e20 7468 6520 5379  .      in the Sy
│ │ │ -0010ead0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -0010eae0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0010eaf0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0010eb00: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -0010eb10: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -0010eb20: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -0010eb30: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -0010eb40: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0010eb50: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0010eb60: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0010eb70: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -0010eb80: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -0010eb90: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -0010eba0: 616d 653a 2044 6973 6162 6c65 204b 4475  ame: Disable KDu
│ │ │ -0010ebb0: 6d70 204b 6572 6e65 6c20 4372 6173 6820  mp Kernel Crash 
│ │ │ -0010ebc0: 416e 616c 797a 6572 2028 6b64 756d 7029  Analyzer (kdump)
│ │ │ -0010ebd0: 202d 2045 6e73 7572 6520 6b64 756d 702d   - Ensure kdump-
│ │ │ -0010ebe0: 746f 6f6c 732e 7365 7276 6963 650a 2020  tools.service.  
│ │ │ -0010ebf0: 2020 2020 6973 204d 6173 6b65 640a 2020      is Masked.  
│ │ │ -0010ec00: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0010ec10: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -0010ec20: 206e 616d 653a 206b 6475 6d70 2d74 6f6f   name: kdump-too
│ │ │ -0010ec30: 6c73 2e73 6572 7669 6365 0a20 2020 2020  ls.service.     
│ │ │ -0010ec40: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0010ec50: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0010ec60: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -0010ec70: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0010ec80: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0010ec90: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0010eca0: 2073 6561 7263 6828 226b 6475 6d70 2d74   search("kdump-t
│ │ │ -0010ecb0: 6f6f 6c73 2e73 6572 7669 6365 222c 206d  ools.service", m
│ │ │ -0010ecc0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -0010ecd0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -0010ece0: 6f63 6b65 7420 4578 6973 7473 202d 206b  ocket Exists - k
│ │ │ -0010ecf0: 6475 6d70 2d74 6f6f 6c73 2e73 6f63 6b65  dump-tools.socke
│ │ │ -0010ed00: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -0010ed10: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -0010ed20: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -0010ed30: 2d75 6e69 742d 6669 6c65 7320 6b64 756d  -unit-files kdum
│ │ │ -0010ed40: 702d 746f 6f6c 732e 736f 636b 6574 0a20  p-tools.socket. 
│ │ │ -0010ed50: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -0010ed60: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -0010ed70: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0010ed80: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0010ed90: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -0010eda0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -0010edb0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0010edc0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0010edd0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -0010ede0: 7361 626c 6520 4b44 756d 7020 4b65 726e  sable KDump Kern
│ │ │ -0010edf0: 656c 2043 7261 7368 2041 6e61 6c79 7a65  el Crash Analyze
│ │ │ -0010ee00: 7220 286b 6475 6d70 2920 2d20 4469 7361  r (kdump) - Disa
│ │ │ -0010ee10: 626c 6520 536f 636b 6574 206b 6475 6d70  ble Socket kdump
│ │ │ -0010ee20: 2d74 6f6f 6c73 0a20 2020 2061 6e73 6962  -tools.    ansib
│ │ │ -0010ee30: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0010ee40: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0010ee50: 6b64 756d 702d 746f 6f6c 732e 736f 636b  kdump-tools.sock
│ │ │ -0010ee60: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -0010ee70: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -0010ee80: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0010ee90: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0010eea0: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -0010eeb0: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -0010eec0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0010eed0: 7263 6828 226b 6475 6d70 2d74 6f6f 6c73  rch("kdump-tools
│ │ │ -0010eee0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0010eef0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0010ef00: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -0010ef10: 5542 5455 2d32 322d 3231 3330 3135 0a20  UBTU-22-213015. 
│ │ │ -0010ef20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0010ef30: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0010ef40: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0010ef50: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0010ef60: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0010ef70: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0010ef80: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0010ef90: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0010efa0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0010efb0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0010efc0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0010efd0: 6572 7669 6365 5f6b 6475 6d70 5f64 6973  ervice_kdump_dis
│ │ │ -0010efe0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -0010eff0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -0010f000: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0010f010: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0010f020: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0010e080: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +0010e090: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +0010e0a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +0010e120: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0010e140: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0010e190: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0010e1c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0010e1e0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0010e1f0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0010e200: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0010e210: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0010e220: 2d20 4449 5341 2d53 5449 472d 5542 5455  - DISA-STIG-UBTU
│ │ │ +0010e230: 2d32 322d 3231 3330 3135 0a20 202d 204e  -22-213015.  - N
│ │ │ +0010e240: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0010e250: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0010e260: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0010e270: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0010e280: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0010e290: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0010e2a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0010e2b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0010e2c0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0010e2d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0010e2e0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0010e2f0: 6365 5f6b 6475 6d70 5f64 6973 6162 6c65  ce_kdump_disable
│ │ │ +0010e300: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +0010e310: 6c65 204b 4475 6d70 204b 6572 6e65 6c20  le KDump Kernel 
│ │ │ +0010e320: 4372 6173 6820 416e 616c 797a 6572 2028  Crash Analyzer (
│ │ │ +0010e330: 6b64 756d 7029 202d 2044 6973 6162 6c65  kdump) - Disable
│ │ │ +0010e340: 2073 6572 7669 6365 206b 6475 6d70 2d74   service kdump-t
│ │ │ +0010e350: 6f6f 6c73 0a20 2062 6c6f 636b 3a0a 0a20  ools.  block:.. 
│ │ │ +0010e360: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0010e370: 204b 4475 6d70 204b 6572 6e65 6c20 4372   KDump Kernel Cr
│ │ │ +0010e380: 6173 6820 416e 616c 797a 6572 2028 6b64  ash Analyzer (kd
│ │ │ +0010e390: 756d 7029 202d 2043 6f6c 6c65 6374 2073  ump) - Collect s
│ │ │ +0010e3a0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +0010e3b0: 5072 6573 656e 740a 2020 2020 2020 696e  Present.      in
│ │ │ +0010e3c0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0010e3d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0010e3e0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0010e3f0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0010e400: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0010e410: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0010e420: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0010e430: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0010e440: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0010e450: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0010e460: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0010e470: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0010e480: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0010e490: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0010e4a0: 626c 6520 4b44 756d 7020 4b65 726e 656c  ble KDump Kernel
│ │ │ +0010e4b0: 2043 7261 7368 2041 6e61 6c79 7a65 7220   Crash Analyzer 
│ │ │ +0010e4c0: 286b 6475 6d70 2920 2d20 456e 7375 7265  (kdump) - Ensure
│ │ │ +0010e4d0: 206b 6475 6d70 2d74 6f6f 6c73 2e73 6572   kdump-tools.ser
│ │ │ +0010e4e0: 7669 6365 0a20 2020 2020 2069 7320 4d61  vice.      is Ma
│ │ │ +0010e4f0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0010e500: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0010e510: 3a0a 2020 2020 2020 6e61 6d65 3a20 6b64  :.      name: kd
│ │ │ +0010e520: 756d 702d 746f 6f6c 732e 7365 7276 6963  ump-tools.servic
│ │ │ +0010e530: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +0010e540: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +0010e550: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0010e560: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0010e570: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +0010e580: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0010e590: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0010e5a0: 6b64 756d 702d 746f 6f6c 732e 7365 7276  kdump-tools.serv
│ │ │ +0010e5b0: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +0010e5c0: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +0010e5d0: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +0010e5e0: 7374 7320 2d20 6b64 756d 702d 746f 6f6c  sts - kdump-tool
│ │ │ +0010e5f0: 732e 736f 636b 6574 0a20 2020 2061 6e73  s.socket.    ans
│ │ │ +0010e600: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +0010e610: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +0010e620: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +0010e630: 6573 206b 6475 6d70 2d74 6f6f 6c73 2e73  es kdump-tools.s
│ │ │ +0010e640: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +0010e650: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +0010e660: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0010e670: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0010e680: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0010e690: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0010e6a0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0010e6b0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0010e6c0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0010e6d0: 616d 653a 2044 6973 6162 6c65 204b 4475  ame: Disable KDu
│ │ │ +0010e6e0: 6d70 204b 6572 6e65 6c20 4372 6173 6820  mp Kernel Crash 
│ │ │ +0010e6f0: 416e 616c 797a 6572 2028 6b64 756d 7029  Analyzer (kdump)
│ │ │ +0010e700: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +0010e710: 7420 6b64 756d 702d 746f 6f6c 730a 2020  t kdump-tools.  
│ │ │ +0010e720: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0010e730: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0010e740: 206e 616d 653a 206b 6475 6d70 2d74 6f6f   name: kdump-too
│ │ │ +0010e750: 6c73 2e73 6f63 6b65 740a 2020 2020 2020  ls.socket.      
│ │ │ +0010e760: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0010e770: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0010e780: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +0010e790: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +0010e7a0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0010e7b0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +0010e7c0: 2069 7320 7365 6172 6368 2822 6b64 756d   is search("kdum
│ │ │ +0010e7d0: 702d 746f 6f6c 732e 736f 636b 6574 222c  p-tools.socket",
│ │ │ +0010e7e0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0010e7f0: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ +0010e800: 412d 5354 4947 2d55 4254 552d 3232 2d32  A-STIG-UBTU-22-2
│ │ │ +0010e810: 3133 3031 350a 2020 2d20 4e49 5354 2d38  13015.  - NIST-8
│ │ │ +0010e820: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0010e830: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0010e840: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0010e850: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0010e860: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0010e870: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0010e880: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0010e890: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0010e8a0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0010e8b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0010e8c0: 640a 2020 2d20 7365 7276 6963 655f 6b64  d.  - service_kd
│ │ │ +0010e8d0: 756d 705f 6469 7361 626c 6564 0a20 202d  ump_disabled.  -
│ │ │ +0010e8e0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +0010e8f0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +0010e900: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +0010e910: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0010e920: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0010e930: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +0010e9e0: 696f 6e20 4b75 6265 726e 6574 6573 2073  ion Kubernetes s
│ │ │ +0010e9f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ +0010e150: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0010e160: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0010e1a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0010e1b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0010eaf0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +0010eb30: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +0010eb40: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +0010eb50: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +0010eb60: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +0010eb70: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +0010eb80: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +0010eb90: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +0010eba0: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +0010ebb0: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +0010ebc0: 2020 2020 202d 206e 616d 653a 206b 6475       - name: kdu
│ │ │ +0010ebd0: 6d70 2d74 6f6f 6c73 2e73 6572 7669 6365  mp-tools.service
│ │ │ +0010ebe0: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +0010ebf0: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +0010ec00: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +0010ec10: 202d 206e 616d 653a 206b 6475 6d70 2d74   - name: kdump-t
│ │ │ +0010ec20: 6f6f 6c73 2e73 6f63 6b65 740a 2020 2020  ools.socket.    
│ │ │ +0010ec30: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0010ec40: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0010ec50: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ +0010ed10: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0010ed20: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0010ede0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0010edf0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Comp │ │ │ +0010ea80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0010ea90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0010eab0: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +0010eac0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +0010eb00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0010eb10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +0010edb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0010edd0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0010ee00: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0010ee20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0010ee60: 626c 655f 6b64 756d 702d 746f 6f6c 730a  ble_kdump-tools.
│ │ │ +0010ee70: 0a63 6c61 7373 2064 6973 6162 6c65 5f6b  .class disable_k
│ │ │ +0010ee80: 6475 6d70 2d74 6f6f 6c73 207b 0a20 2073  dump-tools {.  s
│ │ │ +0010ee90: 6572 7669 6365 207b 276b 6475 6d70 2d74  ervice {'kdump-t
│ │ │ +0010eea0: 6f6f 6c73 273a 0a20 2020 2065 6e61 626c  ools':.    enabl
│ │ │ +0010eeb0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +0010eec0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0010eed0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +0010eee0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +0010efa0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0010efb0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +0010f000: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +0010f010: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +0010f020: 205b 226b 6475 6d70 2d74 6f6f 6c73 225d   ["kdump-tools"]
│ │ │  0010f030: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ -00110980: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00110990: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00110a60: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00110a70: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00110ad0: 5f74 656c 6e65 7464 0a0a 636c 6173 7320  _telnetd..class 
│ │ │ -00110ae0: 7265 6d6f 7665 5f74 656c 6e65 7464 207b  remove_telnetd {
│ │ │ -00110af0: 0a20 2070 6163 6b61 6765 207b 2027 7465  .  package { 'te
│ │ │ -00110b00: 6c6e 6574 6427 3a0a 2020 2020 656e 7375  lnetd':.    ensu
│ │ │ -00110b10: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00110b20: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00110b30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00110be0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00110bf0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00110c00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00110c30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ -00110a40: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00110a50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00110a90: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00110aa0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00110ca0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00110cc0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00110cf0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00110c80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00110c90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00110cd0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00110ce0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00110d30: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ -00110d40: 7465 6c6e 6574 2073 6572 7665 723a 2045 telnet server: E │ │ │ -00110d50: 6e73 7572 6520 7465 6c6e 6574 6420 6973 nsure telnetd is │ │ │ -00110d60: 2072 656d 6f76 6564 270a 2020 616e 7369 removed'. ansi │ │ │ -00110d70: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ -00110d80: 6167 653a 0a20 2020 206e 616d 653a 2074 age:. name: t │ │ │ -00110d90: 656c 6e65 7464 0a20 2020 2073 7461 7465 elnetd. state │ │ │ -00110da0: 3a20 6162 7365 6e74 0a20 2074 6167 733a : absent. tags: │ │ │ -00110db0: 0a20 202d 2044 4953 412d 5354 4947 2d55 . - DISA-STIG-U │ │ │ -00110dc0: 4254 552d 3232 2d32 3135 3033 350a 2020 BTU-22-215035. │ │ │ -00110dd0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00110de0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38 -6(a). - NIST-8 │ │ │ -00110df0: 3030 2d35 332d 434d 2d37 2861 290a 2020 00-53-CM-7(a). │ │ │ -00110e00: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00110e10: 2d37 2862 290a 2020 2d20 6469 7361 626c -7(b). - disabl │ │ │ -00110e20: 655f 7374 7261 7465 6779 0a20 202d 2068 e_strategy. - h │ │ │ -00110e30: 6967 685f 7365 7665 7269 7479 0a20 202d igh_severity. - │ │ │ -00110e40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00110e50: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00110e60: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74 on. - no_reboot │ │ │ -00110e70: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -00110e80: 6167 655f 7465 6c6e 6574 645f 7265 6d6f age_telnetd_remo │ │ │ -00110e90: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.

Remediation An │ │ │ +00110980: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00110990: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00110a10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00110a30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00110a80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00110ab0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +00110ad0: 7461 6c6c 2074 6865 2074 656c 6e65 7420  tall the telnet 
│ │ │ +00110ae0: 7365 7276 6572 3a20 456e 7375 7265 2074  server: Ensure t
│ │ │ +00110af0: 656c 6e65 7464 2069 7320 7265 6d6f 7665  elnetd is remove
│ │ │ +00110b00: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00110b10: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00110b20: 2020 6e61 6d65 3a20 7465 6c6e 6574 640a    name: telnetd.
│ │ │ +00110b30: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +00110b40: 740a 2020 7461 6773 3a0a 2020 2d20 4449  t.  tags:.  - DI
│ │ │ +00110b50: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ +00110b60: 3231 3530 3335 0a20 202d 204e 4953 542d  215035.  - NIST-
│ │ │ +00110b70: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00110b80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00110b90: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00110ba0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00110bb0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00110bc0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +00110bd0: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +00110be0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00110bf0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00110c00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00110c10: 0a20 202d 2070 6163 6b61 6765 5f74 656c  .  - package_tel
│ │ │ +00110c20: 6e65 7464 5f72 656d 6f76 6564 0a3c 2f63  netd_removed.
│ │ │ +00110c40: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00110ce0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00110cf0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00110d00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +00110a40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00110a50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00110a90: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00110aa0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +00110d80: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00110db0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00110dd0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00110de0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00110e00: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00110e10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00110e30: 6c75 6465 2072 656d 6f76 655f 7465 6c6e  lude remove_teln
│ │ │ +00110e40: 6574 640a 0a63 6c61 7373 2072 656d 6f76  etd..class remov
│ │ │ +00110e50: 655f 7465 6c6e 6574 6420 7b0a 2020 7061  e_telnetd {.  pa
│ │ │ +00110e60: 636b 6167 6520 7b20 2774 656c 6e65 7464  ckage { 'telnetd
│ │ │ +00110e70: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00110e80: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00110e90: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation Pu │ │ │ -00112250: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00112260: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00112330: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00112340: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -001123a0: 5f6e 6673 2d63 6f6d 6d6f 6e0a 0a63 6c61  _nfs-common..cla
│ │ │ -001123b0: 7373 2072 656d 6f76 655f 6e66 732d 636f  ss remove_nfs-co
│ │ │ -001123c0: 6d6d 6f6e 207b 0a20 2070 6163 6b61 6765  mmon {.  package
│ │ │ -001123d0: 207b 2027 6e66 732d 636f 6d6d 6f6e 273a   { 'nfs-common':
│ │ │ -001123e0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -001123f0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00112400: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00112410: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -001124c0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -001124d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -00112310: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00112320: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00112360: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00112370: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00112550: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00112570: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001125c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -001125f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00112610: 7461 6c6c 206e 6673 2d63 6f6d 6d6f 6e20  tall nfs-common 
│ │ │ -00112620: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00112630: 6e66 732d 636f 6d6d 6f6e 2069 7320 7265  nfs-common is re
│ │ │ -00112640: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00112650: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00112660: 3a0a 2020 2020 6e61 6d65 3a20 6e66 732d  :.    name: nfs-
│ │ │ -00112670: 636f 6d6d 6f6e 0a20 2020 2073 7461 7465  common.    state
│ │ │ -00112680: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -00112690: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ -001126a0: 4254 552d 3232 2d32 3135 3034 300a 2020  BTU-22-215040.  
│ │ │ -001126b0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -001126c0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -001126d0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -001126e0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -001126f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00112700: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00112710: 202d 2070 6163 6b61 6765 5f6e 6673 2d63   - package_nfs-c
│ │ │ -00112720: 6f6d 6d6f 6e5f 7265 6d6f 7665 640a 3c2f  ommon_removed.Remediation An
│ │ │ +00112250: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00112260: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disr │ │ │ -00112580: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00112590: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001125d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -001125e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +001122e0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00112300: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00112350: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00112380: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +001123a0: 7461 6c6c 206e 6673 2d63 6f6d 6d6f 6e20  tall nfs-common 
│ │ │ +001123b0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +001123c0: 6e66 732d 636f 6d6d 6f6e 2069 7320 7265  nfs-common is re
│ │ │ +001123d0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +001123e0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +001123f0: 3a0a 2020 2020 6e61 6d65 3a20 6e66 732d  :.    name: nfs-
│ │ │ +00112400: 636f 6d6d 6f6e 0a20 2020 2073 7461 7465  common.    state
│ │ │ +00112410: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00112420: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ +00112430: 4254 552d 3232 2d32 3135 3034 300a 2020  BTU-22-215040.  
│ │ │ +00112440: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00112450: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00112460: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00112470: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +00112480: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00112490: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001124a0: 202d 2070 6163 6b61 6765 5f6e 6673 2d63   - package_nfs-c
│ │ │ +001124b0: 6f6d 6d6f 6e5f 7265 6d6f 7665 640a 3c2f  ommon_removed.
Re │ │ │ +00112570: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00112580: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00112590: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +00112310: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00112320: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00112360: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00112370: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
low< │ │ │ +00112630: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00112680: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +001126c0: 636c 7564 6520 7265 6d6f 7665 5f6e 6673  clude remove_nfs
│ │ │ +001126d0: 2d63 6f6d 6d6f 6e0a 0a63 6c61 7373 2072  -common..class r
│ │ │ +001126e0: 656d 6f76 655f 6e66 732d 636f 6d6d 6f6e  emove_nfs-common
│ │ │ +001126f0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00112700: 6e66 732d 636f 6d6d 6f6e 273a 0a20 2020  nfs-common':.   
│ │ │ +00112710: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +00112720: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediatio │ │ │ -001136f0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00113700: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -001137c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001137d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Co │ │ │ +00112610: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00112640: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00112660: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00112670: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00112690: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +001126a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -00113790: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -001137b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -001137e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00113800: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00113830: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00113840: 6d6f 7665 5f6e 6673 2d6b 6572 6e65 6c2d  move_nfs-kernel-
│ │ │ -00113850: 7365 7276 6572 0a0a 636c 6173 7320 7265  server..class re
│ │ │ -00113860: 6d6f 7665 5f6e 6673 2d6b 6572 6e65 6c2d  move_nfs-kernel-
│ │ │ -00113870: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ -00113880: 6765 207b 2027 6e66 732d 6b65 726e 656c  ge { 'nfs-kernel
│ │ │ -00113890: 2d73 6572 7665 7227 3a0a 2020 2020 656e  -server':.    en
│ │ │ -001138a0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -001138b0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00113970: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00113980: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00113a10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00113a20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00113a40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00113a60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00113a70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00113ab0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00113ac0: 653a 2027 556e 696e 7374 616c 6c20 6e66  e: 'Uninstall nf
│ │ │ -00113ad0: 732d 6b65 726e 656c 2d73 6572 7665 7220  s-kernel-server 
│ │ │ -00113ae0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00113af0: 6e66 732d 6b65 726e 656c 2d73 6572 7665  nfs-kernel-serve
│ │ │ -00113b00: 7220 6973 2072 656d 6f76 6564 270a 2020  r is removed'.  
│ │ │ -00113b10: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00113b20: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00113b30: 653a 206e 6673 2d6b 6572 6e65 6c2d 7365  e: nfs-kernel-se
│ │ │ -00113b40: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ -00113b50: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -00113b60: 202d 2044 4953 412d 5354 4947 2d55 4254   - DISA-STIG-UBT
│ │ │ -00113b70: 552d 3232 2d32 3135 3034 300a 2020 2d20  U-22-215040.  - 
│ │ │ -00113b80: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00113b90: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00113ba0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00113bb0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00113bc0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00113bd0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00113be0: 2070 6163 6b61 6765 5f6e 6673 2d6b 6572   package_nfs-ker
│ │ │ -00113bf0: 6e65 6c2d 7365 7276 6572 5f72 656d 6f76  nel-server_remov
│ │ │ -00113c00: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +001136f0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00113700: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00113780: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00113790: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001137b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001137c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +001137e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00113800: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00113830: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00113840: 6e69 6e73 7461 6c6c 206e 6673 2d6b 6572  ninstall nfs-ker
│ │ │ +00113850: 6e65 6c2d 7365 7276 6572 2050 6163 6b61  nel-server Packa
│ │ │ +00113860: 6765 3a20 456e 7375 7265 206e 6673 2d6b  ge: Ensure nfs-k
│ │ │ +00113870: 6572 6e65 6c2d 7365 7276 6572 2069 7320  ernel-server is 
│ │ │ +00113880: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00113890: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +001138a0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e66  ge:.    name: nf
│ │ │ +001138b0: 732d 6b65 726e 656c 2d73 6572 7665 720a  s-kernel-server.
│ │ │ +001138c0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +001138d0: 740a 2020 7461 6773 3a0a 2020 2d20 4449  t.  tags:.  - DI
│ │ │ +001138e0: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ +001138f0: 3231 3530 3430 0a20 202d 2064 6973 6162  215040.  - disab
│ │ │ +00113900: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00113910: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00113920: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00113930: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +00113940: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00113950: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00113960: 6167 655f 6e66 732d 6b65 726e 656c 2d73  age_nfs-kernel-s
│ │ │ +00113970: 6572 7665 725f 7265 6d6f 7665 640a 3c2f  erver_removed.
Re │ │ │ +00113a30: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00113a40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00113a50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00113af0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00113b40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00113b80: 636c 7564 6520 7265 6d6f 7665 5f6e 6673  clude remove_nfs
│ │ │ +00113b90: 2d6b 6572 6e65 6c2d 7365 7276 6572 0a0a  -kernel-server..
│ │ │ +00113ba0: 636c 6173 7320 7265 6d6f 7665 5f6e 6673  class remove_nfs
│ │ │ +00113bb0: 2d6b 6572 6e65 6c2d 7365 7276 6572 207b  -kernel-server {
│ │ │ +00113bc0: 0a20 2070 6163 6b61 6765 207b 2027 6e66  .  package { 'nf
│ │ │ +00113bd0: 732d 6b65 726e 656c 2d73 6572 7665 7227  s-kernel-server'
│ │ │ +00113be0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +00113bf0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +00113c00: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 00113c10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -00117260: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00117270: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00117340: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Co │ │ │ +00113ad0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00113b00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00113b20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00113b30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00113b50: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00113b60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00117300: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00117320: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00117370: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00117380: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -001173b0: 6f76 655f 6e74 700a 0a63 6c61 7373 2072  ove_ntp..class r
│ │ │ -001173c0: 656d 6f76 655f 6e74 7020 7b0a 2020 7061  emove_ntp {.  pa
│ │ │ -001173d0: 636b 6167 6520 7b20 276e 7470 273a 0a20  ckage { 'ntp':. 
│ │ │ -001173e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001173f0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00117400: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001174b0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -001174c0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001174d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001175a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001175b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00117600: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00117610: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00117620: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00117630: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00117640: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00117650: 4449 5341 2d53 5449 472d 5542 5455 2d32  DISA-STIG-UBTU-2
│ │ │ -00117660: 322d 3231 3530 3235 0a20 202d 2064 6973  2-215025.  - dis
│ │ │ -00117670: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00117680: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00117690: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -001176a0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -001176b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -001176c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -001176d0: 636b 6167 655f 6e74 705f 7265 6d6f 7665  ckage_ntp_remove
│ │ │ -001176e0: 640a 0a2d 206e 616d 653a 2027 5265 6d6f  d..- name: 'Remo
│ │ │ -001176f0: 7665 2074 6865 206e 7470 2073 6572 7669  ve the ntp servi
│ │ │ -00117700: 6365 3a20 456e 7375 7265 206e 7470 2069  ce: Ensure ntp i
│ │ │ -00117710: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00117720: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00117730: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00117740: 6e74 700a 2020 2020 7374 6174 653a 2061  ntp.    state: a
│ │ │ -00117750: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ -00117760: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00117770: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00117780: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00117790: 202d 2044 4953 412d 5354 4947 2d55 4254   - DISA-STIG-UBT
│ │ │ -001177a0: 552d 3232 2d32 3135 3032 350a 2020 2d20  U-22-215025.  - 
│ │ │ -001177b0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -001177c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001177d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001177e0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -001177f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00117800: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00117810: 2070 6163 6b61 6765 5f6e 7470 5f72 656d   package_ntp_rem
│ │ │ -00117820: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
< │ │ │ +00117330: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00117340: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -00117580: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00117590: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001175d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001175e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00117300: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00117320: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00117350: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00117370: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +001173a0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +001173b0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +001173c0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +001173d0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +001173e0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +001173f0: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ +00117400: 4254 552d 3232 2d32 3135 3032 350a 2020  BTU-22-215025.  
│ │ │ +00117410: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00117420: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00117430: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00117440: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +00117450: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00117460: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00117470: 202d 2070 6163 6b61 6765 5f6e 7470 5f72   - package_ntp_r
│ │ │ +00117480: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ +00117490: 2752 656d 6f76 6520 7468 6520 6e74 7020  'Remove the ntp 
│ │ │ +001174a0: 7365 7276 6963 653a 2045 6e73 7572 6520  service: Ensure 
│ │ │ +001174b0: 6e74 7020 6973 2072 656d 6f76 6564 270a  ntp is removed'.
│ │ │ +001174c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +001174d0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +001174e0: 616d 653a 206e 7470 0a20 2020 2073 7461  ame: ntp.    sta
│ │ │ +001174f0: 7465 3a20 6162 7365 6e74 0a20 2077 6865  te: absent.  whe
│ │ │ +00117500: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +00117510: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00117520: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +00117530: 6773 3a0a 2020 2d20 4449 5341 2d53 5449  gs:.  - DISA-STI
│ │ │ +00117540: 472d 5542 5455 2d32 322d 3231 3530 3235  G-UBTU-22-215025
│ │ │ +00117550: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00117560: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00117570: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00117580: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00117590: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +001175a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001175b0: 640a 2020 2d20 7061 636b 6167 655f 6e74  d.  - package_nt
│ │ │ +001175c0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +00117680: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00117690: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001176a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001176d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00117740: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00117760: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00117790: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00117720: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00117730: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00117770: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00117780: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +001177d0: 6520 7265 6d6f 7665 5f6e 7470 0a0a 636c e remove_ntp..cl │ │ │ +001177e0: 6173 7320 7265 6d6f 7665 5f6e 7470 207b ass remove_ntp { │ │ │ +001177f0: 0a20 2070 6163 6b61 6765 207b 2027 6e74 . package { 'nt │ │ │ +00117800: 7027 3a0a 2020 2020 656e 7375 7265 203d p':. ensure = │ │ │ +00117810: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ +00117820: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation Pup │ │ │ -0011ff20: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0011ff30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00120000: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00120010: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00120060: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00120070: 7273 682d 7365 7276 6572 0a0a 636c 6173  rsh-server..clas
│ │ │ -00120080: 7320 7265 6d6f 7665 5f72 7368 2d73 6572  s remove_rsh-ser
│ │ │ -00120090: 7665 7220 7b0a 2020 7061 636b 6167 6520  ver {.  package 
│ │ │ -001200a0: 7b20 2772 7368 2d73 6572 7665 7227 3a0a  { 'rsh-server':.
│ │ │ -001200b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -001200c0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -001200d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00120190: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001201a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ -0011ffe0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0011fff0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00120030: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00120040: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00120270: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00120280: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -001202e0: 616c 6c20 7273 682d 7365 7276 6572 2050  all rsh-server P
│ │ │ -001202f0: 6163 6b61 6765 3a20 456e 7375 7265 2072  ackage: Ensure r
│ │ │ -00120300: 7368 2d73 6572 7665 7220 6973 2072 656d  sh-server is rem
│ │ │ -00120310: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -00120320: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00120330: 0a20 2020 206e 616d 653a 2072 7368 2d73  .    name: rsh-s
│ │ │ -00120340: 6572 7665 720a 2020 2020 7374 6174 653a  erver.    state:
│ │ │ -00120350: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -00120360: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ -00120370: 5455 2d32 322d 3231 3530 3330 0a20 202d  TU-22-215030.  -
│ │ │ -00120380: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00120390: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -001203a0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -001203b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001203c0: 3728 6229 0a20 202d 204e 4953 542d 3830  7(b).  - NIST-80
│ │ │ -001203d0: 302d 3533 2d49 412d 3528 3129 2863 290a  0-53-IA-5(1)(c).
│ │ │ -001203e0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -001203f0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00120400: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00120410: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -00120420: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -00120430: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00120440: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00120450: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00120460: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00120470: 6167 655f 7273 682d 7365 7276 6572 5f72  age_rsh-server_r
│ │ │ -00120480: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediation Ans
│ │ │ +0011ff20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0011ff30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
low
Disru │ │ │ -00120250: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00120260: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001202a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001202b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +00120000: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00120010: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00120070: 616c 6c20 7273 682d 7365 7276 6572 2050  all rsh-server P
│ │ │ +00120080: 6163 6b61 6765 3a20 456e 7375 7265 2072  ackage: Ensure r
│ │ │ +00120090: 7368 2d73 6572 7665 7220 6973 2072 656d  sh-server is rem
│ │ │ +001200a0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +001200b0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +001200c0: 0a20 2020 206e 616d 653a 2072 7368 2d73  .    name: rsh-s
│ │ │ +001200d0: 6572 7665 720a 2020 2020 7374 6174 653a  erver.    state:
│ │ │ +001200e0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +001200f0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ +00120100: 5455 2d32 322d 3231 3530 3330 0a20 202d  TU-22-215030.  -
│ │ │ +00120110: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00120120: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +00120130: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00120140: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00120150: 3728 6229 0a20 202d 204e 4953 542d 3830  7(b).  - NIST-80
│ │ │ +00120160: 302d 3533 2d49 412d 3528 3129 2863 290a  0-53-IA-5(1)(c).
│ │ │ +00120170: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00120180: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00120190: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +001201a0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +001201b0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +001201c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001201d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001201e0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +001201f0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00120200: 6167 655f 7273 682d 7365 7276 6572 5f72  age_rsh-server_r
│ │ │ +00120210: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +001202d0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +001202e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00120360: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001203a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +0011ffe0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0011fff0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00120030: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00120040: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +00120370: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00120390: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001203c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001203e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00120410: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00120420: 656d 6f76 655f 7273 682d 7365 7276 6572  emove_rsh-server
│ │ │ +00120430: 0a0a 636c 6173 7320 7265 6d6f 7665 5f72  ..class remove_r
│ │ │ +00120440: 7368 2d73 6572 7665 7220 7b0a 2020 7061  sh-server {.  pa
│ │ │ +00120450: 636b 6167 6520 7b20 2772 7368 2d73 6572  ckage { 'rsh-ser
│ │ │ +00120460: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ +00120470: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00120480: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediation OSB │ │ │ -00149370: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00149380: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -001493d0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -001493e0: 3d20 226f 7065 6e73 7368 2d73 6572 7665  = "openssh-serve
│ │ │ -001493f0: 7222 0a76 6572 7369 6f6e 203d 2022 2a22  r".version = "*"
│ │ │ -00149400: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -001494c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -001494d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001495a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001495b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00149600: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6f  nclude install_o
│ │ │ -00149610: 7065 6e73 7368 2d73 6572 7665 720a 0a63  penssh-server..c
│ │ │ -00149620: 6c61 7373 2069 6e73 7461 6c6c 5f6f 7065  lass install_ope
│ │ │ -00149630: 6e73 7368 2d73 6572 7665 7220 7b0a 2020  nssh-server {.  
│ │ │ -00149640: 7061 636b 6167 6520 7b20 276f 7065 6e73  package { 'opens
│ │ │ -00149650: 7368 2d73 6572 7665 7227 3a0a 2020 2020  sh-server':.    
│ │ │ -00149660: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -00149670: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -00149680: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00149730: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00149740: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00149750: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -00149580: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00149590: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001495d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -001495e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00149820: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00149830: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00149880: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00149890: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -001498a0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -001498b0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -001498c0: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ -001498d0: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ -001498e0: 2d32 3535 3031 300a 2020 2d20 4e49 5354  -255010.  - NIST
│ │ │ -001498f0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00149900: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00149910: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00149920: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00149930: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00149940: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00149950: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00149960: 6564 0a20 202d 2070 6163 6b61 6765 5f6f  ed.  - package_o
│ │ │ -00149970: 7065 6e73 7368 2d73 6572 7665 725f 696e  penssh-server_in
│ │ │ -00149980: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -00149990: 2045 6e73 7572 6520 6f70 656e 7373 682d   Ensure openssh-
│ │ │ -001499a0: 7365 7276 6572 2069 7320 696e 7374 616c  server is instal
│ │ │ -001499b0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -001499c0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -001499d0: 2020 206e 616d 653a 206f 7065 6e73 7368     name: openssh
│ │ │ -001499e0: 2d73 6572 7665 720a 2020 2020 7374 6174  -server.    stat
│ │ │ -001499f0: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -00149a00: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00149a10: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00149a20: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00149a30: 6773 3a0a 2020 2d20 4449 5341 2d53 5449  gs:.  - DISA-STI
│ │ │ -00149a40: 472d 5542 5455 2d32 322d 3235 3530 3130  G-UBTU-22-255010
│ │ │ -00149a50: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00149a60: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00149a70: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00149a80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00149a90: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00149aa0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00149ab0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00149ac0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00149ad0: 7061 636b 6167 655f 6f70 656e 7373 682d  package_openssh-
│ │ │ -00149ae0: 7365 7276 6572 5f69 6e73 7461 6c6c 6564  server_installed
│ │ │ +00149360: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +00149370: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00149380: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:low
Disrup │ │ │ -00149800: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00149810: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00149850: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00149860: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00149450: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00149460: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +001494b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +001494c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +001494d0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +001494e0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +001494f0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00149500: 4449 5341 2d53 5449 472d 5542 5455 2d32  DISA-STIG-UBTU-2
│ │ │ +00149510: 322d 3235 3530 3130 0a20 202d 204e 4953  2-255010.  - NIS
│ │ │ +00149520: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00149530: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00149540: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00149550: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00149560: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00149570: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00149580: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00149590: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +001495a0: 6f70 656e 7373 682d 7365 7276 6572 5f69  openssh-server_i
│ │ │ +001495b0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +001495c0: 3a20 456e 7375 7265 206f 7065 6e73 7368  : Ensure openssh
│ │ │ +001495d0: 2d73 6572 7665 7220 6973 2069 6e73 7461  -server is insta
│ │ │ +001495e0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +001495f0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00149600: 2020 2020 6e61 6d65 3a20 6f70 656e 7373      name: openss
│ │ │ +00149610: 682d 7365 7276 6572 0a20 2020 2073 7461  h-server.    sta
│ │ │ +00149620: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +00149630: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00149640: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00149650: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +00149660: 6167 733a 0a20 202d 2044 4953 412d 5354  ags:.  - DISA-ST
│ │ │ +00149670: 4947 2d55 4254 552d 3232 2d32 3535 3031  IG-UBTU-22-25501
│ │ │ +00149680: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ +00149690: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +001496a0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +001496b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +001496c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +001496d0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +001496e0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001496f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00149700: 2070 6163 6b61 6765 5f6f 7065 6e73 7368   package_openssh
│ │ │ +00149710: 2d73 6572 7665 725f 696e 7374 616c 6c65  -server_installe
│ │ │ +00149720: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00149730: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001497e0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001497f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +00149430: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00149440: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00149480: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00149490: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +001498c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001498d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00149920: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00149930: 6f70 656e 7373 682d 7365 7276 6572 0a0a  openssh-server..
│ │ │ +00149940: 636c 6173 7320 696e 7374 616c 6c5f 6f70  class install_op
│ │ │ +00149950: 656e 7373 682d 7365 7276 6572 207b 0a20  enssh-server {. 
│ │ │ +00149960: 2070 6163 6b61 6765 207b 2027 6f70 656e   package { 'open
│ │ │ +00149970: 7373 682d 7365 7276 6572 273a 0a20 2020  ssh-server':.   
│ │ │ +00149980: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00149990: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +001499a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00149a60: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00149a70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +00149ac0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +00149ad0: 3d20 226f 7065 6e73 7368 2d73 6572 7665  = "openssh-serve
│ │ │ +00149ae0: 7222 0a76 6572 7369 6f6e 203d 2022 2a22  r".version = "*"
│ │ │  00149af0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
R │ │ │ -0014aec0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0014aed0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0014aee0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0014aef0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0014af20: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0014af30: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0014af40: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -0014af50: 5b22 7373 6822 5d0a 3c2f 636f 6465 3e3c  ["ssh"].<
│ │ │ -0014af60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0014b010: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0014b020: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0014b0a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0014b130: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disru │ │ │ +001498a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001498b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001498f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00149900: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -0014b0b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0014b0c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0014b100: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0014b110: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -0014b150: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -0014b160: 6162 6c65 5f73 7368 0a0a 636c 6173 7320  able_ssh..class 
│ │ │ -0014b170: 656e 6162 6c65 5f73 7368 207b 0a20 2073  enable_ssh {.  s
│ │ │ -0014b180: 6572 7669 6365 207b 2773 7368 273a 0a20  ervice {'ssh':. 
│ │ │ -0014b190: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0014b1a0: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ -0014b1b0: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ -0014b1c0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0014b1d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0014b280: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0014b290: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0014b2a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0014b2b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0014b2c0: 7365 2220 6964 3d22 6964 3337 3622 3e3c se" id="id376">< │ │ │ -0014b2d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0014b2e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0014b2f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0014b300: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0014b310: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0014b320: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0014b330: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0014b370: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0014b380: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0014b3a0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0014b3b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -0014b3d0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0014b3e0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0014b3f0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0014b400: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0014b410: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ -0014b420: 2d55 4254 552d 3232 2d32 3535 3031 350a  -UBTU-22-255015.
│ │ │ -0014b430: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -0014b440: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354  -3.1.13.  - NIST
│ │ │ -0014b450: 2d38 3030 2d31 3731 2d33 2e31 332e 380a  -800-171-3.13.8.
│ │ │ -0014b460: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -0014b470: 2d33 2e35 2e34 0a20 202d 204e 4953 542d  -3.5.4.  - NIST-
│ │ │ -0014b480: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0014b490: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -0014b4a0: 432d 380a 2020 2d20 4e49 5354 2d38 3030  C-8.  - NIST-800
│ │ │ -0014b4b0: 2d35 332d 5343 2d38 2831 290a 2020 2d20  -53-SC-8(1).  - 
│ │ │ -0014b4c0: 4e49 5354 2d38 3030 2d35 332d 5343 2d38  NIST-800-53-SC-8
│ │ │ -0014b4d0: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ -0014b4e0: 2d35 332d 5343 2d38 2833 290a 2020 2d20  -53-SC-8(3).  - 
│ │ │ -0014b4f0: 4e49 5354 2d38 3030 2d35 332d 5343 2d38  NIST-800-53-SC-8
│ │ │ -0014b500: 2834 290a 2020 2d20 656e 6162 6c65 5f73  (4).  - enable_s
│ │ │ -0014b510: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0014b520: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0014b530: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0014b540: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0014b550: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0014b560: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0014b570: 6365 5f73 7368 645f 656e 6162 6c65 640a  ce_sshd_enabled.
│ │ │ -0014b580: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ -0014b590: 7468 6520 4f70 656e 5353 4820 5365 7276  the OpenSSH Serv
│ │ │ -0014b5a0: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ -0014b5b0: 7669 6365 2073 7368 0a20 2062 6c6f 636b  vice ssh.  block
│ │ │ -0014b5c0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -0014b5d0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0014b5e0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -0014b5f0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0014b600: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -0014b610: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -0014b620: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074  - name: Enable t
│ │ │ -0014b630: 6865 204f 7065 6e53 5348 2053 6572 7669  he OpenSSH Servi
│ │ │ -0014b640: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ -0014b650: 6963 6520 7373 680a 2020 2020 616e 7369  ice ssh.    ansi
│ │ │ -0014b660: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0014b670: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0014b680: 2073 7368 0a20 2020 2020 2065 6e61 626c   ssh.      enabl
│ │ │ -0014b690: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ -0014b6a0: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ -0014b6b0: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ -0014b6c0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ -0014b6d0: 2d20 2722 6f70 656e 7373 682d 7365 7276  - '"openssh-serv
│ │ │ -0014b6e0: 6572 2220 696e 2061 6e73 6962 6c65 5f66  er" in ansible_f
│ │ │ -0014b6f0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -0014b700: 2074 6167 733a 0a20 202d 2044 4953 412d   tags:.  - DISA-
│ │ │ -0014b710: 5354 4947 2d55 4254 552d 3232 2d32 3535  STIG-UBTU-22-255
│ │ │ -0014b720: 3031 350a 2020 2d20 4e49 5354 2d38 3030  015.  - NIST-800
│ │ │ -0014b730: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20  -171-3.1.13.  - 
│ │ │ -0014b740: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -0014b750: 332e 380a 2020 2d20 4e49 5354 2d38 3030  3.8.  - NIST-800
│ │ │ -0014b760: 2d31 3731 2d33 2e35 2e34 0a20 202d 204e  -171-3.5.4.  - N
│ │ │ -0014b770: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0014b780: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0014b790: 3533 2d53 432d 380a 2020 2d20 4e49 5354  53-SC-8.  - NIST
│ │ │ -0014b7a0: 2d38 3030 2d35 332d 5343 2d38 2831 290a  -800-53-SC-8(1).
│ │ │ -0014b7b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0014b7c0: 5343 2d38 2832 290a 2020 2d20 4e49 5354  SC-8(2).  - NIST
│ │ │ -0014b7d0: 2d38 3030 2d35 332d 5343 2d38 2833 290a  -800-53-SC-8(3).
│ │ │ -0014b7e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0014b7f0: 5343 2d38 2834 290a 2020 2d20 656e 6162  SC-8(4).  - enab
│ │ │ -0014b800: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0014b810: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0014b820: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0014b830: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0014b840: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0014b850: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0014b860: 6572 7669 6365 5f73 7368 645f 656e 6162  ervice_sshd_enab
│ │ │ -0014b870: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -0014b880: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -0014b890: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0014b8a0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0014b8b0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0014aec0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +0014aed0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +0014af70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +0014b010: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0014b020: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0014b030: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0014b040: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0014b050: 6f0a 2020 7461 6773 3a0a 2020 2d20 4449  o.  tags:.  - DI
│ │ │ +0014b060: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ +0014b070: 3235 3530 3135 0a20 202d 204e 4953 542d  255015.  - NIST-
│ │ │ +0014b080: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +0014b090: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +0014b0a0: 332e 3133 2e38 0a20 202d 204e 4953 542d  3.13.8.  - NIST-
│ │ │ +0014b0b0: 3830 302d 3137 312d 332e 352e 340a 2020  800-171-3.5.4.  
│ │ │ +0014b0c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0014b0d0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +0014b0e0: 3030 2d35 332d 5343 2d38 0a20 202d 204e  00-53-SC-8.  - N
│ │ │ +0014b0f0: 4953 542d 3830 302d 3533 2d53 432d 3828  IST-800-53-SC-8(
│ │ │ +0014b100: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +0014b110: 3533 2d53 432d 3828 3229 0a20 202d 204e  53-SC-8(2).  - N
│ │ │ +0014b120: 4953 542d 3830 302d 3533 2d53 432d 3828  IST-800-53-SC-8(
│ │ │ +0014b130: 3329 0a20 202d 204e 4953 542d 3830 302d  3).  - NIST-800-
│ │ │ +0014b140: 3533 2d53 432d 3828 3429 0a20 202d 2065  53-SC-8(4).  - e
│ │ │ +0014b150: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +0014b160: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0014b170: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0014b180: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0014b190: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0014b1a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0014b1b0: 2d20 7365 7276 6963 655f 7373 6864 5f65  - service_sshd_e
│ │ │ +0014b1c0: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ +0014b1d0: 456e 6162 6c65 2074 6865 204f 7065 6e53  Enable the OpenS
│ │ │ +0014b1e0: 5348 2053 6572 7669 6365 202d 2045 6e61  SH Service - Ena
│ │ │ +0014b1f0: 626c 6520 7365 7276 6963 6520 7373 680a  ble service ssh.
│ │ │ +0014b200: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +0014b210: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0014b220: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ +0014b230: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0014b240: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ +0014b250: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ +0014b260: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ +0014b270: 6e61 626c 6520 7468 6520 4f70 656e 5353  nable the OpenSS
│ │ │ +0014b280: 4820 5365 7276 6963 6520 2d20 456e 6162  H Service - Enab
│ │ │ +0014b290: 6c65 2053 6572 7669 6365 2073 7368 0a20  le Service ssh. 
│ │ │ +0014b2a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0014b2b0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0014b2c0: 2020 6e61 6d65 3a20 7373 680a 2020 2020    name: ssh.    
│ │ │ +0014b2d0: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +0014b2e0: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +0014b2f0: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +0014b300: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +0014b310: 6e3a 0a20 2020 202d 2027 226f 7065 6e73  n:.    - '"opens
│ │ │ +0014b320: 7368 2d73 6572 7665 7222 2069 6e20 616e  sh-server" in an
│ │ │ +0014b330: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0014b340: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +0014b350: 2d20 4449 5341 2d53 5449 472d 5542 5455  - DISA-STIG-UBTU
│ │ │ +0014b360: 2d32 322d 3235 3530 3135 0a20 202d 204e  -22-255015.  - N
│ │ │ +0014b370: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ +0014b380: 3133 0a20 202d 204e 4953 542d 3830 302d  13.  - NIST-800-
│ │ │ +0014b390: 3137 312d 332e 3133 2e38 0a20 202d 204e  171-3.13.8.  - N
│ │ │ +0014b3a0: 4953 542d 3830 302d 3137 312d 332e 352e  IST-800-171-3.5.
│ │ │ +0014b3b0: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ +0014b3c0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0014b3d0: 5354 2d38 3030 2d35 332d 5343 2d38 0a20  ST-800-53-SC-8. 
│ │ │ +0014b3e0: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +0014b3f0: 432d 3828 3129 0a20 202d 204e 4953 542d  C-8(1).  - NIST-
│ │ │ +0014b400: 3830 302d 3533 2d53 432d 3828 3229 0a20  800-53-SC-8(2). 
│ │ │ +0014b410: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +0014b420: 432d 3828 3329 0a20 202d 204e 4953 542d  C-8(3).  - NIST-
│ │ │ +0014b430: 3830 302d 3533 2d53 432d 3828 3429 0a20  800-53-SC-8(4). 
│ │ │ +0014b440: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0014b450: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0014b460: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0014b470: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0014b480: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0014b490: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0014b4a0: 640a 2020 2d20 7365 7276 6963 655f 7373  d.  - service_ss
│ │ │ +0014b4b0: 6864 5f65 6e61 626c 6564 0a20 202d 2073  hd_enabled.  - s
│ │ │ +0014b4c0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +0014b4d0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +0014b4e0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0014b4f0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0014b500: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediatio │ │ │ +0014b5c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0014b5d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0014b690: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0014b6a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +0014af60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0014af90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0014afa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0014afe0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0014aff0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +0014b660: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0014b680: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0014b6b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0014b6d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +0014b710: 6c65 5f73 7368 0a0a 636c 6173 7320 656e  le_ssh..class en
│ │ │ +0014b720: 6162 6c65 5f73 7368 207b 0a20 2073 6572  able_ssh {.  ser
│ │ │ +0014b730: 7669 6365 207b 2773 7368 273a 0a20 2020  vice {'ssh':.   
│ │ │ +0014b740: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ +0014b750: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ +0014b760: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ +0014b770: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +0014b830: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0014b840: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0014b850: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +0014b8a0: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ +0014b8b0: 626c 6564 203d 205b 2273 7368 225d 0a3c  bled = ["ssh"].<
│ │ │  0014b8c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remedi │ │ │ -0014d170: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0014d180: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0014d190: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0014d1d0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -0014d1e0: 735d 5d0a 6e61 6d65 203d 2022 7373 7364  s]].name = "sssd
│ │ │ -0014d1f0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -0014d200: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0014d2b0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0014d2c0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0014d360: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0014d400: 636c 7564 6520 696e 7374 616c 6c5f 7373  clude install_ss
│ │ │ -0014d410: 7364 0a0a 636c 6173 7320 696e 7374 616c  sd..class instal
│ │ │ -0014d420: 6c5f 7373 7364 207b 0a20 2070 6163 6b61  l_sssd {.  packa
│ │ │ -0014d430: 6765 207b 2027 7373 7364 273a 0a20 2020  ge { 'sssd':.   
│ │ │ -0014d440: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -0014d450: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -0014d460: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0014d520: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0014d530: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ -0014d350: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0014d380: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0014d390: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0014d3d0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0014d3e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -0014d600: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0014d610: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0014d660: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0014d670: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0014d680: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0014d690: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0014d6a0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0014d6b0: 4449 5341 2d53 5449 472d 5542 5455 2d32  DISA-STIG-UBTU-2
│ │ │ -0014d6c0: 322d 3235 3430 3130 0a20 202d 204e 4953  2-254010.  - NIS
│ │ │ -0014d6d0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0014d6e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0014d6f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0014d700: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0014d710: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0014d720: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0014d730: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0014d740: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0014d750: 7373 7364 5f69 6e73 7461 6c6c 6564 0a0a  sssd_installed..
│ │ │ -0014d760: 2d20 6e61 6d65 3a20 456e 7375 7265 2073  - name: Ensure s
│ │ │ -0014d770: 7373 6420 6973 2069 6e73 7461 6c6c 6564  ssd is installed
│ │ │ -0014d780: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0014d790: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0014d7a0: 6e61 6d65 3a20 7373 7364 0a20 2020 2073  name: sssd.    s
│ │ │ -0014d7b0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -0014d7c0: 7768 656e 3a20 2722 7373 7364 2d63 6f6d  when: '"sssd-com
│ │ │ -0014d7d0: 6d6f 6e22 2069 6e20 616e 7369 626c 655f  mon" in ansible_
│ │ │ -0014d7e0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -0014d7f0: 2020 7461 6773 3a0a 2020 2d20 4449 5341    tags:.  - DISA
│ │ │ -0014d800: 2d53 5449 472d 5542 5455 2d32 322d 3235  -STIG-UBTU-22-25
│ │ │ -0014d810: 3430 3130 0a20 202d 204e 4953 542d 3830  4010.  - NIST-80
│ │ │ -0014d820: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0014d830: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0014d840: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0014d850: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0014d860: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0014d870: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0014d880: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0014d890: 2020 2d20 7061 636b 6167 655f 7373 7364    - package_sssd
│ │ │ -0014d8a0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
low
Disru │ │ │ -0014d5e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0014d5f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0014d630: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0014d640: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0014d230: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0014d250: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0014d280: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0014d210: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0014d220: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0014d240: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0014d260: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0014d270: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +0014d2c0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0014d2d0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0014d2e0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0014d2f0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0014d300: 6167 733a 0a20 202d 2044 4953 412d 5354 ags:. - DISA-ST │ │ │ +0014d310: 4947 2d55 4254 552d 3232 2d32 3534 3031 IG-UBTU-22-25401 │ │ │ +0014d320: 300a 2020 2d20 4e49 5354 2d38 3030 2d35 0. - NIST-800-5 │ │ │ +0014d330: 332d 434d 2d36 2861 290a 2020 2d20 656e 3-CM-6(a). - en │ │ │ +0014d340: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +0014d350: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +0014d360: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +0014d370: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +0014d380: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +0014d390: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +0014d3a0: 2070 6163 6b61 6765 5f73 7373 645f 696e package_sssd_in │ │ │ +0014d3b0: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ +0014d3c0: 2045 6e73 7572 6520 7373 7364 2069 7320 Ensure sssd is │ │ │ +0014d3d0: 696e 7374 616c 6c65 640a 2020 616e 7369 installed. ansi │ │ │ +0014d3e0: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +0014d3f0: 6167 653a 0a20 2020 206e 616d 653a 2073 age:. name: s │ │ │ +0014d400: 7373 640a 2020 2020 7374 6174 653a 2070 ssd. state: p │ │ │ +0014d410: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ +0014d420: 2273 7373 642d 636f 6d6d 6f6e 2220 696e "sssd-common" in │ │ │ +0014d430: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +0014d440: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ +0014d450: 0a20 202d 2044 4953 412d 5354 4947 2d55 . - DISA-STIG-U │ │ │ +0014d460: 4254 552d 3232 2d32 3534 3031 300a 2020 BTU-22-254010. │ │ │ +0014d470: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0014d480: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +0014d490: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0014d4a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0014d4b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0014d4c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +0014d4d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0014d4e0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +0014d4f0: 6b61 6765 5f73 7373 645f 696e 7374 616c kage_sssd_instal │ │ │ +0014d500: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.

Remediation │ │ │ +0014d5c0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0014d5d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0014d650: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0014d670: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0014d6c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0014d6f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +0014d710: 6c5f 7373 7364 0a0a 636c 6173 7320 696e  l_sssd..class in
│ │ │ +0014d720: 7374 616c 6c5f 7373 7364 207b 0a20 2070  stall_sssd {.  p
│ │ │ +0014d730: 6163 6b61 6765 207b 2027 7373 7364 273a  ackage { 'sssd':
│ │ │ +0014d740: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0014d750: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +0014d760: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ +0014d820: 204f 5342 7569 6c64 2042 6c75 6570 7269   OSBuild Bluepri
│ │ │ +0014d830: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f  nt snippet ...
.[[packages]].n
│ │ │ +0014d890: 616d 6520 3d20 2273 7373 6422 0a76 6572  ame = "sssd".ver
│ │ │ +0014d8a0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Rem │ │ │ -0014ec60: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0014ec70: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0014ec80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -0014ecd0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -0014ece0: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -0014ecf0: 7373 7364 225d 0a3c 2f63 6f64 653e 3c2f sssd"].Remediati │ │ │ -0014edb0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0014edc0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0014ee40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>

│ │ │ -0014ee80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ +0014d660: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0014d680: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0014d6d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0014d6e0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -0014ee50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0014ee70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0014eea0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0014eec0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -0014eef0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -0014ef00: 626c 655f 7373 7364 0a0a 636c 6173 7320  ble_sssd..class 
│ │ │ -0014ef10: 656e 6162 6c65 5f73 7373 6420 7b0a 2020  enable_sssd {.  
│ │ │ -0014ef20: 7365 7276 6963 6520 7b27 7373 7364 273a  service {'sssd':
│ │ │ -0014ef30: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -0014ef40: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -0014ef50: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -0014ef60: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ -0014f020: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0014f030: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0014f0e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0014f100: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0014f130: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0014f0c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0014f0d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0014f0f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0014f110: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0014f120: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0014f170: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0014f180: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0014f190: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0014f1a0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0014f1b0: 6167 733a 0a20 202d 2044 4953 412d 5354 ags:. - DISA-ST │ │ │ -0014f1c0: 4947 2d55 4254 552d 3232 2d32 3534 3031 IG-UBTU-22-25401 │ │ │ -0014f1d0: 350a 2020 2d20 4e49 5354 2d38 3030 2d35 5. - NIST-800-5 │ │ │ -0014f1e0: 332d 434d 2d36 2861 290a 2020 2d20 4e49 3-CM-6(a). - NI │ │ │ -0014f1f0: 5354 2d38 3030 2d35 332d 4941 2d35 2831 ST-800-53-IA-5(1 │ │ │ -0014f200: 3029 0a20 202d 2065 6e61 626c 655f 7374 0). - enable_st │ │ │ -0014f210: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0014f220: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0014f230: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0014f240: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0014f250: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0014f260: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -0014f270: 655f 7373 7364 5f65 6e61 626c 6564 0a0a e_sssd_enabled.. │ │ │ -0014f280: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074 - name: Enable t │ │ │ -0014f290: 6865 2053 5353 4420 5365 7276 6963 6520 he SSSD Service │ │ │ -0014f2a0: 2d20 456e 6162 6c65 2073 6572 7669 6365 - Enable service │ │ │ -0014f2b0: 2073 7373 640a 2020 626c 6f63 6b3a 0a0a sssd. block:.. │ │ │ -0014f2c0: 2020 2d20 6e61 6d65 3a20 4761 7468 6572 - name: Gather │ │ │ -0014f2d0: 2074 6865 2070 6163 6b61 6765 2066 6163 the package fac │ │ │ -0014f2e0: 7473 0a20 2020 2061 6e73 6962 6c65 2e62 ts. ansible.b │ │ │ -0014f2f0: 7569 6c74 696e 2e70 6163 6b61 6765 5f66 uiltin.package_f │ │ │ -0014f300: 6163 7473 3a0a 2020 2020 2020 6d61 6e61 acts:. mana │ │ │ -0014f310: 6765 723a 2061 7574 6f0a 0a20 202d 206e ger: auto.. - n │ │ │ -0014f320: 616d 653a 2045 6e61 626c 6520 7468 6520 ame: Enable the │ │ │ -0014f330: 5353 5344 2053 6572 7669 6365 202d 2045 SSSD Service - E │ │ │ -0014f340: 6e61 626c 6520 5365 7276 6963 6520 7373 nable Service ss │ │ │ -0014f350: 7364 0a20 2020 2061 6e73 6962 6c65 2e62 sd. ansible.b │ │ │ -0014f360: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -0014f370: 2020 2020 2020 6e61 6d65 3a20 7373 7364 name: sssd │ │ │ -0014f380: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -0014f390: 7472 7565 0a20 2020 2020 2073 7461 7465 true. state │ │ │ -0014f3a0: 3a20 7374 6172 7465 640a 2020 2020 2020 : started. │ │ │ -0014f3b0: 6d61 736b 6564 3a20 6661 6c73 650a 2020 masked: false. │ │ │ -0014f3c0: 2020 7768 656e 3a0a 2020 2020 2d20 2722 when:. - '" │ │ │ -0014f3d0: 7373 7364 2d63 6f6d 6d6f 6e22 2069 6e20 sssd-common" in │ │ │ -0014f3e0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0014f3f0: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -0014f400: 2020 2d20 4449 5341 2d53 5449 472d 5542 - DISA-STIG-UB │ │ │ -0014f410: 5455 2d32 322d 3235 3430 3135 0a20 202d TU-22-254015. - │ │ │ -0014f420: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0014f430: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -0014f440: 302d 3533 2d49 412d 3528 3130 290a 2020 0-53-IA-5(10). │ │ │ -0014f450: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -0014f460: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0014f470: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0014f480: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0014f490: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0014f4a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0014f4b0: 0a20 202d 2073 6572 7669 6365 5f73 7373 . - service_sss │ │ │ -0014f4c0: 645f 656e 6162 6c65 640a 2020 2d20 7370 d_enabled. - sp │ │ │ -0014f4d0: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ -0014f4e0: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20 ock. when:. - │ │ │ -0014f4f0: 2722 7373 7364 2d63 6f6d 6d6f 6e22 2069 '"sssd-common" i │ │ │ -0014f500: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -0014f510: 7061 636b 6167 6573 270a 2020 2d20 2820 packages'. - ( │ │ │ -0014f520: 2273 7373 642d 636f 6d6d 6f6e 2220 696e "sssd-common" in │ │ │ -0014f530: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -0014f540: 6163 6b61 6765 7320 616e 6420 226c 696e ackages and "lin │ │ │ -0014f550: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ -0014f560: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ -0014f570: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e es. ). │ │ │ +0014ec60: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +0014ec70: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0014ec80: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

low< │ │ │ +0014ed20: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0014ed70: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0014ed00: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0014ed30: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0014ed50: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0014ed60: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0014ed80: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0014ed90: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0014edb0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0014edc0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0014edd0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0014ede0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0014edf0: 2020 7461 6773 3a0a 2020 2d20 4449 5341    tags:.  - DISA
│ │ │ +0014ee00: 2d53 5449 472d 5542 5455 2d32 322d 3235  -STIG-UBTU-22-25
│ │ │ +0014ee10: 3430 3135 0a20 202d 204e 4953 542d 3830  4015.  - NIST-80
│ │ │ +0014ee20: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0014ee30: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ +0014ee40: 3528 3130 290a 2020 2d20 656e 6162 6c65  5(10).  - enable
│ │ │ +0014ee50: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0014ee60: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0014ee70: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0014ee80: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0014ee90: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0014eea0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0014eeb0: 7669 6365 5f73 7373 645f 656e 6162 6c65  vice_sssd_enable
│ │ │ +0014eec0: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +0014eed0: 6520 7468 6520 5353 5344 2053 6572 7669  e the SSSD Servi
│ │ │ +0014eee0: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ +0014eef0: 6963 6520 7373 7364 0a20 2062 6c6f 636b  ice sssd.  block
│ │ │ +0014ef00: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ +0014ef10: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0014ef20: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ +0014ef30: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0014ef40: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ +0014ef50: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ +0014ef60: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074  - name: Enable t
│ │ │ +0014ef70: 6865 2053 5353 4420 5365 7276 6963 6520  he SSSD Service 
│ │ │ +0014ef80: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ +0014ef90: 2073 7373 640a 2020 2020 616e 7369 626c   sssd.    ansibl
│ │ │ +0014efa0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0014efb0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +0014efc0: 7373 640a 2020 2020 2020 656e 6162 6c65  ssd.      enable
│ │ │ +0014efd0: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +0014efe0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +0014eff0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +0014f000: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +0014f010: 2027 2273 7373 642d 636f 6d6d 6f6e 2220   '"sssd-common" 
│ │ │ +0014f020: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0014f030: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0014f040: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +0014f050: 2d55 4254 552d 3232 2d32 3534 3031 350a  -UBTU-22-254015.
│ │ │ +0014f060: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0014f070: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0014f080: 2d38 3030 2d35 332d 4941 2d35 2831 3029  -800-53-IA-5(10)
│ │ │ +0014f090: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0014f0a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0014f0b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0014f0c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0014f0d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0014f0e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0014f0f0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0014f100: 7373 7364 5f65 6e61 626c 6564 0a20 202d  sssd_enabled.  -
│ │ │ +0014f110: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +0014f120: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ +0014f130: 202d 2027 2273 7373 642d 636f 6d6d 6f6e   - '"sssd-common
│ │ │ +0014f140: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0014f150: 7473 2e70 6163 6b61 6765 7327 0a20 202d  ts.packages'.  -
│ │ │ +0014f160: 2028 2022 7373 7364 2d63 6f6d 6d6f 6e22   ( "sssd-common"
│ │ │ +0014f170: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0014f180: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ +0014f190: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0014f1a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0014f1b0: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
< │ │ │ +0014f1d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0014f1e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0014f1f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0014f200: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0014f210: 6433 3835 2220 7461 6269 6e64 6578 3d22 d385" tabindex=" │ │ │ +0014f220: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0014f230: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0014f240: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0014f250: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0014f260: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0014f270: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0014f280: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0014f310: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0014f320: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0014f340: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0014f360: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0014f370: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0014f3b0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0014f3c0: 6520 656e 6162 6c65 5f73 7373 640a 0a63 e enable_sssd..c │ │ │ +0014f3d0: 6c61 7373 2065 6e61 626c 655f 7373 7364 lass enable_sssd │ │ │ +0014f3e0: 207b 0a20 2073 6572 7669 6365 207b 2773 {. service {'s │ │ │ +0014f3f0: 7373 6427 3a0a 2020 2020 656e 6162 6c65 ssd':. enable │ │ │ +0014f400: 203d 2667 743b 2074 7275 652c 0a20 2020 => true,. │ │ │ +0014f410: 2065 6e73 7572 6520 3d26 6774 3b20 2772 ensure => 'r │ │ │ +0014f420: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c unning',. }.}.< │ │ │ +0014f430: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ +0014f4e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0014f4f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0014f500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0014f510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0014f540: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0014f550: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0014f560: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +0014f570: 5b22 7373 7364 225d 0a3c 2f63 6f64 653e  ["sssd"].
│ │ │  0014f580: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Rem │ │ │ -0037f040: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0037f050: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0037f060: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -0037f0b0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ -0037f0c0: 7564 6973 7064 2d70 6c75 6769 6e73 220a udispd-plugins". │ │ │ -0037f0d0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".

Re │ │ │ -0037f190: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0037f1a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0037f1b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0037f250: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0037f2a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0037f230: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0037f260: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0037f280: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0037f290: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0037f2b0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0037f2c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0037f2e0: 7564 6520 696e 7374 616c 6c5f 6175 6469  ude install_audi
│ │ │ -0037f2f0: 7370 642d 706c 7567 696e 730a 0a63 6c61  spd-plugins..cla
│ │ │ -0037f300: 7373 2069 6e73 7461 6c6c 5f61 7564 6973  ss install_audis
│ │ │ -0037f310: 7064 2d70 6c75 6769 6e73 207b 0a20 2070  pd-plugins {.  p
│ │ │ -0037f320: 6163 6b61 6765 207b 2027 6175 6469 7370  ackage { 'audisp
│ │ │ -0037f330: 642d 706c 7567 696e 7327 3a0a 2020 2020  d-plugins':.    
│ │ │ -0037f340: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -0037f350: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -0037f360: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0037f410: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0037f420: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0037f430: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0037f500: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0037f510: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0037f560: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0037f570: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0037f580: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0037f590: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0037f5a0: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ -0037f5b0: 4953 412d 5354 4947 2d55 4254 552d 3232  ISA-STIG-UBTU-22
│ │ │ -0037f5c0: 2d36 3533 3032 300a 2020 2d20 5043 492d  -653020.  - PCI-
│ │ │ -0037f5d0: 4453 532d 5265 712d 3130 2e35 2e33 0a20  DSS-Req-10.5.3. 
│ │ │ -0037f5e0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -0037f5f0: 330a 2020 2d20 5043 492d 4453 5376 342d  3.  - PCI-DSSv4-
│ │ │ -0037f600: 3130 2e33 2e33 0a20 202d 2065 6e61 626c  10.3.3.  - enabl
│ │ │ -0037f610: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0037f620: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0037f630: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0037f640: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0037f650: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0037f660: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0037f670: 636b 6167 655f 6175 6469 742d 6175 6469  ckage_audit-audi
│ │ │ -0037f680: 7370 642d 706c 7567 696e 735f 696e 7374  spd-plugins_inst
│ │ │ -0037f690: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -0037f6a0: 6e73 7572 6520 6175 6469 7370 642d 706c  nsure audispd-pl
│ │ │ -0037f6b0: 7567 696e 7320 6973 2069 6e73 7461 6c6c  ugins is install
│ │ │ -0037f6c0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -0037f6d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0037f6e0: 2020 6e61 6d65 3a20 6175 6469 7370 642d    name: audispd-
│ │ │ -0037f6f0: 706c 7567 696e 730a 2020 2020 7374 6174  plugins.    stat
│ │ │ -0037f700: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -0037f710: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -0037f720: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0037f730: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -0037f740: 6773 3a0a 2020 2d20 4449 5341 2d53 5449  gs:.  - DISA-STI
│ │ │ -0037f750: 472d 5542 5455 2d32 322d 3635 3330 3230  G-UBTU-22-653020
│ │ │ -0037f760: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -0037f770: 2d31 302e 352e 330a 2020 2d20 5043 492d  -10.5.3.  - PCI-
│ │ │ -0037f780: 4453 5376 342d 3130 2e33 0a20 202d 2050  DSSv4-10.3.  - P
│ │ │ -0037f790: 4349 2d44 5353 7634 2d31 302e 332e 330a  CI-DSSv4-10.3.3.
│ │ │ -0037f7a0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0037f7b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0037f7c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0037f7d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0037f7e0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0037f7f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0037f800: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -0037f810: 7564 6974 2d61 7564 6973 7064 2d70 6c75  udit-audispd-plu
│ │ │ -0037f820: 6769 6e73 5f69 6e73 7461 6c6c 6564 0a3c  gins_installed.<
│ │ │ +0037f040: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +0037f050: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +0037f060: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
Complexity:low
Disrup │ │ │ -0037f4e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0037f4f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0037f530: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0037f540: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +0037f100: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0037f150: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0037f0e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0037f110: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0037f130: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0037f140: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0037f160: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0037f170: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0037f190: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0037f1a0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0037f1b0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0037f1c0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0037f1d0: 2020 7461 6773 3a0a 2020 2d20 4449 5341    tags:.  - DISA
│ │ │ +0037f1e0: 2d53 5449 472d 5542 5455 2d32 322d 3635  -STIG-UBTU-22-65
│ │ │ +0037f1f0: 3330 3230 0a20 202d 2050 4349 2d44 5353  3020.  - PCI-DSS
│ │ │ +0037f200: 2d52 6571 2d31 302e 352e 330a 2020 2d20  -Req-10.5.3.  - 
│ │ │ +0037f210: 5043 492d 4453 5376 342d 3130 2e33 0a20  PCI-DSSv4-10.3. 
│ │ │ +0037f220: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +0037f230: 332e 330a 2020 2d20 656e 6162 6c65 5f73  3.3.  - enable_s
│ │ │ +0037f240: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0037f250: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0037f260: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0037f270: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0037f280: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0037f290: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0037f2a0: 6765 5f61 7564 6974 2d61 7564 6973 7064  ge_audit-audispd
│ │ │ +0037f2b0: 2d70 6c75 6769 6e73 5f69 6e73 7461 6c6c  -plugins_install
│ │ │ +0037f2c0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +0037f2d0: 7265 2061 7564 6973 7064 2d70 6c75 6769  re audispd-plugi
│ │ │ +0037f2e0: 6e73 2069 7320 696e 7374 616c 6c65 640a  ns is installed.
│ │ │ +0037f2f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0037f300: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0037f310: 616d 653a 2061 7564 6973 7064 2d70 6c75  ame: audispd-plu
│ │ │ +0037f320: 6769 6e73 0a20 2020 2073 7461 7465 3a20  gins.    state: 
│ │ │ +0037f330: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +0037f340: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +0037f350: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0037f360: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +0037f370: 0a20 202d 2044 4953 412d 5354 4947 2d55  .  - DISA-STIG-U
│ │ │ +0037f380: 4254 552d 3232 2d36 3533 3032 300a 2020  BTU-22-653020.  
│ │ │ +0037f390: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +0037f3a0: 2e35 2e33 0a20 202d 2050 4349 2d44 5353  .5.3.  - PCI-DSS
│ │ │ +0037f3b0: 7634 2d31 302e 330a 2020 2d20 5043 492d  v4-10.3.  - PCI-
│ │ │ +0037f3c0: 4453 5376 342d 3130 2e33 2e33 0a20 202d  DSSv4-10.3.3.  -
│ │ │ +0037f3d0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0037f3e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0037f3f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0037f400: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0037f410: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0037f420: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0037f430: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ +0037f440: 742d 6175 6469 7370 642d 706c 7567 696e  t-audispd-plugin
│ │ │ +0037f450: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +0037f470: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0037f480: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0037f490: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0037f4a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0037f4b0: 6436 3439 2220 7461 6269 6e64 6578 3d22 d649" tabindex=" │ │ │ +0037f4c0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0037f4d0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0037f4e0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0037f4f0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0037f500: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0037f510: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0037f520: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0037f5b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0037f5c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0037f5e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0037f600: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0037f610: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0037f650: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0037f660: 6520 696e 7374 616c 6c5f 6175 6469 7370 e install_audisp │ │ │ +0037f670: 642d 706c 7567 696e 730a 0a63 6c61 7373 d-plugins..class │ │ │ +0037f680: 2069 6e73 7461 6c6c 5f61 7564 6973 7064 install_audispd │ │ │ +0037f690: 2d70 6c75 6769 6e73 207b 0a20 2070 6163 -plugins {. pac │ │ │ +0037f6a0: 6b61 6765 207b 2027 6175 6469 7370 642d kage { 'audispd- │ │ │ +0037f6b0: 706c 7567 696e 7327 3a0a 2020 2020 656e plugins':. en │ │ │ +0037f6c0: 7375 7265 203d 2667 743b 2027 696e 7374 sure => 'inst │ │ │ +0037f6d0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f alled',. }.}.
Re │ │ │ +0037f790: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0037f7a0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0037f7b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0037f7c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0037f7d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0037f7e0: 7365 2220 6964 3d22 6964 3635 3022 3e3c se" id="id650">< │ │ │ +0037f7f0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +0037f800: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +0037f810: 6175 6469 7370 642d 706c 7567 696e 7322 audispd-plugins" │ │ │ +0037f820: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c .version = "*".< │ │ │ 0037f830: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ -00380c60: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00380c70: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00380c80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00380c90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00380cc0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00380cd0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00380ce0: 2261 7564 6974 6422 0a76 6572 7369 6f6e  "auditd".version
│ │ │ -00380cf0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -00380db0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00380dc0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00380e40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00380e50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00380e70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00380e80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00380ea0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00380ec0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00380ef0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -00380f00: 7461 6c6c 5f61 7564 6974 640a 0a63 6c61  tall_auditd..cla
│ │ │ -00380f10: 7373 2069 6e73 7461 6c6c 5f61 7564 6974  ss install_audit
│ │ │ -00380f20: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ -00380f30: 2761 7564 6974 6427 3a0a 2020 2020 656e  'auditd':.    en
│ │ │ -00380f40: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -00380f50: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -00381010: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00381020: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -003810c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -003810d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00381120: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00381160: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00381170: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00381180: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00381190: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -003811a0: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ -003811b0: 412d 5354 4947 2d55 4254 552d 3232 2d36  A-STIG-UBTU-22-6
│ │ │ -003811c0: 3533 3031 300a 2020 2d20 4e49 5354 2d38  53010.  - NIST-8
│ │ │ -003811d0: 3030 2d35 332d 4143 2d37 2861 290a 2020  00-53-AC-7(a).  
│ │ │ -003811e0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -003811f0: 2d31 3228 3229 0a20 202d 204e 4953 542d  -12(2).  - NIST-
│ │ │ -00381200: 3830 302d 3533 2d41 552d 3134 0a20 202d  800-53-AU-14.  -
│ │ │ -00381210: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00381220: 3228 6129 0a20 202d 204e 4953 542d 3830  2(a).  - NIST-80
│ │ │ -00381230: 302d 3533 2d41 552d 3728 3129 0a20 202d  0-53-AU-7(1).  -
│ │ │ -00381240: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00381250: 3728 3229 0a20 202d 204e 4953 542d 3830  7(2).  - NIST-80
│ │ │ -00381260: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00381270: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00381280: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ -00381290: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ -003812a0: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ -003812b0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -003812c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -003812d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -003812e0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -003812f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00381300: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00381310: 2070 6163 6b61 6765 5f61 7564 6974 5f69   package_audit_i
│ │ │ -00381320: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -00381330: 3a20 456e 7375 7265 2061 7564 6974 6420  : Ensure auditd 
│ │ │ -00381340: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -00381350: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00381360: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00381370: 3a20 6175 6469 7464 0a20 2020 2073 7461  : auditd.    sta
│ │ │ -00381380: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00381390: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -003813a0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -003813b0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -003813c0: 6167 733a 0a20 202d 2044 4953 412d 5354  ags:.  - DISA-ST
│ │ │ -003813d0: 4947 2d55 4254 552d 3232 2d36 3533 3031  IG-UBTU-22-65301
│ │ │ -003813e0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -003813f0: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ -00381400: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -00381410: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ -00381420: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ -00381430: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ -00381440: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00381450: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ -00381460: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ -00381470: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00381480: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00381490: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -003814a0: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -003814b0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -003814c0: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -003814d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -003814e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -003814f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00381500: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00381510: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00381520: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00381530: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ -00381540: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
C │ │ │ -003810b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -003810e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -003810f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00381130: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00381140: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00380d10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00380db0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00380dc0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00380dd0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00380de0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00380df0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4449  o.  tags:.  - DI
│ │ │ +00380e00: 5341 2d53 5449 472d 5542 5455 2d32 322d  SA-STIG-UBTU-22-
│ │ │ +00380e10: 3635 3330 3130 0a20 202d 204e 4953 542d  653010.  - NIST-
│ │ │ +00380e20: 3830 302d 3533 2d41 432d 3728 6129 0a20  800-53-AC-7(a). 
│ │ │ +00380e30: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00380e40: 552d 3132 2832 290a 2020 2d20 4e49 5354  U-12(2).  - NIST
│ │ │ +00380e50: 2d38 3030 2d35 332d 4155 2d31 340a 2020  -800-53-AU-14.  
│ │ │ +00380e60: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00380e70: 2d32 2861 290a 2020 2d20 4e49 5354 2d38  -2(a).  - NIST-8
│ │ │ +00380e80: 3030 2d35 332d 4155 2d37 2831 290a 2020  00-53-AU-7(1).  
│ │ │ +00380e90: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00380ea0: 2d37 2832 290a 2020 2d20 4e49 5354 2d38  -7(2).  - NIST-8
│ │ │ +00380eb0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00380ec0: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +00380ed0: 2e31 0a20 202d 2050 4349 2d44 5353 7634  .1.  - PCI-DSSv4
│ │ │ +00380ee0: 2d31 302e 320a 2020 2d20 5043 492d 4453  -10.2.  - PCI-DS
│ │ │ +00380ef0: 5376 342d 3130 2e32 2e31 0a20 202d 2065  Sv4-10.2.1.  - e
│ │ │ +00380f00: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00380f10: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00380f20: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00380f30: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00380f40: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00380f50: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00380f60: 2d20 7061 636b 6167 655f 6175 6469 745f  - package_audit_
│ │ │ +00380f70: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +00380f80: 653a 2045 6e73 7572 6520 6175 6469 7464  e: Ensure auditd
│ │ │ +00380f90: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +00380fa0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00380fb0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00380fc0: 653a 2061 7564 6974 640a 2020 2020 7374  e: auditd.    st
│ │ │ +00380fd0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00380fe0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00380ff0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00381000: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00381010: 7461 6773 3a0a 2020 2d20 4449 5341 2d53  tags:.  - DISA-S
│ │ │ +00381020: 5449 472d 5542 5455 2d32 322d 3635 3330  TIG-UBTU-22-6530
│ │ │ +00381030: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +00381040: 3533 2d41 432d 3728 6129 0a20 202d 204e  53-AC-7(a).  - N
│ │ │ +00381050: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ +00381060: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ +00381070: 2d35 332d 4155 2d31 340a 2020 2d20 4e49  -53-AU-14.  - NI
│ │ │ +00381080: 5354 2d38 3030 2d35 332d 4155 2d32 2861  ST-800-53-AU-2(a
│ │ │ +00381090: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +003810a0: 332d 4155 2d37 2831 290a 2020 2d20 4e49  3-AU-7(1).  - NI
│ │ │ +003810b0: 5354 2d38 3030 2d35 332d 4155 2d37 2832  ST-800-53-AU-7(2
│ │ │ +003810c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +003810d0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +003810e0: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +003810f0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00381100: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00381110: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +00381120: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00381130: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00381140: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00381150: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00381160: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00381170: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00381180: 636b 6167 655f 6175 6469 745f 696e 7374  ckage_audit_inst
│ │ │ +00381190: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediatio │ │ │ +00381250: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00381260: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00381320: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00381330: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +00380d00: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00380d30: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00380d40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00380d80: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00380d90: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +003812f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00381310: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00381340: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00381360: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +003813a0: 616c 6c5f 6175 6469 7464 0a0a 636c 6173  all_auditd..clas
│ │ │ +003813b0: 7320 696e 7374 616c 6c5f 6175 6469 7464  s install_auditd
│ │ │ +003813c0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +003813d0: 6175 6469 7464 273a 0a20 2020 2065 6e73  auditd':.    ens
│ │ │ +003813e0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +003813f0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00381410: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +003814b0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +003814c0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +003814d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +00381520: 6167 6573 5d5d 0a6e 616d 6520 3d20 2261 ages]].name = "a │ │ │ +00381530: 7564 6974 6422 0a76 6572 7369 6f6e 203d uditd".version = │ │ │ +00381540: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".

Remediatio │ │ │ -00383370: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00383380: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00383390: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -003833e0: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -003833f0: 626c 6564 203d 205b 2261 7564 6974 6422  bled = ["auditd"
│ │ │ -00383400: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00383410: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pu │ │ │ -003834c0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -003834d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -003835a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -003835b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00383600: 696e 636c 7564 6520 656e 6162 6c65 5f61  include enable_a
│ │ │ -00383610: 7564 6974 640a 0a63 6c61 7373 2065 6e61  uditd..class ena
│ │ │ -00383620: 626c 655f 6175 6469 7464 207b 0a20 2073  ble_auditd {.  s
│ │ │ -00383630: 6572 7669 6365 207b 2761 7564 6974 6427  ervice {'auditd'
│ │ │ -00383640: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00383650: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -00383660: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -00383670: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ -00383730: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00383740: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ -00383580: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00383590: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -003835d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -003835e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -003837d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -003837e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00383800: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00383820: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00383830: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00383870: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00383880: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00383890: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -003838a0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -003838b0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -003838c0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ -003838d0: 2e34 2e31 2e31 0a20 202d 2044 4953 412d .4.1.1. - DISA- │ │ │ -003838e0: 5354 4947 2d55 4254 552d 3232 2d36 3533 STIG-UBTU-22-653 │ │ │ -003838f0: 3031 350a 2020 2d20 4e49 5354 2d38 3030 015. - NIST-800 │ │ │ -00383900: 2d31 3731 2d33 2e33 2e31 0a20 202d 204e -171-3.3.1. - N │ │ │ -00383910: 4953 542d 3830 302d 3137 312d 332e 332e IST-800-171-3.3. │ │ │ -00383920: 320a 2020 2d20 4e49 5354 2d38 3030 2d31 2. - NIST-800-1 │ │ │ -00383930: 3731 2d33 2e33 2e36 0a20 202d 204e 4953 71-3.3.6. - NIS │ │ │ -00383940: 542d 3830 302d 3533 2d41 432d 3228 6729 T-800-53-AC-2(g) │ │ │ -00383950: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00383960: 2d41 432d 3628 3929 0a20 202d 204e 4953 -AC-6(9). - NIS │ │ │ -00383970: 542d 3830 302d 3533 2d41 552d 3130 0a20 T-800-53-AU-10. │ │ │ -00383980: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -00383990: 552d 3132 2863 290a 2020 2d20 4e49 5354 U-12(c). - NIST │ │ │ -003839a0: 2d38 3030 2d35 332d 4155 2d31 3428 3129 -800-53-AU-14(1) │ │ │ -003839b0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -003839c0: 2d41 552d 3228 6429 0a20 202d 204e 4953 -AU-2(d). - NIS │ │ │ -003839d0: 542d 3830 302d 3533 2d41 552d 330a 2020 T-800-53-AU-3. │ │ │ -003839e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -003839f0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38 -6(a). - NIST-8 │ │ │ -00383a00: 3030 2d35 332d 5349 2d34 2832 3329 0a20 00-53-SI-4(23). │ │ │ -00383a10: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ -00383a20: 302e 310a 2020 2d20 5043 492d 4453 5376 0.1. - PCI-DSSv │ │ │ -00383a30: 342d 3130 2e32 0a20 202d 2050 4349 2d44 4-10.2. - PCI-D │ │ │ -00383a40: 5353 7634 2d31 302e 322e 310a 2020 2d20 SSv4-10.2.1. - │ │ │ -00383a50: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ -00383a60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -00383a70: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -00383a80: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -00383a90: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00383aa0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00383ab0: 202d 2073 6572 7669 6365 5f61 7564 6974 - service_audit │ │ │ -00383ac0: 645f 656e 6162 6c65 640a 0a2d 206e 616d d_enabled..- nam │ │ │ -00383ad0: 653a 2045 6e61 626c 6520 6175 6469 7464 e: Enable auditd │ │ │ -00383ae0: 2053 6572 7669 6365 202d 2045 6e61 626c Service - Enabl │ │ │ -00383af0: 6520 7365 7276 6963 6520 6175 6469 7464 e service auditd │ │ │ -00383b00: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e . block:.. - n │ │ │ -00383b10: 616d 653a 2047 6174 6865 7220 7468 6520 ame: Gather the │ │ │ -00383b20: 7061 636b 6167 6520 6661 6374 730a 2020 package facts. │ │ │ -00383b30: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00383b40: 6e2e 7061 636b 6167 655f 6661 6374 733a n.package_facts: │ │ │ -00383b50: 0a20 2020 2020 206d 616e 6167 6572 3a20 . manager: │ │ │ -00383b60: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20 auto.. - name: │ │ │ -00383b70: 456e 6162 6c65 2061 7564 6974 6420 5365 Enable auditd Se │ │ │ -00383b80: 7276 6963 6520 2d20 456e 6162 6c65 2053 rvice - Enable S │ │ │ -00383b90: 6572 7669 6365 2061 7564 6974 640a 2020 ervice auditd. │ │ │ -00383ba0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00383bb0: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -00383bc0: 206e 616d 653a 2061 7564 6974 640a 2020 name: auditd. │ │ │ -00383bd0: 2020 2020 656e 6162 6c65 643a 2074 7275 enabled: tru │ │ │ -00383be0: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ -00383bf0: 7461 7274 6564 0a20 2020 2020 206d 6173 tarted. mas │ │ │ -00383c00: 6b65 643a 2066 616c 7365 0a20 2020 2077 ked: false. w │ │ │ -00383c10: 6865 6e3a 0a20 2020 202d 2027 2261 7564 hen:. - '"aud │ │ │ -00383c20: 6974 6422 2069 6e20 616e 7369 626c 655f itd" in ansible_ │ │ │ -00383c30: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -00383c40: 2020 7461 6773 3a0a 2020 2d20 434a 4953 tags:. - CJIS │ │ │ -00383c50: 2d35 2e34 2e31 2e31 0a20 202d 2044 4953 -5.4.1.1. - DIS │ │ │ -00383c60: 412d 5354 4947 2d55 4254 552d 3232 2d36 A-STIG-UBTU-22-6 │ │ │ -00383c70: 3533 3031 350a 2020 2d20 4e49 5354 2d38 53015. - NIST-8 │ │ │ -00383c80: 3030 2d31 3731 2d33 2e33 2e31 0a20 202d 00-171-3.3.1. - │ │ │ -00383c90: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -00383ca0: 332e 320a 2020 2d20 4e49 5354 2d38 3030 3.2. - NIST-800 │ │ │ -00383cb0: 2d31 3731 2d33 2e33 2e36 0a20 202d 204e -171-3.3.6. - N │ │ │ -00383cc0: 4953 542d 3830 302d 3533 2d41 432d 3228 IST-800-53-AC-2( │ │ │ -00383cd0: 6729 0a20 202d 204e 4953 542d 3830 302d g). - NIST-800- │ │ │ -00383ce0: 3533 2d41 432d 3628 3929 0a20 202d 204e 53-AC-6(9). - N │ │ │ -00383cf0: 4953 542d 3830 302d 3533 2d41 552d 3130 IST-800-53-AU-10 │ │ │ -00383d00: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00383d10: 2d41 552d 3132 2863 290a 2020 2d20 4e49 -AU-12(c). - NI │ │ │ -00383d20: 5354 2d38 3030 2d35 332d 4155 2d31 3428 ST-800-53-AU-14( │ │ │ -00383d30: 3129 0a20 202d 204e 4953 542d 3830 302d 1). - NIST-800- │ │ │ -00383d40: 3533 2d41 552d 3228 6429 0a20 202d 204e 53-AU-2(d). - N │ │ │ -00383d50: 4953 542d 3830 302d 3533 2d41 552d 330a IST-800-53-AU-3. │ │ │ -00383d60: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00383d70: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -00383d80: 2d38 3030 2d35 332d 5349 2d34 2832 3329 -800-53-SI-4(23) │ │ │ -00383d90: 0a20 202d 2050 4349 2d44 5353 2d52 6571 . - PCI-DSS-Req │ │ │ -00383da0: 2d31 302e 310a 2020 2d20 5043 492d 4453 -10.1. - PCI-DS │ │ │ -00383db0: 5376 342d 3130 2e32 0a20 202d 2050 4349 Sv4-10.2. - PCI │ │ │ -00383dc0: 2d44 5353 7634 2d31 302e 322e 310a 2020 -DSSv4-10.2.1. │ │ │ -00383dd0: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -00383de0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -00383df0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00383e00: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00383e10: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -00383e20: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00383e30: 0a20 202d 2073 6572 7669 6365 5f61 7564 . - service_aud │ │ │ -00383e40: 6974 645f 656e 6162 6c65 640a 2020 2d20 itd_enabled. - │ │ │ -00383e50: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -00383e60: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020 block. when:. │ │ │ -00383e70: 2d20 2722 6c69 6e75 782d 6261 7365 2220 - '"linux-base" │ │ │ -00383e80: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00383e90: 2e70 6163 6b61 6765 7327 0a20 202d 2027 .packages'. - ' │ │ │ -00383ea0: 2261 7564 6974 6422 2069 6e20 616e 7369 "auditd" in ansi │ │ │ -00383eb0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ -00383ec0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265 es'.
< │ │ │ +00383400: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00383410: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00383430: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00383440: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00383460: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00383480: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +003834b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +003834c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +003834d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +003834e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +003834f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00383500: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ +00383510: 310a 2020 2d20 4449 5341 2d53 5449 472d  1.  - DISA-STIG-
│ │ │ +00383520: 5542 5455 2d32 322d 3635 3330 3135 0a20  UBTU-22-653015. 
│ │ │ +00383530: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00383540: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ +00383550: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ +00383560: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +00383570: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ +00383580: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ +00383590: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +003835a0: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ +003835b0: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ +003835c0: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +003835d0: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ +003835e0: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ +003835f0: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ +00383600: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ +00383610: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ +00383620: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00383630: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00383640: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ +00383650: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +00383660: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00383670: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00383680: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +00383690: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +003836a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +003836b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +003836c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +003836d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +003836e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +003836f0: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ +00383700: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ +00383710: 6162 6c65 2061 7564 6974 6420 5365 7276  able auditd Serv
│ │ │ +00383720: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ +00383730: 7669 6365 2061 7564 6974 640a 2020 626c  vice auditd.  bl
│ │ │ +00383740: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00383750: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00383760: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00383770: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00383780: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00383790: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +003837a0: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +003837b0: 6520 6175 6469 7464 2053 6572 7669 6365  e auditd Service
│ │ │ +003837c0: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +003837d0: 6520 6175 6469 7464 0a20 2020 2061 6e73  e auditd.    ans
│ │ │ +003837e0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +003837f0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00383800: 3a20 6175 6469 7464 0a20 2020 2020 2065  : auditd.      e
│ │ │ +00383810: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ +00383820: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ +00383830: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00383840: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ +00383850: 2020 2020 2d20 2722 6175 6469 7464 2220      - '"auditd" 
│ │ │ +00383860: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00383870: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +00383880: 733a 0a20 202d 2043 4a49 532d 352e 342e  s:.  - CJIS-5.4.
│ │ │ +00383890: 312e 310a 2020 2d20 4449 5341 2d53 5449  1.1.  - DISA-STI
│ │ │ +003838a0: 472d 5542 5455 2d32 322d 3635 3330 3135  G-UBTU-22-653015
│ │ │ +003838b0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +003838c0: 312d 332e 332e 310a 2020 2d20 4e49 5354  1-3.3.1.  - NIST
│ │ │ +003838d0: 2d38 3030 2d31 3731 2d33 2e33 2e32 0a20  -800-171-3.3.2. 
│ │ │ +003838e0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +003838f0: 332e 332e 360a 2020 2d20 4e49 5354 2d38  3.3.6.  - NIST-8
│ │ │ +00383900: 3030 2d35 332d 4143 2d32 2867 290a 2020  00-53-AC-2(g).  
│ │ │ +00383910: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +00383920: 2d36 2839 290a 2020 2d20 4e49 5354 2d38  -6(9).  - NIST-8
│ │ │ +00383930: 3030 2d35 332d 4155 2d31 300a 2020 2d20  00-53-AU-10.  - 
│ │ │ +00383940: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +00383950: 3228 6329 0a20 202d 204e 4953 542d 3830  2(c).  - NIST-80
│ │ │ +00383960: 302d 3533 2d41 552d 3134 2831 290a 2020  0-53-AU-14(1).  
│ │ │ +00383970: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00383980: 2d32 2864 290a 2020 2d20 4e49 5354 2d38  -2(d).  - NIST-8
│ │ │ +00383990: 3030 2d35 332d 4155 2d33 0a20 202d 204e  00-53-AU-3.  - N
│ │ │ +003839a0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +003839b0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +003839c0: 3533 2d53 492d 3428 3233 290a 2020 2d20  53-SI-4(23).  - 
│ │ │ +003839d0: 5043 492d 4453 532d 5265 712d 3130 2e31  PCI-DSS-Req-10.1
│ │ │ +003839e0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +003839f0: 302e 320a 2020 2d20 5043 492d 4453 5376  0.2.  - PCI-DSSv
│ │ │ +00383a00: 342d 3130 2e32 2e31 0a20 202d 2065 6e61  4-10.2.1.  - ena
│ │ │ +00383a10: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00383a20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00383a30: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00383a40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00383a50: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00383a60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00383a70: 7365 7276 6963 655f 6175 6469 7464 5f65  service_auditd_e
│ │ │ +00383a80: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ +00383a90: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00383aa0: 0a20 2077 6865 6e3a 0a20 202d 2027 226c  .  when:.  - '"l
│ │ │ +00383ab0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00383ac0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00383ad0: 6167 6573 270a 2020 2d20 2722 6175 6469  ages'.  - '"audi
│ │ │ +00383ae0: 7464 2220 696e 2061 6e73 6962 6c65 5f66  td" in ansible_f
│ │ │ +00383af0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00383b00: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00383bb0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00383bc0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00383c60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00383c70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00383cc0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00383d00: 6c75 6465 2065 6e61 626c 655f 6175 6469  lude enable_audi
│ │ │ +00383d10: 7464 0a0a 636c 6173 7320 656e 6162 6c65  td..class enable
│ │ │ +00383d20: 5f61 7564 6974 6420 7b0a 2020 7365 7276  _auditd {.  serv
│ │ │ +00383d30: 6963 6520 7b27 6175 6469 7464 273a 0a20  ice {'auditd':. 
│ │ │ +00383d40: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00383d50: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ +00383d60: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ +00383d70: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00383d80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00383e30: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00383e40: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00383e50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[customizat
│ │ │ +00383ea0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +00383eb0: 6e61 626c 6564 203d 205b 2261 7564 6974  nabled = ["audit
│ │ │ +00383ec0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -169,14 +152,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -5982,31 +5982,14 @@ │ │ │ │ $ apt-get install libnss-sss │ │ │ │ Rationale: libnss-sss contains library that is needed by SSSD (System Security Services Daemon).. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nss_sss_installed │ │ │ │ _s_t_i_g_i_d UBTU-22-254010 │ │ │ │ References: _s_t_i_g_r_e_f SV-274864r1155209_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-274864 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libnss-sss" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libnss-sss │ │ │ │ - │ │ │ │ -class install_libnss-sss { │ │ │ │ - package { 'libnss-sss': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libnss-sss is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -6016,14 +5999,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-254010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nss_sss_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libnss-sss │ │ │ │ + │ │ │ │ +class install_libnss-sss { │ │ │ │ + package { 'libnss-sss': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libnss-sss" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libnss-sss" │ │ │ │ @@ -6037,31 +6037,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.3.1.3 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215010 │ │ │ │ _s_t_i_g_r_e_f SV-260478r991587_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260478 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6084,14 +6067,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-215010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep - │ │ │ │ @@ -6107,31 +6107,14 @@ │ │ │ │ $ apt-get install libpam-sss │ │ │ │ Rationale: libpam-sss has pam module for the SSSD (System Security Services Daemon). │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_sss_installed │ │ │ │ _s_t_i_g_i_d UBTU-22-254010 │ │ │ │ References: _s_t_i_g_r_e_f SV-274864r1155209_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-274864 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-sss" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-sss │ │ │ │ - │ │ │ │ -class install_libpam-sss { │ │ │ │ - package { 'libpam-sss': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-sss is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -6141,14 +6124,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-254010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_sss_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-sss │ │ │ │ + │ │ │ │ +class install_libpam-sss { │ │ │ │ + package { 'libpam-sss': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-sss" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-sss" │ │ │ │ @@ -6182,31 +6182,14 @@ │ │ │ │ reauthenticates. No other activity aside from reauthentication must unlock the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_vlock_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000028-GPOS-00009, SRG-OS-000030-GPOS-00011 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-412025 │ │ │ │ _s_t_i_g_r_e_f SV-260553r1015010_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260553 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "vlock" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_vlock │ │ │ │ - │ │ │ │ -class install_vlock { │ │ │ │ - package { 'vlock': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6229,14 +6212,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-412025 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - vlock_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_vlock │ │ │ │ + │ │ │ │ +class install_vlock { │ │ │ │ + package { 'vlock': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "vlock" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -6266,31 +6266,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_opensc_installed │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160, SRG-OS-000376-GPOS-00161 │ │ │ │ References: _i_s_m 1386 │ │ │ │ _s_t_i_g_i_d UBTU-22-612015 │ │ │ │ _s_t_i_g_r_e_f SV-260574r958816_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260574 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "opensc-pkcs11" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_opensc-pkcs11 │ │ │ │ - │ │ │ │ -class install_opensc-pkcs11 { │ │ │ │ - package { 'opensc-pkcs11': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6315,14 +6298,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_opensc_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_opensc-pkcs11 │ │ │ │ + │ │ │ │ +class install_opensc-pkcs11 { │ │ │ │ + package { 'opensc-pkcs11': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "opensc-pkcs11" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -6350,31 +6350,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _p_c_i_d_s_s Req-8.3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000105-GPOS-00052, SRG-OS-000375-GPOS-00160, SRG-OS-000375- │ │ │ │ References: GPOS-00161, SRG-OS-000377-GPOS-00162 │ │ │ │ _s_t_i_g_i_d UBTU-22-612010 │ │ │ │ _s_t_i_g_r_e_f SV-260573r1015019_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260573 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pkcs11" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pkcs11 │ │ │ │ - │ │ │ │ -class install_libpam-pkcs11 { │ │ │ │ - package { 'libpam-pkcs11': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -6403,14 +6386,31 @@ │ │ │ │ - PCI-DSS-Req-8.3 │ │ │ │ - enable_strategy │ │ │ │ - install_smartcard_packages │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pkcs11 │ │ │ │ + │ │ │ │ +class install_libpam-pkcs11 { │ │ │ │ + package { 'libpam-pkcs11': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pkcs11" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' │ │ │ │ && { ( ! ( grep -sqE "^.*\.s390x$" /proc/sys/kernel/osrelease || grep -sqE "^s390x$" /proc/sys/kernel/ │ │ │ │ arch; ) ); }; then │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--path-include=/usr/share/doc/ │ │ │ │ @@ -7876,31 +7876,14 @@ │ │ │ │ _o_s_-_s_r_g GPOS-00123, SRG-OS-000312-GPOS-00124, SRG-OS-000324-GPOS-00125, SRG- │ │ │ │ OS-000370-GPOS-00155 │ │ │ │ References: _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ _s_t_i_g_i_d UBTU-22-431010 │ │ │ │ _s_t_i_g_r_e_f SV-260556r958702_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260556 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -7911,14 +7894,31 @@ │ │ │ │ - DISA-STIG-UBTU-22-431010 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -7959,31 +7959,31 @@ │ │ │ │ _o_s_-_s_r_g GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG- │ │ │ │ OS-000370-GPOS-00155, SRG-OS-000480-GPOS-00230, SRG-OS-000480-GPOS- │ │ │ │ References: 00227, SRG-OS-000480-GPOS-00231, SRG-OS-000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _s_t_i_g_i_d UBTU-22-431015 │ │ │ │ _s_t_i_g_r_e_f SV-260557r958804_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260557 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["apparmor"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ include enable_apparmor │ │ │ │ │ │ │ │ class enable_apparmor { │ │ │ │ service {'apparmor': │ │ │ │ enable => true, │ │ │ │ ensure => 'running', │ │ │ │ } │ │ │ │ } │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["apparmor"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ │ │ │ │ # Enable apparmor │ │ │ │ /usr/bin/systemctl enable "apparmor" │ │ │ │ if [[ $(/usr/bin/systemctl is-system-running) != "offline" ]]; then │ │ │ │ @@ -9366,31 +9366,14 @@ │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ _s_t_i_g_i_d UBTU-22-652010 │ │ │ │ _s_t_i_g_r_e_f SV-260588r991562_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260588 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -9429,14 +9412,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -13332,50 +13332,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_p_p FMT_SMF_EXT.1.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000269-GPOS-00103, SRG-OS-000480-GPOS-00227 │ │ │ │ _i_s_m 1409 │ │ │ │ _s_t_i_g_i_d UBTU-22-213015 │ │ │ │ _s_t_i_g_r_e_f SV-260473r1155207_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260473 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["kdump-tools"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: kdump-tools.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: kdump-tools.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_kdump-tools │ │ │ │ - │ │ │ │ -class disable_kdump-tools { │ │ │ │ - service {'kdump-tools': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -13435,14 +13399,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_kdump_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: kdump-tools.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: kdump-tools.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_kdump-tools │ │ │ │ + │ │ │ │ +class disable_kdump-tools { │ │ │ │ + service {'kdump-tools': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["kdump-tools"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -13493,27 +13493,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, │ │ │ │ A.14.2.2, A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _s_t_i_g_i_d UBTU-22-215035 │ │ │ │ _s_t_i_g_r_e_f SV-260483r987796_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260483 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnetd │ │ │ │ - │ │ │ │ -class remove_telnetd { │ │ │ │ - package { 'telnetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the telnet server: Ensure telnetd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -13526,14 +13513,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnetd │ │ │ │ + │ │ │ │ +class remove_telnetd { │ │ │ │ + package { 'telnetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnetd │ │ │ │ @@ -13570,27 +13570,14 @@ │ │ │ │ Rationale: If the system does not export NFS shares or act as an NFS client, it is recommended that these │ │ │ │ services be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-common_removed │ │ │ │ _s_t_i_g_i_d UBTU-22-215040 │ │ │ │ References: _s_t_i_g_r_e_f SV-279937r1156364_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-279937 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-common │ │ │ │ - │ │ │ │ -class remove_nfs-common { │ │ │ │ - package { 'nfs-common': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-common Package: Ensure nfs-common is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -13600,14 +13587,27 @@ │ │ │ │ - DISA-STIG-UBTU-22-215040 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-common_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-common │ │ │ │ + │ │ │ │ +class remove_nfs-common { │ │ │ │ + package { 'nfs-common': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-common │ │ │ │ @@ -13640,27 +13640,14 @@ │ │ │ │ services be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ _c_i_s 2.1.9 │ │ │ │ References: _s_t_i_g_i_d UBTU-22-215040 │ │ │ │ _s_t_i_g_r_e_f SV-279937r1156364_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-279937 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -13670,14 +13657,27 @@ │ │ │ │ - DISA-STIG-UBTU-22-215040 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -13835,27 +13835,14 @@ │ │ │ │ critical when conducting forensic analysis and investigating system events. Sources outside │ │ │ │ the configured acceptable allowance (drift) may be inaccurate. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ntp_removed │ │ │ │ _s_t_i_g_i_d UBTU-22-215025 │ │ │ │ References: _s_t_i_g_r_e_f SV-260481r991589_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260481 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ntp │ │ │ │ - │ │ │ │ -class remove_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -13878,14 +13865,27 @@ │ │ │ │ - DISA-STIG-UBTU-22-215025 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ntp │ │ │ │ + │ │ │ │ +class remove_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -14451,27 +14451,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-215030 │ │ │ │ _s_t_i_g_r_e_f SV-260482r958478_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260482 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-server │ │ │ │ - │ │ │ │ -class remove_rsh-server { │ │ │ │ - package { 'rsh-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh-server Package: Ensure rsh-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -14487,14 +14474,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-server │ │ │ │ + │ │ │ │ +class remove_rsh-server { │ │ │ │ + package { 'rsh-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-server │ │ │ │ @@ -17959,31 +17959,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.DS-2, PR.DS-5 │ │ │ │ _o_s_p_p FIA_UAU.5, FTP_ITC_EXT.1, FCS_SSH_EXT.1, FCS_SSHS_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000423-GPOS-00187, SRG-OS-000424-GPOS-00188, SRG-OS-000425- │ │ │ │ GPOS-00189, SRG-OS-000426-GPOS-00190 │ │ │ │ _s_t_i_g_i_d UBTU-22-255010 │ │ │ │ _s_t_i_g_r_e_f SV-260523r958908_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260523 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "openssh-server" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_openssh-server │ │ │ │ - │ │ │ │ -class install_openssh-server { │ │ │ │ - package { 'openssh-server': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18008,14 +17991,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openssh-server_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_openssh-server │ │ │ │ + │ │ │ │ +class install_openssh-server { │ │ │ │ + package { 'openssh-server': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "openssh-server" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -18051,31 +18051,14 @@ │ │ │ │ _n_i_s_t CM-6(a), SC-8, SC-8(1), SC-8(2), SC-8(3), SC-8(4) │ │ │ │ _n_i_s_t_-_c_s_f PR.DS-2, PR.DS-5 │ │ │ │ _o_s_-_s_r_g SRG-OS-000423-GPOS-00187, SRG-OS-000424-GPOS-00188, SRG-OS-000425- │ │ │ │ GPOS-00189, SRG-OS-000426-GPOS-00190 │ │ │ │ _s_t_i_g_i_d UBTU-22-255015 │ │ │ │ _s_t_i_g_r_e_f SV-260524r958908_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260524 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["ssh"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_ssh │ │ │ │ - │ │ │ │ -class enable_ssh { │ │ │ │ - service {'ssh': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18128,14 +18111,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_sshd_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_ssh │ │ │ │ + │ │ │ │ +class enable_ssh { │ │ │ │ + service {'ssh': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["ssh"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -18180,31 +18180,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ _s_t_i_g_i_d UBTU-22-254010 │ │ │ │ _s_t_i_g_r_e_f SV-274864r1155209_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-274864 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sssd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sssd │ │ │ │ - │ │ │ │ -class install_sssd { │ │ │ │ - package { 'sssd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18229,14 +18212,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sssd_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sssd │ │ │ │ + │ │ │ │ +class install_sssd { │ │ │ │ + package { 'sssd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sssd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep - │ │ │ │ @@ -18269,31 +18269,14 @@ │ │ │ │ _n_i_s_t CM-6(a), IA-5(10) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000375-GPOS-00160 │ │ │ │ _a_n_s_s_i R67 │ │ │ │ _s_t_i_g_i_d UBTU-22-254015 │ │ │ │ _s_t_i_g_r_e_f SV-274866r1101739_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-274866 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["sssd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_sssd │ │ │ │ - │ │ │ │ -class enable_sssd { │ │ │ │ - service {'sssd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -18335,14 +18318,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_sssd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"sssd-common" in ansible_facts.packages' │ │ │ │ - ( "sssd-common" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_sssd │ │ │ │ + │ │ │ │ +class enable_sssd { │ │ │ │ + service {'sssd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["sssd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'sssd-common' 2>/dev/null | grep -q '^installed$' │ │ │ │ @@ -68992,31 +68992,14 @@ │ │ │ │ _p_c_i_d_s_s Req-10.5.3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000342-GPOS-00133 │ │ │ │ References: _c_i_s 6.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.3.3, 10.3 │ │ │ │ _s_t_i_g_i_d UBTU-22-653020 │ │ │ │ _s_t_i_g_r_e_f SV-260592r1101709_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260592 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "audispd-plugins" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_audispd-plugins │ │ │ │ - │ │ │ │ -class install_audispd-plugins { │ │ │ │ - package { 'audispd-plugins': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -69045,14 +69028,31 @@ │ │ │ │ - PCI-DSSv4-10.3.3 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit-audispd-plugins_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_audispd-plugins │ │ │ │ + │ │ │ │ +class install_audispd-plugins { │ │ │ │ + package { 'audispd-plugins': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "audispd-plugins" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -69089,31 +69089,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653010 │ │ │ │ _s_t_i_g_r_e_f SV-260590r1015022_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260590 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "auditd" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_auditd │ │ │ │ - │ │ │ │ -class install_auditd { │ │ │ │ - package { 'auditd': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -69156,14 +69139,31 @@ │ │ │ │ - PCI-DSSv4-10.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_audit_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_auditd │ │ │ │ + │ │ │ │ +class install_auditd { │ │ │ │ + package { 'auditd': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "auditd" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; │ │ │ │ @@ -69225,31 +69225,14 @@ │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.3.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.2 │ │ │ │ _s_t_i_g_i_d UBTU-22-653015 │ │ │ │ _s_t_i_g_r_e_f SV-260591r1015023_rule │ │ │ │ _s_t_i_g_r_e_f___v_u_l_n_e_r_a_b_i_l_i_t_y___i_d V-260591 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["auditd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_auditd │ │ │ │ - │ │ │ │ -class enable_auditd { │ │ │ │ - service {'auditd': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -69318,14 +69301,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_auditd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"auditd" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_auditd │ │ │ │ + │ │ │ │ +class enable_auditd { │ │ │ │ + service {'auditd': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["auditd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2404-guide-cis_level1_server.html │ │ │ @@ -15090,137 +15090,137 @@ │ │ │ 0003af10: 7073 6522 2064 6174 612d 7461 7267 6574 pse" data-target │ │ │ 0003af20: 3d22 2369 6437 2220 7461 6269 6e64 6578 ="#id7" tabindex │ │ │ 0003af30: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 0003af40: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 0003af50: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 0003af60: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 0003af70: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -0003af80: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0003af90: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0003afa0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0003afb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0003afc0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0003afd0: 7365 2220 6964 3d22 6964 3722 3e3c 7072 se" id="id7">.[[packa │ │ │ -0003aff0: 6765 735d 5d0a 6e61 6d65 203d 2022 6169 ges]].name = "ai │ │ │ -0003b000: 6465 220a 7665 7273 696f 6e20 3d20 222a de".version = "* │ │ │ -0003b010: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".
< │ │ │ -0003b020: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ -0003b0c0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0003b0d0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
C │ │ │ +00383c50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00383c80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00383c90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00383cd0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00383ce0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -0003b180: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0003b1d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0003b160: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0003b190: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0003b1b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0003b1c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0003b1e0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0003b1f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0003b210: 7564 6520 696e 7374 616c 6c5f 6169 6465  ude install_aide
│ │ │ -0003b220: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -0003b230: 6169 6465 207b 0a20 2070 6163 6b61 6765  aide {.  package
│ │ │ -0003b240: 207b 2027 6169 6465 273a 0a20 2020 2065   { 'aide':.    e
│ │ │ -0003b250: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -0003b260: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -0003b270: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ -0003b320: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0003b330: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003b340: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Comp │ │ │ -0003b3c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003b3d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003b3f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003b410: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003b420: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003b460: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0003b470: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0003b480: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0003b490: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0003b4a0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0003b4b0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ -0003b4c0: 2e31 302e 312e 330a 2020 2d20 4449 5341 .10.1.3. - DISA │ │ │ -0003b4d0: 2d53 5449 472d 5542 5455 2d32 342d 3130 -STIG-UBTU-24-10 │ │ │ -0003b4e0: 3031 3030 0a20 202d 204e 4953 542d 3830 0100. - NIST-80 │ │ │ -0003b4f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0003b500: 2050 4349 2d44 5353 2d52 6571 2d31 312e PCI-DSS-Req-11. │ │ │ -0003b510: 350a 2020 2d20 5043 492d 4453 5376 342d 5. - PCI-DSSv4- │ │ │ -0003b520: 3131 2e35 2e32 0a20 202d 2065 6e61 626c 11.5.2. - enabl │ │ │ -0003b530: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -0003b540: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -0003b550: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -0003b560: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -0003b570: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -0003b580: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -0003b590: 636b 6167 655f 6169 6465 5f69 6e73 7461 ckage_aide_insta │ │ │ -0003b5a0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e lled..- name: En │ │ │ -0003b5b0: 7375 7265 2061 6964 6520 6973 2069 6e73 sure aide is ins │ │ │ -0003b5c0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65 talled. ansible │ │ │ -0003b5d0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -0003b5e0: 3a0a 2020 2020 6e61 6d65 3a20 6169 6465 :. name: aide │ │ │ -0003b5f0: 0a20 2020 2073 7461 7465 3a20 7072 6573 . state: pres │ │ │ -0003b600: 656e 740a 2020 7768 656e 3a20 2722 6c69 ent. when: '"li │ │ │ -0003b610: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -0003b620: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -0003b630: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -0003b640: 2043 4a49 532d 352e 3130 2e31 2e33 0a20 CJIS-5.10.1.3. │ │ │ -0003b650: 202d 2044 4953 412d 5354 4947 2d55 4254 - DISA-STIG-UBT │ │ │ -0003b660: 552d 3234 2d31 3030 3130 300a 2020 2d20 U-24-100100. - │ │ │ -0003b670: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -0003b680: 2861 290a 2020 2d20 5043 492d 4453 532d (a). - PCI-DSS- │ │ │ -0003b690: 5265 712d 3131 2e35 0a20 202d 2050 4349 Req-11.5. - PCI │ │ │ -0003b6a0: 2d44 5353 7634 2d31 312e 352e 320a 2020 -DSSv4-11.5.2. │ │ │ -0003b6b0: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -0003b6c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0003b6d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0003b6e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0003b6f0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0003b700: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0003b710: 0a20 202d 2070 6163 6b61 6765 5f61 6964 . - package_aid │ │ │ -0003b720: 655f 696e 7374 616c 6c65 640a 3c2f 636f e_installed.
Com │ │ │ +0003b020: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0003b050: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0003b070: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0003b080: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0003b0a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0003b0c0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0003b0d0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0003b0e0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0003b0f0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0003b100: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0003b110: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ +0003b120: 352e 3130 2e31 2e33 0a20 202d 2044 4953  5.10.1.3.  - DIS
│ │ │ +0003b130: 412d 5354 4947 2d55 4254 552d 3234 2d31  A-STIG-UBTU-24-1
│ │ │ +0003b140: 3030 3130 300a 2020 2d20 4e49 5354 2d38  00100.  - NIST-8
│ │ │ +0003b150: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0003b160: 2d20 5043 492d 4453 532d 5265 712d 3131  - PCI-DSS-Req-11
│ │ │ +0003b170: 2e35 0a20 202d 2050 4349 2d44 5353 7634  .5.  - PCI-DSSv4
│ │ │ +0003b180: 2d31 312e 352e 320a 2020 2d20 656e 6162  -11.5.2.  - enab
│ │ │ +0003b190: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0003b1a0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0003b1b0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0003b1c0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0003b1d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0003b1e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0003b1f0: 6163 6b61 6765 5f61 6964 655f 696e 7374  ackage_aide_inst
│ │ │ +0003b200: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +0003b210: 6e73 7572 6520 6169 6465 2069 7320 696e  nsure aide is in
│ │ │ +0003b220: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +0003b230: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0003b240: 653a 0a20 2020 206e 616d 653a 2061 6964  e:.    name: aid
│ │ │ +0003b250: 650a 2020 2020 7374 6174 653a 2070 7265  e.    state: pre
│ │ │ +0003b260: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ +0003b270: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0003b280: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0003b290: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +0003b2a0: 2d20 434a 4953 2d35 2e31 302e 312e 330a  - CJIS-5.10.1.3.
│ │ │ +0003b2b0: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ +0003b2c0: 5455 2d32 342d 3130 3031 3030 0a20 202d  TU-24-100100.  -
│ │ │ +0003b2d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0003b2e0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +0003b2f0: 2d52 6571 2d31 312e 350a 2020 2d20 5043  -Req-11.5.  - PC
│ │ │ +0003b300: 492d 4453 5376 342d 3131 2e35 2e32 0a20  I-DSSv4-11.5.2. 
│ │ │ +0003b310: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0003b320: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0003b330: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0003b340: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0003b350: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0003b360: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0003b370: 640a 2020 2d20 7061 636b 6167 655f 6169  d.  - package_ai
│ │ │ +0003b380: 6465 5f69 6e73 7461 6c6c 6564 0a3c 2f63  de_installed.
│ │ │ +0003b3a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remed │ │ │ +0003b440: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0003b450: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ +0003b490: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0003b4a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0003b4b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0003b4c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0003b4d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0003b4e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0003b4f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0003b530: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0003b540: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0003b560: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0003b570: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +0003b590: 6e73 7461 6c6c 5f61 6964 650a 0a63 6c61  nstall_aide..cla
│ │ │ +0003b5a0: 7373 2069 6e73 7461 6c6c 5f61 6964 6520  ss install_aide 
│ │ │ +0003b5b0: 7b0a 2020 7061 636b 6167 6520 7b20 2761  {.  package { 'a
│ │ │ +0003b5c0: 6964 6527 3a0a 2020 2020 656e 7375 7265  ide':.    ensure
│ │ │ +0003b5d0: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +0003b5e0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediat │ │ │ +0003b6a0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0003b6b0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0003b6c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]].
│ │ │ +0003b710: 6e61 6d65 203d 2022 6169 6465 220a 7665  name = "aide".ve
│ │ │ +0003b720: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 0003b740: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0003b750: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0003b760: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0003b770: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0003b780: 6431 3022 2074 6162 696e 6465 783d 2230 d10" tabindex="0 │ │ │ 0003b790: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -16611,121 +16611,121 @@ │ │ │ 00040e20: 7461 7267 6574 3d22 2369 6431 3822 2074 target="#id18" t │ │ │ 00040e30: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 00040e40: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 00040e50: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 00040e60: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 00040e70: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 00040e80: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -00040e90: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00040ea0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00040f20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00040f40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00040f90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00040fc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00040f30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00040f50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00040fa0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00040fb0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -00040fe0: 7665 5f70 7265 6c69 6e6b 0a0a 636c 6173  ve_prelink..clas
│ │ │ -00040ff0: 7320 7265 6d6f 7665 5f70 7265 6c69 6e6b  s remove_prelink
│ │ │ -00041000: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00041010: 7072 656c 696e 6b27 3a0a 2020 2020 656e  prelink':.    en
│ │ │ -00041020: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00041030: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -000410f0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00041100: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00041140: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Comple │ │ │ -00041190: 7869 7479 3a3c 2f74 683e 3c74 643e 6d65 xity:me │ │ │ -000411a0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Disruption │ │ │ -000411c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000411e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000411f0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00041210: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00041220: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00041240: 6d65 3a20 4368 6563 6b20 4966 2050 7265  me: Check If Pre
│ │ │ -00041250: 6c69 6e6b 6564 2049 7320 496e 7374 616c  linked Is Instal
│ │ │ -00041260: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -00041270: 696c 7469 6e2e 7374 6174 3a0a 2020 2020  iltin.stat:.    
│ │ │ -00041280: 7061 7468 3a20 2f75 7372 2f73 6269 6e2f  path: /usr/sbin/
│ │ │ -00041290: 7072 656c 696e 6b0a 2020 2020 6765 745f  prelink.    get_
│ │ │ -000412a0: 6368 6563 6b73 756d 3a20 6661 6c73 650a  checksum: false.
│ │ │ -000412b0: 2020 7265 6769 7374 6572 3a20 7072 656c    register: prel
│ │ │ -000412c0: 696e 6b0a 2020 7461 6773 3a0a 2020 2d20  ink.  tags:.  - 
│ │ │ -000412d0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -000412e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000412f0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f63  ion.  - medium_c
│ │ │ -00041300: 6f6d 706c 6578 6974 790a 2020 2d20 6d65  omplexity.  - me
│ │ │ -00041310: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00041320: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00041330: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ -00041340: 7265 6c69 6e6b 5f72 656d 6f76 6564 0a0a  relink_removed..
│ │ │ -00041350: 2d20 6e61 6d65 3a20 5265 7374 6f72 6520  - name: Restore 
│ │ │ -00041360: 5072 656c 696e 6b65 6420 4269 6e61 7269  Prelinked Binari
│ │ │ -00041370: 6573 0a20 2061 6e73 6962 6c65 2e62 7569  es.  ansible.bui
│ │ │ -00041380: 6c74 696e 2e63 6f6d 6d61 6e64 3a0a 2020  ltin.command:.  
│ │ │ -00041390: 2020 636d 643a 2070 7265 6c69 6e6b 202d    cmd: prelink -
│ │ │ -000413a0: 7561 0a20 2077 6865 6e3a 2070 7265 6c69  ua.  when: preli
│ │ │ -000413b0: 6e6b 2e73 7461 742e 6578 6973 7473 0a20  nk.stat.exists. 
│ │ │ -000413c0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -000413d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000413e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000413f0: 202d 206d 6564 6975 6d5f 636f 6d70 6c65   - medium_comple
│ │ │ -00041400: 7869 7479 0a20 202d 206d 6564 6975 6d5f  xity.  - medium_
│ │ │ -00041410: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00041420: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00041430: 2d20 7061 636b 6167 655f 7072 656c 696e  - package_prelin
│ │ │ -00041440: 6b5f 7265 6d6f 7665 640a 0a2d 206e 616d  k_removed..- nam
│ │ │ -00041450: 653a 2045 6e73 7572 6520 7072 656c 696e  e: Ensure prelin
│ │ │ -00041460: 6b20 6973 2052 656d 6f76 6564 0a20 2061  k is Removed.  a
│ │ │ -00041470: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00041480: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00041490: 3a20 7072 656c 696e 6b0a 2020 2020 7374  : prelink.    st
│ │ │ -000414a0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -000414b0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -000414c0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000414d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000414e0: 6d65 6469 756d 5f63 6f6d 706c 6578 6974  medium_complexit
│ │ │ -000414f0: 790a 2020 2d20 6d65 6469 756d 5f73 6576  y.  - medium_sev
│ │ │ -00041500: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00041510: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00041520: 6163 6b61 6765 5f70 7265 6c69 6e6b 5f72  ackage_prelink_r
│ │ │ -00041530: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Complexity: │ │ │ +00040f30: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +00040f40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00040f80: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00040f90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00040fb0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00040fc0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: C
│ │ │ +00040fe0: 6865 636b 2049 6620 5072 656c 696e 6b65  heck If Prelinke
│ │ │ +00040ff0: 6420 4973 2049 6e73 7461 6c6c 6564 0a20  d Is Installed. 
│ │ │ +00041000: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00041010: 2e73 7461 743a 0a20 2020 2070 6174 683a  .stat:.    path:
│ │ │ +00041020: 202f 7573 722f 7362 696e 2f70 7265 6c69   /usr/sbin/preli
│ │ │ +00041030: 6e6b 0a20 2020 2067 6574 5f63 6865 636b  nk.    get_check
│ │ │ +00041040: 7375 6d3a 2066 616c 7365 0a20 2072 6567  sum: false.  reg
│ │ │ +00041050: 6973 7465 723a 2070 7265 6c69 6e6b 0a20  ister: prelink. 
│ │ │ +00041060: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00041070: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00041080: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00041090: 202d 206d 6564 6975 6d5f 636f 6d70 6c65   - medium_comple
│ │ │ +000410a0: 7869 7479 0a20 202d 206d 6564 6975 6d5f  xity.  - medium_
│ │ │ +000410b0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000410c0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000410d0: 2d20 7061 636b 6167 655f 7072 656c 696e  - package_prelin
│ │ │ +000410e0: 6b5f 7265 6d6f 7665 640a 0a2d 206e 616d  k_removed..- nam
│ │ │ +000410f0: 653a 2052 6573 746f 7265 2050 7265 6c69  e: Restore Preli
│ │ │ +00041100: 6e6b 6564 2042 696e 6172 6965 730a 2020  nked Binaries.  
│ │ │ +00041110: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00041120: 636f 6d6d 616e 643a 0a20 2020 2063 6d64  command:.    cmd
│ │ │ +00041130: 3a20 7072 656c 696e 6b20 2d75 610a 2020  : prelink -ua.  
│ │ │ +00041140: 7768 656e 3a20 7072 656c 696e 6b2e 7374  when: prelink.st
│ │ │ +00041150: 6174 2e65 7869 7374 730a 2020 7461 6773  at.exists.  tags
│ │ │ +00041160: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00041170: 7261 7465 6779 0a20 202d 206c 6f77 5f64  rategy.  - low_d
│ │ │ +00041180: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00041190: 6469 756d 5f63 6f6d 706c 6578 6974 790a  dium_complexity.
│ │ │ +000411a0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000411b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000411c0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +000411d0: 6b61 6765 5f70 7265 6c69 6e6b 5f72 656d  kage_prelink_rem
│ │ │ +000411e0: 6f76 6564 0a0a 2d20 6e61 6d65 3a20 456e  oved..- name: En
│ │ │ +000411f0: 7375 7265 2070 7265 6c69 6e6b 2069 7320  sure prelink is 
│ │ │ +00041200: 5265 6d6f 7665 640a 2020 616e 7369 626c  Removed.  ansibl
│ │ │ +00041210: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00041220: 653a 0a20 2020 206e 616d 653a 2070 7265  e:.    name: pre
│ │ │ +00041230: 6c69 6e6b 0a20 2020 2073 7461 7465 3a20  link.    state: 
│ │ │ +00041240: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00041250: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00041260: 6567 790a 2020 2d20 6c6f 775f 6469 7372  egy.  - low_disr
│ │ │ +00041270: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00041280: 6d5f 636f 6d70 6c65 7869 7479 0a20 202d  m_complexity.  -
│ │ │ +00041290: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000412a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000412b0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +000412c0: 655f 7072 656c 696e 6b5f 7265 6d6f 7665  e_prelink_remove
│ │ │ +000412d0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000412e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +00041390: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000413a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00041430: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +000414d0: 696e 636c 7564 6520 7265 6d6f 7665 5f70  include remove_p
│ │ │ +000414e0: 7265 6c69 6e6b 0a0a 636c 6173 7320 7265  relink..class re
│ │ │ +000414f0: 6d6f 7665 5f70 7265 6c69 6e6b 207b 0a20  move_prelink {. 
│ │ │ +00041500: 2070 6163 6b61 6765 207b 2027 7072 656c   package { 'prel
│ │ │ +00041510: 696e 6b27 3a0a 2020 2020 656e 7375 7265  ink':.    ensure
│ │ │ +00041520: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00041530: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remed
│ │ │ -00055730: 6961 7469 6f6e 204f 5342 7569 6c64 2042  iation OSBuild B
│ │ │ -00055740: 6c75 6570 7269 6e74 2073 6e69 7070 6574  lueprint snippet
│ │ │ -00055750: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
│ │ │ -00055790: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000557a0: 735d 5d0a 6e61 6d65 203d 2022 7375 646f  s]].name = "sudo
│ │ │ -000557b0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -000557c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00055870: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00055880: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00041420: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00041450: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00041460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000414a0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +000414b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -00055930: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00055980: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00055910: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00055940: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00055960: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00055970: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00055990: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000559a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000559c0: 7564 6520 696e 7374 616c 6c5f 7375 646f  ude install_sudo
│ │ │ -000559d0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000559e0: 7375 646f 207b 0a20 2070 6163 6b61 6765  sudo {.  package
│ │ │ -000559f0: 207b 2027 7375 646f 273a 0a20 2020 2065   { 'sudo':.    e
│ │ │ -00055a00: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -00055a10: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -00055a20: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -00055ad0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00055ae0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low< │ │ │ -00055b90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00055be0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00055b70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00055ba0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00055bc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00055bd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00055bf0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00055c00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00055c20: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00055c30: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00055c40: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00055c50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00055c60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00055c70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00055c80: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00055c90: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00055ca0: 322e 322e 360a 2020 2d20 656e 6162 6c65  2.2.6.  - enable
│ │ │ -00055cb0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00055cc0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00055cd0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00055ce0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00055cf0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00055d00: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00055d10: 6b61 6765 5f73 7564 6f5f 696e 7374 616c  kage_sudo_instal
│ │ │ -00055d20: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -00055d30: 7572 6520 7375 646f 2069 7320 696e 7374  ure sudo is inst
│ │ │ -00055d40: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -00055d50: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00055d60: 0a20 2020 206e 616d 653a 2073 7564 6f0a  .    name: sudo.
│ │ │ -00055d70: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -00055d80: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00055d90: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00055da0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00055db0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00055dc0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00055dd0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ -00055de0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00055df0: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ -00055e00: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00055e10: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00055e20: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00055e30: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00055e40: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00055e50: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00055e60: 2070 6163 6b61 6765 5f73 7564 6f5f 696e   package_sudo_in
│ │ │ -00055e70: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00055730: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00055740: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
│ │ │ +000557f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00055810: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00055840: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000557d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000557e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00055800: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00055820: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00055830: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +00055880: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00055890: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000558a0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000558b0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000558c0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000558d0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +000558e0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ +000558f0: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +00055900: 2e36 0a20 202d 2065 6e61 626c 655f 7374 .6. - enable_st │ │ │ +00055910: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +00055920: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00055930: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00055940: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +00055950: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00055960: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +00055970: 655f 7375 646f 5f69 6e73 7461 6c6c 6564 e_sudo_installed │ │ │ +00055980: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265 ..- name: Ensure │ │ │ +00055990: 2073 7564 6f20 6973 2069 6e73 7461 6c6c sudo is install │ │ │ +000559a0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ +000559b0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +000559c0: 2020 6e61 6d65 3a20 7375 646f 0a20 2020 name: sudo. │ │ │ +000559d0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ +000559e0: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +000559f0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +00055a00: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +00055a10: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +00055a20: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ +00055a30: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +00055a40: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +00055a50: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c -2.2.6. - enabl │ │ │ +00055a60: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +00055a70: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +00055a80: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +00055a90: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +00055aa0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +00055ab0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +00055ac0: 636b 6167 655f 7375 646f 5f69 6e73 7461 ckage_sudo_insta │ │ │ +00055ad0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.

Remediation │ │ │ +00055b90: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00055ba0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ +00055c20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00055c40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00055c90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00055ce0: 5f73 7564 6f0a 0a63 6c61 7373 2069 6e73  _sudo..class ins
│ │ │ +00055cf0: 7461 6c6c 5f73 7564 6f20 7b0a 2020 7061  tall_sudo {.  pa
│ │ │ +00055d00: 636b 6167 6520 7b20 2773 7564 6f27 3a0a  ckage { 'sudo':.
│ │ │ +00055d10: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00055d20: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00055d30: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +00055df0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00055e00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00055e10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +00055e50: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00055e60: 203d 2022 7375 646f 220a 7665 7273 696f   = "sudo".versio
│ │ │ +00055e70: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  00055e80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -000a8750: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000a8760: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000a8770: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -000a87c0: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -000a87d0: 6d6f 6475 6c65 7322 0a76 6572 7369 6f6e  modules".version
│ │ │ -000a87e0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000a88a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000a88b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a8930: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ -000a8970: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disr │ │ │ +00055c50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00055c60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00055ca0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00055cb0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -000a8940: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -000a8960: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -000a8990: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -000a89b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -000a89e0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000a89f0: 7461 6c6c 5f6c 6962 7061 6d2d 6d6f 6475  tall_libpam-modu
│ │ │ -000a8a00: 6c65 730a 0a63 6c61 7373 2069 6e73 7461  les..class insta
│ │ │ -000a8a10: 6c6c 5f6c 6962 7061 6d2d 6d6f 6475 6c65  ll_libpam-module
│ │ │ -000a8a20: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -000a8a30: 276c 6962 7061 6d2d 6d6f 6475 6c65 7327  'libpam-modules'
│ │ │ -000a8a40: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000a8a50: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000a8a60: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000a8b20: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000a8b30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a8bb0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000a8bc0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000a8be0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000a8bf0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000a8c10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000a8c30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000a8c60: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000a8c70: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000a8c80: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000a8c90: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000a8ca0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000a8cb0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000a8cc0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000a8cd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000a8ce0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000a8cf0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000a8d00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000a8d10: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000a8d20: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ -000a8d30: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -000a8d40: 6e73 7572 6520 6c69 6270 616d 2d6d 6f64  nsure libpam-mod
│ │ │ -000a8d50: 756c 6573 2069 7320 696e 7374 616c 6c65  ules is installe
│ │ │ -000a8d60: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000a8d70: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000a8d80: 206e 616d 653a 206c 6962 7061 6d2d 6d6f   name: libpam-mo
│ │ │ -000a8d90: 6475 6c65 730a 2020 2020 7374 6174 653a  dules.    state:
│ │ │ -000a8da0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000a8db0: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ -000a8dc0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000a8dd0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000a8de0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000a8df0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000a8e00: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000a8e10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000a8e20: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000a8e30: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000a8e40: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000a8e50: 6b61 6765 5f70 616d 5f6d 6f64 756c 6573  kage_pam_modules
│ │ │ -000a8e60: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000a87e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000a87f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000a8800: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000a8840: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000a8850: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000a8870: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000a8890: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000a88a0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +000a88b0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +000a88c0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +000a88d0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000a88e0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +000a88f0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000a8900: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000a8910: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000a8920: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000a8930: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000a8940: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +000a8950: 5f70 616d 5f6d 6f64 756c 6573 5f69 6e73  _pam_modules_ins
│ │ │ +000a8960: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000a8970: 456e 7375 7265 206c 6962 7061 6d2d 6d6f  Ensure libpam-mo
│ │ │ +000a8980: 6475 6c65 7320 6973 2069 6e73 7461 6c6c  dules is install
│ │ │ +000a8990: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +000a89a0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000a89b0: 2020 6e61 6d65 3a20 6c69 6270 616d 2d6d    name: libpam-m
│ │ │ +000a89c0: 6f64 756c 6573 0a20 2020 2073 7461 7465  odules.    state
│ │ │ +000a89d0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000a89e0: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +000a89f0: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +000a8a00: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000a8a10: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000a8a20: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000a8a30: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000a8a40: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000a8a50: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000a8a60: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000a8a70: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000a8a80: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ +000a8a90: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000a8ab0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000a8ac0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000a8ad0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000a8ae0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000a8af0: 6431 3537 2220 7461 6269 6e64 6578 3d22 d157" tabindex=" │ │ │ +000a8b00: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000a8b10: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000a8b20: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000a8b30: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000a8b40: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000a8b50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000a8b60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000a8bf0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000a8c00: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000a8c20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000a8c40: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000a8c50: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000a8c90: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000a8ca0: 6520 696e 7374 616c 6c5f 6c69 6270 616d e install_libpam │ │ │ +000a8cb0: 2d6d 6f64 756c 6573 0a0a 636c 6173 7320 -modules..class │ │ │ +000a8cc0: 696e 7374 616c 6c5f 6c69 6270 616d 2d6d install_libpam-m │ │ │ +000a8cd0: 6f64 756c 6573 207b 0a20 2070 6163 6b61 odules {. packa │ │ │ +000a8ce0: 6765 207b 2027 6c69 6270 616d 2d6d 6f64 ge { 'libpam-mod │ │ │ +000a8cf0: 756c 6573 273a 0a20 2020 2065 6e73 7572 ules':. ensur │ │ │ +000a8d00: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000a8d10: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +000a8dd0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000a8de0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000a8df0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +000a8e40: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ +000a8e50: 7061 6d2d 6d6f 6475 6c65 7322 0a76 6572  pam-modules".ver
│ │ │ +000a8e60: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remedia │ │ │ -000a9c20: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -000a9c30: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -000a9c40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -000a9c80: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -000a9c90: 5d5d 0a6e 616d 6520 3d20 226c 6962 7061  ]].name = "libpa
│ │ │ -000a9ca0: 6d2d 7077 7175 616c 6974 7922 0a76 6572  m-pwquality".ver
│ │ │ -000a9cb0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -000a9d70: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000a9d80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000a9e30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000a9e50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000a9e80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000a9e10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000a9e20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000a9e40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000a9e60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000a9e70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -000a9ec0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -000a9ed0: 7077 7175 616c 6974 790a 0a63 6c61 7373 pwquality..class │ │ │ -000a9ee0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -000a9ef0: 7077 7175 616c 6974 7920 7b0a 2020 7061 pwquality {. pa │ │ │ -000a9f00: 636b 6167 6520 7b20 276c 6962 7061 6d2d ckage { 'libpam- │ │ │ -000a9f10: 7077 7175 616c 6974 7927 3a0a 2020 2020 pwquality':. │ │ │ -000a9f20: 656e 7375 7265 203d 2667 743b 2027 696e ensure => 'in │ │ │ -000a9f30: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a stalled',. }.}. │ │ │ -000a9f40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ -000a9ff0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000aa000: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000aa010: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

< │ │ │ -000aa0e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000aa0f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000aa140: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000aa150: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000aa160: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000aa170: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000aa180: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ -000aa190: 4953 412d 5354 4947 2d55 4254 552d 3234  ISA-STIG-UBTU-24
│ │ │ -000aa1a0: 2d31 3030 3630 300a 2020 2d20 656e 6162  -100600.  - enab
│ │ │ -000aa1b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000aa1c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000aa1d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000aa1e0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000aa1f0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000aa200: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000aa210: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ -000aa220: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ -000aa230: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -000aa240: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ -000aa250: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000aa260: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000aa270: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000aa280: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ -000aa290: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ -000aa2a0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -000aa2b0: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ -000aa2c0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000aa2d0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000aa2e0: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ -000aa2f0: 2d55 4254 552d 3234 2d31 3030 3630 300a  -UBTU-24-100600.
│ │ │ -000aa300: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000aa310: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000aa320: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000aa330: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000aa340: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000aa350: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000aa360: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ -000aa370: 616d 5f70 7771 7561 6c69 7479 5f69 6e73  am_pwquality_ins
│ │ │ -000aa380: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +000a9c40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000a9c70: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -000aa0c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000aa0d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000aa110: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000aa120: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +000a9ce0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000a9d00: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000a9d30: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000a9d50: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000a9cc0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000a9cd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000a9d10: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000a9d20: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +000a9d70: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +000a9d80: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +000a9d90: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +000a9da0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000a9db0: 6773 3a0a 2020 2d20 4449 5341 2d53 5449 gs:. - DISA-STI │ │ │ +000a9dc0: 472d 5542 5455 2d32 342d 3130 3036 3030 G-UBTU-24-100600 │ │ │ +000a9dd0: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +000a9de0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +000a9df0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +000a9e00: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +000a9e10: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +000a9e20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +000a9e30: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +000a9e40: 7061 6d5f 7077 7175 616c 6974 795f 696e pam_pwquality_in │ │ │ +000a9e50: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ +000a9e60: 2045 6e73 7572 6520 6c69 6270 616d 2d70 Ensure libpam-p │ │ │ +000a9e70: 7771 7561 6c69 7479 2069 7320 696e 7374 wquality is inst │ │ │ +000a9e80: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ +000a9e90: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ +000a9ea0: 0a20 2020 206e 616d 653a 206c 6962 7061 . name: libpa │ │ │ +000a9eb0: 6d2d 7077 7175 616c 6974 790a 2020 2020 m-pwquality. │ │ │ +000a9ec0: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +000a9ed0: 2077 6865 6e3a 2027 226c 6962 7061 6d2d when: '"libpam- │ │ │ +000a9ee0: 7275 6e74 696d 6522 2069 6e20 616e 7369 runtime" in ansi │ │ │ +000a9ef0: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +000a9f00: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +000a9f10: 4449 5341 2d53 5449 472d 5542 5455 2d32 DISA-STIG-UBTU-2 │ │ │ +000a9f20: 342d 3130 3036 3030 0a20 202d 2065 6e61 4-100600. - ena │ │ │ +000a9f30: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +000a9f40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +000a9f50: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +000a9f60: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +000a9f70: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +000a9f80: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +000a9f90: 7061 636b 6167 655f 7061 6d5f 7077 7175 package_pam_pwqu │ │ │ +000a9fa0: 616c 6974 795f 696e 7374 616c 6c65 640a ality_installed. │ │ │ +000a9fb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ +000aa060: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000aa070: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000aa110: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000aa1b0: 636c 7564 6520 696e 7374 616c 6c5f 6c69  clude install_li
│ │ │ +000aa1c0: 6270 616d 2d70 7771 7561 6c69 7479 0a0a  bpam-pwquality..
│ │ │ +000aa1d0: 636c 6173 7320 696e 7374 616c 6c5f 6c69  class install_li
│ │ │ +000aa1e0: 6270 616d 2d70 7771 7561 6c69 7479 207b  bpam-pwquality {
│ │ │ +000aa1f0: 0a20 2070 6163 6b61 6765 207b 2027 6c69  .  package { 'li
│ │ │ +000aa200: 6270 616d 2d70 7771 7561 6c69 7479 273a  bpam-pwquality':
│ │ │ +000aa210: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000aa220: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000aa230: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ +000aa2f0: 204f 5342 7569 6c64 2042 6c75 6570 7269   OSBuild Bluepri
│ │ │ +000aa300: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f  nt snippet ...
.[[packages]].n
│ │ │ +000aa360: 616d 6520 3d20 226c 6962 7061 6d2d 7077  ame = "libpam-pw
│ │ │ +000aa370: 7175 616c 6974 7922 0a76 6572 7369 6f6e  quality".version
│ │ │ +000aa380: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remedi │ │ │ -000aaee0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000aaef0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000aaf00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000aaf40: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000aaf50: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ -000aaf60: 616d 2d72 756e 7469 6d65 220a 7665 7273  am-runtime".vers
│ │ │ -000aaf70: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000ab030: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000ab040: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000ab050: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000ab080: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +000aa100: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000aa130: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000aa140: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000aa180: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000aa190: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -000ab0f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000ab110: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000ab140: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000ab160: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000ab0d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000ab0e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000ab120: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000ab130: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000ab180: 696e 7374 616c 6c5f 6c69 6270 616d 2d72 install_libpam-r │ │ │ -000ab190: 756e 7469 6d65 0a0a 636c 6173 7320 696e untime..class in │ │ │ -000ab1a0: 7374 616c 6c5f 6c69 6270 616d 2d72 756e stall_libpam-run │ │ │ -000ab1b0: 7469 6d65 207b 0a20 2070 6163 6b61 6765 time {. package │ │ │ -000ab1c0: 207b 2027 6c69 6270 616d 2d72 756e 7469 { 'libpam-runti │ │ │ -000ab1d0: 6d65 273a 0a20 2020 2065 6e73 7572 6520 me':. ensure │ │ │ -000ab1e0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ -000ab1f0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -000ab200: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -000ab2b0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000ab2c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000ab2d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000ab300: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000ab370: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000ab390: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000ab3c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000ab3e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000ab350: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000ab360: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000ab3a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000ab3b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -000ab400: 456e 7375 7265 206c 6962 7061 6d2d 7275 Ensure libpam-ru │ │ │ -000ab410: 6e74 696d 6520 6973 2069 6e73 7461 6c6c ntime is install │ │ │ -000ab420: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -000ab430: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -000ab440: 2020 6e61 6d65 3a20 6c69 6270 616d 2d72 name: libpam-r │ │ │ -000ab450: 756e 7469 6d65 0a20 2020 2073 7461 7465 untime. state │ │ │ -000ab460: 3a20 7072 6573 656e 740a 2020 7461 6773 : present. tags │ │ │ -000ab470: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472 :. - enable_str │ │ │ -000ab480: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -000ab490: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -000ab4a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -000ab4b0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -000ab4c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -000ab4d0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -000ab4e0: 5f70 616d 5f72 756e 7469 6d65 5f69 6e73 _pam_runtime_ins │ │ │ -000ab4f0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.
│ │ │ +000aafa0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000aafc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000aaff0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000aaf80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000aaf90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000aafb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000aafd0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000aafe0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000ab030: 2045 6e73 7572 6520 6c69 6270 616d 2d72 Ensure libpam-r │ │ │ +000ab040: 756e 7469 6d65 2069 7320 696e 7374 616c untime is instal │ │ │ +000ab050: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +000ab060: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +000ab070: 2020 206e 616d 653a 206c 6962 7061 6d2d name: libpam- │ │ │ +000ab080: 7275 6e74 696d 650a 2020 2020 7374 6174 runtime. stat │ │ │ +000ab090: 653a 2070 7265 7365 6e74 0a20 2074 6167 e: present. tag │ │ │ +000ab0a0: 733a 0a20 202d 2065 6e61 626c 655f 7374 s:. - enable_st │ │ │ +000ab0b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +000ab0c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +000ab0d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +000ab0e0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +000ab0f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +000ab100: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +000ab110: 655f 7061 6d5f 7275 6e74 696d 655f 696e e_pam_runtime_in │ │ │ +000ab120: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +000ab130: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +000ab1e0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000ab1f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000ab270: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000ab280: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000ab290: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000ab2d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000ab2e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000ab300: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000ab320: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +000ab330: 7374 616c 6c5f 6c69 6270 616d 2d72 756e  stall_libpam-run
│ │ │ +000ab340: 7469 6d65 0a0a 636c 6173 7320 696e 7374  time..class inst
│ │ │ +000ab350: 616c 6c5f 6c69 6270 616d 2d72 756e 7469  all_libpam-runti
│ │ │ +000ab360: 6d65 207b 0a20 2070 6163 6b61 6765 207b  me {.  package {
│ │ │ +000ab370: 2027 6c69 6270 616d 2d72 756e 7469 6d65   'libpam-runtime
│ │ │ +000ab380: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +000ab390: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +000ab3a0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +000ab460: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000ab470: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000ab480: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +000ab4d0: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ +000ab4e0: 7275 6e74 696d 6522 0a76 6572 7369 6f6e  runtime".version
│ │ │ +000ab4f0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation │ │ │ -000e3190: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000e31a0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000e31f0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -000e3200: 6d65 203d 2022 6170 7061 726d 6f72 2d75  me = "apparmor-u
│ │ │ -000e3210: 7469 6c73 220a 7665 7273 696f 6e20 3d20  tils".version = 
│ │ │ -000e3220: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000e32e0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000e32f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000e3370: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000e3390: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000e33e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000e3410: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000e3430: 6c5f 6170 7061 726d 6f72 2d75 7469 6c73  l_apparmor-utils
│ │ │ -000e3440: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000e3450: 6170 7061 726d 6f72 2d75 7469 6c73 207b  apparmor-utils {
│ │ │ -000e3460: 0a20 2070 6163 6b61 6765 207b 2027 6170  .  package { 'ap
│ │ │ -000e3470: 7061 726d 6f72 2d75 7469 6c73 273a 0a20  parmor-utils':. 
│ │ │ -000e3480: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000e3490: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -000e34a0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000e34b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -000e3560: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000e3570: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -000e3380: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000e33a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000e33f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000e3400: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -000e35f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000e3610: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000e3660: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000e3690: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Ensure
│ │ │ -000e36b0: 2061 7070 6172 6d6f 722d 7574 696c 7320   apparmor-utils 
│ │ │ -000e36c0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000e36d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000e36e0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000e36f0: 3a20 6170 7061 726d 6f72 2d75 7469 6c73  : apparmor-utils
│ │ │ -000e3700: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -000e3710: 656e 740a 2020 7768 656e 3a20 616e 7369  ent.  when: ansi
│ │ │ -000e3720: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ -000e3730: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ -000e3740: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ -000e3750: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ -000e3760: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ -000e3770: 5d0a 2020 7461 6773 3a0a 2020 2d20 656e  ].  tags:.  - en
│ │ │ -000e3780: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000e3790: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000e37a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000e37b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000e37c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000e37d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000e37e0: 2070 6163 6b61 6765 5f61 7070 6172 6d6f   package_apparmo
│ │ │ -000e37f0: 722d 7574 696c 735f 696e 7374 616c 6c65  r-utils_installe
│ │ │ -000e3800: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000e3190: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +000e31a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ +000e3270: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000e32c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -000e3600: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000e3620: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000e3670: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000e3680: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +000e3230: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000e3250: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000e32a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000e32b0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Ensur
│ │ │ +000e32e0: 6520 6170 7061 726d 6f72 2d75 7469 6c73  e apparmor-utils
│ │ │ +000e32f0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000e3300: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000e3310: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000e3320: 653a 2061 7070 6172 6d6f 722d 7574 696c  e: apparmor-util
│ │ │ +000e3330: 730a 2020 2020 7374 6174 653a 2070 7265  s.    state: pre
│ │ │ +000e3340: 7365 6e74 0a20 2077 6865 6e3a 2061 6e73  sent.  when: ans
│ │ │ +000e3350: 6962 6c65 5f76 6972 7475 616c 697a 6174  ible_virtualizat
│ │ │ +000e3360: 696f 6e5f 7479 7065 206e 6f74 2069 6e20  ion_type not in 
│ │ │ +000e3370: 5b22 646f 636b 6572 222c 2022 6c78 6322  ["docker", "lxc"
│ │ │ +000e3380: 2c20 226f 7065 6e76 7a22 2c20 2270 6f64  , "openvz", "pod
│ │ │ +000e3390: 6d61 6e22 2c20 2263 6f6e 7461 696e 6572  man", "container
│ │ │ +000e33a0: 225d 0a20 2074 6167 733a 0a20 202d 2065  "].  tags:.  - e
│ │ │ +000e33b0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000e33c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000e33d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000e33e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000e33f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000e3400: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000e3410: 2d20 7061 636b 6167 655f 6170 7061 726d  - package_apparm
│ │ │ +000e3420: 6f72 2d75 7469 6c73 5f69 6e73 7461 6c6c  or-utils_install
│ │ │ +000e3430: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000e3440: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000e34f0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000e3500: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000e3580: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000e35a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000e35f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000e3640: 5f61 7070 6172 6d6f 722d 7574 696c 730a  _apparmor-utils.
│ │ │ +000e3650: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61  .class install_a
│ │ │ +000e3660: 7070 6172 6d6f 722d 7574 696c 7320 7b0a  pparmor-utils {.
│ │ │ +000e3670: 2020 7061 636b 6167 6520 7b20 2761 7070    package { 'app
│ │ │ +000e3680: 6172 6d6f 722d 7574 696c 7327 3a0a 2020  armor-utils':.  
│ │ │ +000e3690: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000e36a0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000e36b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000e36c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000e3770: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000e3780: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000e3790: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +000e37d0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +000e37e0: 203d 2022 6170 7061 726d 6f72 2d75 7469   = "apparmor-uti
│ │ │ +000e37f0: 6c73 220a 7665 7273 696f 6e20 3d20 222a  ls".version = "*
│ │ │ +000e3800: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 000e3810: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediat │ │ │ -000e4510: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000e4520: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000e4530: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000e4580: 5d0a 6e61 6d65 203d 2022 6170 7061 726d  ].name = "apparm
│ │ │ -000e4590: 6f72 220a 7665 7273 696f 6e20 3d20 222a  or".version = "*
│ │ │ -000e45a0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -000e45b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000e4660: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000e4670: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +000e35b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000e35c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000e3600: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000e3610: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -000e4740: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000e4750: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000e47a0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -000e47b0: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ -000e47c0: 696e 7374 616c 6c5f 6170 7061 726d 6f72  install_apparmor
│ │ │ -000e47d0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000e47e0: 6170 7061 726d 6f72 273a 0a20 2020 2065  apparmor':.    e
│ │ │ -000e47f0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000e4800: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000e4810: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000e48c0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000e48d0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disru │ │ │ -000e4720: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000e4730: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000e4770: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000e4780: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -000e4970: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000e4a10: 6e61 6d65 3a20 456e 7375 7265 2061 7070  name: Ensure app
│ │ │ -000e4a20: 6172 6d6f 7220 6973 2069 6e73 7461 6c6c  armor is install
│ │ │ -000e4a30: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000e4a40: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -000e4a50: 2020 6e61 6d65 3a20 6170 7061 726d 6f72    name: apparmor
│ │ │ -000e4a60: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -000e4a70: 656e 740a 2020 7768 656e 3a20 616e 7369  ent.  when: ansi
│ │ │ -000e4a80: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ -000e4a90: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ -000e4aa0: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ -000e4ab0: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ -000e4ac0: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ -000e4ad0: 5d0a 2020 7461 6773 3a0a 2020 2d20 4449  ].  tags:.  - DI
│ │ │ -000e4ae0: 5341 2d53 5449 472d 5542 5455 2d32 342d  SA-STIG-UBTU-24-
│ │ │ -000e4af0: 3130 3035 3030 0a20 202d 2065 6e61 626c  100500.  - enabl
│ │ │ -000e4b00: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000e4b10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000e4b20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000e4b30: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000e4b40: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000e4b50: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000e4b60: 636b 6167 655f 6170 7061 726d 6f72 5f69  ckage_apparmor_i
│ │ │ -000e4b70: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000e4510: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +000e4520: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +000e4530: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e4540: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e4550: 7365 2220 6964 3d22 6964 3236 3622 3e3c se" id="id266">< │ │ │ +000e4560: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000e4570: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000e4580: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000e4590: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000e45a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000e4630: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000e4640: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -000e4960: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000e4990: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000e49a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000e49e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000e49f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +000e45b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000e45c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000e4600: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000e4610: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: E
│ │ │ +000e4660: 6e73 7572 6520 6170 7061 726d 6f72 2069  nsure apparmor i
│ │ │ +000e4670: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +000e4680: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +000e4690: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +000e46a0: 2061 7070 6172 6d6f 720a 2020 2020 7374   apparmor.    st
│ │ │ +000e46b0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +000e46c0: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ +000e46d0: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ +000e46e0: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ +000e46f0: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ +000e4700: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ +000e4710: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ +000e4720: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +000e4730: 2d55 4254 552d 3234 2d31 3030 3530 300a  -UBTU-24-100500.
│ │ │ +000e4740: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000e4750: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000e4760: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000e4770: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000e4780: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000e4790: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000e47a0: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +000e47b0: 7070 6172 6d6f 725f 696e 7374 616c 6c65  pparmor_installe
│ │ │ +000e47c0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000e47d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +000e4880: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000e4890: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000e4960: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000e4970: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000e49c0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +000e49d0: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ +000e49e0: 696e 7374 616c 6c5f 6170 7061 726d 6f72  install_apparmor
│ │ │ +000e49f0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000e4a00: 6170 7061 726d 6f72 273a 0a20 2020 2065  apparmor':.    e
│ │ │ +000e4a10: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +000e4a20: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +000e4a30: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000e4ae0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +000e4af0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +000e4b00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000e4b10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000e4b40: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +000e4b50: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000e4b60: 2261 7070 6172 6d6f 7222 0a76 6572 7369  "apparmor".versi
│ │ │ +000e4b70: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  000e4b80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
│ │ │ -000eff20: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000eff30: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000eff40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000eff90: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000effa0: 2022 7379 7374 656d 642d 6a6f 7572 6e61   "systemd-journa
│ │ │ -000effb0: 6c2d 7265 6d6f 7465 220a 7665 7273 696f  l-remote".versio
│ │ │ -000effc0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -000effd0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000f0080: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000f0090: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000f0110: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -000f01a0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disru │ │ │ +000e4940: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000e4950: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000e4990: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000e49a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -000f0120: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000f0130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000f0170: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000f0180: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000f01c0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000f01d0: 7374 616c 6c5f 7379 7374 656d 642d 6a6f  stall_systemd-jo
│ │ │ -000f01e0: 7572 6e61 6c2d 7265 6d6f 7465 0a0a 636c  urnal-remote..cl
│ │ │ -000f01f0: 6173 7320 696e 7374 616c 6c5f 7379 7374  ass install_syst
│ │ │ -000f0200: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000f0210: 7465 207b 0a20 2070 6163 6b61 6765 207b  te {.  package {
│ │ │ -000f0220: 2027 7379 7374 656d 642d 6a6f 7572 6e61   'systemd-journa
│ │ │ -000f0230: 6c2d 7265 6d6f 7465 273a 0a20 2020 2065  l-remote':.    e
│ │ │ -000f0240: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000f0250: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000f0260: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000f0310: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000f0320: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000f03c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000f0460: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000f0470: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000f0480: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000f0490: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000f04a0: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -000f04b0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000f04c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000f04d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000f04e0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000f04f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000f0500: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000f0510: 2070 6163 6b61 6765 5f73 7973 7465 6d64   package_systemd
│ │ │ -000f0520: 2d6a 6f75 726e 616c 2d72 656d 6f74 655f  -journal-remote_
│ │ │ -000f0530: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -000f0540: 653a 2045 6e73 7572 6520 7379 7374 656d  e: Ensure system
│ │ │ -000f0550: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ -000f0560: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000f0570: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000f0580: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000f0590: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000f05a0: 616c 2d72 656d 6f74 650a 2020 2020 7374  al-remote.    st
│ │ │ -000f05b0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000f05c0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000f05d0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000f05e0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000f05f0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000f0600: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000f0610: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000f0620: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000f0630: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000f0640: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000f0650: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000f0660: 6b61 6765 5f73 7973 7465 6d64 2d6a 6f75  kage_systemd-jou
│ │ │ -000f0670: 726e 616c 2d72 656d 6f74 655f 696e 7374  rnal-remote_inst
│ │ │ -000f0680: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


│ │ │ -000f03b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000f03e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000f03f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000f0430: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000f0440: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000f0010: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000f0020: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000f0070: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000f0080: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000f0090: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000f00a0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +000f00b0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ +000f00c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000f00d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000f00e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000f00f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000f0100: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000f0110: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000f0120: 2d20 7061 636b 6167 655f 7379 7374 656d  - package_system
│ │ │ +000f0130: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000f0140: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +000f0150: 6d65 3a20 456e 7375 7265 2073 7973 7465  me: Ensure syste
│ │ │ +000f0160: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000f0170: 6520 6973 2069 6e73 7461 6c6c 6564 0a20  e is installed. 
│ │ │ +000f0180: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000f0190: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000f01a0: 6d65 3a20 7379 7374 656d 642d 6a6f 7572  me: systemd-jour
│ │ │ +000f01b0: 6e61 6c2d 7265 6d6f 7465 0a20 2020 2073  nal-remote.    s
│ │ │ +000f01c0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000f01d0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +000f01e0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +000f01f0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000f0200: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000f0210: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000f0220: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000f0230: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000f0240: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000f0250: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000f0260: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000f0270: 636b 6167 655f 7379 7374 656d 642d 6a6f  ckage_systemd-jo
│ │ │ +000f0280: 7572 6e61 6c2d 7265 6d6f 7465 5f69 6e73  urnal-remote_ins
│ │ │ +000f0290: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.Remediati
│ │ │ +000f0350: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +000f0360: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +000f03e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +000f0420: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +000efff0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000f0000: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000f0040: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000f0050: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +000f03f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000f0410: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000f0440: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000f0460: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +000f0490: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000f04a0: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ +000f04b0: 726e 616c 2d72 656d 6f74 650a 0a63 6c61  rnal-remote..cla
│ │ │ +000f04c0: 7373 2069 6e73 7461 6c6c 5f73 7973 7465  ss install_syste
│ │ │ +000f04d0: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000f04e0: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ +000f04f0: 2773 7973 7465 6d64 2d6a 6f75 726e 616c  'systemd-journal
│ │ │ +000f0500: 2d72 656d 6f74 6527 3a0a 2020 2020 656e  -remote':.    en
│ │ │ +000f0510: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000f0520: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000f05e0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000f05f0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000f0600: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000f0610: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000f0620: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000f0630: 7365 2220 6964 3d22 6964 3238 3522 3e3c se" id="id285">< │ │ │ +000f0640: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000f0650: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000f0660: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000f0670: 7265 6d6f 7465 220a 7665 7273 696f 6e20 remote".version │ │ │ +000f0680: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remed │ │ │ -000f17f0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000f1800: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000f1810: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -000f1860: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -000f1870: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ -000f1880: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ -000f1890: 6c6f 6164 225d 0a3c 2f63 6f64 653e 3c2f  load"].
Remediati │ │ │ -000f1950: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000f1960: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000f19e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000f19f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000f1a10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000f1a20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000f1a40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000f1a60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000f1a90: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -000f1aa0: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ -000f1ab0: 6e61 6c2d 7570 6c6f 6164 0a0a 636c 6173  nal-upload..clas
│ │ │ -000f1ac0: 7320 656e 6162 6c65 5f73 7973 7465 6d64  s enable_systemd
│ │ │ -000f1ad0: 2d6a 6f75 726e 616c 2d75 706c 6f61 6420  -journal-upload 
│ │ │ -000f1ae0: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ -000f1af0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ -000f1b00: 6c6f 6164 273a 0a20 2020 2065 6e61 626c  load':.    enabl
│ │ │ -000f1b10: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -000f1b20: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -000f1b30: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -000f1b40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000f1bf0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000f1c00: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000f1c10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000f1ce0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000f1cf0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000f1d40: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000f1d50: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000f1d60: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000f1d70: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000f1d80: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ -000f1d90: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000f1da0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000f1db0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000f1dc0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000f1dd0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000f1de0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000f1df0: 2d20 7365 7276 6963 655f 7379 7374 656d  - service_system
│ │ │ -000f1e00: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ -000f1e10: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ -000f1e20: 3a20 456e 6162 6c65 2073 7973 7465 6d64  : Enable systemd
│ │ │ -000f1e30: 2d6a 6f75 726e 616c 2d75 706c 6f61 6420  -journal-upload 
│ │ │ -000f1e40: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -000f1e50: 2073 6572 7669 6365 2073 7973 7465 6d64   service systemd
│ │ │ -000f1e60: 2d6a 6f75 726e 616c 2d75 706c 6f61 640a  -journal-upload.
│ │ │ -000f1e70: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -000f1e80: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000f1e90: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -000f1ea0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000f1eb0: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -000f1ec0: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -000f1ed0: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ -000f1ee0: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ -000f1ef0: 7572 6e61 6c2d 7570 6c6f 6164 2053 6572  urnal-upload Ser
│ │ │ -000f1f00: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ -000f1f10: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ -000f1f20: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2020  urnal-upload.   
│ │ │ -000f1f30: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000f1f40: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -000f1f50: 6e61 6d65 3a20 7379 7374 656d 642d 6a6f  name: systemd-jo
│ │ │ -000f1f60: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2020  urnal-upload.   
│ │ │ -000f1f70: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -000f1f80: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -000f1f90: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -000f1fa0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -000f1fb0: 656e 3a0a 2020 2020 2d20 2722 7379 7374  en:.    - '"syst
│ │ │ -000f1fc0: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000f1fd0: 7465 2220 696e 2061 6e73 6962 6c65 5f66  te" in ansible_f
│ │ │ -000f1fe0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -000f1ff0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -000f2000: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000f2010: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000f2020: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000f2030: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000f2040: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000f2050: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -000f2060: 7276 6963 655f 7379 7374 656d 642d 6a6f  rvice_systemd-jo
│ │ │ -000f2070: 7572 6e61 6c2d 7570 6c6f 6164 5f65 6e61  urnal-upload_ena
│ │ │ -000f2080: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -000f2090: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -000f20a0: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -000f20b0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -000f20c0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000f20d0: 6573 270a 2020 2d20 2820 616e 7369 626c  es'.  - ( ansibl
│ │ │ -000f20e0: 655f 7669 7274 7561 6c69 7a61 7469 6f6e  e_virtualization
│ │ │ -000f20f0: 5f74 7970 6520 6e6f 7420 696e 205b 2264  _type not in ["d
│ │ │ -000f2100: 6f63 6b65 7222 2c20 226c 7863 222c 2022  ocker", "lxc", "
│ │ │ -000f2110: 6f70 656e 767a 222c 2022 706f 646d 616e  openvz", "podman
│ │ │ -000f2120: 222c 2022 636f 6e74 6169 6e65 7222 5d0a  ", "container"].
│ │ │ -000f2130: 2020 2020 616e 6420 2273 7973 7465 6d64      and "systemd
│ │ │ -000f2140: 2d6a 6f75 726e 616c 2d72 656d 6f74 6522  -journal-remote"
│ │ │ -000f2150: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000f2160: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
Complexity:low
Disrup │ │ │ -000f1cc0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000f1cd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000f1d10: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000f1d20: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +000f1890: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000f18a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000f18c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000f18e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000f18f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000f1930: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000f1940: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000f1950: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000f1960: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000f1970: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000f1980: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ +000f1990: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +000f19a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +000f19b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +000f19c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +000f19d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +000f19e0: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +000f19f0: 7669 6365 5f73 7973 7465 6d64 2d6a 6f75 vice_systemd-jou │ │ │ +000f1a00: 726e 616c 2d75 706c 6f61 645f 656e 6162 rnal-upload_enab │ │ │ +000f1a10: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ +000f1a20: 626c 6520 7379 7374 656d 642d 6a6f 7572 ble systemd-jour │ │ │ +000f1a30: 6e61 6c2d 7570 6c6f 6164 2053 6572 7669 nal-upload Servi │ │ │ +000f1a40: 6365 202d 2045 6e61 626c 6520 7365 7276 ce - Enable serv │ │ │ +000f1a50: 6963 6520 7379 7374 656d 642d 6a6f 7572 ice systemd-jour │ │ │ +000f1a60: 6e61 6c2d 7570 6c6f 6164 0a20 2062 6c6f nal-upload. blo │ │ │ +000f1a70: 636b 3a0a 0a20 202d 206e 616d 653a 2047 ck:.. - name: G │ │ │ +000f1a80: 6174 6865 7220 7468 6520 7061 636b 6167 ather the packag │ │ │ +000f1a90: 6520 6661 6374 730a 2020 2020 616e 7369 e facts. ansi │ │ │ +000f1aa0: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +000f1ab0: 6167 655f 6661 6374 733a 0a20 2020 2020 age_facts:. │ │ │ +000f1ac0: 206d 616e 6167 6572 3a20 6175 746f 0a0a manager: auto.. │ │ │ +000f1ad0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65 - name: Enable │ │ │ +000f1ae0: 2073 7973 7465 6d64 2d6a 6f75 726e 616c systemd-journal │ │ │ +000f1af0: 2d75 706c 6f61 6420 5365 7276 6963 6520 -upload Service │ │ │ +000f1b00: 2d20 456e 6162 6c65 2053 6572 7669 6365 - Enable Service │ │ │ +000f1b10: 2073 7973 7465 6d64 2d6a 6f75 726e 616c systemd-journal │ │ │ +000f1b20: 2d75 706c 6f61 640a 2020 2020 616e 7369 -upload. ansi │ │ │ +000f1b30: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ +000f1b40: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ +000f1b50: 2073 7973 7465 6d64 2d6a 6f75 726e 616c systemd-journal │ │ │ +000f1b60: 2d75 706c 6f61 640a 2020 2020 2020 656e -upload. en │ │ │ +000f1b70: 6162 6c65 643a 2074 7275 650a 2020 2020 abled: true. │ │ │ +000f1b80: 2020 7374 6174 653a 2073 7461 7274 6564 state: started │ │ │ +000f1b90: 0a20 2020 2020 206d 6173 6b65 643a 2066 . masked: f │ │ │ +000f1ba0: 616c 7365 0a20 2020 2077 6865 6e3a 0a20 alse. when:. │ │ │ +000f1bb0: 2020 202d 2027 2273 7973 7465 6d64 2d6a - '"systemd-j │ │ │ +000f1bc0: 6f75 726e 616c 2d72 656d 6f74 6522 2069 ournal-remote" i │ │ │ +000f1bd0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +000f1be0: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +000f1bf0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472 :. - enable_str │ │ │ +000f1c00: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +000f1c10: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +000f1c20: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +000f1c30: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +000f1c40: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +000f1c50: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ +000f1c60: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c _systemd-journal │ │ │ +000f1c70: 2d75 706c 6f61 645f 656e 6162 6c65 640a -upload_enabled. │ │ │ +000f1c80: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +000f1c90: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +000f1ca0: 3a0a 2020 2d20 2722 6c69 6e75 782d 6261 :. - '"linux-ba │ │ │ +000f1cb0: 7365 2220 696e 2061 6e73 6962 6c65 5f66 se" in ansible_f │ │ │ +000f1cc0: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ +000f1cd0: 202d 2028 2061 6e73 6962 6c65 5f76 6972 - ( ansible_vir │ │ │ +000f1ce0: 7475 616c 697a 6174 696f 6e5f 7479 7065 tualization_type │ │ │ +000f1cf0: 206e 6f74 2069 6e20 5b22 646f 636b 6572 not in ["docker │ │ │ +000f1d00: 222c 2022 6c78 6322 2c20 226f 7065 6e76 ", "lxc", "openv │ │ │ +000f1d10: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263 z", "podman", "c │ │ │ +000f1d20: 6f6e 7461 696e 6572 225d 0a20 2020 2061 ontainer"]. a │ │ │ +000f1d30: 6e64 2022 7379 7374 656d 642d 6a6f 7572 nd "systemd-jour │ │ │ +000f1d40: 6e61 6c2d 7265 6d6f 7465 2220 696e 2061 nal-remote" in a │ │ │ +000f1d50: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +000f1d60: 6b61 6765 7320 290a 3c2f 636f 6465 3e3c kages ).< │ │ │ +000f1d70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +000f1e20: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000f1e30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000f1eb0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000f1ec0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000f1ed0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000f1f10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000f1f20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000f1f40: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000f1f60: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +000f1f70: 6162 6c65 5f73 7973 7465 6d64 2d6a 6f75  able_systemd-jou
│ │ │ +000f1f80: 726e 616c 2d75 706c 6f61 640a 0a63 6c61  rnal-upload..cla
│ │ │ +000f1f90: 7373 2065 6e61 626c 655f 7379 7374 656d  ss enable_system
│ │ │ +000f1fa0: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000f1fb0: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ +000f1fc0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ +000f1fd0: 706c 6f61 6427 3a0a 2020 2020 656e 6162  pload':.    enab
│ │ │ +000f1fe0: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +000f1ff0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000f2000: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +000f2010: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +000f20d0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +000f20e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +000f2130: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +000f2140: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +000f2150: 3d20 5b22 7379 7374 656d 642d 6a6f 7572  = ["systemd-jour
│ │ │ +000f2160: 6e61 6c2d 7570 6c6f 6164 225d 0a3c 2f63  nal-upload"].
│ │ │ 000f2180: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -000f3050: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000f3060: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000f3070: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000f3080: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000f3090: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000f30a0: 7365 2220 6964 3d22 6964 3239 3322 3e3c se" id="id293">< │ │ │ -000f30b0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -000f30c0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -000f30d0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -000f30e0: 2273 7973 7465 6d64 2d6a 6f75 726e 616c "systemd-journal │ │ │ -000f30f0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265 d"].
Remediation │ │ │ -000f31b0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000f31c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000f3240: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000f3260: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000f32b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000f32e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -000f3300: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ -000f3310: 640a 0a63 6c61 7373 2065 6e61 626c 655f  d..class enable_
│ │ │ -000f3320: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ -000f3330: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ -000f3340: 7973 7465 6d64 2d6a 6f75 726e 616c 6427  ystemd-journald'
│ │ │ -000f3350: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -000f3360: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -000f3370: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -000f3380: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ -000f3440: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000f3450: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:< │ │ │ -000f3250: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000f3270: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000f32c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000f32d0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Comp │ │ │ -000f34e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000f34f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000f3510: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000f3530: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000f3540: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000f3580: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -000f3590: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -000f35a0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -000f35b0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -000f35c0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -000f35d0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -000f35e0: 3030 2d35 332d 5343 2d32 340a 2020 2d20 00-53-SC-24. - │ │ │ -000f35f0: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ -000f3600: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -000f3610: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -000f3620: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -000f3630: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -000f3640: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -000f3650: 202d 2073 6572 7669 6365 5f73 7973 7465 - service_syste │ │ │ -000f3660: 6d64 2d6a 6f75 726e 616c 645f 656e 6162 md-journald_enab │ │ │ -000f3670: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ -000f3680: 626c 6520 7379 7374 656d 642d 6a6f 7572 ble systemd-jour │ │ │ -000f3690: 6e61 6c64 2053 6572 7669 6365 202d 2045 nald Service - E │ │ │ -000f36a0: 6e61 626c 6520 7365 7276 6963 6520 7379 nable service sy │ │ │ -000f36b0: 7374 656d 642d 6a6f 7572 6e61 6c64 0a20 stemd-journald. │ │ │ -000f36c0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ -000f36d0: 653a 2047 6174 6865 7220 7468 6520 7061 e: Gather the pa │ │ │ -000f36e0: 636b 6167 6520 6661 6374 730a 2020 2020 ckage facts. │ │ │ -000f36f0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -000f3700: 7061 636b 6167 655f 6661 6374 733a 0a20 package_facts:. │ │ │ -000f3710: 2020 2020 206d 616e 6167 6572 3a20 6175 manager: au │ │ │ -000f3720: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e to.. - name: En │ │ │ -000f3730: 6162 6c65 2073 7973 7465 6d64 2d6a 6f75 able systemd-jou │ │ │ -000f3740: 726e 616c 6420 5365 7276 6963 6520 2d20 rnald Service - │ │ │ -000f3750: 456e 6162 6c65 2053 6572 7669 6365 2073 Enable Service s │ │ │ -000f3760: 7973 7465 6d64 2d6a 6f75 726e 616c 640a ystemd-journald. │ │ │ -000f3770: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -000f3780: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ -000f3790: 2020 206e 616d 653a 2073 7973 7465 6d64 name: systemd │ │ │ -000f37a0: 2d6a 6f75 726e 616c 640a 2020 2020 2020 -journald. │ │ │ -000f37b0: 656e 6162 6c65 643a 2074 7275 650a 2020 enabled: true. │ │ │ -000f37c0: 2020 2020 7374 6174 653a 2073 7461 7274 state: start │ │ │ -000f37d0: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ -000f37e0: 2066 616c 7365 0a20 2020 2077 6865 6e3a false. when: │ │ │ -000f37f0: 0a20 2020 202d 2027 2273 7973 7465 6d64 . - '"systemd │ │ │ -000f3800: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -000f3810: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -000f3820: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -000f3830: 302d 3533 2d53 432d 3234 0a20 202d 2065 0-53-SC-24. - e │ │ │ -000f3840: 6e61 626c 655f 7374 7261 7465 6779 0a20 nable_strategy. │ │ │ -000f3850: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -000f3860: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -000f3870: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -000f3880: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -000f3890: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -000f38a0: 2d20 7365 7276 6963 655f 7379 7374 656d - service_system │ │ │ -000f38b0: 642d 6a6f 7572 6e61 6c64 5f65 6e61 626c d-journald_enabl │ │ │ -000f38c0: 6564 0a20 202d 2073 7065 6369 616c 5f73 ed. - special_s │ │ │ -000f38d0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077 ervice_block. w │ │ │ -000f38e0: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ -000f38f0: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -000f3900: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.
< │ │ │ +000f3100: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f3110: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000f3160: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000f31a0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000f31b0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000f31c0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000f31d0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000f31e0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000f31f0: 542d 3830 302d 3533 2d53 432d 3234 0a20  T-800-53-SC-24. 
│ │ │ +000f3200: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000f3210: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000f3220: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000f3230: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000f3240: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000f3250: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000f3260: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +000f3270: 7374 656d 642d 6a6f 7572 6e61 6c64 5f65  stemd-journald_e
│ │ │ +000f3280: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ +000f3290: 456e 6162 6c65 2073 7973 7465 6d64 2d6a  Enable systemd-j
│ │ │ +000f32a0: 6f75 726e 616c 6420 5365 7276 6963 6520  ournald Service 
│ │ │ +000f32b0: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +000f32c0: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000f32d0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ +000f32e0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +000f32f0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +000f3300: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +000f3310: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ +000f3320: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ +000f3330: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ +000f3340: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ +000f3350: 6a6f 7572 6e61 6c64 2053 6572 7669 6365  journald Service
│ │ │ +000f3360: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +000f3370: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ +000f3380: 6c64 0a20 2020 2061 6e73 6962 6c65 2e62  ld.    ansible.b
│ │ │ +000f3390: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +000f33a0: 2020 2020 2020 6e61 6d65 3a20 7379 7374        name: syst
│ │ │ +000f33b0: 656d 642d 6a6f 7572 6e61 6c64 0a20 2020  emd-journald.   
│ │ │ +000f33c0: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +000f33d0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +000f33e0: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ +000f33f0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ +000f3400: 656e 3a0a 2020 2020 2d20 2722 7379 7374  en:.    - '"syst
│ │ │ +000f3410: 656d 6422 2069 6e20 616e 7369 626c 655f  emd" in ansible_
│ │ │ +000f3420: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +000f3430: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +000f3440: 2d38 3030 2d35 332d 5343 2d32 340a 2020  -800-53-SC-24.  
│ │ │ +000f3450: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000f3460: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000f3470: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000f3480: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000f3490: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000f34a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000f34b0: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ +000f34c0: 7465 6d64 2d6a 6f75 726e 616c 645f 656e  temd-journald_en
│ │ │ +000f34d0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +000f34e0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +000f34f0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +000f3500: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +000f3510: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000f3520: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +000f35e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000f35f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +000f30f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000f3120: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000f3130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000f3170: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000f3180: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +000f36c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000f36d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +000f3720: 6e63 6c75 6465 2065 6e61 626c 655f 7379  nclude enable_sy
│ │ │ +000f3730: 7374 656d 642d 6a6f 7572 6e61 6c64 0a0a  stemd-journald..
│ │ │ +000f3740: 636c 6173 7320 656e 6162 6c65 5f73 7973  class enable_sys
│ │ │ +000f3750: 7465 6d64 2d6a 6f75 726e 616c 6420 7b0a  temd-journald {.
│ │ │ +000f3760: 2020 7365 7276 6963 6520 7b27 7379 7374    service {'syst
│ │ │ +000f3770: 656d 642d 6a6f 7572 6e61 6c64 273a 0a20  emd-journald':. 
│ │ │ +000f3780: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +000f3790: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ +000f37a0: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ +000f37b0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +000f37c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +000f3870: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +000f3880: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +000f3890: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[customizat
│ │ │ +000f38e0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +000f38f0: 6e61 626c 6564 203d 205b 2273 7973 7465  nabled = ["syste
│ │ │ +000f3900: 6d64 2d6a 6f75 726e 616c 6422 5d0a 3c2f  md-journald"].
Remediat │ │ │ -001037c0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -001037d0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -001037e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00103830: 5d0a 6e61 6d65 203d 2022 7273 7973 6c6f  ].name = "rsyslo
│ │ │ -00103840: 6722 0a76 6572 7369 6f6e 203d 2022 2a22  g".version = "*"
│ │ │ -00103850: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00103910: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00103920: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +000f36a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000f36b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000f36f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000f3700: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -001039f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00103a00: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00103a50: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ -00103a60: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ -00103a70: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ -00103a80: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ -00103a90: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ -00103aa0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00103ab0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00103b70: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00103b80: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ -001039d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001039e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00103a20: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00103a30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00103c10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00103c20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00103c40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00103c60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00103c70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00103cb0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00103cc0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00103cd0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00103ce0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00103cf0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00103d00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00103d10: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00103d20: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -00103d30: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -00103d40: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00103d50: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00103d60: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -00103d70: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00103d80: 0a20 202d 2070 6163 6b61 6765 5f72 7379 . - package_rsy │ │ │ -00103d90: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a0a slog_installed.. │ │ │ -00103da0: 2d20 6e61 6d65 3a20 456e 7375 7265 2072 - name: Ensure r │ │ │ -00103db0: 7379 736c 6f67 2069 7320 696e 7374 616c syslog is instal │ │ │ -00103dc0: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -00103dd0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -00103de0: 2020 206e 616d 653a 2072 7379 736c 6f67 name: rsyslog │ │ │ -00103df0: 0a20 2020 2073 7461 7465 3a20 7072 6573 . state: pres │ │ │ -00103e00: 656e 740a 2020 7768 656e 3a20 2722 6c69 ent. when: '"li │ │ │ -00103e10: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -00103e20: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -00103e30: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -00103e40: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00103e50: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -00103e60: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00103e70: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -00103e80: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -00103e90: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00103ea0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00103eb0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -00103ec0: 6167 655f 7273 7973 6c6f 675f 696e 7374 age_rsyslog_inst │ │ │ -00103ed0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


< │ │ │ +001037e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001037f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00103800: 7365 2220 6964 3d22 6964 3332 3022 3e3c se" id="id320">< │ │ │ +00103810: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00103820: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00103830: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00103840: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00103850: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00103860: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00103870: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001038b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001038c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001038e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +001038f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00103910: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00103920: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00103930: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00103940: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00103950: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00103960: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +00103970: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00103980: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00103990: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +001039a0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +001039b0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +001039c0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +001039d0: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ +001039e0: 675f 696e 7374 616c 6c65 640a 0a2d 206e  g_installed..- n
│ │ │ +001039f0: 616d 653a 2045 6e73 7572 6520 7273 7973  ame: Ensure rsys
│ │ │ +00103a00: 6c6f 6720 6973 2069 6e73 7461 6c6c 6564  log is installed
│ │ │ +00103a10: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00103a20: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00103a30: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ +00103a40: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00103a50: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00103a60: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00103a70: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00103a80: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +00103a90: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00103aa0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00103ab0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00103ac0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00103ad0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00103ae0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00103af0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00103b00: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00103b10: 5f72 7379 736c 6f67 5f69 6e73 7461 6c6c  _rsyslog_install
│ │ │ +00103b20: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00103b30: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00103be0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00103bf0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00103c70: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00103c90: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00103ce0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00103d30: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ +00103d40: 696e 7374 616c 6c5f 7273 7973 6c6f 6720  install_rsyslog 
│ │ │ +00103d50: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +00103d60: 7379 736c 6f67 273a 0a20 2020 2065 6e73  syslog':.    ens
│ │ │ +00103d70: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00103d80: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00103da0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00103e40: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00103e50: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00103e60: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +00103eb0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2272 ages]].name = "r │ │ │ +00103ec0: 7379 736c 6f67 220a 7665 7273 696f 6e20 syslog".version │ │ │ +00103ed0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Re │ │ │ -001051e0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -001051f0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00105200: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00105210: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00105220: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00105230: 7365 2220 6964 3d22 6964 3332 3522 3e3c se" id="id325">< │ │ │ -00105240: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00105250: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00105260: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -00105270: 2272 7379 736c 6f67 225d 0a3c 2f63 6f64 "rsyslog"].Remed │ │ │ -00105330: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00105340: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +00103ca0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00103cb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00103cf0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00103d00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -001053f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00105410: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00105440: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001053d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001053e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00105400: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00105420: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00105430: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00105480: 2065 6e61 626c 655f 7273 7973 6c6f 670a enable_rsyslog. │ │ │ -00105490: 0a63 6c61 7373 2065 6e61 626c 655f 7273 .class enable_rs │ │ │ -001054a0: 7973 6c6f 6720 7b0a 2020 7365 7276 6963 yslog {. servic │ │ │ -001054b0: 6520 7b27 7273 7973 6c6f 6727 3a0a 2020 e {'rsyslog':. │ │ │ -001054c0: 2020 656e 6162 6c65 203d 2667 743b 2074 enable => t │ │ │ -001054d0: 7275 652c 0a20 2020 2065 6e73 7572 6520 rue,. ensure │ │ │ -001054e0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c => 'running', │ │ │ -001054f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediati │ │ │ -001055b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -001055c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00105640: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00105650: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00105660: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001056a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001056b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001056d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -001056f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00105700: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00105710: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00105720: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00105730: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00105740: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -00105750: 5542 5455 2d32 342d 3130 3032 3030 0a20  UBTU-24-100200. 
│ │ │ -00105760: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00105770: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -00105780: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00105790: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -001057a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -001057b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -001057c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -001057d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -001057e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -001057f0: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -00105800: 7973 6c6f 675f 656e 6162 6c65 640a 0a2d  yslog_enabled..-
│ │ │ -00105810: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ -00105820: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ -00105830: 456e 6162 6c65 2073 6572 7669 6365 2072  Enable service r
│ │ │ -00105840: 7379 736c 6f67 0a20 2062 6c6f 636b 3a0a  syslog.  block:.
│ │ │ -00105850: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00105860: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00105870: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00105880: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00105890: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -001058a0: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -001058b0: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ -001058c0: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ -001058d0: 6e61 626c 6520 5365 7276 6963 6520 7273  nable Service rs
│ │ │ -001058e0: 7973 6c6f 670a 2020 2020 616e 7369 626c  yslog.    ansibl
│ │ │ -001058f0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00105900: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -00105910: 7379 736c 6f67 0a20 2020 2020 2065 6e61  syslog.      ena
│ │ │ -00105920: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -00105930: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -00105940: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -00105950: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -00105960: 2020 2d20 2722 7273 7973 6c6f 6722 2069    - '"rsyslog" i
│ │ │ -00105970: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00105980: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00105990: 3a0a 2020 2d20 4449 5341 2d53 5449 472d  :.  - DISA-STIG-
│ │ │ -001059a0: 5542 5455 2d32 342d 3130 3032 3030 0a20  UBTU-24-100200. 
│ │ │ -001059b0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -001059c0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -001059d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -001059e0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -001059f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00105a00: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00105a10: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00105a20: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00105a30: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00105a40: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -00105a50: 7973 6c6f 675f 656e 6162 6c65 640a 2020  yslog_enabled.  
│ │ │ -00105a60: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00105a70: 655f 626c 6f63 6b0a 2020 7768 656e 3a0a  e_block.  when:.
│ │ │ -00105a80: 2020 2d20 2722 6c69 6e75 782d 6261 7365    - '"linux-base
│ │ │ -00105a90: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00105aa0: 7473 2e70 6163 6b61 6765 7327 0a20 202d  ts.packages'.  -
│ │ │ -00105ab0: 2027 2272 7379 736c 6f67 2220 696e 2061   '"rsyslog" in a
│ │ │ -00105ac0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00105ad0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
< │ │ │ +00105290: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001052a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001052f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00105330: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00105340: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00105350: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00105360: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00105370: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ +00105380: 412d 5354 4947 2d55 4254 552d 3234 2d31  A-STIG-UBTU-24-1
│ │ │ +00105390: 3030 3230 300a 2020 2d20 4e49 5354 2d38  00200.  - NIST-8
│ │ │ +001053a0: 3030 2d35 332d 4155 2d34 2831 290a 2020  00-53-AU-4(1).  
│ │ │ +001053b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +001053c0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +001053d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +001053e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001053f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00105400: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00105410: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00105420: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00105430: 7669 6365 5f72 7379 736c 6f67 5f65 6e61  vice_rsyslog_ena
│ │ │ +00105440: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ +00105450: 6162 6c65 2072 7379 736c 6f67 2053 6572  able rsyslog Ser
│ │ │ +00105460: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ +00105470: 7276 6963 6520 7273 7973 6c6f 670a 2020  rvice rsyslog.  
│ │ │ +00105480: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00105490: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +001054a0: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +001054b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +001054c0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +001054d0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +001054e0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +001054f0: 626c 6520 7273 7973 6c6f 6720 5365 7276  ble rsyslog Serv
│ │ │ +00105500: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ +00105510: 7669 6365 2072 7379 736c 6f67 0a20 2020  vice rsyslog.   
│ │ │ +00105520: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00105530: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00105540: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ +00105550: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ +00105560: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00105570: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ +00105580: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ +00105590: 6865 6e3a 0a20 2020 202d 2027 2272 7379  hen:.    - '"rsy
│ │ │ +001055a0: 736c 6f67 2220 696e 2061 6e73 6962 6c65  slog" in ansible
│ │ │ +001055b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +001055c0: 0a20 2074 6167 733a 0a20 202d 2044 4953  .  tags:.  - DIS
│ │ │ +001055d0: 412d 5354 4947 2d55 4254 552d 3234 2d31  A-STIG-UBTU-24-1
│ │ │ +001055e0: 3030 3230 300a 2020 2d20 4e49 5354 2d38  00200.  - NIST-8
│ │ │ +001055f0: 3030 2d35 332d 4155 2d34 2831 290a 2020  00-53-AU-4(1).  
│ │ │ +00105600: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00105610: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00105620: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00105630: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00105640: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00105650: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00105660: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00105670: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00105680: 7669 6365 5f72 7379 736c 6f67 5f65 6e61  vice_rsyslog_ena
│ │ │ +00105690: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +001056a0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +001056b0: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ +001056c0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +001056d0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +001056e0: 6573 270a 2020 2d20 2722 7273 7973 6c6f  es'.  - '"rsyslo
│ │ │ +001056f0: 6722 2069 6e20 616e 7369 626c 655f 6661  g" in ansible_fa
│ │ │ +00105700: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +001057c0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001057d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001057e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +00105280: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001052b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001052c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00105300: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00105310: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +00105880: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001058d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00105860: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00105890: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001058b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001058c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001058e0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +001058f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00105910: 7564 6520 656e 6162 6c65 5f72 7379 736c  ude enable_rsysl
│ │ │ +00105920: 6f67 0a0a 636c 6173 7320 656e 6162 6c65  og..class enable
│ │ │ +00105930: 5f72 7379 736c 6f67 207b 0a20 2073 6572  _rsyslog {.  ser
│ │ │ +00105940: 7669 6365 207b 2772 7379 736c 6f67 273a  vice {'rsyslog':
│ │ │ +00105950: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +00105960: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ +00105970: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ +00105980: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ +00105a40: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00105a50: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00105a60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00105aa0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00105ab0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00105ac0: 0a65 6e61 626c 6564 203d 205b 2272 7379  .enabled = ["rsy
│ │ │ +00105ad0: 736c 6f67 225d 0a3c 2f63 6f64 653e 3c2f  slog"].
Remed │ │ │ -00112ee0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00112ef0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00112fa0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00112fc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00112ff0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00112f80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00112f90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00112fb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00112fd0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00112fe0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00113020: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00113030: 6465 2072 656d 6f76 655f 6970 7461 626c de remove_iptabl │ │ │ -00113040: 6573 2d70 6572 7369 7374 656e 740a 0a63 es-persistent..c │ │ │ -00113050: 6c61 7373 2072 656d 6f76 655f 6970 7461 lass remove_ipta │ │ │ -00113060: 626c 6573 2d70 6572 7369 7374 656e 7420 bles-persistent │ │ │ -00113070: 7b0a 2020 7061 636b 6167 6520 7b20 2769 {. package { 'i │ │ │ -00113080: 7074 6162 6c65 732d 7065 7273 6973 7465 ptables-persiste │ │ │ -00113090: 6e74 273a 0a20 2020 2065 6e73 7572 6520 nt':. ensure │ │ │ -001130a0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ -001130b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -00113170: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00113180: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00113200: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00113210: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00113230: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00113240: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00113260: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00113280: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -001132b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -001132c0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -001132d0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -001132e0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -001132f0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00113300: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00113310: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00113320: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00113330: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00113340: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00113350: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00113360: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00113370: 655f 6970 7461 626c 6573 2d70 6572 7369  e_iptables-persi
│ │ │ -00113380: 7374 656e 745f 7265 6d6f 7665 640a 0a2d  stent_removed..-
│ │ │ -00113390: 206e 616d 653a 2027 5265 6d6f 7665 2069   name: 'Remove i
│ │ │ -001133a0: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -001133b0: 6e74 2050 6163 6b61 6765 3a20 456e 7375  nt Package: Ensu
│ │ │ -001133c0: 7265 2069 7074 6162 6c65 732d 7065 7273  re iptables-pers
│ │ │ -001133d0: 6973 7465 6e74 2069 7320 7265 6d6f 7665  istent is remove
│ │ │ -001133e0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -001133f0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00113400: 2020 6e61 6d65 3a20 6970 7461 626c 6573    name: iptables
│ │ │ -00113410: 2d70 6572 7369 7374 656e 740a 2020 2020  -persistent.    
│ │ │ -00113420: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00113430: 7768 656e 3a20 2722 7566 7722 2069 6e20  when: '"ufw" in 
│ │ │ -00113440: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00113450: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -00113460: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00113470: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00113480: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00113490: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -001134a0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -001134b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -001134c0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -001134d0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -001134e0: 656e 745f 7265 6d6f 7665 640a 3c2f 636f  ent_removed.
Comp │ │ │ +00112f80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00112f90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00112fb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00112fd0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00112fe0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00113020: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00113030: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00113040: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00113050: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00113060: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00113070: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00113080: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00113090: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +001130a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +001130b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +001130c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +001130d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +001130e0: 6163 6b61 6765 5f69 7074 6162 6c65 732d  ackage_iptables-
│ │ │ +001130f0: 7065 7273 6973 7465 6e74 5f72 656d 6f76  persistent_remov
│ │ │ +00113100: 6564 0a0a 2d20 6e61 6d65 3a20 2752 656d  ed..- name: 'Rem
│ │ │ +00113110: 6f76 6520 6970 7461 626c 6573 2d70 6572  ove iptables-per
│ │ │ +00113120: 7369 7374 656e 7420 5061 636b 6167 653a  sistent Package:
│ │ │ +00113130: 2045 6e73 7572 6520 6970 7461 626c 6573   Ensure iptables
│ │ │ +00113140: 2d70 6572 7369 7374 656e 7420 6973 2072  -persistent is r
│ │ │ +00113150: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00113160: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00113170: 653a 0a20 2020 206e 616d 653a 2069 7074  e:.    name: ipt
│ │ │ +00113180: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +00113190: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +001131a0: 6e74 0a20 2077 6865 6e3a 2027 2275 6677  nt.  when: '"ufw
│ │ │ +001131b0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +001131c0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +001131d0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +001131e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +001131f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00113200: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00113210: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00113220: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00113230: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00113240: 6b61 6765 5f69 7074 6162 6c65 732d 7065  kage_iptables-pe
│ │ │ +00113250: 7273 6973 7465 6e74 5f72 656d 6f76 6564  rsistent_removed
│ │ │ +00113260: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00113320: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00113330: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00113400: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00113410: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00113460: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00113470: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +00113480: 656e 740a 0a63 6c61 7373 2072 656d 6f76  ent..class remov
│ │ │ +00113490: 655f 6970 7461 626c 6573 2d70 6572 7369  e_iptables-persi
│ │ │ +001134a0: 7374 656e 7420 7b0a 2020 7061 636b 6167  stent {.  packag
│ │ │ +001134b0: 6520 7b20 2769 7074 6162 6c65 732d 7065  e { 'iptables-pe
│ │ │ +001134c0: 7273 6973 7465 6e74 273a 0a20 2020 2065  rsistent':.    e
│ │ │ +001134d0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +001134e0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00113500: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00113510: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00113520: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00113530: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00113540: 6433 3532 2220 7461 6269 6e64 6578 3d22 d352" tabindex=" │ │ │ 00113550: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -95715,267 +95715,267 @@ │ │ │ 00175e20: 2220 6461 7461 2d74 6172 6765 743d 2223 " data-target="# │ │ │ 00175e30: 6964 3435 3922 2074 6162 696e 6465 783d id459" tabindex= │ │ │ 00175e40: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ 00175e50: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ 00175e60: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ 00175e70: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ 00175e80: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -00175e90: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00175ea0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00175eb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00175f00: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00175f10: 6573 5d0a 6d61 736b 6564 203d 205b 2262 es].masked = ["b │ │ │ -00175f20: 6c75 6574 6f6f 7468 225d 0a3c 2f63 6f64 luetooth"].Remed │ │ │ -00175fe0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ -00175ff0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...

Complexity:low
Disrup │ │ │ +001133e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +001133f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00113430: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00113440: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00176090: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001760a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001760d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001760e0: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ -00176130: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ -00176140: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ -00176150: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ -00176160: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ -00176170: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ -00176180: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ -00176190: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ -001761a0: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ -001761b0: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ -001761c0: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ -001761d0: 626c 7565 746f 6f74 682e 7365 7276 6963  bluetooth.servic
│ │ │ -001761e0: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ -001761f0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ -00176200: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ -00176210: 2020 2d20 6e61 6d65 3a20 626c 7565 746f    - name: blueto
│ │ │ -00176220: 6f74 682e 736f 636b 6574 0a20 2020 2020  oth.socket.     
│ │ │ -00176230: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00176240: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -00176250: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.Remediation
│ │ │ -00176310: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ -00176320: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ -001763f0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00176440: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
C │ │ │ -00176080: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001760b0: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ -001760c0: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ -00176100: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00176110: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -001763b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -001763d0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00176420: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00176430: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ -00176460: 6c65 5f62 6c75 6574 6f6f 7468 0a0a 636c  le_bluetooth..cl
│ │ │ -00176470: 6173 7320 6469 7361 626c 655f 626c 7565  ass disable_blue
│ │ │ -00176480: 746f 6f74 6820 7b0a 2020 7365 7276 6963  tooth {.  servic
│ │ │ -00176490: 6520 7b27 626c 7565 746f 6f74 6827 3a0a  e {'bluetooth':.
│ │ │ -001764a0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -001764b0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -001764c0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -001764d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00176590: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -001765a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00176650: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00176670: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001766a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00176630: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00176640: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00176660: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00176680: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00176690: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -001766d0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001766e0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -001766f0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00176700: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00176710: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00176720: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00176730: 3030 2d31 3731 2d33 2e31 2e31 360a 2020 00-171-3.1.16. │ │ │ -00176740: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -00176750: 2d31 3828 3329 0a20 202d 204e 4953 542d -18(3). - NIST- │ │ │ -00176760: 3830 302d 3533 2d41 432d 3138 2861 290a 800-53-AC-18(a). │ │ │ -00176770: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00176780: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -00176790: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ -001767a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -001767b0: 434d 2d37 2862 290a 2020 2d20 4e49 5354 CM-7(b). - NIST │ │ │ -001767c0: 2d38 3030 2d35 332d 4d50 2d37 0a20 202d -800-53-MP-7. - │ │ │ -001767d0: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -001767e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -001767f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00176800: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00176810: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -00176820: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00176830: 0a20 202d 2073 6572 7669 6365 5f62 6c75 . - service_blu │ │ │ -00176840: 6574 6f6f 7468 5f64 6973 6162 6c65 640a etooth_disabled. │ │ │ -00176850: 0a2d 206e 616d 653a 2044 6973 6162 6c65 .- name: Disable │ │ │ -00176860: 2042 6c75 6574 6f6f 7468 2053 6572 7669 Bluetooth Servi │ │ │ -00176870: 6365 202d 2044 6973 6162 6c65 2073 6572 ce - Disable ser │ │ │ -00176880: 7669 6365 2062 6c75 6574 6f6f 7468 0a20 vice bluetooth. │ │ │ -00176890: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ -001768a0: 653a 2044 6973 6162 6c65 2042 6c75 6574 e: Disable Bluet │ │ │ -001768b0: 6f6f 7468 2053 6572 7669 6365 202d 2043 ooth Service - C │ │ │ -001768c0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053 ollect systemd S │ │ │ -001768d0: 6572 7669 6365 7320 5072 6573 656e 7420 ervices Present │ │ │ -001768e0: 696e 2074 6865 2053 7973 7465 6d0a 2020 in the System. │ │ │ -001768f0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -00176900: 6e2e 636f 6d6d 616e 643a 2073 7973 7465 n.command: syste │ │ │ -00176910: 6d63 746c 202d 7120 6c69 7374 2d75 6e69 mctl -q list-uni │ │ │ -00176920: 742d 6669 6c65 7320 2d2d 7479 7065 2073 t-files --type s │ │ │ -00176930: 6572 7669 6365 0a20 2020 2072 6567 6973 ervice. regis │ │ │ -00176940: 7465 723a 2073 6572 7669 6365 5f65 7869 ter: service_exi │ │ │ -00176950: 7374 730a 2020 2020 6368 616e 6765 645f sts. changed_ │ │ │ -00176960: 7768 656e 3a20 6661 6c73 650a 2020 2020 when: false. │ │ │ -00176970: 6661 696c 6564 5f77 6865 6e3a 2073 6572 failed_when: ser │ │ │ -00176980: 7669 6365 5f65 7869 7374 732e 7263 206e vice_exists.rc n │ │ │ -00176990: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ -001769a0: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ -001769b0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ -001769c0: 7361 626c 6520 426c 7565 746f 6f74 6820 sable Bluetooth │ │ │ -001769d0: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ -001769e0: 2062 6c75 6574 6f6f 7468 2e73 6572 7669 bluetooth.servi │ │ │ -001769f0: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ -00176a00: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00176a10: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -00176a20: 6e61 6d65 3a20 626c 7565 746f 6f74 682e name: bluetooth. │ │ │ -00176a30: 7365 7276 6963 650a 2020 2020 2020 7374 service. st │ │ │ -00176a40: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ -00176a50: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ -00176a60: 650a 2020 2020 2020 6d61 736b 6564 3a20 e. masked: │ │ │ -00176a70: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ -00176a80: 6572 7669 6365 5f65 7869 7374 732e 7374 ervice_exists.st │ │ │ -00176a90: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ -00176aa0: 6172 6368 2822 626c 7565 746f 6f74 682e arch("bluetooth. │ │ │ -00176ab0: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ -00176ac0: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ -00176ad0: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ -00176ae0: 2045 7869 7374 7320 2d20 626c 7565 746f Exists - blueto │ │ │ -00176af0: 6f74 682e 736f 636b 6574 0a20 2020 2061 oth.socket. a │ │ │ -00176b00: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ -00176b10: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ -00176b20: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ -00176b30: 696c 6573 2062 6c75 6574 6f6f 7468 2e73 iles bluetooth.s │ │ │ -00176b40: 6f63 6b65 740a 2020 2020 7265 6769 7374 ocket. regist │ │ │ -00176b50: 6572 3a20 736f 636b 6574 5f66 696c 655f er: socket_file_ │ │ │ -00176b60: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ -00176b70: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ -00176b80: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ -00176b90: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -00176ba0: 7473 2e72 6320 6e6f 7420 696e 205b 302c ts.rc not in [0, │ │ │ -00176bb0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f 1]. check_mo │ │ │ -00176bc0: 6465 3a20 6661 6c73 650a 0a20 202d 206e de: false.. - n │ │ │ -00176bd0: 616d 653a 2044 6973 6162 6c65 2042 6c75 ame: Disable Blu │ │ │ -00176be0: 6574 6f6f 7468 2053 6572 7669 6365 202d etooth Service - │ │ │ -00176bf0: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ -00176c00: 626c 7565 746f 6f74 680a 2020 2020 616e bluetooth. an │ │ │ -00176c10: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ -00176c20: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ -00176c30: 653a 2062 6c75 6574 6f6f 7468 2e73 6f63 e: bluetooth.soc │ │ │ -00176c40: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ -00176c50: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ -00176c60: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -00176c70: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ -00176c80: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ -00176c90: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ -00176ca0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ -00176cb0: 6172 6368 2822 626c 7565 746f 6f74 682e arch("bluetooth. │ │ │ -00176cc0: 736f 636b 6574 222c 206d 756c 7469 6c69 socket", multili │ │ │ -00176cd0: 6e65 3d54 7275 6529 0a20 2074 6167 733a ne=True). tags: │ │ │ -00176ce0: 0a20 202d 204e 4953 542d 3830 302d 3137 . - NIST-800-17 │ │ │ -00176cf0: 312d 332e 312e 3136 0a20 202d 204e 4953 1-3.1.16. - NIS │ │ │ -00176d00: 542d 3830 302d 3533 2d41 432d 3138 2833 T-800-53-AC-18(3 │ │ │ -00176d10: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00176d20: 332d 4143 2d31 3828 6129 0a20 202d 204e 3-AC-18(a). - N │ │ │ -00176d30: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00176d40: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -00176d50: 3533 2d43 4d2d 3728 6129 0a20 202d 204e 53-CM-7(a). - N │ │ │ -00176d60: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ -00176d70: 6229 0a20 202d 204e 4953 542d 3830 302d b). - NIST-800- │ │ │ -00176d80: 3533 2d4d 502d 370a 2020 2d20 6469 7361 53-MP-7. - disa │ │ │ -00176d90: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00176da0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00176db0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00176dc0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -00176dd0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -00176de0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00176df0: 7365 7276 6963 655f 626c 7565 746f 6f74 service_bluetoot │ │ │ -00176e00: 685f 6469 7361 626c 6564 0a20 202d 2073 h_disabled. - s │ │ │ -00176e10: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ -00176e20: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c lock. when: '"l │ │ │ -00176e30: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ -00176e40: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -00176e50: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70 ages'.

│ │ │ +00175eb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00175f50: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00175fa0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00175fe0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00175ff0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00176000: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00176010: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00176020: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00176030: 542d 3830 302d 3137 312d 332e 312e 3136  T-800-171-3.1.16
│ │ │ +00176040: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00176050: 2d41 432d 3138 2833 290a 2020 2d20 4e49  -AC-18(3).  - NI
│ │ │ +00176060: 5354 2d38 3030 2d35 332d 4143 2d31 3828  ST-800-53-AC-18(
│ │ │ +00176070: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00176080: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00176090: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001760a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001760b0: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ +001760c0: 4953 542d 3830 302d 3533 2d4d 502d 370a  IST-800-53-MP-7.
│ │ │ +001760d0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001760e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001760f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00176100: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00176110: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00176120: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00176130: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00176140: 626c 7565 746f 6f74 685f 6469 7361 626c  bluetooth_disabl
│ │ │ +00176150: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +00176160: 626c 6520 426c 7565 746f 6f74 6820 5365  ble Bluetooth Se
│ │ │ +00176170: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +00176180: 7365 7276 6963 6520 626c 7565 746f 6f74  service bluetoot
│ │ │ +00176190: 680a 2020 626c 6f63 6b3a 0a0a 2020 2d20  h.  block:..  - 
│ │ │ +001761a0: 6e61 6d65 3a20 4469 7361 626c 6520 426c  name: Disable Bl
│ │ │ +001761b0: 7565 746f 6f74 6820 5365 7276 6963 6520  uetooth Service 
│ │ │ +001761c0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +001761d0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +001761e0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +001761f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00176200: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +00176210: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +00176220: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +00176230: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +00176240: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +00176250: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00176260: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00176270: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00176280: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +00176290: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +001762a0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +001762b0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +001762c0: 2044 6973 6162 6c65 2042 6c75 6574 6f6f   Disable Bluetoo
│ │ │ +001762d0: 7468 2053 6572 7669 6365 202d 2045 6e73  th Service - Ens
│ │ │ +001762e0: 7572 6520 626c 7565 746f 6f74 682e 7365  ure bluetooth.se
│ │ │ +001762f0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +00176300: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00176310: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00176320: 2020 206e 616d 653a 2062 6c75 6574 6f6f     name: bluetoo
│ │ │ +00176330: 7468 2e73 6572 7669 6365 0a20 2020 2020  th.service.     
│ │ │ +00176340: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00176350: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00176360: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +00176370: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00176380: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00176390: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +001763a0: 2073 6561 7263 6828 2262 6c75 6574 6f6f   search("bluetoo
│ │ │ +001763b0: 7468 2e73 6572 7669 6365 222c 206d 756c  th.service", mul
│ │ │ +001763c0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +001763d0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +001763e0: 6b65 7420 4578 6973 7473 202d 2062 6c75  ket Exists - blu
│ │ │ +001763f0: 6574 6f6f 7468 2e73 6f63 6b65 740a 2020  etooth.socket.  
│ │ │ +00176400: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00176410: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00176420: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00176430: 742d 6669 6c65 7320 626c 7565 746f 6f74  t-files bluetoot
│ │ │ +00176440: 682e 736f 636b 6574 0a20 2020 2072 6567  h.socket.    reg
│ │ │ +00176450: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +00176460: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +00176470: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00176480: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00176490: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +001764a0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +001764b0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +001764c0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +001764d0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +001764e0: 426c 7565 746f 6f74 6820 5365 7276 6963  Bluetooth Servic
│ │ │ +001764f0: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00176500: 6574 2062 6c75 6574 6f6f 7468 0a20 2020  et bluetooth.   
│ │ │ +00176510: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00176520: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00176530: 6e61 6d65 3a20 626c 7565 746f 6f74 682e  name: bluetooth.
│ │ │ +00176540: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +00176550: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00176560: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00176570: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00176580: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +00176590: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +001765a0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +001765b0: 2073 6561 7263 6828 2262 6c75 6574 6f6f   search("bluetoo
│ │ │ +001765c0: 7468 2e73 6f63 6b65 7422 2c20 6d75 6c74  th.socket", mult
│ │ │ +001765d0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +001765e0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +001765f0: 2d31 3731 2d33 2e31 2e31 360a 2020 2d20  -171-3.1.16.  - 
│ │ │ +00176600: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ +00176610: 3828 3329 0a20 202d 204e 4953 542d 3830  8(3).  - NIST-80
│ │ │ +00176620: 302d 3533 2d41 432d 3138 2861 290a 2020  0-53-AC-18(a).  
│ │ │ +00176630: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00176640: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00176650: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00176660: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00176670: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ +00176680: 3030 2d35 332d 4d50 2d37 0a20 202d 2064  00-53-MP-7.  - d
│ │ │ +00176690: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +001766a0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +001766b0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001766c0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +001766d0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001766e0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001766f0: 202d 2073 6572 7669 6365 5f62 6c75 6574   - service_bluet
│ │ │ +00176700: 6f6f 7468 5f64 6973 6162 6c65 640a 2020  ooth_disabled.  
│ │ │ +00176710: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +00176720: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +00176730: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00176740: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00176750: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00176760: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00176810: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ +00176820: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00176830: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +00175f30: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00175f60: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00175f80: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00175f90: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00175fb0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00175fc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Reboot:true │ │ │ +00176920: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ +00176960: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ +00176970: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ +00176980: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ +00176990: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ +001769a0: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ +001769b0: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ +001769c0: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ +001769d0: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ +001769e0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ +001769f0: 2020 2020 2020 2d20 6e61 6d65 3a20 626c        - name: bl
│ │ │ +00176a00: 7565 746f 6f74 682e 7365 7276 6963 650a  uetooth.service.
│ │ │ +00176a10: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +00176a20: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +00176a30: 6173 6b3a 2074 7275 650a 2020 2020 2020  ask: true.      
│ │ │ +00176a40: 2d20 6e61 6d65 3a20 626c 7565 746f 6f74  - name: bluetoot
│ │ │ +00176a50: 682e 736f 636b 6574 0a20 2020 2020 2020  h.socket.       
│ │ │ +00176a60: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00176a70: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ +00176a80: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ +00176a90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +00176b40: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00176b50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Com │ │ │ +001768b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001768e0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +001768f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ +00176930: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00176940: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00176bd0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00176bf0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00176c40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +00176c90: 5f62 6c75 6574 6f6f 7468 0a0a 636c 6173  _bluetooth..clas
│ │ │ +00176ca0: 7320 6469 7361 626c 655f 626c 7565 746f  s disable_blueto
│ │ │ +00176cb0: 6f74 6820 7b0a 2020 7365 7276 6963 6520  oth {.  service 
│ │ │ +00176cc0: 7b27 626c 7565 746f 6f74 6827 3a0a 2020  {'bluetooth':.  
│ │ │ +00176cd0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +00176ce0: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +00176cf0: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +00176d00: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00176d10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00176dc0: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00176dd0: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00176de0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[customizat
│ │ │ +00176e30: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00176e40: 6173 6b65 6420 3d20 5b22 626c 7565 746f  asked = ["blueto
│ │ │ +00176e50: 6f74 6822 5d0a 3c2f 636f 6465 3e3c 2f70  oth"].

Re │ │ │ -001e2600: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -001e2610: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -001e2620: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +00176c00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00176c10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00176c50: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00176c60: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -001e26c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -001e2710: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -001e2750: 636c 7564 6520 7265 6d6f 7665 5f61 7574  clude remove_aut
│ │ │ -001e2760: 6f66 730a 0a63 6c61 7373 2072 656d 6f76  ofs..class remov
│ │ │ -001e2770: 655f 6175 746f 6673 207b 0a20 2070 6163  e_autofs {.  pac
│ │ │ -001e2780: 6b61 6765 207b 2027 6175 746f 6673 273a  kage { 'autofs':
│ │ │ -001e2790: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -001e27a0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -001e27b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -001e27c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -001e2870: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -001e2880: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -001e26a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -001e26d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -001e26f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -001e2700: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -001e2720: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -001e2730: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -001e2900: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001e2920: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001e2970: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -001e29a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Remov
│ │ │ -001e29c0: 6520 6175 746f 6673 2050 6163 6b61 6765  e autofs Package
│ │ │ -001e29d0: 3a20 456e 7375 7265 2061 7574 6f66 7320  : Ensure autofs 
│ │ │ -001e29e0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -001e29f0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -001e2a00: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -001e2a10: 2061 7574 6f66 730a 2020 2020 7374 6174   autofs.    stat
│ │ │ -001e2a20: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -001e2a30: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -001e2a40: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -001e2a50: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -001e2a60: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -001e2a70: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -001e2a80: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -001e2a90: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -001e2aa0: 7574 6f66 735f 7265 6d6f 7665 640a 3c2f  utofs_removed.
low
Disr │ │ │ -001e2930: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001e2940: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001e2980: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -001e2990: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +001e26b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001e26c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001e2710: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +001e2750: 6e61 6d65 3a20 2752 656d 6f76 6520 6175  name: 'Remove au
│ │ │ +001e2760: 746f 6673 2050 6163 6b61 6765 3a20 456e  tofs Package: En
│ │ │ +001e2770: 7375 7265 2061 7574 6f66 7320 6973 2072  sure autofs is r
│ │ │ +001e2780: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +001e2790: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +001e27a0: 653a 0a20 2020 206e 616d 653a 2061 7574  e:.    name: aut
│ │ │ +001e27b0: 6f66 730a 2020 2020 7374 6174 653a 2061  ofs.    state: a
│ │ │ +001e27c0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +001e27d0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +001e27e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +001e27f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +001e2800: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +001e2810: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001e2820: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001e2830: 202d 2070 6163 6b61 6765 5f61 7574 6f66   - package_autof
│ │ │ +001e2840: 735f 7265 6d6f 7665 640a 3c2f 636f 6465  s_removed.
Remedi │ │ │ +001e2900: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +001e2910: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001e2920: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001e2950: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ +001e26a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001e26d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001e26e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001e2720: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +001e2730: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +001e29c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001e29e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001e2a10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +001e29a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001e29b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001e29f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001e2a00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +001e2a50: 6520 7265 6d6f 7665 5f61 7574 6f66 730a e remove_autofs. │ │ │ +001e2a60: 0a63 6c61 7373 2072 656d 6f76 655f 6175 .class remove_au │ │ │ +001e2a70: 746f 6673 207b 0a20 2070 6163 6b61 6765 tofs {. package │ │ │ +001e2a80: 207b 2027 6175 746f 6673 273a 0a20 2020 { 'autofs':. │ │ │ +001e2a90: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ +001e2aa0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.

Remediatio │ │ │ -001e42e0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -001e42f0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -001e4300: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -001e4350: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -001e4360: 6b65 6420 3d20 5b22 6175 746f 6673 225d  ked = ["autofs"]
│ │ │ -001e4370: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Kub │ │ │ -001e4430: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -001e4440: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001e44d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001e44f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:mediumReboot │ │ │ -001e4520: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true │ │ │ -001e4540: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -001e4570: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ -001e4580: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ -001e4590: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ -001e45a0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ -001e45b0: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ -001e45c0: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ -001e45d0: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ -001e45e0: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ -001e45f0: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ -001e4600: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ -001e4610: 6e61 6d65 3a20 6175 746f 6673 2e73 6572  name: autofs.ser
│ │ │ -001e4620: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ -001e4630: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -001e4640: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ -001e4650: 2020 2020 202d 206e 616d 653a 2061 7574       - name: aut
│ │ │ -001e4660: 6f66 732e 736f 636b 6574 0a20 2020 2020  ofs.socket.     
│ │ │ -001e4670: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -001e4680: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -001e4690: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.
Remediation │ │ │ -001e4750: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -001e4760: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001e47f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001e4810: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001e4830: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001e4860: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001e4870: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -001e4880: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -001e48a0: 6c65 5f61 7574 6f66 730a 0a63 6c61 7373  le_autofs..class
│ │ │ -001e48b0: 2064 6973 6162 6c65 5f61 7574 6f66 7320   disable_autofs 
│ │ │ -001e48c0: 7b0a 2020 7365 7276 6963 6520 7b27 6175  {.  service {'au
│ │ │ -001e48d0: 746f 6673 273a 0a20 2020 2065 6e61 626c  tofs':.    enabl
│ │ │ -001e48e0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -001e48f0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001e4900: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -001e4910: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -001e49d0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001e49e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001e4ab0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001e4ac0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -001e4b20: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -001e4b30: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -001e4b40: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -001e4b50: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -001e4b60: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -001e4b70: 342e 360a 2020 2d20 4e49 5354 2d38 3030  4.6.  - NIST-800
│ │ │ -001e4b80: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -001e4b90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -001e4ba0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -001e4bb0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -001e4bc0: 4e49 5354 2d38 3030 2d35 332d 4d50 2d37  NIST-800-53-MP-7
│ │ │ -001e4bd0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -001e4be0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -001e4bf0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -001e4c00: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -001e4c10: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -001e4c20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001e4c30: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -001e4c40: 5f61 7574 6f66 735f 6469 7361 626c 6564  _autofs_disabled
│ │ │ -001e4c50: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -001e4c60: 6520 7468 6520 4175 746f 6d6f 756e 7465  e the Automounte
│ │ │ -001e4c70: 7220 2d20 4469 7361 626c 6520 7365 7276  r - Disable serv
│ │ │ -001e4c80: 6963 6520 6175 746f 6673 0a20 2062 6c6f  ice autofs.  blo
│ │ │ -001e4c90: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -001e4ca0: 6973 6162 6c65 2074 6865 2041 7574 6f6d  isable the Autom
│ │ │ -001e4cb0: 6f75 6e74 6572 202d 2043 6f6c 6c65 6374  ounter - Collect
│ │ │ -001e4cc0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -001e4cd0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -001e4ce0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -001e4cf0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -001e4d00: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -001e4d10: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -001e4d20: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -001e4d30: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -001e4d40: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -001e4d50: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -001e4d60: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -001e4d70: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -001e4d80: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -001e4d90: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -001e4da0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -001e4db0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -001e4dc0: 7468 6520 4175 746f 6d6f 756e 7465 7220  the Automounter 
│ │ │ -001e4dd0: 2d20 456e 7375 7265 2061 7574 6f66 732e  - Ensure autofs.
│ │ │ -001e4de0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -001e4df0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -001e4e00: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -001e4e10: 2020 2020 206e 616d 653a 2061 7574 6f66       name: autof
│ │ │ -001e4e20: 732e 7365 7276 6963 650a 2020 2020 2020  s.service.      
│ │ │ -001e4e30: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -001e4e40: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -001e4e50: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -001e4e60: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -001e4e70: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -001e4e80: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -001e4e90: 7365 6172 6368 2822 6175 746f 6673 2e73  search("autofs.s
│ │ │ -001e4ea0: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -001e4eb0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -001e4ec0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -001e4ed0: 4578 6973 7473 202d 2061 7574 6f66 732e  Exists - autofs.
│ │ │ -001e4ee0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -001e4ef0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -001e4f00: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -001e4f10: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -001e4f20: 2061 7574 6f66 732e 736f 636b 6574 0a20   autofs.socket. 
│ │ │ -001e4f30: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -001e4f40: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -001e4f50: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -001e4f60: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -001e4f70: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -001e4f80: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -001e4f90: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -001e4fa0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -001e4fb0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -001e4fc0: 7361 626c 6520 7468 6520 4175 746f 6d6f  sable the Automo
│ │ │ -001e4fd0: 756e 7465 7220 2d20 4469 7361 626c 6520  unter - Disable 
│ │ │ -001e4fe0: 536f 636b 6574 2061 7574 6f66 730a 2020  Socket autofs.  
│ │ │ -001e4ff0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -001e5000: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -001e5010: 206e 616d 653a 2061 7574 6f66 732e 736f   name: autofs.so
│ │ │ -001e5020: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -001e5030: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -001e5040: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -001e5050: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -001e5060: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -001e5070: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -001e5080: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -001e5090: 6561 7263 6828 2261 7574 6f66 732e 736f  earch("autofs.so
│ │ │ -001e50a0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -001e50b0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -001e50c0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -001e50d0: 332e 342e 360a 2020 2d20 4e49 5354 2d38  3.4.6.  - NIST-8
│ │ │ -001e50e0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -001e50f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -001e5100: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -001e5110: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -001e5120: 2d20 4e49 5354 2d38 3030 2d35 332d 4d50  - NIST-800-53-MP
│ │ │ -001e5130: 2d37 0a20 202d 2064 6973 6162 6c65 5f73  -7.  - disable_s
│ │ │ -001e5140: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001e5150: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001e5160: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001e5170: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -001e5180: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -001e5190: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -001e51a0: 6365 5f61 7574 6f66 735f 6469 7361 626c  ce_autofs_disabl
│ │ │ -001e51b0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -001e51c0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -001e51d0: 6865 6e3a 2028 2022 6175 746f 6673 2220  hen: ( "autofs" 
│ │ │ -001e51e0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -001e51f0: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ -001e5200: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -001e5210: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -001e5220: 6167 6573 0a20 2020 2029 0a3c 2f63 6f64  ages.    ).
< │ │ │ +001e4370: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001e43b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -001e4a90: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001e4aa0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001e4ae0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001e4af0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +001e4380: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +001e43a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001e43d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001e43f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +001e4420: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +001e4430: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +001e4440: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +001e4450: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +001e4460: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +001e4470: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +001e4480: 3731 2d33 2e34 2e36 0a20 202d 204e 4953  71-3.4.6.  - NIS
│ │ │ +001e4490: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001e44a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001e44b0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +001e44c0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +001e44d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001e44e0: 2d4d 502d 370a 2020 2d20 6469 7361 626c  -MP-7.  - disabl
│ │ │ +001e44f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001e4500: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001e4510: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001e4520: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001e4530: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001e4540: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001e4550: 7276 6963 655f 6175 746f 6673 5f64 6973  rvice_autofs_dis
│ │ │ +001e4560: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +001e4570: 6973 6162 6c65 2074 6865 2041 7574 6f6d  isable the Autom
│ │ │ +001e4580: 6f75 6e74 6572 202d 2044 6973 6162 6c65  ounter - Disable
│ │ │ +001e4590: 2073 6572 7669 6365 2061 7574 6f66 730a   service autofs.
│ │ │ +001e45a0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +001e45b0: 6d65 3a20 4469 7361 626c 6520 7468 6520  me: Disable the 
│ │ │ +001e45c0: 4175 746f 6d6f 756e 7465 7220 2d20 436f  Automounter - Co
│ │ │ +001e45d0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +001e45e0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +001e45f0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +001e4600: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +001e4610: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +001e4620: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +001e4630: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +001e4640: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +001e4650: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +001e4660: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +001e4670: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +001e4680: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +001e4690: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +001e46a0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +001e46b0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +001e46c0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +001e46d0: 6162 6c65 2074 6865 2041 7574 6f6d 6f75  able the Automou
│ │ │ +001e46e0: 6e74 6572 202d 2045 6e73 7572 6520 6175  nter - Ensure au
│ │ │ +001e46f0: 746f 6673 2e73 6572 7669 6365 2069 7320  tofs.service is 
│ │ │ +001e4700: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +001e4710: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +001e4720: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +001e4730: 6175 746f 6673 2e73 6572 7669 6365 0a20  autofs.service. 
│ │ │ +001e4740: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +001e4750: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +001e4760: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +001e4770: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +001e4780: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +001e4790: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +001e47a0: 7320 6973 2073 6561 7263 6828 2261 7574  s is search("aut
│ │ │ +001e47b0: 6f66 732e 7365 7276 6963 6522 2c20 6d75  ofs.service", mu
│ │ │ +001e47c0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +001e47d0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +001e47e0: 636b 6574 2045 7869 7374 7320 2d20 6175  cket Exists - au
│ │ │ +001e47f0: 746f 6673 2e73 6f63 6b65 740a 2020 2020  tofs.socket.    
│ │ │ +001e4800: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +001e4810: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +001e4820: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +001e4830: 6669 6c65 7320 6175 746f 6673 2e73 6f63  files autofs.soc
│ │ │ +001e4840: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +001e4850: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +001e4860: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +001e4870: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +001e4880: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +001e4890: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +001e48a0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +001e48b0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +001e48c0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +001e48d0: 653a 2044 6973 6162 6c65 2074 6865 2041  e: Disable the A
│ │ │ +001e48e0: 7574 6f6d 6f75 6e74 6572 202d 2044 6973  utomounter - Dis
│ │ │ +001e48f0: 6162 6c65 2053 6f63 6b65 7420 6175 746f  able Socket auto
│ │ │ +001e4900: 6673 0a20 2020 2061 6e73 6962 6c65 2e62  fs.    ansible.b
│ │ │ +001e4910: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +001e4920: 2020 2020 2020 6e61 6d65 3a20 6175 746f        name: auto
│ │ │ +001e4930: 6673 2e73 6f63 6b65 740a 2020 2020 2020  fs.socket.      
│ │ │ +001e4940: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +001e4950: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +001e4960: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +001e4970: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +001e4980: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +001e4990: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +001e49a0: 2069 7320 7365 6172 6368 2822 6175 746f   is search("auto
│ │ │ +001e49b0: 6673 2e73 6f63 6b65 7422 2c20 6d75 6c74  fs.socket", mult
│ │ │ +001e49c0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +001e49d0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +001e49e0: 2d31 3731 2d33 2e34 2e36 0a20 202d 204e  -171-3.4.6.  - N
│ │ │ +001e49f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +001e4a00: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001e4a10: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +001e4a20: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001e4a30: 6229 0a20 202d 204e 4953 542d 3830 302d  b).  - NIST-800-
│ │ │ +001e4a40: 3533 2d4d 502d 370a 2020 2d20 6469 7361  53-MP-7.  - disa
│ │ │ +001e4a50: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001e4a60: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001e4a70: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001e4a80: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +001e4a90: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +001e4aa0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +001e4ab0: 7365 7276 6963 655f 6175 746f 6673 5f64  service_autofs_d
│ │ │ +001e4ac0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +001e4ad0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +001e4ae0: 6b0a 2020 7768 656e 3a20 2820 2261 7574  k.  when: ( "aut
│ │ │ +001e4af0: 6f66 7322 2069 6e20 616e 7369 626c 655f  ofs" in ansible_
│ │ │ +001e4b00: 6661 6374 732e 7061 636b 6167 6573 2061  facts.packages a
│ │ │ +001e4b10: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ +001e4b20: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +001e4b30: 2e70 6163 6b61 6765 730a 2020 2020 290a  .packages.    ).
│ │ │ +001e4b40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001e4bf0: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ +001e4c00: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ +001e4c10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001e4c90: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001e4cb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +001e4ca0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001e4cc0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +001e4cf0: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +001e4d10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +001e4d40: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +001e4d50: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +001e4d60: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +001e4d70: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +001e4d80: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +001e4d90: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +001e4da0: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +001e4db0: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +001e4dc0: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +001e4dd0: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +001e4de0: 616d 653a 2061 7574 6f66 732e 7365 7276  ame: autofs.serv
│ │ │ +001e4df0: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ +001e4e00: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +001e4e10: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ +001e4e20: 2020 2020 2d20 6e61 6d65 3a20 6175 746f      - name: auto
│ │ │ +001e4e30: 6673 2e73 6f63 6b65 740a 2020 2020 2020  fs.socket.      
│ │ │ +001e4e40: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +001e4e50: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +001e4e60: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ +001e4f20: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +001e4f30: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001e4fb0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001e4fd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001e5020: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +001e5050: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +001e5070: 655f 6175 746f 6673 0a0a 636c 6173 7320  e_autofs..class 
│ │ │ +001e5080: 6469 7361 626c 655f 6175 746f 6673 207b  disable_autofs {
│ │ │ +001e5090: 0a20 2073 6572 7669 6365 207b 2761 7574  .  service {'aut
│ │ │ +001e50a0: 6f66 7327 3a0a 2020 2020 656e 6162 6c65  ofs':.    enable
│ │ │ +001e50b0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +001e50c0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +001e50d0: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +001e50e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001e5190: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +001e51a0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +001e51b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +001e5200: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +001e5210: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +001e5220: 5b22 6175 746f 6673 225d 0a3c 2f63 6f64  ["autofs"].
Remediation OS │ │ │ -0022f370: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0022f380: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0022f390: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0022f3d0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0022f3e0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -0022f3f0: 3d20 5b22 6170 706f 7274 225d 0a3c 2f63  = ["apport"].
│ │ │ -0022f410: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0022f4b0: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ -0022f4c0: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ -0022f4d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +001e4fc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001e4fe0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001e5030: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +001e5040: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -0022f5c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0022f5f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ -0022f610: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ -0022f620: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ -0022f630: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ -0022f640: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ -0022f650: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ -0022f660: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ -0022f670: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ -0022f680: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ -0022f690: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ -0022f6a0: 3a20 6170 706f 7274 2e73 6572 7669 6365  : apport.service
│ │ │ -0022f6b0: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -0022f6c0: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -0022f6d0: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -0022f6e0: 202d 206e 616d 653a 2061 7070 6f72 742e   - name: apport.
│ │ │ -0022f6f0: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ -0022f700: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0022f710: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -0022f720: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0022f7e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0022f7f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ -0022f580: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ -0022f590: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ -0022f5d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0022f5e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -0022f8c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0022f8d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0022f920: 6e63 6c75 6465 2064 6973 6162 6c65 5f61  nclude disable_a
│ │ │ -0022f930: 7070 6f72 740a 0a63 6c61 7373 2064 6973  pport..class dis
│ │ │ -0022f940: 6162 6c65 5f61 7070 6f72 7420 7b0a 2020  able_apport {.  
│ │ │ -0022f950: 7365 7276 6963 6520 7b27 6170 706f 7274  service {'apport
│ │ │ -0022f960: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -0022f970: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -0022f980: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -0022f990: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -0022f9b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0022fa50: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0022fa60: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0022fa70: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -0022f8a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0022f8b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0022f8f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0022f900: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -0022fb10: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0022fb60: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0022fba0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0022fbb0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0022fbc0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0022fbd0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0022fbe0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -0022fbf0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0022fc00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0022fc10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0022fc20: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0022fc30: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0022fc40: 7669 6365 5f61 7070 6f72 745f 6469 7361  vice_apport_disa
│ │ │ -0022fc50: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ -0022fc60: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ -0022fc70: 653a 2044 6973 6162 6c65 2041 7070 6f72  e: Disable Appor
│ │ │ -0022fc80: 7420 5365 7276 6963 6520 2d20 4469 7361  t Service - Disa
│ │ │ -0022fc90: 626c 6520 7365 7276 6963 6520 6170 706f  ble service appo
│ │ │ -0022fca0: 7274 0a20 2062 6c6f 636b 3a0a 0a20 202d  rt.  block:..  -
│ │ │ -0022fcb0: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ -0022fcc0: 7070 6f72 7420 5365 7276 6963 6520 2d20  pport Service - 
│ │ │ -0022fcd0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -0022fce0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -0022fcf0: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -0022fd00: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0022fd10: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0022fd20: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0022fd30: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -0022fd40: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -0022fd50: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -0022fd60: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -0022fd70: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -0022fd80: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -0022fd90: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -0022fda0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0022fdb0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0022fdc0: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0022fdd0: 6973 6162 6c65 2041 7070 6f72 7420 5365  isable Apport Se
│ │ │ -0022fde0: 7276 6963 6520 2d20 456e 7375 7265 2061  rvice - Ensure a
│ │ │ -0022fdf0: 7070 6f72 742e 7365 7276 6963 6520 6973  pport.service is
│ │ │ -0022fe00: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -0022fe10: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0022fe20: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0022fe30: 2061 7070 6f72 742e 7365 7276 6963 650a   apport.service.
│ │ │ -0022fe40: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0022fe50: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -0022fe60: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0022fe70: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0022fe80: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -0022fe90: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0022fea0: 6573 2069 7320 7365 6172 6368 2822 6170  es is search("ap
│ │ │ -0022feb0: 706f 7274 2e73 6572 7669 6365 222c 206d  port.service", m
│ │ │ -0022fec0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -0022fed0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -0022fee0: 6f63 6b65 7420 4578 6973 7473 202d 2061  ocket Exists - a
│ │ │ -0022fef0: 7070 6f72 742e 736f 636b 6574 0a20 2020  pport.socket.   
│ │ │ -0022ff00: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0022ff10: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0022ff20: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0022ff30: 2d66 696c 6573 2061 7070 6f72 742e 736f  -files apport.so
│ │ │ -0022ff40: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -0022ff50: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -0022ff60: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -0022ff70: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -0022ff80: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -0022ff90: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0022ffa0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0022ffb0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0022ffc0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0022ffd0: 6d65 3a20 4469 7361 626c 6520 4170 706f  me: Disable Appo
│ │ │ -0022ffe0: 7274 2053 6572 7669 6365 202d 2044 6973  rt Service - Dis
│ │ │ -0022fff0: 6162 6c65 2053 6f63 6b65 7420 6170 706f  able Socket appo
│ │ │ -00230000: 7274 0a20 2020 2061 6e73 6962 6c65 2e62  rt.    ansible.b
│ │ │ -00230010: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00230020: 2020 2020 2020 6e61 6d65 3a20 6170 706f        name: appo
│ │ │ -00230030: 7274 2e73 6f63 6b65 740a 2020 2020 2020  rt.socket.      
│ │ │ -00230040: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00230050: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00230060: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -00230070: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00230080: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00230090: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -002300a0: 2069 7320 7365 6172 6368 2822 6170 706f   is search("appo
│ │ │ -002300b0: 7274 2e73 6f63 6b65 7422 2c20 6d75 6c74  rt.socket", mult
│ │ │ -002300c0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -002300d0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -002300e0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002300f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00230100: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00230110: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00230120: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00230130: 6170 706f 7274 5f64 6973 6162 6c65 640a  apport_disabled.
│ │ │ -00230140: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -00230150: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ -00230160: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ -00230170: 2077 6865 6e3a 2027 2261 7070 6f72 7422   when: '"apport"
│ │ │ -00230180: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00230190: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.Remediation An
│ │ │ +0022f370: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +0022f380: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Co │ │ │ -0022faf0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0022fb20: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0022fb40: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0022fb50: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0022fb70: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0022fb80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0022f400: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0022f420: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0022f470: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0022f4a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0022f4c0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0022f4d0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0022f4e0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0022f4f0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0022f500: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0022f510: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0022f520: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0022f530: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0022f540: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0022f550: 2d20 7365 7276 6963 655f 6170 706f 7274  - service_apport
│ │ │ +0022f560: 5f64 6973 6162 6c65 640a 2020 2d20 756e  _disabled.  - un
│ │ │ +0022f570: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a0a  known_severity..
│ │ │ +0022f580: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0022f590: 4170 706f 7274 2053 6572 7669 6365 202d  Apport Service -
│ │ │ +0022f5a0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0022f5b0: 2061 7070 6f72 740a 2020 626c 6f63 6b3a   apport.  block:
│ │ │ +0022f5c0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0022f5d0: 626c 6520 4170 706f 7274 2053 6572 7669  ble Apport Servi
│ │ │ +0022f5e0: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0022f5f0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0022f600: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0022f610: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0022f620: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0022f630: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0022f640: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0022f650: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0022f660: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0022f670: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0022f680: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0022f690: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0022f6a0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0022f6b0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0022f6c0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0022f6d0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0022f6e0: 6d65 3a20 4469 7361 626c 6520 4170 706f  me: Disable Appo
│ │ │ +0022f6f0: 7274 2053 6572 7669 6365 202d 2045 6e73  rt Service - Ens
│ │ │ +0022f700: 7572 6520 6170 706f 7274 2e73 6572 7669  ure apport.servi
│ │ │ +0022f710: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +0022f720: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0022f730: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0022f740: 6e61 6d65 3a20 6170 706f 7274 2e73 6572  name: apport.ser
│ │ │ +0022f750: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +0022f760: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +0022f770: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0022f780: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0022f790: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +0022f7a0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +0022f7b0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +0022f7c0: 6828 2261 7070 6f72 742e 7365 7276 6963  h("apport.servic
│ │ │ +0022f7d0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +0022f7e0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +0022f7f0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +0022f800: 7320 2d20 6170 706f 7274 2e73 6f63 6b65  s - apport.socke
│ │ │ +0022f810: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +0022f820: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0022f830: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0022f840: 2d75 6e69 742d 6669 6c65 7320 6170 706f  -unit-files appo
│ │ │ +0022f850: 7274 2e73 6f63 6b65 740a 2020 2020 7265  rt.socket.    re
│ │ │ +0022f860: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +0022f870: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +0022f880: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0022f890: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0022f8a0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0022f8b0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0022f8c0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0022f8d0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0022f8e0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0022f8f0: 2041 7070 6f72 7420 5365 7276 6963 6520   Apport Service 
│ │ │ +0022f900: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +0022f910: 2061 7070 6f72 740a 2020 2020 616e 7369   apport.    ansi
│ │ │ +0022f920: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0022f930: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0022f940: 2061 7070 6f72 742e 736f 636b 6574 0a20   apport.socket. 
│ │ │ +0022f950: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0022f960: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +0022f970: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +0022f980: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0022f990: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0022f9a0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0022f9b0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0022f9c0: 2261 7070 6f72 742e 736f 636b 6574 222c  "apport.socket",
│ │ │ +0022f9d0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0022f9e0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +0022f9f0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0022fa00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0022fa10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0022fa20: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0022fa30: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0022fa40: 7669 6365 5f61 7070 6f72 745f 6469 7361  vice_apport_disa
│ │ │ +0022fa50: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +0022fa60: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +0022fa70: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +0022fa80: 6974 790a 2020 7768 656e 3a20 2722 6170  ity.  when: '"ap
│ │ │ +0022fa90: 706f 7274 2220 696e 2061 6e73 6962 6c65  port" in ansible
│ │ │ +0022faa0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0022fab0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Kub │ │ │ +0022fb70: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +0022fb80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
mediumdisable
low
Disr │ │ │ +0022f430: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0022f440: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0022f480: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0022f490: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +0022fc10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0022fc30: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot │ │ │ +0022fc60: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true
│ │ │ +0022fc80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0022fcb0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ +0022fcc0: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ +0022fcd0: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ +0022fce0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ +0022fcf0: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ +0022fd00: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ +0022fd10: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ +0022fd20: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ +0022fd30: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ +0022fd40: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ +0022fd50: 6e61 6d65 3a20 6170 706f 7274 2e73 6572  name: apport.ser
│ │ │ +0022fd60: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ +0022fd70: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0022fd80: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ +0022fd90: 2020 2020 202d 206e 616d 653a 2061 7070       - name: app
│ │ │ +0022fda0: 6f72 742e 736f 636b 6574 0a20 2020 2020  ort.socket.     
│ │ │ +0022fdb0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0022fdc0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ +0022fdd0: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.
Remediation │ │ │ +0022fe90: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0022fea0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0022ff30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0022ff50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0022ff70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0022ffa0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0022ffb0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0022ffc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +0022ffe0: 6c65 5f61 7070 6f72 740a 0a63 6c61 7373  le_apport..class
│ │ │ +0022fff0: 2064 6973 6162 6c65 5f61 7070 6f72 7420   disable_apport 
│ │ │ +00230000: 7b0a 2020 7365 7276 6963 6520 7b27 6170  {.  service {'ap
│ │ │ +00230010: 706f 7274 273a 0a20 2020 2065 6e61 626c  port':.    enabl
│ │ │ +00230020: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +00230030: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00230040: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +00230050: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00230110: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00230120: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +00230170: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00230180: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00230190: 205b 2261 7070 6f72 7422 5d0a 3c2f 636f   ["apport"].
< │ │ │ 002301b0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002301c0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002301d0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002301e0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002301f0: 6438 3039 2220 7461 6269 6e64 6578 3d22 d809" tabindex=" │ │ │ 00230200: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -143826,96 +143826,96 @@ │ │ │ 00231d10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00231d20: 6438 3131 2220 7461 6269 6e64 6578 3d22 d811" tabindex=" │ │ │ 00231d30: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 00231d40: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 00231d50: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 00231d60: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 00231d70: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00231d80: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00231d90: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00231e20: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00231e30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00231e50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00231e70: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00231e80: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00231ec0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00231ed0: 7564 6520 7265 6d6f 7665 5f61 7661 6869  ude remove_avahi
│ │ │ -00231ee0: 2d64 6165 6d6f 6e0a 0a63 6c61 7373 2072  -daemon..class r
│ │ │ -00231ef0: 656d 6f76 655f 6176 6168 692d 6461 656d  emove_avahi-daem
│ │ │ -00231f00: 6f6e 207b 0a20 2070 6163 6b61 6765 207b  on {.  package {
│ │ │ -00231f10: 2027 6176 6168 692d 6461 656d 6f6e 273a   'avahi-daemon':
│ │ │ -00231f20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00231f30: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00231f40: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00231f50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00232000: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00232010: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00232090: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002320b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00232100: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00232130: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00232150: 7461 6c6c 2061 7661 6869 2053 6572 7665  tall avahi Serve
│ │ │ -00232160: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ -00232170: 6520 6176 6168 692d 6461 656d 6f6e 2069  e avahi-daemon i
│ │ │ -00232180: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00232190: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002321a0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002321b0: 6176 6168 692d 6461 656d 6f6e 0a20 2020  avahi-daemon.   
│ │ │ -002321c0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -002321d0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -002321e0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -002321f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00232200: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -00232210: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -00232220: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00232230: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00232240: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00232250: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00232260: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00232270: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00232280: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -00232290: 7661 6869 5f72 656d 6f76 6564 0a3c 2f63  vahi_removed.<
│ │ │ +00231da0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low
Disr │ │ │ -002320c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002320d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00232110: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00232120: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ +00231e20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00231e50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00231e70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00231e80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00231ea0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00231eb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00231ed0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2061  me: 'Uninstall a
│ │ │ +00231ee0: 7661 6869 2053 6572 7665 7220 5061 636b  vahi Server Pack
│ │ │ +00231ef0: 6167 653a 2045 6e73 7572 6520 6176 6168  age: Ensure avah
│ │ │ +00231f00: 692d 6461 656d 6f6e 2069 7320 7265 6d6f  i-daemon is remo
│ │ │ +00231f10: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00231f20: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00231f30: 2020 2020 6e61 6d65 3a20 6176 6168 692d      name: avahi-
│ │ │ +00231f40: 6461 656d 6f6e 0a20 2020 2073 7461 7465  daemon.    state
│ │ │ +00231f50: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00231f60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00231f70: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00231f80: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00231f90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00231fa0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00231fb0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00231fc0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00231fd0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00231fe0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00231ff0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00232000: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00232010: 2070 6163 6b61 6765 5f61 7661 6869 5f72   package_avahi_r
│ │ │ +00232020: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediati │ │ │ +002320e0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002320f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00232170: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00232180: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002321a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002321b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002321d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002321f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00232220: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00232230: 656d 6f76 655f 6176 6168 692d 6461 656d  emove_avahi-daem
│ │ │ +00232240: 6f6e 0a0a 636c 6173 7320 7265 6d6f 7665  on..class remove
│ │ │ +00232250: 5f61 7661 6869 2d64 6165 6d6f 6e20 7b0a  _avahi-daemon {.
│ │ │ +00232260: 2020 7061 636b 6167 6520 7b20 2761 7661    package { 'ava
│ │ │ +00232270: 6869 2d64 6165 6d6f 6e27 3a0a 2020 2020  hi-daemon':.    
│ │ │ +00232280: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00232290: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 002322b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation O │ │ │ -00233760: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00233770: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00233780: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -002337c0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -002337d0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -002337e0: 203d 205b 2261 7661 6869 2d64 6165 6d6f   = ["avahi-daemo
│ │ │ -002337f0: 6e22 5d0a 3c2f 636f 6465 3e3c 2f70 7265  n"].
Remediation │ │ │ -002338b0: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ -002338c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00233940: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00233950: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00233960: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:medium │ │ │ -00233990: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 Reb │ │ │ -002339a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -002339b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e< │ │ │ -002339c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:disable

apiVers │ │ │ -00233a00: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -00233a10: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -00233a20: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -00233a30: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -00233a40: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -00233a50: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -00233a60: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -00233a70: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -00233a80: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -00233a90: 202d 206e 616d 653a 2061 7661 6869 2d64 - name: avahi-d │ │ │ -00233aa0: 6165 6d6f 6e2e 7365 7276 6963 650a 2020 aemon.service. │ │ │ -00233ab0: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ -00233ac0: 616c 7365 0a20 2020 2020 2020 206d 6173 alse. mas │ │ │ -00233ad0: 6b3a 2074 7275 650a 2020 2020 2020 2d20 k: true. - │ │ │ -00233ae0: 6e61 6d65 3a20 6176 6168 692d 6461 656d name: avahi-daem │ │ │ -00233af0: 6f6e 2e73 6f63 6b65 740a 2020 2020 2020 on.socket. │ │ │ -00233b00: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -00233b10: 0a20 2020 2020 2020 206d 6173 6b3a 2074 . mask: t │ │ │ -00233b20: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265 rue.

Remediation │ │ │ -00233be0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00233bf0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00233c70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00233c90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00233ce0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00233d10: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -00233d30: 655f 6176 6168 692d 6461 656d 6f6e 0a0a  e_avahi-daemon..
│ │ │ -00233d40: 636c 6173 7320 6469 7361 626c 655f 6176  class disable_av
│ │ │ -00233d50: 6168 692d 6461 656d 6f6e 207b 0a20 2073  ahi-daemon {.  s
│ │ │ -00233d60: 6572 7669 6365 207b 2761 7661 6869 2d64  ervice {'avahi-d
│ │ │ -00233d70: 6165 6d6f 6e27 3a0a 2020 2020 656e 6162  aemon':.    enab
│ │ │ -00233d80: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -00233d90: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00233da0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -00233db0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00233dc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00233e70: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00233e80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ -00233c80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00233ca0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00233cf0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00233d00: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00233f00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00233f20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00233f70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00233fa0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00233fc0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00233fd0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00233fe0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00233ff0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00234000: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00234010: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00234020: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00234030: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00234040: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -00234050: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00234060: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00234070: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00234080: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00234090: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002340a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002340b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002340c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002340d0: 2020 2d20 7365 7276 6963 655f 6176 6168    - service_avah
│ │ │ -002340e0: 692d 6461 656d 6f6e 5f64 6973 6162 6c65  i-daemon_disable
│ │ │ -002340f0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -00234100: 6c65 2041 7661 6869 2053 6572 7665 7220  le Avahi Server 
│ │ │ -00234110: 536f 6674 7761 7265 202d 2044 6973 6162  Software - Disab
│ │ │ -00234120: 6c65 2073 6572 7669 6365 2061 7661 6869  le service avahi
│ │ │ -00234130: 2d64 6165 6d6f 6e0a 2020 626c 6f63 6b3a  -daemon.  block:
│ │ │ -00234140: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00234150: 626c 6520 4176 6168 6920 5365 7276 6572  ble Avahi Server
│ │ │ -00234160: 2053 6f66 7477 6172 6520 2d20 436f 6c6c   Software - Coll
│ │ │ -00234170: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -00234180: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -00234190: 7468 650a 2020 2020 2020 5379 7374 656d  the.      System
│ │ │ -002341a0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002341b0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002341c0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002341d0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -002341e0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -002341f0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00234200: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00234210: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00234220: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00234230: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -00234240: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00234250: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00234260: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00234270: 2044 6973 6162 6c65 2041 7661 6869 2053   Disable Avahi S
│ │ │ -00234280: 6572 7665 7220 536f 6674 7761 7265 202d  erver Software -
│ │ │ -00234290: 2045 6e73 7572 6520 6176 6168 692d 6461   Ensure avahi-da
│ │ │ -002342a0: 656d 6f6e 2e73 6572 7669 6365 2069 7320  emon.service is 
│ │ │ -002342b0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -002342c0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002342d0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002342e0: 6176 6168 692d 6461 656d 6f6e 2e73 6572  avahi-daemon.ser
│ │ │ -002342f0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -00234300: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00234310: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00234320: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00234330: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -00234340: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -00234350: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00234360: 6828 2261 7661 6869 2d64 6165 6d6f 6e2e  h("avahi-daemon.
│ │ │ -00234370: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -00234380: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -00234390: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -002343a0: 2045 7869 7374 7320 2d20 6176 6168 692d   Exists - avahi-
│ │ │ -002343b0: 6461 656d 6f6e 2e73 6f63 6b65 740a 2020  daemon.socket.  
│ │ │ -002343c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002343d0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -002343e0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002343f0: 742d 6669 6c65 7320 6176 6168 692d 6461  t-files avahi-da
│ │ │ -00234400: 656d 6f6e 2e73 6f63 6b65 740a 2020 2020  emon.socket.    
│ │ │ -00234410: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -00234420: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -00234430: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00234440: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00234450: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00234460: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00234470: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00234480: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00234490: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002344a0: 6c65 2041 7661 6869 2053 6572 7665 7220  le Avahi Server 
│ │ │ -002344b0: 536f 6674 7761 7265 202d 2044 6973 6162  Software - Disab
│ │ │ -002344c0: 6c65 2053 6f63 6b65 7420 6176 6168 692d  le Socket avahi-
│ │ │ -002344d0: 6461 656d 6f6e 0a20 2020 2061 6e73 6962  daemon.    ansib
│ │ │ -002344e0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002344f0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00234500: 6176 6168 692d 6461 656d 6f6e 2e73 6f63  avahi-daemon.soc
│ │ │ -00234510: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ -00234520: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ -00234530: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00234540: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -00234550: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ -00234560: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ -00234570: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00234580: 6172 6368 2822 6176 6168 692d 6461 656d  arch("avahi-daem
│ │ │ -00234590: 6f6e 2e73 6f63 6b65 7422 2c20 6d75 6c74  on.socket", mult
│ │ │ -002345a0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -002345b0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -002345c0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -002345d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002345e0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002345f0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00234600: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -00234610: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -00234620: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ -00234630: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00234640: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00234650: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00234660: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00234670: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00234680: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00234690: 655f 6176 6168 692d 6461 656d 6f6e 5f64  e_avahi-daemon_d
│ │ │ -002346a0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002346b0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002346c0: 6b0a 2020 7768 656e 3a20 2820 2261 7661  k.  when: ( "ava
│ │ │ -002346d0: 6869 2d64 6165 6d6f 6e22 2069 6e20 616e  hi-daemon" in an
│ │ │ -002346e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -002346f0: 6167 6573 2061 6e64 2022 6c69 6e75 782d  ages and "linux-
│ │ │ -00234700: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00234710: 5f66 6163 7473 2e70 6163 6b61 6765 730a  _facts.packages.
│ │ │ -00234720: 2020 2020 290a 3c2f 636f 6465 3e3c 2f70      ).

Remediation A │ │ │ +00233760: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00233770: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disr │ │ │ -00233f30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00233f40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00233f80: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00233f90: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +002337f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00233810: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00233860: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00233890: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00233800: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00233820: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00233870: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00233880: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +002338b0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +002338c0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +002338d0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +002338e0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +002338f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00233900: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00233910: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00233920: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00233930: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +00233940: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00233950: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00233960: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00233970: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00233980: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00233990: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002339a0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002339b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002339c0: 0a20 202d 2073 6572 7669 6365 5f61 7661  .  - service_ava
│ │ │ +002339d0: 6869 2d64 6165 6d6f 6e5f 6469 7361 626c  hi-daemon_disabl
│ │ │ +002339e0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +002339f0: 626c 6520 4176 6168 6920 5365 7276 6572  ble Avahi Server
│ │ │ +00233a00: 2053 6f66 7477 6172 6520 2d20 4469 7361   Software - Disa
│ │ │ +00233a10: 626c 6520 7365 7276 6963 6520 6176 6168  ble service avah
│ │ │ +00233a20: 692d 6461 656d 6f6e 0a20 2062 6c6f 636b  i-daemon.  block
│ │ │ +00233a30: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00233a40: 6162 6c65 2041 7661 6869 2053 6572 7665  able Avahi Serve
│ │ │ +00233a50: 7220 536f 6674 7761 7265 202d 2043 6f6c  r Software - Col
│ │ │ +00233a60: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +00233a70: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +00233a80: 2074 6865 0a20 2020 2020 2053 7973 7465   the.      Syste
│ │ │ +00233a90: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +00233aa0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00233ab0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00233ac0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00233ad0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00233ae0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00233af0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00233b00: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00233b10: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00233b20: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +00233b30: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00233b40: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00233b50: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00233b60: 3a20 4469 7361 626c 6520 4176 6168 6920  : Disable Avahi 
│ │ │ +00233b70: 5365 7276 6572 2053 6f66 7477 6172 6520  Server Software 
│ │ │ +00233b80: 2d20 456e 7375 7265 2061 7661 6869 2d64  - Ensure avahi-d
│ │ │ +00233b90: 6165 6d6f 6e2e 7365 7276 6963 6520 6973  aemon.service is
│ │ │ +00233ba0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +00233bb0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00233bc0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00233bd0: 2061 7661 6869 2d64 6165 6d6f 6e2e 7365   avahi-daemon.se
│ │ │ +00233be0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +00233bf0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00233c00: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00233c10: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00233c20: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +00233c30: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +00233c40: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00233c50: 6368 2822 6176 6168 692d 6461 656d 6f6e  ch("avahi-daemon
│ │ │ +00233c60: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +00233c70: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +00233c80: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +00233c90: 7420 4578 6973 7473 202d 2061 7661 6869  t Exists - avahi
│ │ │ +00233ca0: 2d64 6165 6d6f 6e2e 736f 636b 6574 0a20  -daemon.socket. 
│ │ │ +00233cb0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00233cc0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +00233cd0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +00233ce0: 6974 2d66 696c 6573 2061 7661 6869 2d64  it-files avahi-d
│ │ │ +00233cf0: 6165 6d6f 6e2e 736f 636b 6574 0a20 2020  aemon.socket.   
│ │ │ +00233d00: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +00233d10: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +00233d20: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00233d30: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00233d40: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +00233d50: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +00233d60: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00233d70: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00233d80: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00233d90: 626c 6520 4176 6168 6920 5365 7276 6572  ble Avahi Server
│ │ │ +00233da0: 2053 6f66 7477 6172 6520 2d20 4469 7361   Software - Disa
│ │ │ +00233db0: 626c 6520 536f 636b 6574 2061 7661 6869  ble Socket avahi
│ │ │ +00233dc0: 2d64 6165 6d6f 6e0a 2020 2020 616e 7369  -daemon.    ansi
│ │ │ +00233dd0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00233de0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00233df0: 2061 7661 6869 2d64 6165 6d6f 6e2e 736f   avahi-daemon.so
│ │ │ +00233e00: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +00233e10: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00233e20: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +00233e30: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00233e40: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +00233e50: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +00233e60: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00233e70: 6561 7263 6828 2261 7661 6869 2d64 6165  earch("avahi-dae
│ │ │ +00233e80: 6d6f 6e2e 736f 636b 6574 222c 206d 756c  mon.socket", mul
│ │ │ +00233e90: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +00233ea0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00233eb0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00233ec0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00233ed0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00233ee0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +00233ef0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +00233f00: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00233f10: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +00233f20: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00233f30: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00233f40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00233f50: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00233f60: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00233f70: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00233f80: 6365 5f61 7661 6869 2d64 6165 6d6f 6e5f  ce_avahi-daemon_
│ │ │ +00233f90: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00233fa0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00233fb0: 636b 0a20 2077 6865 6e3a 2028 2022 6176  ck.  when: ( "av
│ │ │ +00233fc0: 6168 692d 6461 656d 6f6e 2220 696e 2061  ahi-daemon" in a
│ │ │ +00233fd0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00233fe0: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ +00233ff0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00234000: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00234010: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).
Remediati │ │ │ +002340d0: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ +002340e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00234190: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ +00234170: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00234180: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002341a0: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ +002341c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002341d0: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ +002341f0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00234200: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ +00234220: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ +00234230: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ +00234240: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ +00234250: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ +00234260: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ +00234270: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ +00234280: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ +00234290: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ +002342a0: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ +002342b0: 2020 2020 2d20 6e61 6d65 3a20 6176 6168      - name: avah
│ │ │ +002342c0: 692d 6461 656d 6f6e 2e73 6572 7669 6365  i-daemon.service
│ │ │ +002342d0: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +002342e0: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +002342f0: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +00234300: 202d 206e 616d 653a 2061 7661 6869 2d64   - name: avahi-d
│ │ │ +00234310: 6165 6d6f 6e2e 736f 636b 6574 0a20 2020  aemon.socket.   
│ │ │ +00234320: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00234330: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +00234340: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ +00234400: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00234410: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00234490: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002344a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002344c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002344d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002344f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00234510: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00234540: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +00234550: 6162 6c65 5f61 7661 6869 2d64 6165 6d6f  able_avahi-daemo
│ │ │ +00234560: 6e0a 0a63 6c61 7373 2064 6973 6162 6c65  n..class disable
│ │ │ +00234570: 5f61 7661 6869 2d64 6165 6d6f 6e20 7b0a  _avahi-daemon {.
│ │ │ +00234580: 2020 7365 7276 6963 6520 7b27 6176 6168    service {'avah
│ │ │ +00234590: 692d 6461 656d 6f6e 273a 0a20 2020 2065  i-daemon':.    e
│ │ │ +002345a0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +002345b0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +002345c0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +002345d0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +00234690: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +002346a0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +00234700: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +00234710: 6564 203d 205b 2261 7661 6869 2d64 6165  ed = ["avahi-dae
│ │ │ +00234720: 6d6f 6e22 5d0a 3c2f 636f 6465 3e3c 2f70  mon"].

Remediation O │ │ │ -00244eb0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00244ec0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00244ed0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00244f10: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00244f20: 6520 3d20 2263 726f 6e22 0a76 6572 7369  e = "cron".versi
│ │ │ -00244f30: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -00244f40: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00244ff0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00245000: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00245010: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00245020: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00245030: 7365 2220 6964 3d22 6964 3835 3822 3e3c se" id="id858">< │ │ │ -00245040: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00245050: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00245060: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00245070: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00245080: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00245090: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002450a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002450e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002450f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00245110: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00245120: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -00245140: 6e73 7461 6c6c 5f63 726f 6e0a 0a63 6c61  nstall_cron..cla
│ │ │ -00245150: 7373 2069 6e73 7461 6c6c 5f63 726f 6e20  ss install_cron 
│ │ │ -00245160: 7b0a 2020 7061 636b 6167 6520 7b20 2763  {.  package { 'c
│ │ │ -00245170: 726f 6e27 3a0a 2020 2020 656e 7375 7265  ron':.    ensure
│ │ │ -00245180: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -00245190: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00245250: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00245260: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00245310: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00245330: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00245360: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002452f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00245300: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00245320: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00245340: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00245350: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -002453a0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -002453b0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -002453c0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -002453d0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -002453e0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002453f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00245400: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -00245410: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -00245420: 2e36 0a20 202d 2065 6e61 626c 655f 7374 .6. - enable_st │ │ │ -00245430: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00245440: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00245450: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00245460: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00245470: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00245480: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00245490: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564 e_cron_installed │ │ │ -002454a0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265 ..- name: Ensure │ │ │ -002454b0: 2063 726f 6e20 6973 2069 6e73 7461 6c6c cron is install │ │ │ -002454c0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -002454d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -002454e0: 2020 6e61 6d65 3a20 6372 6f6e 0a20 2020 name: cron. │ │ │ -002454f0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -00245500: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -00245510: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00245520: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -00245530: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -00245540: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -00245550: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -00245560: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -00245570: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c -2.2.6. - enabl │ │ │ -00245580: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00245590: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -002455a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -002455b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -002455c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -002455d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -002455e0: 636b 6167 655f 6372 6f6e 5f69 6e73 7461 ckage_cron_insta │ │ │ -002455f0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.Remediation A │ │ │ +00244eb0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00244ec0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..

│ │ │ +00244f40: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00244f60: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00244fb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00244fe0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00245000: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00245010: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00245020: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00245030: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00245040: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00245050: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00245060: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00245070: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +00245080: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00245090: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002450a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002450b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002450c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002450d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002450e0: 202d 2070 6163 6b61 6765 5f63 726f 6e5f   - package_cron_
│ │ │ +002450f0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +00245100: 653a 2045 6e73 7572 6520 6372 6f6e 2069  e: Ensure cron i
│ │ │ +00245110: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +00245120: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00245130: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00245140: 2063 726f 6e0a 2020 2020 7374 6174 653a   cron.    state:
│ │ │ +00245150: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +00245160: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00245170: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00245180: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00245190: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +002451a0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +002451b0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002451c0: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +002451d0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +002451e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002451f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00245200: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00245210: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00245220: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00245230: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ +00245240: 726f 6e5f 696e 7374 616c 6c65 640a 3c2f  ron_installed.
Re │ │ │ +00245300: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00245310: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00245320: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:< │ │ │ +00244f50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00244f70: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00244fc0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00244fd0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ +002453c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00245410: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +002453a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002453d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002453f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00245400: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00245420: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00245430: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00245450: 7564 6520 696e 7374 616c 6c5f 6372 6f6e  ude install_cron
│ │ │ +00245460: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +00245470: 6372 6f6e 207b 0a20 2070 6163 6b61 6765  cron {.  package
│ │ │ +00245480: 207b 2027 6372 6f6e 273a 0a20 2020 2065   { 'cron':.    e
│ │ │ +00245490: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +002454a0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +002454b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00245560: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00245570: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00245580: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00245590: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002455c0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +002455d0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +002455e0: 2263 726f 6e22 0a76 6572 7369 6f6e 203d  "cron".version =
│ │ │ +002455f0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation O │ │ │ -00246820: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00246830: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00246840: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00246880: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00246890: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -002468a0: 6420 3d20 5b22 6372 6f6e 225d 0a3c 2f63  d = ["cron"].
│ │ │ -002468c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00246960: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00246970: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00246980: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00246a00: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00246a30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00246a50: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00246a60: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00246a80: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00246aa0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00246ab0: 6465 2065 6e61 626c 655f 6372 6f6e 0a0a  de enable_cron..
│ │ │ -00246ac0: 636c 6173 7320 656e 6162 6c65 5f63 726f  class enable_cro
│ │ │ -00246ad0: 6e20 7b0a 2020 7365 7276 6963 6520 7b27  n {.  service {'
│ │ │ -00246ae0: 6372 6f6e 273a 0a20 2020 2065 6e61 626c  cron':.    enabl
│ │ │ -00246af0: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00246b00: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00246b10: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -00246b20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00246bd0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00246be0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00246bf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00246cc0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00246cd0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00246d20: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00246d30: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00246d40: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00246d50: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00246d60: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00246d70: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00246d80: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00246d90: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00246da0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00246db0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00246dc0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00246dd0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00246de0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00246df0: 655f 6372 6f6e 5f65 6e61 626c 6564 0a0a  e_cron_enabled..
│ │ │ -00246e00: 2d20 6e61 6d65 3a20 456e 6162 6c65 2063  - name: Enable c
│ │ │ -00246e10: 726f 6e20 5365 7276 6963 6520 2d20 456e  ron Service - En
│ │ │ -00246e20: 6162 6c65 2073 6572 7669 6365 2063 726f  able service cro
│ │ │ -00246e30: 6e0a 2020 626c 6f63 6b3a 0a0a 2020 2d20  n.  block:..  - 
│ │ │ -00246e40: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00246e50: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00246e60: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00246e70: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ -00246e80: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ -00246e90: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ -00246ea0: 2045 6e61 626c 6520 6372 6f6e 2053 6572   Enable cron Ser
│ │ │ -00246eb0: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ -00246ec0: 7276 6963 6520 6372 6f6e 0a20 2020 2061  rvice cron.    a
│ │ │ -00246ed0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00246ee0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00246ef0: 6d65 3a20 6372 6f6e 0a20 2020 2020 2065  me: cron.      e
│ │ │ -00246f00: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -00246f10: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -00246f20: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00246f30: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -00246f40: 2020 2020 2d20 2722 6372 6f6e 2220 696e      - '"cron" in
│ │ │ -00246f50: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00246f60: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00246f70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00246f80: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00246f90: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00246fa0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00246fb0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00246fc0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00246fd0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00246fe0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00246ff0: 7365 7276 6963 655f 6372 6f6e 5f65 6e61  service_cron_ena
│ │ │ -00247000: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00247010: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00247020: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00247030: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00247040: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00246810: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00246820: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00246830: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity:low
Disrup │ │ │ -00246ca0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00246cb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00246cf0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00246d00: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002468b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002468d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00246920: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00246950: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00246970: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00246980: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00246990: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +002469a0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +002469b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002469c0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +002469d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002469e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002469f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00246a00: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00246a10: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00246a20: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00246a30: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ +00246a40: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +00246a50: 6520 6372 6f6e 2053 6572 7669 6365 202d  e cron Service -
│ │ │ +00246a60: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00246a70: 6372 6f6e 0a20 2062 6c6f 636b 3a0a 0a20  cron.  block:.. 
│ │ │ +00246a80: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00246a90: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00246aa0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00246ab0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +00246ac0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +00246ad0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00246ae0: 6d65 3a20 456e 6162 6c65 2063 726f 6e20  me: Enable cron 
│ │ │ +00246af0: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +00246b00: 2053 6572 7669 6365 2063 726f 6e0a 2020   Service cron.  
│ │ │ +00246b10: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00246b20: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00246b30: 206e 616d 653a 2063 726f 6e0a 2020 2020   name: cron.    
│ │ │ +00246b40: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +00246b50: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +00246b60: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +00246b70: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +00246b80: 6e3a 0a20 2020 202d 2027 2263 726f 6e22  n:.    - '"cron"
│ │ │ +00246b90: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00246ba0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +00246bb0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00246bc0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00246bd0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00246be0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00246bf0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00246c00: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00246c10: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00246c20: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00246c30: 202d 2073 6572 7669 6365 5f63 726f 6e5f   - service_cron_
│ │ │ +00246c40: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ +00246c50: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +00246c60: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +00246c70: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00246c80: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00246c90: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00246ca0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +00246d50: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00246d60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +002468c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002468e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00246930: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00246940: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00246de0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00246e00: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00246e50: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ +00246ea0: 6372 6f6e 0a0a 636c 6173 7320 656e 6162  cron..class enab
│ │ │ +00246eb0: 6c65 5f63 726f 6e20 7b0a 2020 7365 7276  le_cron {.  serv
│ │ │ +00246ec0: 6963 6520 7b27 6372 6f6e 273a 0a20 2020  ice {'cron':.   
│ │ │ +00246ed0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ +00246ee0: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ +00246ef0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ +00246f00: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00246fc0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00246fd0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00246fe0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +00246e10: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00246e20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00246e60: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00246e70: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00263350: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00263370: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002633c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002633f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00263410: 655f 6e69 730a 0a63 6c61 7373 2072 656d  e_nis..class rem
│ │ │ -00263420: 6f76 655f 6e69 7320 7b0a 2020 7061 636b  ove_nis {.  pack
│ │ │ -00263430: 6167 6520 7b20 276e 6973 273a 0a20 2020  age { 'nis':.   
│ │ │ -00263440: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00263450: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -00263510: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00263520: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -00263380: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00263390: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002633d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002633e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002635c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002635d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00263620: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00263660: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00263670: 2074 6865 206e 6973 2070 6163 6b61 6765   the nis package
│ │ │ -00263680: 3a20 456e 7375 7265 206e 6973 2069 7320  : Ensure nis is 
│ │ │ -00263690: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -002636a0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -002636b0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e69  ge:.    name: ni
│ │ │ -002636c0: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ -002636d0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002636e0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002636f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00263700: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00263710: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00263720: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00263730: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00263740: 2070 6163 6b61 6765 5f6e 6973 5f72 656d   package_nis_rem
│ │ │ -00263750: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation A
│ │ │ +002632c0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002632d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ -002635b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002635e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002635f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00263630: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00263640: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00263350: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00263370: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002633c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002633f0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00263360: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00263380: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002633d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002633e0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +00263410: 7374 616c 6c20 7468 6520 6e69 7320 7061  stall the nis pa
│ │ │ +00263420: 636b 6167 653a 2045 6e73 7572 6520 6e69  ckage: Ensure ni
│ │ │ +00263430: 7320 6973 2072 656d 6f76 6564 270a 2020  s is removed'.  
│ │ │ +00263440: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00263450: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00263460: 653a 206e 6973 0a20 2020 2073 7461 7465  e: nis.    state
│ │ │ +00263470: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00263480: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00263490: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002634a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002634b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002634c0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +002634d0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002634e0: 640a 2020 2d20 7061 636b 6167 655f 6e69  d.  - package_ni
│ │ │ +002634f0: 735f 7265 6d6f 7665 640a 3c2f 636f 6465  s_removed.
Remedi │ │ │ +002635b0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002635c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002635d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00263600: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00263670: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00263690: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002636c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00263650: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00263660: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002636a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002636b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00263700: 6520 7265 6d6f 7665 5f6e 6973 0a0a 636c e remove_nis..cl │ │ │ +00263710: 6173 7320 7265 6d6f 7665 5f6e 6973 207b ass remove_nis { │ │ │ +00263720: 0a20 2070 6163 6b61 6765 207b 2027 6e69 . package { 'ni │ │ │ +00263730: 7327 3a0a 2020 2020 656e 7375 7265 203d s':. ensure = │ │ │ +00263740: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ +00263750: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remedia │ │ │ -00265500: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00265510: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00265520: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00265530: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00265540: 7365 2220 6964 3d22 6964 3932 3522 3e3c se" id="id925">< │ │ │ -00265550: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00265560: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00265570: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00265580: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00265590: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002655a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002655b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002655f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00265600: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00265620: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00265630: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -00265650: 2072 656d 6f76 655f 6973 632d 6468 6370 remove_isc-dhcp │ │ │ -00265660: 2d73 6572 7665 720a 0a63 6c61 7373 2072 -server..class r │ │ │ -00265670: 656d 6f76 655f 6973 632d 6468 6370 2d73 emove_isc-dhcp-s │ │ │ -00265680: 6572 7665 7220 7b0a 2020 7061 636b 6167 erver {. packag │ │ │ -00265690: 6520 7b20 2769 7363 2d64 6863 702d 7365 e { 'isc-dhcp-se │ │ │ -002656a0: 7276 6572 273a 0a20 2020 2065 6e73 7572 rver':. ensur │ │ │ -002656b0: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ -002656c0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -002656d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -00265780: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00265790: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002657a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002657b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002657c0: 7365 2220 6964 3d22 6964 3932 3622 3e3c se" id="id926">< │ │ │ -002657d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002657e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002657f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00265800: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00265810: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00265820: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00265830: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00265870: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00265880: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002658a0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -002658b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -002658d0: 2755 6e69 6e73 7461 6c6c 2044 4843 5020 'Uninstall DHCP │ │ │ -002658e0: 5365 7276 6572 2050 6163 6b61 6765 3a20 Server Package: │ │ │ -002658f0: 456e 7375 7265 2069 7363 2d64 6863 702d Ensure isc-dhcp- │ │ │ -00265900: 7365 7276 6572 2069 7320 7265 6d6f 7665 server is remove │ │ │ -00265910: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -00265920: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -00265930: 2020 6e61 6d65 3a20 6973 632d 6468 6370 name: isc-dhcp │ │ │ -00265940: 2d73 6572 7665 720a 2020 2020 7374 6174 -server. stat │ │ │ -00265950: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -00265960: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ -00265970: 332d 434d 2d36 2861 290a 2020 2d20 4e49 3-CM-6(a). - NI │ │ │ -00265980: 5354 2d38 3030 2d35 332d 434d 2d37 2861 ST-800-53-CM-7(a │ │ │ -00265990: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -002659a0: 332d 434d 2d37 2862 290a 2020 2d20 5043 3-CM-7(b). - PC │ │ │ -002659b0: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ -002659c0: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ -002659d0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -002659e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -002659f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00265a00: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00265a10: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00265a20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00265a30: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -00265a40: 6468 6370 5f72 656d 6f76 6564 0a3c 2f63 dhcp_removed.
│ │ │ +00265520: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00265550: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002655c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002655e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00265610: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002655a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002655b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002655f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00265600: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +00265650: 2027 556e 696e 7374 616c 6c20 4448 4350 'Uninstall DHCP │ │ │ +00265660: 2053 6572 7665 7220 5061 636b 6167 653a Server Package: │ │ │ +00265670: 2045 6e73 7572 6520 6973 632d 6468 6370 Ensure isc-dhcp │ │ │ +00265680: 2d73 6572 7665 7220 6973 2072 656d 6f76 -server is remov │ │ │ +00265690: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +002656a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +002656b0: 2020 206e 616d 653a 2069 7363 2d64 6863 name: isc-dhc │ │ │ +002656c0: 702d 7365 7276 6572 0a20 2020 2073 7461 p-server. sta │ │ │ +002656d0: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ +002656e0: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +002656f0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e 53-CM-6(a). - N │ │ │ +00265700: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ +00265710: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +00265720: 3533 2d43 4d2d 3728 6229 0a20 202d 2050 53-CM-7(b). - P │ │ │ +00265730: 4349 2d44 5353 7634 2d32 2e32 0a20 202d CI-DSSv4-2.2. - │ │ │ +00265740: 2050 4349 2d44 5353 7634 2d32 2e32 2e34 PCI-DSSv4-2.2.4 │ │ │ +00265750: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +00265760: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +00265770: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00265780: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +00265790: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +002657a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +002657b0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +002657c0: 5f64 6863 705f 7265 6d6f 7665 640a 3c2f _dhcp_removed.

Re │ │ │ +00265880: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00265890: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002658a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00265940: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00265990: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +002659d0: 636c 7564 6520 7265 6d6f 7665 5f69 7363  clude remove_isc
│ │ │ +002659e0: 2d64 6863 702d 7365 7276 6572 0a0a 636c  -dhcp-server..cl
│ │ │ +002659f0: 6173 7320 7265 6d6f 7665 5f69 7363 2d64  ass remove_isc-d
│ │ │ +00265a00: 6863 702d 7365 7276 6572 207b 0a20 2070  hcp-server {.  p
│ │ │ +00265a10: 6163 6b61 6765 207b 2027 6973 632d 6468  ackage { 'isc-dh
│ │ │ +00265a20: 6370 2d73 6572 7665 7227 3a0a 2020 2020  cp-server':.    
│ │ │ +00265a30: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00265a40: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00265a60: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 R │ │ │ -00266900: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00266910: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00266920: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00266930: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00266960: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00266970: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00266980: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00266990: 2269 7363 2d64 6863 702d 7365 7276 6572  "isc-dhcp-server
│ │ │ -002669a0: 3622 5d0a 3c2f 636f 6465 3e3c 2f70 7265  6"].
Remediation │ │ │ -00266a60: 4b75 6265 726e 6574 6573 2073 6e69 7070 Kubernetes snipp │ │ │ -00266a70: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00266af0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
│ │ │ -00266b40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 < │ │ │ -00266b70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Co │ │ │ +00265920: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00265950: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00265970: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00265980: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002659a0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002659b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00266b00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00266b10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:medium
Reb │ │ │ -00266b50: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -00266b60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

apiVers │ │ │ -00266bb0: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -00266bc0: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -00266bd0: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -00266be0: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -00266bf0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -00266c00: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -00266c10: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -00266c20: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -00266c30: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -00266c40: 202d 206e 616d 653a 2069 7363 2d64 6863 - name: isc-dhc │ │ │ -00266c50: 702d 7365 7276 6572 362e 7365 7276 6963 p-server6.servic │ │ │ -00266c60: 650a 2020 2020 2020 2020 656e 6162 6c65 e. enable │ │ │ -00266c70: 643a 2066 616c 7365 0a20 2020 2020 2020 d: false. │ │ │ -00266c80: 206d 6173 6b3a 2074 7275 650a 2020 2020 mask: true. │ │ │ -00266c90: 2020 2d20 6e61 6d65 3a20 6973 632d 6468 - name: isc-dh │ │ │ -00266ca0: 6370 2d73 6572 7665 7236 2e73 6f63 6b65 cp-server6.socke │ │ │ -00266cb0: 740a 2020 2020 2020 2020 656e 6162 6c65 t. enable │ │ │ -00266cc0: 643a 2066 616c 7365 0a20 2020 2020 2020 d: false. │ │ │ -00266cd0: 206d 6173 6b3a 2074 7275 650a 3c2f 636f mask: true.

< │ │ │ -00266cf0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00266d00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00266d10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00266d20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00266d30: 6439 3331 2220 7461 6269 6e64 6578 3d22 d931" tabindex=" │ │ │ -00266d40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00266d50: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00266d60: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00266d70: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00266d80: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00266d90: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00266da0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00266e30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00266e40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00266e60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00266e80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00266e90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00266ed0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00266ee0: 6520 6469 7361 626c 655f 6973 632d 6468 e disable_isc-dh │ │ │ -00266ef0: 6370 2d73 6572 7665 7236 0a0a 636c 6173 cp-server6..clas │ │ │ -00266f00: 7320 6469 7361 626c 655f 6973 632d 6468 s disable_isc-dh │ │ │ -00266f10: 6370 2d73 6572 7665 7236 207b 0a20 2073 cp-server6 {. s │ │ │ -00266f20: 6572 7669 6365 207b 2769 7363 2d64 6863 ervice {'isc-dhc │ │ │ -00266f30: 702d 7365 7276 6572 3627 3a0a 2020 2020 p-server6':. │ │ │ -00266f40: 656e 6162 6c65 203d 2667 743b 2066 616c enable => fal │ │ │ -00266f50: 7365 2c0a 2020 2020 656e 7375 7265 203d se,. ensure = │ │ │ -00266f60: 2667 743b 2027 7374 6f70 7065 6427 2c0a > 'stopped',. │ │ │ -00266f70: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -00267030: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00267040: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002670c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002670d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002670f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00267100: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00267120: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00267140: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00267170: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00267180: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00267190: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002671a0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002671b0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002671c0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002671d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002671e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002671f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00267200: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00267210: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00267220: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00267230: 655f 6468 6370 6436 5f64 6973 6162 6c65  e_dhcpd6_disable
│ │ │ -00267240: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -00267250: 6c65 2044 4843 5044 3620 5365 7276 6963  le DHCPD6 Servic
│ │ │ -00267260: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -00267270: 6963 6520 6973 632d 6468 6370 2d73 6572  ice isc-dhcp-ser
│ │ │ -00267280: 7665 7236 0a20 2062 6c6f 636b 3a0a 0a20  ver6.  block:.. 
│ │ │ -00267290: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002672a0: 2044 4843 5044 3620 5365 7276 6963 6520   DHCPD6 Service 
│ │ │ -002672b0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002672c0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002672d0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002672e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002672f0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00267300: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00267310: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00267320: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00267330: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00267340: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00267350: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00267360: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00267370: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -00267380: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00267390: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002673a0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002673b0: 2044 6973 6162 6c65 2044 4843 5044 3620   Disable DHCPD6 
│ │ │ -002673c0: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ -002673d0: 2069 7363 2d64 6863 702d 7365 7276 6572   isc-dhcp-server
│ │ │ -002673e0: 362e 7365 7276 6963 6520 6973 204d 6173  6.service is Mas
│ │ │ -002673f0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -00267400: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00267410: 0a20 2020 2020 206e 616d 653a 2069 7363  .      name: isc
│ │ │ -00267420: 2d64 6863 702d 7365 7276 6572 362e 7365  -dhcp-server6.se
│ │ │ -00267430: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -00267440: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -00267450: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00267460: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00267470: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -00267480: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -00267490: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002674a0: 6368 2822 6973 632d 6468 6370 2d73 6572  ch("isc-dhcp-ser
│ │ │ -002674b0: 7665 7236 2e73 6572 7669 6365 222c 206d  ver6.service", m
│ │ │ -002674c0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -002674d0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -002674e0: 6f63 6b65 7420 4578 6973 7473 202d 2069  ocket Exists - i
│ │ │ -002674f0: 7363 2d64 6863 702d 7365 7276 6572 362e  sc-dhcp-server6.
│ │ │ -00267500: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -00267510: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00267520: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00267530: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00267540: 2069 7363 2d64 6863 702d 7365 7276 6572   isc-dhcp-server
│ │ │ -00267550: 362e 736f 636b 6574 0a20 2020 2072 6567  6.socket.    reg
│ │ │ -00267560: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ -00267570: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ -00267580: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -00267590: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -002675a0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -002675b0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002675c0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002675d0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002675e0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002675f0: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ -00267600: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +00266900: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00266910: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +002669b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00266a50: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00266a60: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00266a70: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00266a80: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00266a90: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +00266aa0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00266ab0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00266ac0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00266ad0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00266ae0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00266af0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00266b00: 202d 2073 6572 7669 6365 5f64 6863 7064   - service_dhcpd
│ │ │ +00266b10: 365f 6469 7361 626c 6564 0a0a 2d20 6e61  6_disabled..- na
│ │ │ +00266b20: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +00266b30: 4436 2053 6572 7669 6365 202d 2044 6973  D6 Service - Dis
│ │ │ +00266b40: 6162 6c65 2073 6572 7669 6365 2069 7363  able service isc
│ │ │ +00266b50: 2d64 6863 702d 7365 7276 6572 360a 2020  -dhcp-server6.  
│ │ │ +00266b60: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00266b70: 3a20 4469 7361 626c 6520 4448 4350 4436  : Disable DHCPD6
│ │ │ +00266b80: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +00266b90: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +00266ba0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +00266bb0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00266bc0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00266bd0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00266be0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00266bf0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00266c00: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00266c10: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00266c20: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00266c30: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00266c40: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +00266c50: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00266c60: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00266c70: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00266c80: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00266c90: 6520 4448 4350 4436 2053 6572 7669 6365  e DHCPD6 Service
│ │ │ +00266ca0: 202d 2045 6e73 7572 6520 6973 632d 6468   - Ensure isc-dh
│ │ │ +00266cb0: 6370 2d73 6572 7665 7236 2e73 6572 7669  cp-server6.servi
│ │ │ +00266cc0: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +00266cd0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00266ce0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00266cf0: 6e61 6d65 3a20 6973 632d 6468 6370 2d73  name: isc-dhcp-s
│ │ │ +00266d00: 6572 7665 7236 2e73 6572 7669 6365 0a20  erver6.service. 
│ │ │ +00266d10: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00266d20: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +00266d30: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +00266d40: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00266d50: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00266d60: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00266d70: 7320 6973 2073 6561 7263 6828 2269 7363  s is search("isc
│ │ │ +00266d80: 2d64 6863 702d 7365 7276 6572 362e 7365  -dhcp-server6.se
│ │ │ +00266d90: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +00266da0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +00266db0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +00266dc0: 7869 7374 7320 2d20 6973 632d 6468 6370  xists - isc-dhcp
│ │ │ +00266dd0: 2d73 6572 7665 7236 2e73 6f63 6b65 740a  -server6.socket.
│ │ │ +00266de0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00266df0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00266e00: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00266e10: 6e69 742d 6669 6c65 7320 6973 632d 6468  nit-files isc-dh
│ │ │ +00266e20: 6370 2d73 6572 7665 7236 2e73 6f63 6b65  cp-server6.socke
│ │ │ +00266e30: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00266e40: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00266e50: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00266e60: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00266e70: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00266e80: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00266e90: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00266ea0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00266eb0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00266ec0: 2044 6973 6162 6c65 2044 4843 5044 3620   Disable DHCPD6 
│ │ │ +00266ed0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00266ee0: 6520 536f 636b 6574 2069 7363 2d64 6863  e Socket isc-dhc
│ │ │ +00266ef0: 702d 7365 7276 6572 360a 2020 2020 616e  p-server6.    an
│ │ │ +00266f00: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00266f10: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00266f20: 653a 2069 7363 2d64 6863 702d 7365 7276  e: isc-dhcp-serv
│ │ │ +00266f30: 6572 362e 736f 636b 6574 0a20 2020 2020  er6.socket.     
│ │ │ +00266f40: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00266f50: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00266f60: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +00266f70: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00266f80: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00266f90: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00266fa0: 7320 6973 2073 6561 7263 6828 2269 7363  s is search("isc
│ │ │ +00266fb0: 2d64 6863 702d 7365 7276 6572 362e 736f  -dhcp-server6.so
│ │ │ +00266fc0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00266fd0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00266fe0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00266ff0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00267000: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00267010: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00267020: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00267030: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00267040: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +00267050: 6863 7064 365f 6469 7361 626c 6564 0a20  hcpd6_disabled. 
│ │ │ +00267060: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00267070: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00267080: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00267090: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +002670a0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedi │ │ │ +00267160: 6174 696f 6e20 4b75 6265 726e 6574 6573 ation Kubernetes │ │ │ +00267170: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00267180: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +002669a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002669d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002669e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00266a20: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00266a30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +00267220: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00267250: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00267260: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ +002672b0: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ +002672c0: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ +002672d0: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ +002672e0: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ +002672f0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ +00267300: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ +00267310: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ +00267320: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ +00267330: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ +00267340: 0a20 2020 2020 202d 206e 616d 653a 2069  .      - name: i
│ │ │ +00267350: 7363 2d64 6863 702d 7365 7276 6572 362e  sc-dhcp-server6.
│ │ │ +00267360: 7365 7276 6963 650a 2020 2020 2020 2020  service.        
│ │ │ +00267370: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00267380: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +00267390: 650a 2020 2020 2020 2d20 6e61 6d65 3a20  e.      - name: 
│ │ │ +002673a0: 6973 632d 6468 6370 2d73 6572 7665 7236  isc-dhcp-server6
│ │ │ +002673b0: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +002673c0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002673d0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +002673e0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +002673f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +002674a0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002674b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Co │ │ │ +00267200: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00267230: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ +00267240: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ +00267280: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00267290: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00267580: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00267590: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002675e0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002675f0: 6973 632d 6468 6370 2d73 6572 7665 7236  isc-dhcp-server6
│ │ │ +00267600: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │  00267610: 6973 632d 6468 6370 2d73 6572 7665 7236  isc-dhcp-server6
│ │ │ -00267620: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00267630: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00267640: 2020 2020 6e61 6d65 3a20 6973 632d 6468      name: isc-dh
│ │ │ -00267650: 6370 2d73 6572 7665 7236 2e73 6f63 6b65  cp-server6.socke
│ │ │ -00267660: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -00267670: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -00267680: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00267690: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002676a0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002676b0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002676c0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002676d0: 6368 2822 6973 632d 6468 6370 2d73 6572  ch("isc-dhcp-ser
│ │ │ -002676e0: 7665 7236 2e73 6f63 6b65 7422 2c20 6d75  ver6.socket", mu
│ │ │ -002676f0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -00267700: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -00267710: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00267720: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00267730: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00267740: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00267750: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00267760: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00267770: 7276 6963 655f 6468 6370 6436 5f64 6973  rvice_dhcpd6_dis
│ │ │ -00267780: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -00267790: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -002677a0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -002677b0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -002677c0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00267620: 207b 0a20 2073 6572 7669 6365 207b 2769   {.  service {'i
│ │ │ +00267630: 7363 2d64 6863 702d 7365 7276 6572 3627  sc-dhcp-server6'
│ │ │ +00267640: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +00267650: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +00267660: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +00267670: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +00267690: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002676a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002676b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002676c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002676d0: 6439 3332 2220 7461 6269 6e64 6578 3d22 d932" tabindex=" │ │ │ +002676e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +002676f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00267700: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00267710: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00267720: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00267730: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00267740: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00267750: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +002677a0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +002677b0: 735d 0a6d 6173 6b65 6420 3d20 5b22 6973 s].masked = ["is │ │ │ +002677c0: 632d 6468 6370 2d73 6572 7665 7236 225d c-dhcp-server6"] │ │ │ 002677d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Rem │ │ │ -00268c20: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00268c30: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00268c40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00268c90: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00268ca0: 6573 5d0a 6d61 736b 6564 203d 205b 2269 es].masked = ["i │ │ │ -00268cb0: 7363 2d64 6863 702d 7365 7276 6572 225d sc-dhcp-server"] │ │ │ -00268cc0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Kub │ │ │ -00268d80: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -00268d90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...

mediumdisable
low
Disru │ │ │ +00267560: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00267570: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002675b0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002675c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00268e20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00268e40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot │ │ │ -00268e70: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true
│ │ │ -00268e90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00268ec0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ -00268ed0: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ -00268ee0: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ -00268ef0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ -00268f00: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ -00268f10: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ -00268f20: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ -00268f30: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ -00268f40: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ -00268f50: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ -00268f60: 6e61 6d65 3a20 6973 632d 6468 6370 2d73  name: isc-dhcp-s
│ │ │ -00268f70: 6572 7665 722e 7365 7276 6963 650a 2020  erver.service.  
│ │ │ -00268f80: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -00268f90: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -00268fa0: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ -00268fb0: 6e61 6d65 3a20 6973 632d 6468 6370 2d73  name: isc-dhcp-s
│ │ │ -00268fc0: 6572 7665 722e 736f 636b 6574 0a20 2020  erver.socket.   
│ │ │ -00268fd0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00268fe0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -00268ff0: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ -002690b0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002690c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00269140: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00269150: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00269170: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00269180: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002691a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002691c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -002691f0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00269200: 6162 6c65 5f69 7363 2d64 6863 702d 7365  able_isc-dhcp-se
│ │ │ -00269210: 7276 6572 0a0a 636c 6173 7320 6469 7361  rver..class disa
│ │ │ -00269220: 626c 655f 6973 632d 6468 6370 2d73 6572  ble_isc-dhcp-ser
│ │ │ -00269230: 7665 7220 7b0a 2020 7365 7276 6963 6520  ver {.  service 
│ │ │ -00269240: 7b27 6973 632d 6468 6370 2d73 6572 7665  {'isc-dhcp-serve
│ │ │ -00269250: 7227 3a0a 2020 2020 656e 6162 6c65 203d  r':.    enable =
│ │ │ -00269260: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -00269270: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -00269280: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -00269340: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00269350: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -002693f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00269400: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00269450: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00269490: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -002694a0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -002694b0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002694c0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002694d0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -002694e0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002694f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00269500: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00269510: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00269520: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00269530: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00269540: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00269550: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00269560: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00269570: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00269580: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00269590: 655f 6468 6370 645f 6469 7361 626c 6564  e_dhcpd_disabled
│ │ │ -002695a0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -002695b0: 6520 4448 4350 2053 6572 7669 6365 202d  e DHCP Service -
│ │ │ -002695c0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ -002695d0: 2069 7363 2d64 6863 702d 7365 7276 6572   isc-dhcp-server
│ │ │ -002695e0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -002695f0: 616d 653a 2044 6973 6162 6c65 2044 4843  ame: Disable DHC
│ │ │ -00269600: 5020 5365 7276 6963 6520 2d20 436f 6c6c  P Service - Coll
│ │ │ -00269610: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -00269620: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -00269630: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -00269640: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00269650: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00269660: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00269670: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -00269680: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -00269690: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002696a0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -002696b0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -002696c0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -002696d0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002696e0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002696f0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00269700: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00269710: 6c65 2044 4843 5020 5365 7276 6963 6520  le DHCP Service 
│ │ │ -00269720: 2d20 456e 7375 7265 2069 7363 2d64 6863  - Ensure isc-dhc
│ │ │ -00269730: 702d 7365 7276 6572 2e73 6572 7669 6365  p-server.service
│ │ │ -00269740: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -00269750: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00269760: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00269770: 6d65 3a20 6973 632d 6468 6370 2d73 6572  me: isc-dhcp-ser
│ │ │ -00269780: 7665 722e 7365 7276 6963 650a 2020 2020  ver.service.    
│ │ │ -00269790: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002697a0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -002697b0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -002697c0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -002697d0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002697e0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -002697f0: 7320 7365 6172 6368 2822 6973 632d 6468  s search("isc-dh
│ │ │ -00269800: 6370 2d73 6572 7665 722e 7365 7276 6963  cp-server.servic
│ │ │ -00269810: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -00269820: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -00269830: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -00269840: 7320 2d20 6973 632d 6468 6370 2d73 6572  s - isc-dhcp-ser
│ │ │ -00269850: 7665 722e 736f 636b 6574 0a20 2020 2061  ver.socket.    a
│ │ │ -00269860: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00269870: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00269880: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00269890: 696c 6573 2069 7363 2d64 6863 702d 7365  iles isc-dhcp-se
│ │ │ -002698a0: 7276 6572 2e73 6f63 6b65 740a 2020 2020  rver.socket.    
│ │ │ -002698b0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002698c0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002698d0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002698e0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002698f0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00269900: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00269910: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00269920: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00269930: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00269940: 6c65 2044 4843 5020 5365 7276 6963 6520  le DHCP Service 
│ │ │ -00269950: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -00269960: 2069 7363 2d64 6863 702d 7365 7276 6572   isc-dhcp-server
│ │ │ -00269970: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00269980: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00269990: 2020 2020 6e61 6d65 3a20 6973 632d 6468      name: isc-dh
│ │ │ -002699a0: 6370 2d73 6572 7665 722e 736f 636b 6574  cp-server.socket
│ │ │ -002699b0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -002699c0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -002699d0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -002699e0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -002699f0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -00269a00: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -00269a10: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00269a20: 6828 2269 7363 2d64 6863 702d 7365 7276  h("isc-dhcp-serv
│ │ │ -00269a30: 6572 2e73 6f63 6b65 7422 2c20 6d75 6c74  er.socket", mult
│ │ │ -00269a40: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00269a50: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00269a60: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00269a70: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00269a80: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00269a90: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00269aa0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00269ab0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00269ac0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00269ad0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00269ae0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00269af0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00269b00: 2020 2d20 7365 7276 6963 655f 6468 6370    - service_dhcp
│ │ │ -00269b10: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -00269b20: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00269b30: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00269b40: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00269b50: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00269b60: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

│ │ │ +00268c40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ -002693e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00269410: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00269420: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00269460: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00269470: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00268ce0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00268d30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00268d70: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00268d80: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00268d90: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00268da0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00268db0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00268dc0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00268dd0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00268de0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00268df0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00268e00: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00268e10: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00268e20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00268e30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00268e40: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00268e50: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00268e60: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00268e70: 5f64 6863 7064 5f64 6973 6162 6c65 640a  _dhcpd_disabled.
│ │ │ +00268e80: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +00268e90: 2044 4843 5020 5365 7276 6963 6520 2d20   DHCP Service - 
│ │ │ +00268ea0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +00268eb0: 6973 632d 6468 6370 2d73 6572 7665 720a  isc-dhcp-server.
│ │ │ +00268ec0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00268ed0: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +00268ee0: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +00268ef0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +00268f00: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +00268f10: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00268f20: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00268f30: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00268f40: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00268f50: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00268f60: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00268f70: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00268f80: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00268f90: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00268fa0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +00268fb0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00268fc0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00268fd0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00268fe0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00268ff0: 6520 4448 4350 2053 6572 7669 6365 202d  e DHCP Service -
│ │ │ +00269000: 2045 6e73 7572 6520 6973 632d 6468 6370   Ensure isc-dhcp
│ │ │ +00269010: 2d73 6572 7665 722e 7365 7276 6963 6520  -server.service 
│ │ │ +00269020: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +00269030: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00269040: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00269050: 653a 2069 7363 2d64 6863 702d 7365 7276  e: isc-dhcp-serv
│ │ │ +00269060: 6572 2e73 6572 7669 6365 0a20 2020 2020  er.service.     
│ │ │ +00269070: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00269080: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00269090: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002690a0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002690b0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002690c0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002690d0: 2073 6561 7263 6828 2269 7363 2d64 6863   search("isc-dhc
│ │ │ +002690e0: 702d 7365 7276 6572 2e73 6572 7669 6365  p-server.service
│ │ │ +002690f0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00269100: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +00269110: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +00269120: 202d 2069 7363 2d64 6863 702d 7365 7276   - isc-dhcp-serv
│ │ │ +00269130: 6572 2e73 6f63 6b65 740a 2020 2020 616e  er.socket.    an
│ │ │ +00269140: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00269150: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00269160: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00269170: 6c65 7320 6973 632d 6468 6370 2d73 6572  les isc-dhcp-ser
│ │ │ +00269180: 7665 722e 736f 636b 6574 0a20 2020 2072  ver.socket.    r
│ │ │ +00269190: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +002691a0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +002691b0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +002691c0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002691d0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002691e0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002691f0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00269200: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00269210: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00269220: 6520 4448 4350 2053 6572 7669 6365 202d  e DHCP Service -
│ │ │ +00269230: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +00269240: 6973 632d 6468 6370 2d73 6572 7665 720a  isc-dhcp-server.
│ │ │ +00269250: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00269260: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00269270: 2020 206e 616d 653a 2069 7363 2d64 6863     name: isc-dhc
│ │ │ +00269280: 702d 7365 7276 6572 2e73 6f63 6b65 740a  p-server.socket.
│ │ │ +00269290: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002692a0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +002692b0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002692c0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002692d0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +002692e0: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +002692f0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00269300: 2822 6973 632d 6468 6370 2d73 6572 7665  ("isc-dhcp-serve
│ │ │ +00269310: 722e 736f 636b 6574 222c 206d 756c 7469  r.socket", multi
│ │ │ +00269320: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +00269330: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00269340: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00269350: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00269360: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00269370: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00269380: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00269390: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002693a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002693b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002693c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002693d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002693e0: 202d 2073 6572 7669 6365 5f64 6863 7064   - service_dhcpd
│ │ │ +002693f0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +00269400: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +00269410: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +00269420: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00269430: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00269440: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation
│ │ │ +00269500: 204b 7562 6572 6e65 7465 7320 736e 6970   Kubernetes snip
│ │ │ +00269510: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +00269520: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00269530: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00269540: 7365 2220 6964 3d22 6964 3933 3622 3e3c se" id="id936">< │ │ │ +00269550: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00269560: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00269570: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00269580: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00269590: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption: │ │ │ +00269610: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Co │ │ │ +00268cc0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00268cf0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00268d10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00268d20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00268d40: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00268d50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +002695a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002695b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
medium
Re │ │ │ +002695f0: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ +00269600: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue
Strategy:disable
< │ │ │ +00269640: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ +00269650: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ +00269660: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ +00269670: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ +00269680: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ +00269690: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ +002696a0: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ +002696b0: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ +002696c0: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ +002696d0: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ +002696e0: 2020 2d20 6e61 6d65 3a20 6973 632d 6468 - name: isc-dh │ │ │ +002696f0: 6370 2d73 6572 7665 722e 7365 7276 6963 cp-server.servic │ │ │ +00269700: 650a 2020 2020 2020 2020 656e 6162 6c65 e. enable │ │ │ +00269710: 643a 2066 616c 7365 0a20 2020 2020 2020 d: false. │ │ │ +00269720: 206d 6173 6b3a 2074 7275 650a 2020 2020 mask: true. │ │ │ +00269730: 2020 2d20 6e61 6d65 3a20 6973 632d 6468 - name: isc-dh │ │ │ +00269740: 6370 2d73 6572 7665 722e 736f 636b 6574 cp-server.socket │ │ │ +00269750: 0a20 2020 2020 2020 2065 6e61 626c 6564 . enabled │ │ │ +00269760: 3a20 6661 6c73 650a 2020 2020 2020 2020 : false. │ │ │ +00269770: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64 mask: true.
Remed │ │ │ +00269830: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00269840: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +002698f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00269910: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00269940: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002698d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002698e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00269900: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00269920: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00269930: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00269980: 2064 6973 6162 6c65 5f69 7363 2d64 6863 disable_isc-dhc │ │ │ +00269990: 702d 7365 7276 6572 0a0a 636c 6173 7320 p-server..class │ │ │ +002699a0: 6469 7361 626c 655f 6973 632d 6468 6370 disable_isc-dhcp │ │ │ +002699b0: 2d73 6572 7665 7220 7b0a 2020 7365 7276 -server {. serv │ │ │ +002699c0: 6963 6520 7b27 6973 632d 6468 6370 2d73 ice {'isc-dhcp-s │ │ │ +002699d0: 6572 7665 7227 3a0a 2020 2020 656e 6162 erver':. enab │ │ │ +002699e0: 6c65 203d 2667 743b 2066 616c 7365 2c0a le => false,. │ │ │ +002699f0: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ +00269a00: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a 'stopped',. }. │ │ │ +00269a10: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ +00269a20: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00269ad0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00269ae0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00269af0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>

.[
│ │ │ +00269b30: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00269b40: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +00269b50: 3d20 5b22 6973 632d 6468 6370 2d73 6572  = ["isc-dhcp-ser
│ │ │ +00269b60: 7665 7222 5d0a 3c2f 636f 6465 3e3c 2f70  ver"].

Remedia │ │ │ -0026b740: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0026b750: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0026b760: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026b770: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026b780: 7365 2220 6964 3d22 6964 3934 3122 3e3c se" id="id941">< │ │ │ -0026b790: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026b7a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026b7b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026b7c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026b7d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0026b7e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026b7f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0026b830: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026b840: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0026b860: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0026b870: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0026b890: 2072 656d 6f76 655f 6269 6e64 390a 0a63 remove_bind9..c │ │ │ -0026b8a0: 6c61 7373 2072 656d 6f76 655f 6269 6e64 lass remove_bind │ │ │ -0026b8b0: 3920 7b0a 2020 7061 636b 6167 6520 7b20 9 {. package { │ │ │ -0026b8c0: 2762 696e 6439 273a 0a20 2020 2065 6e73 'bind9':. ens │ │ │ -0026b8d0: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ -0026b8e0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedi │ │ │ -0026b9a0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0026b9b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0026ba60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0026ba80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0026bab0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0026ba40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0026ba50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0026ba70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0026ba90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0026baa0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0026bae0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0026baf0: 3a20 2755 6e69 6e73 7461 6c6c 2062 696e : 'Uninstall bin │ │ │ -0026bb00: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ -0026bb10: 6520 6269 6e64 3920 6973 2072 656d 6f76 e bind9 is remov │ │ │ -0026bb20: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -0026bb30: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -0026bb40: 2020 206e 616d 653a 2062 696e 6439 0a20 name: bind9. │ │ │ -0026bb50: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -0026bb60: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -0026bb70: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -0026bb80: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0026bb90: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ -0026bba0: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ -0026bbb0: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -0026bbc0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -0026bbd0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0026bbe0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0026bbf0: 6c6f 775f 7365 7665 7269 7479 0a20 202d low_severity. - │ │ │ -0026bc00: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0026bc10: 640a 2020 2d20 7061 636b 6167 655f 6269 d. - package_bi │ │ │ -0026bc20: 6e64 5f72 656d 6f76 6564 0a3c 2f63 6f64 nd_removed.
│ │ │ +0026b760: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0026b790: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0026b800: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0026b820: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0026b850: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0026b7e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0026b7f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0026b830: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0026b840: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0026b890: 2027 556e 696e 7374 616c 6c20 6269 6e64 'Uninstall bind │ │ │ +0026b8a0: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ +0026b8b0: 2062 696e 6439 2069 7320 7265 6d6f 7665 bind9 is remove │ │ │ +0026b8c0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +0026b8d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +0026b8e0: 2020 6e61 6d65 3a20 6269 6e64 390a 2020 name: bind9. │ │ │ +0026b8f0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +0026b900: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +0026b910: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0026b920: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0026b930: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ +0026b940: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ +0026b950: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +0026b960: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +0026b970: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +0026b980: 6469 7372 7570 7469 6f6e 0a20 202d 206c disruption. - l │ │ │ +0026b990: 6f77 5f73 6576 6572 6974 790a 2020 2d20 ow_severity. - │ │ │ +0026b9a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0026b9b0: 0a20 202d 2070 6163 6b61 6765 5f62 696e . - package_bin │ │ │ +0026b9c0: 645f 7265 6d6f 7665 640a 3c2f 636f 6465 d_removed.

Remedi │ │ │ +0026ba80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0026ba90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0026baa0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0026bad0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0026bb40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0026bb60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0026bb90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0026bb20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0026bb30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0026bb70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0026bb80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +0026bbd0: 6520 7265 6d6f 7665 5f62 696e 6439 0a0a e remove_bind9.. │ │ │ +0026bbe0: 636c 6173 7320 7265 6d6f 7665 5f62 696e class remove_bin │ │ │ +0026bbf0: 6439 207b 0a20 2070 6163 6b61 6765 207b d9 {. package { │ │ │ +0026bc00: 2027 6269 6e64 3927 3a0a 2020 2020 656e 'bind9':. en │ │ │ +0026bc10: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ +0026bc20: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.

Rem │ │ │ -0026cf50: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0026cf60: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0026cf70: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -0026cfc0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -0026cfd0: 6573 5d0a 6d61 736b 6564 203d 205b 226e es].masked = ["n │ │ │ -0026cfe0: 616d 6564 225d 0a3c 2f63 6f64 653e 3c2f amed"].

Remediati │ │ │ -0026d0a0: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -0026d0b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0026d160: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ -0026d140: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0026d150: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0026d170: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ -0026d190: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0026d1a0: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ -0026d1c0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0026d1d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ -0026d1f0: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ -0026d200: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ -0026d210: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ -0026d220: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ -0026d230: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ -0026d240: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ -0026d250: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ -0026d260: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ -0026d270: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ -0026d280: 2020 2020 2d20 6e61 6d65 3a20 6e61 6d65      - name: name
│ │ │ -0026d290: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -0026d2a0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0026d2b0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -0026d2c0: 7275 650a 2020 2020 2020 2d20 6e61 6d65  rue.      - name
│ │ │ -0026d2d0: 3a20 6e61 6d65 642e 736f 636b 6574 0a20  : named.socket. 
│ │ │ -0026d2e0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -0026d2f0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -0026d300: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e  sk: true.
│ │ │ -0026d310: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0026d3c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0026d3d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0026d3e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026d3f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026d400: 7365 2220 6964 3d22 6964 3934 3722 3e3c se" id="id947">< │ │ │ -0026d410: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026d420: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026d430: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026d440: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026d450: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0026d460: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026d470: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0026d4b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026d4c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0026d4e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0026d4f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0026d510: 6973 6162 6c65 5f6e 616d 6564 0a0a 636c  isable_named..cl
│ │ │ -0026d520: 6173 7320 6469 7361 626c 655f 6e61 6d65  ass disable_name
│ │ │ -0026d530: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -0026d540: 6e61 6d65 6427 3a0a 2020 2020 656e 6162  named':.    enab
│ │ │ -0026d550: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -0026d560: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0026d570: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -0026d580: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0026d590: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0026d640: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0026d650: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0026d6d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0026d6f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0026d740: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0026d770: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0026d790: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0026d7a0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0026d7b0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0026d7c0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0026d7d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026d7e0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0026d7f0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0026d800: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026d810: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0026d820: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0026d830: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0026d840: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0026d850: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0026d860: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0026d870: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0026d880: 7276 6963 655f 6e61 6d65 645f 6469 7361  rvice_named_disa
│ │ │ -0026d890: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -0026d8a0: 7361 626c 6520 6e61 6d65 6420 5365 7276  sable named Serv
│ │ │ -0026d8b0: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -0026d8c0: 7276 6963 6520 6e61 6d65 640a 2020 626c  rvice named.  bl
│ │ │ -0026d8d0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -0026d8e0: 4469 7361 626c 6520 6e61 6d65 6420 5365  Disable named Se
│ │ │ -0026d8f0: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -0026d900: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -0026d910: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -0026d920: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -0026d930: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0026d940: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0026d950: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0026d960: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -0026d970: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -0026d980: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -0026d990: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0026d9a0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0026d9b0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0026d9c0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0026d9d0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0026d9e0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0026d9f0: 206e 616d 653a 2044 6973 6162 6c65 206e   name: Disable n
│ │ │ -0026da00: 616d 6564 2053 6572 7669 6365 202d 2045  amed Service - E
│ │ │ -0026da10: 6e73 7572 6520 6e61 6d65 642e 7365 7276  nsure named.serv
│ │ │ -0026da20: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -0026da30: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0026da40: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -0026da50: 206e 616d 653a 206e 616d 6564 2e73 6572   name: named.ser
│ │ │ -0026da60: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -0026da70: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -0026da80: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0026da90: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -0026daa0: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -0026dab0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -0026dac0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -0026dad0: 6828 226e 616d 6564 2e73 6572 7669 6365  h("named.service
│ │ │ -0026dae0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0026daf0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -0026db00: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -0026db10: 202d 206e 616d 6564 2e73 6f63 6b65 740a   - named.socket.
│ │ │ -0026db20: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0026db30: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -0026db40: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -0026db50: 6e69 742d 6669 6c65 7320 6e61 6d65 642e  nit-files named.
│ │ │ -0026db60: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -0026db70: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -0026db80: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0026db90: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0026dba0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0026dbb0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0026dbc0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -0026dbd0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -0026dbe0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -0026dbf0: 6e61 6d65 3a20 4469 7361 626c 6520 6e61  name: Disable na
│ │ │ -0026dc00: 6d65 6420 5365 7276 6963 6520 2d20 4469  med Service - Di
│ │ │ -0026dc10: 7361 626c 6520 536f 636b 6574 206e 616d  sable Socket nam
│ │ │ -0026dc20: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -0026dc30: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0026dc40: 2020 2020 2020 6e61 6d65 3a20 6e61 6d65        name: name
│ │ │ -0026dc50: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -0026dc60: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0026dc70: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0026dc80: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0026dc90: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0026dca0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0026dcb0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0026dcc0: 6973 2073 6561 7263 6828 226e 616d 6564  is search("named
│ │ │ -0026dcd0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0026dce0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0026dcf0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0026dd00: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0026dd10: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0026dd20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0026dd30: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0026dd40: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0026dd50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0026dd60: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0026dd70: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0026dd80: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0026dd90: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0026dda0: 2d20 7365 7276 6963 655f 6e61 6d65 645f  - service_named_
│ │ │ -0026ddb0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0026ddc0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0026ddd0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -0026dde0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0026ddf0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0026de00: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
│ │ │ +0026cf70: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ -0026d700: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0026d710: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0026d750: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0026d760: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
low< │ │ │ +0026d010: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0026d060: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0026d0a0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0026d0b0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0026d0c0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0026d0d0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0026d0e0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0026d0f0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0026d100: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0026d110: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0026d120: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0026d130: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0026d140: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0026d150: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0026d160: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0026d170: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0026d180: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0026d190: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0026d1a0: 5f6e 616d 6564 5f64 6973 6162 6c65 640a  _named_disabled.
│ │ │ +0026d1b0: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +0026d1c0: 206e 616d 6564 2053 6572 7669 6365 202d   named Service -
│ │ │ +0026d1d0: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +0026d1e0: 206e 616d 6564 0a20 2062 6c6f 636b 3a0a   named.  block:.
│ │ │ +0026d1f0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0026d200: 6c65 206e 616d 6564 2053 6572 7669 6365  le named Service
│ │ │ +0026d210: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +0026d220: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +0026d230: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +0026d240: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +0026d250: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0026d260: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0026d270: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +0026d280: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +0026d290: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +0026d2a0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0026d2b0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0026d2c0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0026d2d0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0026d2e0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0026d2f0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0026d300: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0026d310: 3a20 4469 7361 626c 6520 6e61 6d65 6420  : Disable named 
│ │ │ +0026d320: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ +0026d330: 206e 616d 6564 2e73 6572 7669 6365 2069   named.service i
│ │ │ +0026d340: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +0026d350: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0026d360: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0026d370: 3a20 6e61 6d65 642e 7365 7276 6963 650a  : named.service.
│ │ │ +0026d380: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0026d390: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +0026d3a0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0026d3b0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +0026d3c0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +0026d3d0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0026d3e0: 6573 2069 7320 7365 6172 6368 2822 6e61  es is search("na
│ │ │ +0026d3f0: 6d65 642e 7365 7276 6963 6522 2c20 6d75  med.service", mu
│ │ │ +0026d400: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0026d410: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0026d420: 636b 6574 2045 7869 7374 7320 2d20 6e61  cket Exists - na
│ │ │ +0026d430: 6d65 642e 736f 636b 6574 0a20 2020 2061  med.socket.    a
│ │ │ +0026d440: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +0026d450: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +0026d460: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +0026d470: 696c 6573 206e 616d 6564 2e73 6f63 6b65  iles named.socke
│ │ │ +0026d480: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +0026d490: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0026d4a0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0026d4b0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0026d4c0: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +0026d4d0: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +0026d4e0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0026d4f0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0026d500: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0026d510: 2044 6973 6162 6c65 206e 616d 6564 2053   Disable named S
│ │ │ +0026d520: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0026d530: 2053 6f63 6b65 7420 6e61 6d65 640a 2020   Socket named.  
│ │ │ +0026d540: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0026d550: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0026d560: 206e 616d 653a 206e 616d 6564 2e73 6f63   name: named.soc
│ │ │ +0026d570: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0026d580: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0026d590: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0026d5a0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0026d5b0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0026d5c0: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0026d5d0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0026d5e0: 6172 6368 2822 6e61 6d65 642e 736f 636b  arch("named.sock
│ │ │ +0026d5f0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +0026d600: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +0026d610: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0026d620: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +0026d630: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +0026d640: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0026d650: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +0026d660: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0026d670: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0026d680: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0026d690: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0026d6a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0026d6b0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0026d6c0: 7669 6365 5f6e 616d 6564 5f64 6973 6162  vice_named_disab
│ │ │ +0026d6d0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0026d6e0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0026d6f0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0026d700: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0026d710: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0026d720: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0026d7d0: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +0026d7e0: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +0026d7f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ +0026cff0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0026d020: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0026d040: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0026d050: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0026d070: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0026d080: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0026d870: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0026d890: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr> │ │ │ +0026d8c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +0026d8a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0026d8b0: 6d65 6469 756d 3c2f 7464 3e3c 2f74 723e medium
Reboot:< │ │ │ +0026d8d0: 2f74 683e 3c74 643e 7472 7565 3c2f 7464 /th>true
St │ │ │ +0026d8f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0026d900: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
apiVersion: 
│ │ │ +0026d930: 6d61 6368 696e 6563 6f6e 6669 6775 7261  machineconfigura
│ │ │ +0026d940: 7469 6f6e 2e6f 7065 6e73 6869 6674 2e69  tion.openshift.i
│ │ │ +0026d950: 6f2f 7631 0a6b 696e 643a 204d 6163 6869  o/v1.kind: Machi
│ │ │ +0026d960: 6e65 436f 6e66 6967 0a73 7065 633a 0a20  neConfig.spec:. 
│ │ │ +0026d970: 2063 6f6e 6669 673a 0a20 2020 2069 676e   config:.    ign
│ │ │ +0026d980: 6974 696f 6e3a 0a20 2020 2020 2076 6572  ition:.      ver
│ │ │ +0026d990: 7369 6f6e 3a20 332e 312e 300a 2020 2020  sion: 3.1.0.    
│ │ │ +0026d9a0: 7379 7374 656d 643a 0a20 2020 2020 2075  systemd:.      u
│ │ │ +0026d9b0: 6e69 7473 3a0a 2020 2020 2020 2d20 6e61  nits:.      - na
│ │ │ +0026d9c0: 6d65 3a20 6e61 6d65 642e 7365 7276 6963  me: named.servic
│ │ │ +0026d9d0: 650a 2020 2020 2020 2020 656e 6162 6c65  e.        enable
│ │ │ +0026d9e0: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +0026d9f0: 206d 6173 6b3a 2074 7275 650a 2020 2020   mask: true.    
│ │ │ +0026da00: 2020 2d20 6e61 6d65 3a20 6e61 6d65 642e    - name: named.
│ │ │ +0026da10: 736f 636b 6574 0a20 2020 2020 2020 2065  socket.        e
│ │ │ +0026da20: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0026da30: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +0026da40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0026db00: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0026db10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0026dbe0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0026dbf0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0026dc40: 6e63 6c75 6465 2064 6973 6162 6c65 5f6e  nclude disable_n
│ │ │ +0026dc50: 616d 6564 0a0a 636c 6173 7320 6469 7361  amed..class disa
│ │ │ +0026dc60: 626c 655f 6e61 6d65 6420 7b0a 2020 7365  ble_named {.  se
│ │ │ +0026dc70: 7276 6963 6520 7b27 6e61 6d65 6427 3a0a  rvice {'named':.
│ │ │ +0026dc80: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0026dc90: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +0026dca0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +0026dcb0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +0026dd70: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0026dd80: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0026dd90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0026ddd0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0026dde0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0026ddf0: 0a6d 6173 6b65 6420 3d20 5b22 6e61 6d65  .masked = ["name
│ │ │ +0026de00: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediat │ │ │ -0026ec90: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0026eca0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0026ed20: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -0026edb0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0026edc0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0026dbc0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0026dbd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0026dc10: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0026dc20: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0026ed30: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0026ed40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0026ed80: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0026ed90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -0026ede0: 7265 6d6f 7665 5f64 6e73 6d61 7371 0a0a  remove_dnsmasq..
│ │ │ -0026edf0: 636c 6173 7320 7265 6d6f 7665 5f64 6e73  class remove_dns
│ │ │ -0026ee00: 6d61 7371 207b 0a20 2070 6163 6b61 6765  masq {.  package
│ │ │ -0026ee10: 207b 2027 646e 736d 6173 7127 3a0a 2020   { 'dnsmasq':.  
│ │ │ -0026ee20: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0026ee30: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0026ee40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0026eef0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0026ef00: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0026efa0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0026f040: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -0026f050: 6c20 646e 736d 6173 7120 5061 636b 6167  l dnsmasq Packag
│ │ │ -0026f060: 653a 2045 6e73 7572 6520 646e 736d 6173  e: Ensure dnsmas
│ │ │ -0026f070: 7120 6973 2072 656d 6f76 6564 270a 2020  q is removed'.  
│ │ │ -0026f080: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0026f090: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0026f0a0: 653a 2064 6e73 6d61 7371 0a20 2020 2073  e: dnsmasq.    s
│ │ │ -0026f0b0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0026f0c0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0026f0d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0026f0e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0026f0f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0026f100: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -0026f110: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0026f120: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0026f130: 655f 646e 736d 6173 715f 7265 6d6f 7665  e_dnsmasq_remove
│ │ │ -0026f140: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0026ec90: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0026eca0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0026ecb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0026ecc0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0026ecd0: 7365 2220 6964 3d22 6964 3935 3122 3e3c se" id="id951">< │ │ │ +0026ece0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0026ecf0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0026ed00: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0026ed10: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0026ed20: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0026edb0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0026edc0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -0026ef90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0026efc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0026efd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0026f010: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0026f020: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0026ed30: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0026ed40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0026ed80: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0026ed90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0026ede0: 2755 6e69 6e73 7461 6c6c 2064 6e73 6d61 'Uninstall dnsma │ │ │ +0026edf0: 7371 2050 6163 6b61 6765 3a20 456e 7375 sq Package: Ensu │ │ │ +0026ee00: 7265 2064 6e73 6d61 7371 2069 7320 7265 re dnsmasq is re │ │ │ +0026ee10: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ +0026ee20: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +0026ee30: 3a0a 2020 2020 6e61 6d65 3a20 646e 736d :. name: dnsm │ │ │ +0026ee40: 6173 710a 2020 2020 7374 6174 653a 2061 asq. state: a │ │ │ +0026ee50: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ +0026ee60: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +0026ee70: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +0026ee80: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +0026ee90: 7372 7570 7469 6f6e 0a20 202d 206c 6f77 sruption. - low │ │ │ +0026eea0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +0026eeb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0026eec0: 202d 2070 6163 6b61 6765 5f64 6e73 6d61 - package_dnsma │ │ │ +0026eed0: 7371 5f72 656d 6f76 6564 0a3c 2f63 6f64 sq_removed.
Remed │ │ │ +0026ef90: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0026efa0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0026f050: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0026f070: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0026f0a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0026f030: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0026f040: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0026f060: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0026f080: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0026f090: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0026f0d0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +0026f0e0: 6465 2072 656d 6f76 655f 646e 736d 6173 de remove_dnsmas │ │ │ +0026f0f0: 710a 0a63 6c61 7373 2072 656d 6f76 655f q..class remove_ │ │ │ +0026f100: 646e 736d 6173 7120 7b0a 2020 7061 636b dnsmasq {. pack │ │ │ +0026f110: 6167 6520 7b20 2764 6e73 6d61 7371 273a age { 'dnsmasq': │ │ │ +0026f120: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +0026f130: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ +0026f140: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ 0026f150: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -0026ff50: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0026ff60: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0026ffc0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -0026ffd0: 6564 203d 205b 2264 6e73 6d61 7371 225d  ed = ["dnsmasq"]
│ │ │ -0026ffe0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Kub │ │ │ -002700a0: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -002700b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00270140: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00270160: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:mediumReboot │ │ │ -00270190: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true │ │ │ -002701b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002701e0: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ -002701f0: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ -00270200: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ -00270210: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ -00270220: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ -00270230: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ -00270240: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ -00270250: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ -00270260: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ -00270270: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ -00270280: 6e61 6d65 3a20 646e 736d 6173 712e 7365  name: dnsmasq.se
│ │ │ -00270290: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -002702a0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002702b0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -002702c0: 2020 2020 2020 2d20 6e61 6d65 3a20 646e        - name: dn
│ │ │ -002702d0: 736d 6173 712e 736f 636b 6574 0a20 2020  smasq.socket.   
│ │ │ -002702e0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002702f0: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -00270300: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediati │ │ │ -002703c0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002703d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00270450: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00270460: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00270480: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00270490: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002704b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002704d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00270500: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00270510: 6162 6c65 5f64 6e73 6d61 7371 0a0a 636c  able_dnsmasq..cl
│ │ │ -00270520: 6173 7320 6469 7361 626c 655f 646e 736d  ass disable_dnsm
│ │ │ -00270530: 6173 7120 7b0a 2020 7365 7276 6963 6520  asq {.  service 
│ │ │ -00270540: 7b27 646e 736d 6173 7127 3a0a 2020 2020  {'dnsmasq':.    
│ │ │ -00270550: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -00270560: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -00270570: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -00270580: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00270640: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00270650: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002706d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002706e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00270700: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00270710: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00270730: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00270750: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00270780: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00270790: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002707a0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002707b0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002707c0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002707d0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002707e0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002707f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00270800: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00270810: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00270820: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00270830: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00270840: 655f 646e 736d 6173 715f 6469 7361 626c  e_dnsmasq_disabl
│ │ │ -00270850: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -00270860: 626c 6520 646e 736d 6173 7120 5365 7276  ble dnsmasq Serv
│ │ │ -00270870: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -00270880: 7276 6963 6520 646e 736d 6173 710a 2020  rvice dnsmasq.  
│ │ │ -00270890: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -002708a0: 3a20 4469 7361 626c 6520 646e 736d 6173  : Disable dnsmas
│ │ │ -002708b0: 7120 5365 7276 6963 6520 2d20 436f 6c6c  q Service - Coll
│ │ │ -002708c0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -002708d0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -002708e0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -002708f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00270900: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00270910: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00270920: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -00270930: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -00270940: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00270950: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -00270960: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00270970: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -00270980: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00270990: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002709a0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002709b0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002709c0: 6c65 2064 6e73 6d61 7371 2053 6572 7669  le dnsmasq Servi
│ │ │ -002709d0: 6365 202d 2045 6e73 7572 6520 646e 736d  ce - Ensure dnsm
│ │ │ -002709e0: 6173 712e 7365 7276 6963 6520 6973 204d  asq.service is M
│ │ │ -002709f0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00270a00: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00270a10: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ -00270a20: 6e73 6d61 7371 2e73 6572 7669 6365 0a20  nsmasq.service. 
│ │ │ -00270a30: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00270a40: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -00270a50: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -00270a60: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00270a70: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00270a80: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00270a90: 7320 6973 2073 6561 7263 6828 2264 6e73  s is search("dns
│ │ │ -00270aa0: 6d61 7371 2e73 6572 7669 6365 222c 206d  masq.service", m
│ │ │ -00270ab0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00270ac0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00270ad0: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ -00270ae0: 6e73 6d61 7371 2e73 6f63 6b65 740a 2020  nsmasq.socket.  
│ │ │ -00270af0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00270b00: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00270b10: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00270b20: 742d 6669 6c65 7320 646e 736d 6173 712e  t-files dnsmasq.
│ │ │ -00270b30: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -00270b40: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -00270b50: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00270b60: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00270b70: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00270b80: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00270b90: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00270ba0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00270bb0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00270bc0: 6e61 6d65 3a20 4469 7361 626c 6520 646e  name: Disable dn
│ │ │ -00270bd0: 736d 6173 7120 5365 7276 6963 6520 2d20  smasq Service - 
│ │ │ -00270be0: 4469 7361 626c 6520 536f 636b 6574 2064  Disable Socket d
│ │ │ -00270bf0: 6e73 6d61 7371 0a20 2020 2061 6e73 6962  nsmasq.    ansib
│ │ │ -00270c00: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00270c10: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00270c20: 646e 736d 6173 712e 736f 636b 6574 0a20  dnsmasq.socket. 
│ │ │ -00270c30: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00270c40: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -00270c50: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -00270c60: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00270c70: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00270c80: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00270c90: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00270ca0: 2264 6e73 6d61 7371 2e73 6f63 6b65 7422  "dnsmasq.socket"
│ │ │ -00270cb0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00270cc0: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ -00270cd0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00270ce0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00270cf0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00270d00: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00270d10: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00270d20: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00270d30: 2d20 7365 7276 6963 655f 646e 736d 6173  - service_dnsmas
│ │ │ -00270d40: 715f 6469 7361 626c 6564 0a20 202d 2073  q_disabled.  - s
│ │ │ -00270d50: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00270d60: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00270d70: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00270d80: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00270d90: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


Complexity │ │ │ +0026fff0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00270010: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00270020: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00270030: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00270040: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00270060: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00270090: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002700a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002700b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002700c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002700d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002700e0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002700f0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00270100: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00270110: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00270120: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00270130: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00270140: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00270150: 5f64 6e73 6d61 7371 5f64 6973 6162 6c65  _dnsmasq_disable
│ │ │ +00270160: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +00270170: 6c65 2064 6e73 6d61 7371 2053 6572 7669  le dnsmasq Servi
│ │ │ +00270180: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +00270190: 7669 6365 2064 6e73 6d61 7371 0a20 2062  vice dnsmasq.  b
│ │ │ +002701a0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +002701b0: 2044 6973 6162 6c65 2064 6e73 6d61 7371   Disable dnsmasq
│ │ │ +002701c0: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +002701d0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +002701e0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +002701f0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00270200: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00270210: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00270220: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00270230: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00270240: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00270250: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00270260: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00270270: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00270280: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +00270290: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002702a0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002702b0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002702c0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002702d0: 6520 646e 736d 6173 7120 5365 7276 6963  e dnsmasq Servic
│ │ │ +002702e0: 6520 2d20 456e 7375 7265 2064 6e73 6d61  e - Ensure dnsma
│ │ │ +002702f0: 7371 2e73 6572 7669 6365 2069 7320 4d61  sq.service is Ma
│ │ │ +00270300: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +00270310: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00270320: 3a0a 2020 2020 2020 6e61 6d65 3a20 646e  :.      name: dn
│ │ │ +00270330: 736d 6173 712e 7365 7276 6963 650a 2020  smasq.service.  
│ │ │ +00270340: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00270350: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +00270360: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +00270370: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00270380: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00270390: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +002703a0: 2069 7320 7365 6172 6368 2822 646e 736d   is search("dnsm
│ │ │ +002703b0: 6173 712e 7365 7276 6963 6522 2c20 6d75  asq.service", mu
│ │ │ +002703c0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +002703d0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +002703e0: 636b 6574 2045 7869 7374 7320 2d20 646e  cket Exists - dn
│ │ │ +002703f0: 736d 6173 712e 736f 636b 6574 0a20 2020  smasq.socket.   
│ │ │ +00270400: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00270410: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00270420: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00270430: 2d66 696c 6573 2064 6e73 6d61 7371 2e73  -files dnsmasq.s
│ │ │ +00270440: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +00270450: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +00270460: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00270470: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00270480: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00270490: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002704a0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002704b0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002704c0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002704d0: 616d 653a 2044 6973 6162 6c65 2064 6e73  ame: Disable dns
│ │ │ +002704e0: 6d61 7371 2053 6572 7669 6365 202d 2044  masq Service - D
│ │ │ +002704f0: 6973 6162 6c65 2053 6f63 6b65 7420 646e  isable Socket dn
│ │ │ +00270500: 736d 6173 710a 2020 2020 616e 7369 626c  smasq.    ansibl
│ │ │ +00270510: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00270520: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ +00270530: 6e73 6d61 7371 2e73 6f63 6b65 740a 2020  nsmasq.socket.  
│ │ │ +00270540: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00270550: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +00270560: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +00270570: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00270580: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00270590: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +002705a0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +002705b0: 646e 736d 6173 712e 736f 636b 6574 222c  dnsmasq.socket",
│ │ │ +002705c0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002705d0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +002705e0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002705f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00270600: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00270610: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00270620: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00270630: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00270640: 2073 6572 7669 6365 5f64 6e73 6d61 7371   service_dnsmasq
│ │ │ +00270650: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +00270660: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +00270670: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +00270680: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00270690: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +002706a0: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediation │ │ │ +00270760: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ +00270770: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00270780: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00270790: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002707a0: 7365 2220 6964 3d22 6964 3935 3622 3e3c se" id="id956">< │ │ │ +002707b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002707c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002707d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002707e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002707f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00270800: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00270810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:mediumRe │ │ │ +00270850: 626f 6f74 3a3c 2f74 683e 3c74 643e 7472 boot:tr │ │ │ +00270860: 7565 3c2f 7464 3e3c 2f74 723e 3c74 723e ue │ │ │ +00270870: 3c74 683e 5374 7261 7465 6779 3a3c 2f74 Strategy:disable< │ │ │ +002708a0: 7072 653e 3c63 6f64 653e 6170 6956 6572 pre>apiVer │ │ │ +002708b0: 7369 6f6e 3a20 6d61 6368 696e 6563 6f6e sion: machinecon │ │ │ +002708c0: 6669 6775 7261 7469 6f6e 2e6f 7065 6e73 figuration.opens │ │ │ +002708d0: 6869 6674 2e69 6f2f 7631 0a6b 696e 643a hift.io/v1.kind: │ │ │ +002708e0: 204d 6163 6869 6e65 436f 6e66 6967 0a73 MachineConfig.s │ │ │ +002708f0: 7065 633a 0a20 2063 6f6e 6669 673a 0a20 pec:. config:. │ │ │ +00270900: 2020 2069 676e 6974 696f 6e3a 0a20 2020 ignition:. │ │ │ +00270910: 2020 2076 6572 7369 6f6e 3a20 332e 312e version: 3.1. │ │ │ +00270920: 300a 2020 2020 7379 7374 656d 643a 0a20 0. systemd:. │ │ │ +00270930: 2020 2020 2075 6e69 7473 3a0a 2020 2020 units:. │ │ │ +00270940: 2020 2d20 6e61 6d65 3a20 646e 736d 6173 - name: dnsmas │ │ │ +00270950: 712e 7365 7276 6963 650a 2020 2020 2020 q.service. │ │ │ +00270960: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ +00270970: 0a20 2020 2020 2020 206d 6173 6b3a 2074 . mask: t │ │ │ +00270980: 7275 650a 2020 2020 2020 2d20 6e61 6d65 rue. - name │ │ │ +00270990: 3a20 646e 736d 6173 712e 736f 636b 6574 : dnsmasq.socket │ │ │ +002709a0: 0a20 2020 2020 2020 2065 6e61 626c 6564 . enabled │ │ │ +002709b0: 3a20 6661 6c73 650a 2020 2020 2020 2020 : false. │ │ │ +002709c0: 6d61 736b 3a20 7472 7565 0a3c 2f63 6f64 mask: true.
Remed │ │ │ +00270a80: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00270a90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00270b40: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00270b60: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00270b90: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00270b20: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00270b30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00270b50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00270b70: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00270b80: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00270bd0: 2064 6973 6162 6c65 5f64 6e73 6d61 7371 disable_dnsmasq │ │ │ +00270be0: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ +00270bf0: 646e 736d 6173 7120 7b0a 2020 7365 7276 dnsmasq {. serv │ │ │ +00270c00: 6963 6520 7b27 646e 736d 6173 7127 3a0a ice {'dnsmasq':. │ │ │ +00270c10: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ +00270c20: 2066 616c 7365 2c0a 2020 2020 656e 7375 false,. ensu │ │ │ +00270c30: 7265 203d 2667 743b 2027 7374 6f70 7065 re => 'stoppe │ │ │ +00270c40: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedi │ │ │ +00270d00: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00270d10: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00270d20: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00270d60: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00270d70: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00270d80: 0a6d 6173 6b65 6420 3d20 5b22 646e 736d  .masked = ["dnsm
│ │ │ +00270d90: 6173 7122 5d0a 3c2f 636f 6465 3e3c 2f70  asq"].

Remediatio │ │ │ -00272a40: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00272a50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00272ae0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00272b00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00272b10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00272b20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00272b30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00272b50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00272b80: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00272b90: 6d6f 7665 5f76 7366 7470 640a 0a63 6c61  move_vsftpd..cla
│ │ │ -00272ba0: 7373 2072 656d 6f76 655f 7673 6674 7064  ss remove_vsftpd
│ │ │ -00272bb0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00272bc0: 7673 6674 7064 273a 0a20 2020 2065 6e73  vsftpd':.    ens
│ │ │ -00272bd0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00272be0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00272ca0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00272cb0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00272d60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00272d80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00272db0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00272d40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00272d50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00272d70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00272d90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00272da0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00272de0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00272df0: 3a20 2755 6e69 6e73 7461 6c6c 2076 7366 : 'Uninstall vsf │ │ │ -00272e00: 7470 6420 5061 636b 6167 653a 2045 6e73 tpd Package: Ens │ │ │ -00272e10: 7572 6520 7673 6674 7064 2069 7320 7265 ure vsftpd is re │ │ │ -00272e20: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ -00272e30: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -00272e40: 3a0a 2020 2020 6e61 6d65 3a20 7673 6674 :. name: vsft │ │ │ -00272e50: 7064 0a20 2020 2073 7461 7465 3a20 6162 pd. state: ab │ │ │ -00272e60: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ -00272e70: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00272e80: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -00272e90: 302d 3533 2d43 4d2d 370a 2020 2d20 4e49 0-53-CM-7. - NI │ │ │ -00272ea0: 5354 2d38 3030 2d35 332d 434d 2d37 2861 ST-800-53-CM-7(a │ │ │ -00272eb0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00272ec0: 332d 434d 2d37 2862 290a 2020 2d20 4e49 3-CM-7(b). - NI │ │ │ -00272ed0: 5354 2d38 3030 2d35 332d 434d 2d37 2e31 ST-800-53-CM-7.1 │ │ │ -00272ee0: 2869 6929 0a20 202d 204e 4953 542d 3830 (ii). - NIST-80 │ │ │ -00272ef0: 302d 3533 2d49 412d 3528 3129 2863 290a 0-53-IA-5(1)(c). │ │ │ -00272f00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00272f10: 4941 2d35 2831 292e 3128 7629 0a20 202d IA-5(1).1(v). - │ │ │ -00272f20: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -00272f30: 790a 2020 2d20 6869 6768 5f73 6576 6572 y. - high_sever │ │ │ -00272f40: 6974 790a 2020 2d20 6c6f 775f 636f 6d70 ity. - low_comp │ │ │ -00272f50: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -00272f60: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f isruption. - no │ │ │ -00272f70: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00272f80: 202d 2070 6163 6b61 6765 5f76 7366 7470 - package_vsftp │ │ │ -00272f90: 645f 7265 6d6f 7665 640a 3c2f 636f 6465 d_removed.
< │ │ │ +00272ad0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00272ae0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00272b00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00272b10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00272b30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00272b50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00272b80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00272b90: 6e69 6e73 7461 6c6c 2076 7366 7470 6420  ninstall vsftpd 
│ │ │ +00272ba0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00272bb0: 7673 6674 7064 2069 7320 7265 6d6f 7665  vsftpd is remove
│ │ │ +00272bc0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00272bd0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00272be0: 2020 6e61 6d65 3a20 7673 6674 7064 0a20    name: vsftpd. 
│ │ │ +00272bf0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00272c00: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00272c10: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00272c20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00272c30: 2d43 4d2d 370a 2020 2d20 4e49 5354 2d38  -CM-7.  - NIST-8
│ │ │ +00272c40: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00272c50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00272c60: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ +00272c70: 3030 2d35 332d 434d 2d37 2e31 2869 6929  00-53-CM-7.1(ii)
│ │ │ +00272c80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00272c90: 2d49 412d 3528 3129 2863 290a 2020 2d20  -IA-5(1)(c).  - 
│ │ │ +00272ca0: 4e49 5354 2d38 3030 2d35 332d 4941 2d35  NIST-800-53-IA-5
│ │ │ +00272cb0: 2831 292e 3128 7629 0a20 202d 2064 6973  (1).1(v).  - dis
│ │ │ +00272cc0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00272cd0: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +00272ce0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00272cf0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00272d00: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00272d10: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00272d20: 6163 6b61 6765 5f76 7366 7470 645f 7265  ackage_vsftpd_re
│ │ │ +00272d30: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00272df0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00272e00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00272e90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00272eb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00272ec0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00272ed0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00272ee0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00272f00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00272f30: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00272f40: 6d6f 7665 5f76 7366 7470 640a 0a63 6c61  move_vsftpd..cla
│ │ │ +00272f50: 7373 2072 656d 6f76 655f 7673 6674 7064  ss remove_vsftpd
│ │ │ +00272f60: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00272f70: 7673 6674 7064 273a 0a20 2020 2065 6e73  vsftpd':.    ens
│ │ │ +00272f80: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00272f90: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation │ │ │ -00274330: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00274340: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -002743a0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -002743b0: 6564 203d 205b 2276 7366 7470 6422 5d0a  ed = ["vsftpd"].
│ │ │ -002743c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00274470: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ -00274480: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ -00274490: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00274510: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00274530: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ -00274520: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00274540: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ -00274570: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ -00274590: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002745c0: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ -002745d0: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ -002745e0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ -002745f0: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ -00274600: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ -00274610: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ -00274620: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ -00274630: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ -00274640: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ -00274650: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ -00274660: 616d 653a 2076 7366 7470 642e 7365 7276  ame: vsftpd.serv
│ │ │ -00274670: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ -00274680: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00274690: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ -002746a0: 2020 2020 2d20 6e61 6d65 3a20 7673 6674      - name: vsft
│ │ │ -002746b0: 7064 2e73 6f63 6b65 740a 2020 2020 2020  pd.socket.      
│ │ │ -002746c0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002746d0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -002746e0: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ -002747a0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002747b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00274830: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00274850: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002748a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -002748d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -002748f0: 655f 7673 6674 7064 0a0a 636c 6173 7320  e_vsftpd..class 
│ │ │ -00274900: 6469 7361 626c 655f 7673 6674 7064 207b  disable_vsftpd {
│ │ │ -00274910: 0a20 2073 6572 7669 6365 207b 2776 7366  .  service {'vsf
│ │ │ -00274920: 7470 6427 3a0a 2020 2020 656e 6162 6c65  tpd':.    enable
│ │ │ -00274930: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -00274940: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00274950: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -00274960: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00274a10: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00274a20: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00274a30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ -00274840: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00274860: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002748b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -002748c0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00274b00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00274b10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00274b60: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00274b70: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00274b80: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00274b90: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00274ba0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00274bb0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00274bc0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00274bd0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00274be0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00274bf0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -00274c00: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00274c10: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00274c20: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00274c30: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00274c40: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00274c50: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00274c60: 6963 655f 7673 6674 7064 5f64 6973 6162  ice_vsftpd_disab
│ │ │ -00274c70: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ -00274c80: 6162 6c65 2076 7366 7470 6420 5365 7276  able vsftpd Serv
│ │ │ -00274c90: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -00274ca0: 7276 6963 6520 7673 6674 7064 0a20 2062  rvice vsftpd.  b
│ │ │ -00274cb0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -00274cc0: 2044 6973 6162 6c65 2076 7366 7470 6420   Disable vsftpd 
│ │ │ -00274cd0: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ -00274ce0: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -00274cf0: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -00274d00: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -00274d10: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00274d20: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00274d30: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00274d40: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -00274d50: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -00274d60: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -00274d70: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -00274d80: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -00274d90: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -00274da0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -00274db0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -00274dc0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -00274dd0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00274de0: 2076 7366 7470 6420 5365 7276 6963 6520   vsftpd Service 
│ │ │ -00274df0: 2d20 456e 7375 7265 2076 7366 7470 642e  - Ensure vsftpd.
│ │ │ -00274e00: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -00274e10: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -00274e20: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00274e30: 2020 2020 206e 616d 653a 2076 7366 7470       name: vsftp
│ │ │ -00274e40: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -00274e50: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00274e60: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00274e70: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -00274e80: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00274e90: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00274ea0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00274eb0: 7365 6172 6368 2822 7673 6674 7064 2e73  search("vsftpd.s
│ │ │ -00274ec0: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -00274ed0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -00274ee0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -00274ef0: 4578 6973 7473 202d 2076 7366 7470 642e  Exists - vsftpd.
│ │ │ -00274f00: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -00274f10: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00274f20: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00274f30: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00274f40: 2076 7366 7470 642e 736f 636b 6574 0a20   vsftpd.socket. 
│ │ │ -00274f50: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -00274f60: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -00274f70: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00274f80: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00274f90: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -00274fa0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00274fb0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00274fc0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00274fd0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00274fe0: 7361 626c 6520 7673 6674 7064 2053 6572  sable vsftpd Ser
│ │ │ -00274ff0: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -00275000: 6f63 6b65 7420 7673 6674 7064 0a20 2020  ocket vsftpd.   
│ │ │ -00275010: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00275020: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -00275030: 6e61 6d65 3a20 7673 6674 7064 2e73 6f63  name: vsftpd.soc
│ │ │ -00275040: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ -00275050: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ -00275060: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00275070: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -00275080: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ -00275090: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ -002750a0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -002750b0: 6172 6368 2822 7673 6674 7064 2e73 6f63  arch("vsftpd.soc
│ │ │ -002750c0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -002750d0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -002750e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002750f0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00275100: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00275110: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00275120: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -00275130: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00275140: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00275150: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00275160: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00275170: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00275180: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00275190: 7276 6963 655f 7673 6674 7064 5f64 6973  rvice_vsftpd_dis
│ │ │ -002751a0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -002751b0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -002751c0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -002751d0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -002751e0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00274330: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00274340: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +00274400: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00274410: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -00274ae0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00274af0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00274b30: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00274b40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +002743d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002743f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00274420: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00274440: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00274470: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00274480: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00274490: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002744a0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002744b0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002744c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002744d0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002744e0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002744f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00274500: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00274510: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00274520: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00274530: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00274540: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00274550: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00274560: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00274570: 2073 6572 7669 6365 5f76 7366 7470 645f   service_vsftpd_
│ │ │ +00274580: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ +00274590: 3a20 4469 7361 626c 6520 7673 6674 7064  : Disable vsftpd
│ │ │ +002745a0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +002745b0: 6c65 2073 6572 7669 6365 2076 7366 7470  le service vsftp
│ │ │ +002745c0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ +002745d0: 6e61 6d65 3a20 4469 7361 626c 6520 7673  name: Disable vs
│ │ │ +002745e0: 6674 7064 2053 6572 7669 6365 202d 2043  ftpd Service - C
│ │ │ +002745f0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +00274600: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +00274610: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +00274620: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00274630: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00274640: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00274650: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +00274660: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +00274670: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +00274680: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00274690: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +002746a0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +002746b0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +002746c0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +002746d0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +002746e0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +002746f0: 7361 626c 6520 7673 6674 7064 2053 6572  sable vsftpd Ser
│ │ │ +00274700: 7669 6365 202d 2045 6e73 7572 6520 7673  vice - Ensure vs
│ │ │ +00274710: 6674 7064 2e73 6572 7669 6365 2069 7320  ftpd.service is 
│ │ │ +00274720: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +00274730: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00274740: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00274750: 7673 6674 7064 2e73 6572 7669 6365 0a20  vsftpd.service. 
│ │ │ +00274760: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00274770: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +00274780: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +00274790: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +002747a0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +002747b0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002747c0: 7320 6973 2073 6561 7263 6828 2276 7366  s is search("vsf
│ │ │ +002747d0: 7470 642e 7365 7276 6963 6522 2c20 6d75  tpd.service", mu
│ │ │ +002747e0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +002747f0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +00274800: 636b 6574 2045 7869 7374 7320 2d20 7673  cket Exists - vs
│ │ │ +00274810: 6674 7064 2e73 6f63 6b65 740a 2020 2020  ftpd.socket.    
│ │ │ +00274820: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00274830: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +00274840: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +00274850: 6669 6c65 7320 7673 6674 7064 2e73 6f63  files vsftpd.soc
│ │ │ +00274860: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +00274870: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00274880: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00274890: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002748a0: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +002748b0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002748c0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002748d0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002748e0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +002748f0: 653a 2044 6973 6162 6c65 2076 7366 7470  e: Disable vsftp
│ │ │ +00274900: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ +00274910: 626c 6520 536f 636b 6574 2076 7366 7470  ble Socket vsftp
│ │ │ +00274920: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00274930: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00274940: 2020 2020 206e 616d 653a 2076 7366 7470       name: vsftp
│ │ │ +00274950: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ +00274960: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +00274970: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00274980: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +00274990: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +002749a0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002749b0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +002749c0: 6973 2073 6561 7263 6828 2276 7366 7470  is search("vsftp
│ │ │ +002749d0: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ +002749e0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +002749f0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00274a00: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00274a10: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00274a20: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00274a30: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00274a40: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00274a50: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00274a60: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00274a70: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00274a80: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00274a90: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00274aa0: 202d 2073 6572 7669 6365 5f76 7366 7470   - service_vsftp
│ │ │ +00274ab0: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ +00274ac0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +00274ad0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +00274ae0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00274af0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00274b00: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediatio │ │ │ +00274bc0: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ +00274bd0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00274be0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00274c10: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00274c80: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ +00274c60: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00274c70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ +00274cb0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ +00274cc0: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ +00274d00: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ +00274d10: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ +00274d20: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ +00274d30: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ +00274d40: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ +00274d50: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ +00274d60: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ +00274d70: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ +00274d80: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ +00274d90: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ +00274da0: 2020 202d 206e 616d 653a 2076 7366 7470     - name: vsftp
│ │ │ +00274db0: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ +00274dc0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00274dd0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ +00274de0: 7275 650a 2020 2020 2020 2d20 6e61 6d65  rue.      - name
│ │ │ +00274df0: 3a20 7673 6674 7064 2e73 6f63 6b65 740a  : vsftpd.socket.
│ │ │ +00274e00: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ +00274e10: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ +00274e20: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remedi │ │ │ +00274ee0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00274ef0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00274f00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00274f30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00274fa0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00274fc0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00274ff0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00275010: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00274f80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00274f90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00274fd0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00274fe0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00275030: 6469 7361 626c 655f 7673 6674 7064 0a0a disable_vsftpd.. │ │ │ +00275040: 636c 6173 7320 6469 7361 626c 655f 7673 class disable_vs │ │ │ +00275050: 6674 7064 207b 0a20 2073 6572 7669 6365 ftpd {. service │ │ │ +00275060: 207b 2776 7366 7470 6427 3a0a 2020 2020 {'vsftpd':. │ │ │ +00275070: 656e 6162 6c65 203d 2667 743b 2066 616c enable => fal │ │ │ +00275080: 7365 2c0a 2020 2020 656e 7375 7265 203d se,. ensure = │ │ │ +00275090: 2667 743b 2027 7374 6f70 7065 6427 2c0a > 'stopped',. │ │ │ +002750a0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ +00275160: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00275170: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00275180: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +002751d0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +002751e0: 6b65 6420 3d20 5b22 7673 6674 7064 225d  ked = ["vsftpd"]
│ │ │  002751f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Re │ │ │ -002761e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002761f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00276200: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -002762a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002762f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00276330: 636c 7564 6520 7265 6d6f 7665 5f66 7470  clude remove_ftp
│ │ │ -00276340: 0a0a 636c 6173 7320 7265 6d6f 7665 5f66  ..class remove_f
│ │ │ -00276350: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ -00276360: 2027 6674 7027 3a0a 2020 2020 656e 7375   'ftp':.    ensu
│ │ │ -00276370: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00276380: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00276390: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00276440: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00276450: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00276460: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00276490: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Co │ │ │ -00276280: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002762b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002762d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002762e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00276300: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00276310: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00276500: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00276520: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00276550: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002764e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002764f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00276530: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00276540: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00276590: 2027 5265 6d6f 7665 2066 7470 2050 6163 'Remove ftp Pac │ │ │ -002765a0: 6b61 6765 3a20 456e 7375 7265 2066 7470 kage: Ensure ftp │ │ │ -002765b0: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -002765c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -002765d0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -002765e0: 3a20 6674 700a 2020 2020 7374 6174 653a : ftp. state: │ │ │ -002765f0: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ -00276600: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -00276610: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -00276620: 322e 322e 340a 2020 2d20 6469 7361 626c 2.2.4. - disabl │ │ │ -00276630: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00276640: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00276650: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00276660: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ -00276670: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00276680: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -00276690: 6765 5f66 7470 5f72 656d 6f76 6564 0a3c ge_ftp_removed.< │ │ │ +002761e0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +002761f0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...

< │ │ │ +00276290: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002762a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002762f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00276330: 6e61 6d65 3a20 2752 656d 6f76 6520 6674  name: 'Remove ft
│ │ │ +00276340: 7020 5061 636b 6167 653a 2045 6e73 7572  p Package: Ensur
│ │ │ +00276350: 6520 6674 7020 6973 2072 656d 6f76 6564  e ftp is removed
│ │ │ +00276360: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00276370: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00276380: 206e 616d 653a 2066 7470 0a20 2020 2073   name: ftp.    s
│ │ │ +00276390: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +002763a0: 6167 733a 0a20 202d 2050 4349 2d44 5353  ags:.  - PCI-DSS
│ │ │ +002763b0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +002763c0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +002763d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002763e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002763f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00276400: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +00276410: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00276420: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00276430: 7061 636b 6167 655f 6674 705f 7265 6d6f  package_ftp_remo
│ │ │ +00276440: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +00276500: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00276510: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ +00276280: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002762b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002762c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00276300: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00276310: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00276590: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002765b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00276600: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00276630: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002765a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002765c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00276610: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00276620: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00276650: 7665 5f66 7470 0a0a 636c 6173 7320 7265  ve_ftp..class re
│ │ │ +00276660: 6d6f 7665 5f66 7470 207b 0a20 2070 6163  move_ftp {.  pac
│ │ │ +00276670: 6b61 6765 207b 2027 6674 7027 3a0a 2020  kage { 'ftp':.  
│ │ │ +00276680: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00276690: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  002766a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remed │ │ │ -00277530: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00277540: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002775f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00277610: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00277640: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002775d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002775e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00277600: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00277620: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00277630: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00277670: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00277680: 6465 2072 656d 6f76 655f 746e 6674 700a de remove_tnftp. │ │ │ -00277690: 0a63 6c61 7373 2072 656d 6f76 655f 746e .class remove_tn │ │ │ -002776a0: 6674 7020 7b0a 2020 7061 636b 6167 6520 ftp {. package │ │ │ -002776b0: 7b20 2774 6e66 7470 273a 0a20 2020 2065 { 'tnftp':. e │ │ │ -002776c0: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ -002776d0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ -002776f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00277700: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00277710: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00277720: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00277730: 6439 3736 2220 7461 6269 6e64 6578 3d22 d976" tabindex=" │ │ │ -00277740: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00277750: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00277760: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00277770: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00277780: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00277790: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002777a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002777b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00277830: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00277860: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00277880: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00277890: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002778b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002778c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002778e0: 6d65 3a20 2752 656d 6f76 6520 746e 6674  me: 'Remove tnft
│ │ │ -002778f0: 7020 5061 636b 6167 653a 2045 6e73 7572  p Package: Ensur
│ │ │ -00277900: 6520 746e 6674 7020 6973 2072 656d 6f76  e tnftp is remov
│ │ │ -00277910: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00277920: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00277930: 2020 206e 616d 653a 2074 6e66 7470 0a20     name: tnftp. 
│ │ │ -00277940: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00277950: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00277960: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00277970: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00277980: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00277990: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -002779a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002779b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -002779c0: 636b 6167 655f 746e 6674 705f 7265 6d6f  ckage_tnftp_remo
│ │ │ -002779d0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Comp │ │ │ +002775d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002775e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00277600: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00277620: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00277630: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00277670: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00277680: 653a 2027 5265 6d6f 7665 2074 6e66 7470  e: 'Remove tnftp
│ │ │ +00277690: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +002776a0: 2074 6e66 7470 2069 7320 7265 6d6f 7665   tnftp is remove
│ │ │ +002776b0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +002776c0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +002776d0: 2020 6e61 6d65 3a20 746e 6674 700a 2020    name: tnftp.  
│ │ │ +002776e0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +002776f0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +00277700: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00277710: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00277720: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00277730: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +00277740: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00277750: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00277760: 6b61 6765 5f74 6e66 7470 5f72 656d 6f76  kage_tnftp_remov
│ │ │ +00277770: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00277780: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00277830: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00277840: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +002778c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002778e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00277930: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00277960: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00277980: 655f 746e 6674 700a 0a63 6c61 7373 2072  e_tnftp..class r
│ │ │ +00277990: 656d 6f76 655f 746e 6674 7020 7b0a 2020  emove_tnftp {.  
│ │ │ +002779a0: 7061 636b 6167 6520 7b20 2774 6e66 7470  package { 'tnftp
│ │ │ +002779b0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +002779c0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +002779d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002795c0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002795d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -002796a0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ +002778f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00277900: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00277940: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00277950: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -00279660: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00279680: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002796d0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002796e0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00279710: 6f76 655f 6170 6163 6865 320a 0a63 6c61  ove_apache2..cla
│ │ │ -00279720: 7373 2072 656d 6f76 655f 6170 6163 6865  ss remove_apache
│ │ │ -00279730: 3220 7b0a 2020 7061 636b 6167 6520 7b20  2 {.  package { 
│ │ │ -00279740: 2761 7061 6368 6532 273a 0a20 2020 2065  'apache2':.    e
│ │ │ -00279750: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00279760: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00279780: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00279790: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002797a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002797b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002797c0: 6439 3830 2220 7461 6269 6e64 6578 3d22 d980" tabindex=" │ │ │ -002797d0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -002797e0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -002797f0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00279800: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00279810: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00279820: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00279830: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00279840: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -002798c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002798f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00279910: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00279920: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00279940: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00279950: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00279970: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2061  me: 'Uninstall a
│ │ │ -00279980: 7061 6368 6532 2050 6163 6b61 6765 3a20  pache2 Package: 
│ │ │ -00279990: 456e 7375 7265 2061 7061 6368 6532 2069  Ensure apache2 i
│ │ │ -002799a0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -002799b0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002799c0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002799d0: 6170 6163 6865 320a 2020 2020 7374 6174  apache2.    stat
│ │ │ -002799e0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -002799f0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00279a00: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00279a10: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00279a20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00279a30: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -00279a40: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00279a50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00279a60: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00279a70: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -00279a80: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00279a90: 636b 6167 655f 6874 7470 645f 7265 6d6f  ckage_httpd_remo
│ │ │ -00279aa0: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f  ved.  - unknown_
│ │ │ -00279ab0: 7365 7665 7269 7479 0a3c 2f63 6f64 653e  severity.
│ │ │ +002795c0: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +002795d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +00279660: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00279680: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00279690: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002796a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002796b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002796d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00279700: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00279710: 696e 7374 616c 6c20 6170 6163 6865 3220  install apache2 
│ │ │ +00279720: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00279730: 6170 6163 6865 3220 6973 2072 656d 6f76  apache2 is remov
│ │ │ +00279740: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00279750: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00279760: 2020 206e 616d 653a 2061 7061 6368 6532     name: apache2
│ │ │ +00279770: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00279780: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +00279790: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +002797a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002797b0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002797c0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002797d0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +002797e0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002797f0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00279800: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00279810: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00279820: 6564 0a20 202d 2070 6163 6b61 6765 5f68  ed.  - package_h
│ │ │ +00279830: 7474 7064 5f72 656d 6f76 6564 0a20 202d  ttpd_removed.  -
│ │ │ +00279840: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +00279850: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +00279860: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00279910: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00279920: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +002799f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00279a00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00279a60: 5f61 7061 6368 6532 0a0a 636c 6173 7320  _apache2..class 
│ │ │ +00279a70: 7265 6d6f 7665 5f61 7061 6368 6532 207b  remove_apache2 {
│ │ │ +00279a80: 0a20 2070 6163 6b61 6765 207b 2027 6170  .  package { 'ap
│ │ │ +00279a90: 6163 6865 3227 3a0a 2020 2020 656e 7375  ache2':.    ensu
│ │ │ +00279aa0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00279ab0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00279ac0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation OS │ │ │ -0027adf0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0027ae00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0027ae10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0027ae50: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0027ae60: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -0027ae70: 3d20 5b22 6170 6163 6865 3222 5d0a 3c2f  = ["apache2"].
Re │ │ │ -0027af30: 6d65 6469 6174 696f 6e20 4b75 6265 726e mediation Kubern │ │ │ -0027af40: 6574 6573 2073 6e69 7070 6574 20e2 87b2 etes snippet ... │ │ │ -0027af50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +002799d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002799e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00279a20: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00279a30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity:< │ │ │ -0027b020: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0027b040: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0027b070: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -0027b000: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ -0027b010: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ -0027b050: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0027b060: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ -0027b090: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ -0027b0a0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ -0027b0b0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ -0027b0c0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ -0027b0d0: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ -0027b0e0: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ -0027b0f0: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ -0027b100: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ -0027b110: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ -0027b120: 653a 2061 7061 6368 6532 2e73 6572 7669  e: apache2.servi
│ │ │ -0027b130: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ -0027b140: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0027b150: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ -0027b160: 2020 202d 206e 616d 653a 2061 7061 6368     - name: apach
│ │ │ -0027b170: 6532 2e73 6f63 6b65 740a 2020 2020 2020  e2.socket.      
│ │ │ -0027b180: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0027b190: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -0027b1a0: 7275 650a 3c2f 636f 6465 3e3c 2f70 7265  rue.
Remediation │ │ │ -0027b260: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0027b270: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0027b2f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0027b310: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0027b360: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0027b390: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -0027b3b0: 655f 6170 6163 6865 320a 0a63 6c61 7373  e_apache2..class
│ │ │ -0027b3c0: 2064 6973 6162 6c65 5f61 7061 6368 6532   disable_apache2
│ │ │ -0027b3d0: 207b 0a20 2073 6572 7669 6365 207b 2761   {.  service {'a
│ │ │ -0027b3e0: 7061 6368 6532 273a 0a20 2020 2065 6e61  pache2':.    ena
│ │ │ -0027b3f0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -0027b400: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0027b410: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -0027b420: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0027b430: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -0027b4e0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0027b4f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -0027b300: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0027b320: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0027b370: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0027b380: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0027b570: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0027b590: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0027b5e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0027b610: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0027b580: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0027b5a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0027b5f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0027b600: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -0027b630: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0027b640: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0027b650: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0027b660: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0027b670: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0027b680: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0027b690: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0027b6a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0027b6b0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0027b6c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0027b6d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0027b6e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0027b6f0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -0027b700: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0027b710: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ -0027b720: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -0027b730: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ -0027b740: 4469 7361 626c 6520 6170 6163 6865 3220  Disable apache2 
│ │ │ -0027b750: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0027b760: 6520 7365 7276 6963 6520 6170 6163 6865  e service apache
│ │ │ -0027b770: 320a 2020 626c 6f63 6b3a 0a0a 2020 2d20  2.  block:..  - 
│ │ │ -0027b780: 6e61 6d65 3a20 4469 7361 626c 6520 6170  name: Disable ap
│ │ │ -0027b790: 6163 6865 3220 5365 7276 6963 6520 2d20  ache2 Service - 
│ │ │ -0027b7a0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -0027b7b0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -0027b7c0: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -0027b7d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0027b7e0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0027b7f0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0027b800: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -0027b810: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -0027b820: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -0027b830: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -0027b840: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -0027b850: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -0027b860: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -0027b870: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0027b880: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0027b890: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0027b8a0: 6973 6162 6c65 2061 7061 6368 6532 2053  isable apache2 S
│ │ │ -0027b8b0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -0027b8c0: 6170 6163 6865 322e 7365 7276 6963 6520  apache2.service 
│ │ │ -0027b8d0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -0027b8e0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -0027b8f0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -0027b900: 653a 2061 7061 6368 6532 2e73 6572 7669  e: apache2.servi
│ │ │ -0027b910: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -0027b920: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -0027b930: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0027b940: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0027b950: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -0027b960: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0027b970: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0027b980: 2261 7061 6368 6532 2e73 6572 7669 6365  "apache2.service
│ │ │ -0027b990: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0027b9a0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -0027b9b0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -0027b9c0: 202d 2061 7061 6368 6532 2e73 6f63 6b65   - apache2.socke
│ │ │ -0027b9d0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -0027b9e0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -0027b9f0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -0027ba00: 2d75 6e69 742d 6669 6c65 7320 6170 6163  -unit-files apac
│ │ │ -0027ba10: 6865 322e 736f 636b 6574 0a20 2020 2072  he2.socket.    r
│ │ │ -0027ba20: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -0027ba30: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -0027ba40: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0027ba50: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0027ba60: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0027ba70: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0027ba80: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0027ba90: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0027baa0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0027bab0: 6520 6170 6163 6865 3220 5365 7276 6963  e apache2 Servic
│ │ │ -0027bac0: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ -0027bad0: 6574 2061 7061 6368 6532 0a20 2020 2061  et apache2.    a
│ │ │ -0027bae0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0027baf0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0027bb00: 6d65 3a20 6170 6163 6865 322e 736f 636b  me: apache2.sock
│ │ │ -0027bb10: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -0027bb20: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -0027bb30: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0027bb40: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0027bb50: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -0027bb60: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -0027bb70: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -0027bb80: 7263 6828 2261 7061 6368 6532 2e73 6f63  rch("apache2.soc
│ │ │ -0027bb90: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -0027bba0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -0027bbb0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027bbc0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0027bbd0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0027bbe0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027bbf0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0027bc00: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0027bc10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0027bc20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0027bc30: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0027bc40: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0027bc50: 655f 6874 7470 645f 6469 7361 626c 6564  e_httpd_disabled
│ │ │ -0027bc60: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0027bc70: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ -0027bc80: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -0027bc90: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0027bca0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0027bcb0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0027ade0: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +0027adf0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +0027ae00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +0027ae80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0027aea0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0027aef0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0027af20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0027af40: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0027af50: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0027af60: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0027af70: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0027af80: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0027af90: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +0027afa0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +0027afb0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0027afc0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +0027afd0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0027afe0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0027aff0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0027b000: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0027b010: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0027b020: 655f 6874 7470 645f 6469 7361 626c 6564  e_httpd_disabled
│ │ │ +0027b030: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +0027b040: 6572 6974 790a 0a2d 206e 616d 653a 2044  erity..- name: D
│ │ │ +0027b050: 6973 6162 6c65 2061 7061 6368 6532 2053  isable apache2 S
│ │ │ +0027b060: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0027b070: 2073 6572 7669 6365 2061 7061 6368 6532   service apache2
│ │ │ +0027b080: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +0027b090: 616d 653a 2044 6973 6162 6c65 2061 7061  ame: Disable apa
│ │ │ +0027b0a0: 6368 6532 2053 6572 7669 6365 202d 2043  che2 Service - C
│ │ │ +0027b0b0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +0027b0c0: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +0027b0d0: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +0027b0e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0027b0f0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0027b100: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0027b110: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +0027b120: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +0027b130: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +0027b140: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +0027b150: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +0027b160: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +0027b170: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +0027b180: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0027b190: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0027b1a0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0027b1b0: 7361 626c 6520 6170 6163 6865 3220 5365  sable apache2 Se
│ │ │ +0027b1c0: 7276 6963 6520 2d20 456e 7375 7265 2061  rvice - Ensure a
│ │ │ +0027b1d0: 7061 6368 6532 2e73 6572 7669 6365 2069  pache2.service i
│ │ │ +0027b1e0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +0027b1f0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0027b200: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0027b210: 3a20 6170 6163 6865 322e 7365 7276 6963  : apache2.servic
│ │ │ +0027b220: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +0027b230: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +0027b240: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027b250: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0027b260: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +0027b270: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0027b280: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0027b290: 6170 6163 6865 322e 7365 7276 6963 6522  apache2.service"
│ │ │ +0027b2a0: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +0027b2b0: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +0027b2c0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +0027b2d0: 2d20 6170 6163 6865 322e 736f 636b 6574  - apache2.socket
│ │ │ +0027b2e0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0027b2f0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0027b300: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0027b310: 756e 6974 2d66 696c 6573 2061 7061 6368  unit-files apach
│ │ │ +0027b320: 6532 2e73 6f63 6b65 740a 2020 2020 7265  e2.socket.    re
│ │ │ +0027b330: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +0027b340: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +0027b350: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0027b360: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0027b370: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0027b380: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0027b390: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0027b3a0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0027b3b0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0027b3c0: 2061 7061 6368 6532 2053 6572 7669 6365   apache2 Service
│ │ │ +0027b3d0: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ +0027b3e0: 7420 6170 6163 6865 320a 2020 2020 616e  t apache2.    an
│ │ │ +0027b3f0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0027b400: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0027b410: 653a 2061 7061 6368 6532 2e73 6f63 6b65  e: apache2.socke
│ │ │ +0027b420: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +0027b430: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +0027b440: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +0027b450: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0027b460: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +0027b470: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +0027b480: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0027b490: 6368 2822 6170 6163 6865 322e 736f 636b  ch("apache2.sock
│ │ │ +0027b4a0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +0027b4b0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +0027b4c0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0027b4d0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +0027b4e0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +0027b4f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0027b500: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +0027b510: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0027b520: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0027b530: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0027b540: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0027b550: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0027b560: 5f68 7474 7064 5f64 6973 6162 6c65 640a  _httpd_disabled.
│ │ │ +0027b570: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0027b580: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ +0027b590: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ +0027b5a0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0027b5b0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0027b5c0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0027b5d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0027b680: 5265 6d65 6469 6174 696f 6e20 4b75 6265 Remediation Kube │ │ │ +0027b690: 726e 6574 6573 2073 6e69 7070 6574 20e2 rnetes snippet . │ │ │ +0027b6a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disr │ │ │ +0027aeb0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0027aec0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0027af00: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0027af10: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0027b720: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0027b740: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +0027b730: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0027b750: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +0027b780: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +0027b7a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0027b7d0: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +0027b7e0: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +0027b7f0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +0027b800: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +0027b810: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +0027b820: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +0027b830: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +0027b840: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +0027b850: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +0027b860: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +0027b870: 616d 653a 2061 7061 6368 6532 2e73 6572  ame: apache2.ser
│ │ │ +0027b880: 7669 6365 0a20 2020 2020 2020 2065 6e61  vice.        ena
│ │ │ +0027b890: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027b8a0: 2020 2020 6d61 736b 3a20 7472 7565 0a20      mask: true. 
│ │ │ +0027b8b0: 2020 2020 202d 206e 616d 653a 2061 7061       - name: apa
│ │ │ +0027b8c0: 6368 6532 2e73 6f63 6b65 740a 2020 2020  che2.socket.    
│ │ │ +0027b8d0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0027b8e0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +0027b8f0: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediatio │ │ │ +0027b9b0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0027b9c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0027ba50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0027ba70: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0027ba80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027ba90: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0027baa0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0027bac0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0027bb00: 626c 655f 6170 6163 6865 320a 0a63 6c61  ble_apache2..cla
│ │ │ +0027bb10: 7373 2064 6973 6162 6c65 5f61 7061 6368  ss disable_apach
│ │ │ +0027bb20: 6532 207b 0a20 2073 6572 7669 6365 207b  e2 {.  service {
│ │ │ +0027bb30: 2761 7061 6368 6532 273a 0a20 2020 2065  'apache2':.    e
│ │ │ +0027bb40: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +0027bb50: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +0027bb60: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +0027bb70: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +0027bc30: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0027bc40: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +0027bca0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +0027bcb0: 6564 203d 205b 2261 7061 6368 6532 225d  ed = ["apache2"]
│ │ │  0027bcc0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedia │ │ │ -0027d350: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0027d360: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0027d370: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027d380: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027d390: 7365 2220 6964 3d22 6964 3938 3922 3e3c se" id="id989">< │ │ │ -0027d3a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0027d3b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0027d3c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0027d3d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0027d3e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0027d3f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0027d400: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0027d440: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0027d450: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0027d470: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0027d480: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0027d4a0: 2072 656d 6f76 655f 6e67 696e 780a 0a63 remove_nginx..c │ │ │ -0027d4b0: 6c61 7373 2072 656d 6f76 655f 6e67 696e lass remove_ngin │ │ │ -0027d4c0: 7820 7b0a 2020 7061 636b 6167 6520 7b20 x {. package { │ │ │ -0027d4d0: 276e 6769 6e78 273a 0a20 2020 2065 6e73 'nginx':. ens │ │ │ -0027d4e0: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ -0027d4f0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedi │ │ │ -0027d5b0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0027d5c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0027d670: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0027d690: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0027d6c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0027d650: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0027d660: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0027d680: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0027d6a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0027d6b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0027d6f0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0027d700: 3a20 2755 6e69 6e73 7461 6c6c 206e 6769 : 'Uninstall ngi │ │ │ -0027d710: 6e78 2050 6163 6b61 6765 3a20 456e 7375 nx Package: Ensu │ │ │ -0027d720: 7265 206e 6769 6e78 2069 7320 7265 6d6f re nginx is remo │ │ │ -0027d730: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -0027d740: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -0027d750: 2020 2020 6e61 6d65 3a20 6e67 696e 780a name: nginx. │ │ │ -0027d760: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -0027d770: 740a 2020 7461 6773 3a0a 2020 2d20 4e49 t. tags:. - NI │ │ │ -0027d780: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -0027d790: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -0027d7a0: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ -0027d7b0: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ -0027d7c0: 290a 2020 2d20 6469 7361 626c 655f 7374 ). - disable_st │ │ │ -0027d7d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0027d7e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0027d7f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0027d800: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0027d810: 640a 2020 2d20 7061 636b 6167 655f 6e67 d. - package_ng │ │ │ -0027d820: 696e 785f 7265 6d6f 7665 640a 2020 2d20 inx_removed. - │ │ │ -0027d830: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479 unknown_severity │ │ │ +0027d350: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +0027d360: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0027d370: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0027d3a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0027d410: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0027d430: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0027d460: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0027d3f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0027d400: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0027d440: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0027d450: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0027d4a0: 2027 556e 696e 7374 616c 6c20 6e67 696e 'Uninstall ngin │ │ │ +0027d4b0: 7820 5061 636b 6167 653a 2045 6e73 7572 x Package: Ensur │ │ │ +0027d4c0: 6520 6e67 696e 7820 6973 2072 656d 6f76 e nginx is remov │ │ │ +0027d4d0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +0027d4e0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +0027d4f0: 2020 206e 616d 653a 206e 6769 6e78 0a20 name: nginx. │ │ │ +0027d500: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ +0027d510: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +0027d520: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ +0027d530: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +0027d540: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ +0027d550: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ +0027d560: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +0027d570: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +0027d580: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +0027d590: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +0027d5a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0027d5b0: 0a20 202d 2070 6163 6b61 6765 5f6e 6769 . - package_ngi │ │ │ +0027d5c0: 6e78 5f72 656d 6f76 6564 0a20 202d 2075 nx_removed. - u │ │ │ +0027d5d0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a nknown_severity. │ │ │ +0027d5e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

│ │ │ +0027d690: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0027d6a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0027d740: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +0027d7e0: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ +0027d7f0: 6769 6e78 0a0a 636c 6173 7320 7265 6d6f  ginx..class remo
│ │ │ +0027d800: 7665 5f6e 6769 6e78 207b 0a20 2070 6163  ve_nginx {.  pac
│ │ │ +0027d810: 6b61 6765 207b 2027 6e67 696e 7827 3a0a  kage { 'nginx':.
│ │ │ +0027d820: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0027d830: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0027d840: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediati │ │ │ -0027e5f0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0027e600: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0027e610: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0027e660: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0027e670: 736b 6564 203d 205b 226e 6769 6e78 225d  sked = ["nginx"]
│ │ │ -0027e680: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Kub │ │ │ -0027e740: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -0027e750: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
mediumdisable
│ │ │ +0027d730: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027d760: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027d770: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027d7b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0027d7c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -0027e7e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0027e800: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot │ │ │ -0027e830: 3a3c 2f74 683e 3c74 643e 7472 7565 3c2f :true
│ │ │ -0027e850: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0027e880: 3c63 6f64 653e 6170 6956 6572 7369 6f6e  apiVersion
│ │ │ -0027e890: 3a20 6d61 6368 696e 6563 6f6e 6669 6775  : machineconfigu
│ │ │ -0027e8a0: 7261 7469 6f6e 2e6f 7065 6e73 6869 6674  ration.openshift
│ │ │ -0027e8b0: 2e69 6f2f 7631 0a6b 696e 643a 204d 6163  .io/v1.kind: Mac
│ │ │ -0027e8c0: 6869 6e65 436f 6e66 6967 0a73 7065 633a  hineConfig.spec:
│ │ │ -0027e8d0: 0a20 2063 6f6e 6669 673a 0a20 2020 2069  .  config:.    i
│ │ │ -0027e8e0: 676e 6974 696f 6e3a 0a20 2020 2020 2076  gnition:.      v
│ │ │ -0027e8f0: 6572 7369 6f6e 3a20 332e 312e 300a 2020  ersion: 3.1.0.  
│ │ │ -0027e900: 2020 7379 7374 656d 643a 0a20 2020 2020    systemd:.     
│ │ │ -0027e910: 2075 6e69 7473 3a0a 2020 2020 2020 2d20   units:.      - 
│ │ │ -0027e920: 6e61 6d65 3a20 6e67 696e 782e 7365 7276  name: nginx.serv
│ │ │ -0027e930: 6963 650a 2020 2020 2020 2020 656e 6162  ice.        enab
│ │ │ -0027e940: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0027e950: 2020 206d 6173 6b3a 2074 7275 650a 2020     mask: true.  
│ │ │ -0027e960: 2020 2020 2d20 6e61 6d65 3a20 6e67 696e      - name: ngin
│ │ │ -0027e970: 782e 736f 636b 6574 0a20 2020 2020 2020  x.socket.       
│ │ │ -0027e980: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0027e990: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -0027e9a0: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ -0027e9b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -0027ea60: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0027ea70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0027eaf0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0027eb10: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0027eb60: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ -0027ebb0: 5f6e 6769 6e78 0a0a 636c 6173 7320 6469  _nginx..class di
│ │ │ -0027ebc0: 7361 626c 655f 6e67 696e 7820 7b0a 2020  sable_nginx {.  
│ │ │ -0027ebd0: 7365 7276 6963 6520 7b27 6e67 696e 7827  service {'nginx'
│ │ │ -0027ebe0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -0027ebf0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -0027ec00: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -0027ec10: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -0027ec30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0027ec40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0027ec50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0027ec60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0027ec70: 6439 3936 2220 7461 6269 6e64 6578 3d22 d996" tabindex=" │ │ │ -0027ec80: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0027ec90: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0027eca0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0027ecb0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0027ecc0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0027ecd0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0027ece0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0027ecf0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ -0027eb20: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0027eb30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0027eb70: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0027eb80: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -0027ed70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0027eda0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0027edc0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0027edd0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0027edf0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0027ee00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0027ee20: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0027ee30: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0027ee40: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0027ee50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0027ee60: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -0027ee70: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0027ee80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0027ee90: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0027eea0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0027eeb0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0027eec0: 6963 655f 6e67 696e 785f 6469 7361 626c  ice_nginx_disabl
│ │ │ -0027eed0: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ -0027eee0: 6576 6572 6974 790a 0a2d 206e 616d 653a  everity..- name:
│ │ │ -0027eef0: 2044 6973 6162 6c65 206e 6769 6e78 2053   Disable nginx S
│ │ │ -0027ef00: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0027ef10: 2073 6572 7669 6365 206e 6769 6e78 0a20   service nginx. 
│ │ │ -0027ef20: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0027ef30: 653a 2044 6973 6162 6c65 206e 6769 6e78  e: Disable nginx
│ │ │ -0027ef40: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ -0027ef50: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -0027ef60: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ -0027ef70: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -0027ef80: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0027ef90: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0027efa0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0027efb0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -0027efc0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -0027efd0: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -0027efe0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0027eff0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0027f000: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -0027f010: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0027f020: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0027f030: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0027f040: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0027f050: 6520 6e67 696e 7820 5365 7276 6963 6520  e nginx Service 
│ │ │ -0027f060: 2d20 456e 7375 7265 206e 6769 6e78 2e73  - Ensure nginx.s
│ │ │ -0027f070: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -0027f080: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0027f090: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0027f0a0: 2020 2020 6e61 6d65 3a20 6e67 696e 782e      name: nginx.
│ │ │ -0027f0b0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0027f0c0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0027f0d0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0027f0e0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0027f0f0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0027f100: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0027f110: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0027f120: 6172 6368 2822 6e67 696e 782e 7365 7276  arch("nginx.serv
│ │ │ -0027f130: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -0027f140: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -0027f150: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -0027f160: 7374 7320 2d20 6e67 696e 782e 736f 636b  sts - nginx.sock
│ │ │ -0027f170: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ -0027f180: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -0027f190: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -0027f1a0: 742d 756e 6974 2d66 696c 6573 206e 6769  t-unit-files ngi
│ │ │ -0027f1b0: 6e78 2e73 6f63 6b65 740a 2020 2020 7265  nx.socket.    re
│ │ │ -0027f1c0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -0027f1d0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -0027f1e0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0027f1f0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0027f200: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0027f210: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0027f220: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0027f230: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0027f240: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0027f250: 206e 6769 6e78 2053 6572 7669 6365 202d   nginx Service -
│ │ │ -0027f260: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -0027f270: 6e67 696e 780a 2020 2020 616e 7369 626c  nginx.    ansibl
│ │ │ -0027f280: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0027f290: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ -0027f2a0: 6769 6e78 2e73 6f63 6b65 740a 2020 2020  ginx.socket.    
│ │ │ -0027f2b0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0027f2c0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -0027f2d0: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ -0027f2e0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0027f2f0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -0027f300: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0027f310: 6573 2069 7320 7365 6172 6368 2822 6e67  es is search("ng
│ │ │ -0027f320: 696e 782e 736f 636b 6574 222c 206d 756c  inx.socket", mul
│ │ │ -0027f330: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -0027f340: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0027f350: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0027f360: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0027f370: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0027f380: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0027f390: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0027f3a0: 5f6e 6769 6e78 5f64 6973 6162 6c65 640a  _nginx_disabled.
│ │ │ -0027f3b0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -0027f3c0: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ -0027f3d0: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ -0027f3e0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -0027f3f0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0027f400: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0027e5f0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +0027e600: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +0027e680: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0027e690: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0027e6a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0027e6e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0027e6f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0027e710: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0027e720: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0027e740: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0027e750: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0027e760: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0027e770: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0027e780: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0027e790: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0027e7a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0027e7b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0027e7c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0027e7d0: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ +0027e7e0: 6769 6e78 5f64 6973 6162 6c65 640a 2020  ginx_disabled.  
│ │ │ +0027e7f0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +0027e800: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ +0027e810: 626c 6520 6e67 696e 7820 5365 7276 6963  ble nginx Servic
│ │ │ +0027e820: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +0027e830: 6963 6520 6e67 696e 780a 2020 626c 6f63  ice nginx.  bloc
│ │ │ +0027e840: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +0027e850: 7361 626c 6520 6e67 696e 7820 5365 7276  sable nginx Serv
│ │ │ +0027e860: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +0027e870: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +0027e880: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +0027e890: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +0027e8a0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0027e8b0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +0027e8c0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +0027e8d0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +0027e8e0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +0027e8f0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +0027e900: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +0027e910: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +0027e920: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +0027e930: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +0027e940: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +0027e950: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +0027e960: 616d 653a 2044 6973 6162 6c65 206e 6769  ame: Disable ngi
│ │ │ +0027e970: 6e78 2053 6572 7669 6365 202d 2045 6e73  nx Service - Ens
│ │ │ +0027e980: 7572 6520 6e67 696e 782e 7365 7276 6963  ure nginx.servic
│ │ │ +0027e990: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +0027e9a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0027e9b0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0027e9c0: 616d 653a 206e 6769 6e78 2e73 6572 7669  ame: nginx.servi
│ │ │ +0027e9d0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +0027e9e0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +0027e9f0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0027ea00: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0027ea10: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +0027ea20: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0027ea30: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0027ea40: 226e 6769 6e78 2e73 6572 7669 6365 222c  "nginx.service",
│ │ │ +0027ea50: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0027ea60: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +0027ea70: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +0027ea80: 206e 6769 6e78 2e73 6f63 6b65 740a 2020   nginx.socket.  
│ │ │ +0027ea90: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0027eaa0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0027eab0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0027eac0: 742d 6669 6c65 7320 6e67 696e 782e 736f  t-files nginx.so
│ │ │ +0027ead0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +0027eae0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +0027eaf0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +0027eb00: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +0027eb10: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +0027eb20: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0027eb30: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0027eb40: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0027eb50: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0027eb60: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ +0027eb70: 7820 5365 7276 6963 6520 2d20 4469 7361  x Service - Disa
│ │ │ +0027eb80: 626c 6520 536f 636b 6574 206e 6769 6e78  ble Socket nginx
│ │ │ +0027eb90: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0027eba0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +0027ebb0: 2020 2020 6e61 6d65 3a20 6e67 696e 782e      name: nginx.
│ │ │ +0027ebc0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0027ebd0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027ebe0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0027ebf0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027ec00: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0027ec10: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0027ec20: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0027ec30: 2073 6561 7263 6828 226e 6769 6e78 2e73   search("nginx.s
│ │ │ +0027ec40: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +0027ec50: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +0027ec60: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0027ec70: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0027ec80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0027ec90: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0027eca0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0027ecb0: 2020 2d20 7365 7276 6963 655f 6e67 696e    - service_ngin
│ │ │ +0027ecc0: 785f 6469 7361 626c 6564 0a20 202d 2073  x_disabled.  - s
│ │ │ +0027ecd0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +0027ece0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e  lock.  - unknown
│ │ │ +0027ecf0: 5f73 6576 6572 6974 790a 2020 7768 656e  _severity.  when
│ │ │ +0027ed00: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0027ed10: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0027ed20: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +0027ede0: 6961 7469 6f6e 204b 7562 6572 6e65 7465 iation Kubernete │ │ │ +0027edf0: 7320 736e 6970 7065 7420 e287 b23c 2f61 s snippet ...
< │ │ │ +0027ee90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027eea0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0027eed0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0027eee0: 3c74 643e 7472 7565 3c2f 7464 3e3c 2f74

│ │ │ +0027ef30: 6170 6956 6572 7369 6f6e 3a20 6d61 6368  apiVersion: mach
│ │ │ +0027ef40: 696e 6563 6f6e 6669 6775 7261 7469 6f6e  ineconfiguration
│ │ │ +0027ef50: 2e6f 7065 6e73 6869 6674 2e69 6f2f 7631  .openshift.io/v1
│ │ │ +0027ef60: 0a6b 696e 643a 204d 6163 6869 6e65 436f  .kind: MachineCo
│ │ │ +0027ef70: 6e66 6967 0a73 7065 633a 0a20 2063 6f6e  nfig.spec:.  con
│ │ │ +0027ef80: 6669 673a 0a20 2020 2069 676e 6974 696f  fig:.    ignitio
│ │ │ +0027ef90: 6e3a 0a20 2020 2020 2076 6572 7369 6f6e  n:.      version
│ │ │ +0027efa0: 3a20 332e 312e 300a 2020 2020 7379 7374  : 3.1.0.    syst
│ │ │ +0027efb0: 656d 643a 0a20 2020 2020 2075 6e69 7473  emd:.      units
│ │ │ +0027efc0: 3a0a 2020 2020 2020 2d20 6e61 6d65 3a20  :.      - name: 
│ │ │ +0027efd0: 6e67 696e 782e 7365 7276 6963 650a 2020  nginx.service.  
│ │ │ +0027efe0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0027eff0: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ +0027f000: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ +0027f010: 6e61 6d65 3a20 6e67 696e 782e 736f 636b  name: nginx.sock
│ │ │ +0027f020: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ +0027f030: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0027f040: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ +0027f060: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0027f100: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0027f110: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0027f120: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +0027ee80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0027eeb0: 6f6e 3a3c 2f74 683e 3c74 643e 6d65 6469 on:medi │ │ │ +0027eec0: 756d 3c2f 7464 3e3c 2f74 723e 3c74 723e um
Reboot:true
Strate │ │ │ +0027ef00: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0027ef10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +0027f1a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027f1d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027f1f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027f200: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027f220: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0027f240: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0027f250: 6465 2064 6973 6162 6c65 5f6e 6769 6e78  de disable_nginx
│ │ │ +0027f260: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +0027f270: 6e67 696e 7820 7b0a 2020 7365 7276 6963  nginx {.  servic
│ │ │ +0027f280: 6520 7b27 6e67 696e 7827 3a0a 2020 2020  e {'nginx':.    
│ │ │ +0027f290: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +0027f2a0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +0027f2b0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +0027f2c0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +0027f380: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0027f390: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0027f3a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +0027f3f0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +0027f400: 6b65 6420 3d20 5b22 6e67 696e 7822 5d0a  ked = ["nginx"].
│ │ │  0027f410: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pu │ │ │ -00280970: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00280980: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00280a50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00280a60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00280ac0: 5f64 6f76 6563 6f74 2d63 6f72 650a 0a63  _dovecot-core..c
│ │ │ -00280ad0: 6c61 7373 2072 656d 6f76 655f 646f 7665  lass remove_dove
│ │ │ -00280ae0: 636f 742d 636f 7265 207b 0a20 2070 6163  cot-core {.  pac
│ │ │ -00280af0: 6b61 6765 207b 2027 646f 7665 636f 742d  kage { 'dovecot-
│ │ │ -00280b00: 636f 7265 273a 0a20 2020 2065 6e73 7572  core':.    ensur
│ │ │ -00280b10: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -00280b20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00280b30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -00280be0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ -00280bf0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -00280c00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disru │ │ │ -00280a30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00280a40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00280a80: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00280a90: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -00280ca0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00280cc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00280cf0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00280c80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00280c90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00280cb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00280cd0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00280ce0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00280d20: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00280d30: 3a20 2755 6e69 6e73 7461 6c6c 2064 6f76 : 'Uninstall dov │ │ │ -00280d40: 6563 6f74 2050 6163 6b61 6765 3a20 456e ecot Package: En │ │ │ -00280d50: 7375 7265 2064 6f76 6563 6f74 2d63 6f72 sure dovecot-cor │ │ │ -00280d60: 6520 6973 2072 656d 6f76 6564 270a 2020 e is removed'. │ │ │ -00280d70: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00280d80: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ -00280d90: 653a 2064 6f76 6563 6f74 2d63 6f72 650a e: dovecot-core. │ │ │ -00280da0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -00280db0: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ -00280dc0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -00280dd0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -00280de0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -00280df0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -00280e00: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -00280e10: 636b 6167 655f 646f 7665 636f 745f 7265 ckage_dovecot_re │ │ │ -00280e20: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77 moved. - unknow │ │ │ -00280e30: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64 n_severity.Remediation An │ │ │ +00280970: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00280980: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00280a00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00280a20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00280a70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00280aa0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +00280ac0: 7461 6c6c 2064 6f76 6563 6f74 2050 6163  tall dovecot Pac
│ │ │ +00280ad0: 6b61 6765 3a20 456e 7375 7265 2064 6f76  kage: Ensure dov
│ │ │ +00280ae0: 6563 6f74 2d63 6f72 6520 6973 2072 656d  ecot-core is rem
│ │ │ +00280af0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00280b00: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00280b10: 0a20 2020 206e 616d 653a 2064 6f76 6563  .    name: dovec
│ │ │ +00280b20: 6f74 2d63 6f72 650a 2020 2020 7374 6174  ot-core.    stat
│ │ │ +00280b30: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00280b40: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00280b50: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00280b60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00280b70: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00280b80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00280b90: 640a 2020 2d20 7061 636b 6167 655f 646f  d.  - package_do
│ │ │ +00280ba0: 7665 636f 745f 7265 6d6f 7665 640a 2020  vecot_removed.  
│ │ │ +00280bb0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00280bc0: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +00280bd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +00280c80: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00280c90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ +00280d60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ +00280a30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00280a40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00280a80: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00280a90: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +00280d20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00280d40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00280d90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00280da0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00280dd0: 6f76 655f 646f 7665 636f 742d 636f 7265  ove_dovecot-core
│ │ │ +00280de0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f64  ..class remove_d
│ │ │ +00280df0: 6f76 6563 6f74 2d63 6f72 6520 7b0a 2020  ovecot-core {.  
│ │ │ +00280e00: 7061 636b 6167 6520 7b20 2764 6f76 6563  package { 'dovec
│ │ │ +00280e10: 6f74 2d63 6f72 6527 3a0a 2020 2020 656e  ot-core':.    en
│ │ │ +00280e20: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00280e30: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation O │ │ │ -00281c30: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00281c40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00281c50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -00281c90: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00281ca0: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00281cb0: 6420 3d20 5b22 646f 7665 636f 7422 5d0a  d = ["dovecot"].
│ │ │ -00281cc0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ -00281d80: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -00281d90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00281e20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00281e40: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00281e50: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -00281e70: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -00281e80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00281ea0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00281eb0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -00281ed0: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -00281ee0: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -00281ef0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -00281f00: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -00281f10: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -00281f20: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -00281f30: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -00281f40: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -00281f50: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -00281f60: 206e 616d 653a 2064 6f76 6563 6f74 2e73   name: dovecot.s
│ │ │ -00281f70: 6572 7669 6365 0a20 2020 2020 2020 2065  ervice.        e
│ │ │ -00281f80: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00281f90: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ -00281fa0: 0a20 2020 2020 202d 206e 616d 653a 2064  .      - name: d
│ │ │ -00281fb0: 6f76 6563 6f74 2e73 6f63 6b65 740a 2020  ovecot.socket.  
│ │ │ -00281fc0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -00281fd0: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ -00281fe0: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c  k: true.<
│ │ │ -00281ff0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002820a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002820b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002820c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002820d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002820e0: 7365 2220 6964 3d22 6964 3130 3035 223e se" id="id1005"> │ │ │ -002820f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00282160: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00282180: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002821b0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -002821d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00282140: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00282150: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00282190: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002821a0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -002821f0: 6469 7361 626c 655f 646f 7665 636f 740a disable_dovecot. │ │ │ -00282200: 0a63 6c61 7373 2064 6973 6162 6c65 5f64 .class disable_d │ │ │ -00282210: 6f76 6563 6f74 207b 0a20 2073 6572 7669 ovecot {. servi │ │ │ -00282220: 6365 207b 2764 6f76 6563 6f74 273a 0a20 ce {'dovecot':. │ │ │ -00282230: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ -00282240: 6661 6c73 652c 0a20 2020 2065 6e73 7572 false,. ensur │ │ │ -00282250: 6520 3d26 6774 3b20 2773 746f 7070 6564 e => 'stopped │ │ │ -00282260: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00282270: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ -00282320: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00282330: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002823c0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002823d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002823f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00282410: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00282420: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00282460: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00282470: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00282480: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00282490: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -002824a0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -002824b0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002824c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002824d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002824e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002824f0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00282500: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00282510: 6365 5f64 6f76 6563 6f74 5f64 6973 6162  ce_dovecot_disab
│ │ │ -00282520: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ -00282530: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ -00282540: 3a20 4469 7361 626c 6520 446f 7665 636f  : Disable Doveco
│ │ │ -00282550: 7420 5365 7276 6963 6520 2d20 4469 7361  t Service - Disa
│ │ │ -00282560: 626c 6520 7365 7276 6963 6520 646f 7665  ble service dove
│ │ │ -00282570: 636f 740a 2020 626c 6f63 6b3a 0a0a 2020  cot.  block:..  
│ │ │ -00282580: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00282590: 446f 7665 636f 7420 5365 7276 6963 6520  Dovecot Service 
│ │ │ -002825a0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002825b0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002825c0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002825d0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002825e0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002825f0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00282600: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00282610: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00282620: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00282630: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00282640: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00282650: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00282660: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -00282670: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00282680: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00282690: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002826a0: 2044 6973 6162 6c65 2044 6f76 6563 6f74   Disable Dovecot
│ │ │ -002826b0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ -002826c0: 6520 646f 7665 636f 742e 7365 7276 6963  e dovecot.servic
│ │ │ -002826d0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -002826e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002826f0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00282700: 616d 653a 2064 6f76 6563 6f74 2e73 6572  ame: dovecot.ser
│ │ │ -00282710: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -00282720: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00282730: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00282740: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00282750: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -00282760: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -00282770: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00282780: 6828 2264 6f76 6563 6f74 2e73 6572 7669  h("dovecot.servi
│ │ │ -00282790: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ -002827a0: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ -002827b0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ -002827c0: 7473 202d 2064 6f76 6563 6f74 2e73 6f63  ts - dovecot.soc
│ │ │ -002827d0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -002827e0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002827f0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -00282800: 7374 2d75 6e69 742d 6669 6c65 7320 646f  st-unit-files do
│ │ │ -00282810: 7665 636f 742e 736f 636b 6574 0a20 2020  vecot.socket.   
│ │ │ -00282820: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -00282830: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -00282840: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -00282850: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -00282860: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -00282870: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -00282880: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00282890: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002828a0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002828b0: 626c 6520 446f 7665 636f 7420 5365 7276  ble Dovecot Serv
│ │ │ -002828c0: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ -002828d0: 636b 6574 2064 6f76 6563 6f74 0a20 2020  cket dovecot.   
│ │ │ -002828e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002828f0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -00282900: 6e61 6d65 3a20 646f 7665 636f 742e 736f  name: dovecot.so
│ │ │ -00282910: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -00282920: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00282930: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00282940: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00282950: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -00282960: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -00282970: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00282980: 6561 7263 6828 2264 6f76 6563 6f74 2e73  earch("dovecot.s
│ │ │ -00282990: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -002829a0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -002829b0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002829c0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002829d0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002829e0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -002829f0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00282a00: 2020 2d20 7365 7276 6963 655f 646f 7665    - service_dove
│ │ │ -00282a10: 636f 745f 6469 7361 626c 6564 0a20 202d  cot_disabled.  -
│ │ │ -00282a20: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00282a30: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f  _block.  - unkno
│ │ │ -00282a40: 776e 5f73 6576 6572 6974 790a 2020 7768  wn_severity.  wh
│ │ │ -00282a50: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00282a60: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00282a70: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.Remediation A
│ │ │ +00281c30: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00281c40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +00281cd0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00281cf0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00281d10: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00281d40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00281d50: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00281d80: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00281d90: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00281da0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00281db0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00281dc0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00281dd0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00281de0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00281df0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00281e00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00281e10: 2020 2d20 7365 7276 6963 655f 646f 7665    - service_dove
│ │ │ +00281e20: 636f 745f 6469 7361 626c 6564 0a20 202d  cot_disabled.  -
│ │ │ +00281e30: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +00281e40: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ +00281e50: 6c65 2044 6f76 6563 6f74 2053 6572 7669  le Dovecot Servi
│ │ │ +00281e60: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +00281e70: 7669 6365 2064 6f76 6563 6f74 0a20 2062  vice dovecot.  b
│ │ │ +00281e80: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +00281e90: 2044 6973 6162 6c65 2044 6f76 6563 6f74   Disable Dovecot
│ │ │ +00281ea0: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +00281eb0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +00281ec0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +00281ed0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00281ee0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00281ef0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00281f00: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00281f10: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00281f20: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00281f30: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00281f40: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00281f50: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00281f60: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +00281f70: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00281f80: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00281f90: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00281fa0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00281fb0: 6520 446f 7665 636f 7420 5365 7276 6963  e Dovecot Servic
│ │ │ +00281fc0: 6520 2d20 456e 7375 7265 2064 6f76 6563  e - Ensure dovec
│ │ │ +00281fd0: 6f74 2e73 6572 7669 6365 2069 7320 4d61  ot.service is Ma
│ │ │ +00281fe0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +00281ff0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00282000: 3a0a 2020 2020 2020 6e61 6d65 3a20 646f  :.      name: do
│ │ │ +00282010: 7665 636f 742e 7365 7276 6963 650a 2020  vecot.service.  
│ │ │ +00282020: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00282030: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +00282040: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +00282050: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00282060: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00282070: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00282080: 2069 7320 7365 6172 6368 2822 646f 7665   is search("dove
│ │ │ +00282090: 636f 742e 7365 7276 6963 6522 2c20 6d75  cot.service", mu
│ │ │ +002820a0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +002820b0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +002820c0: 636b 6574 2045 7869 7374 7320 2d20 646f  cket Exists - do
│ │ │ +002820d0: 7665 636f 742e 736f 636b 6574 0a20 2020  vecot.socket.   
│ │ │ +002820e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002820f0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00282100: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00282110: 2d66 696c 6573 2064 6f76 6563 6f74 2e73  -files dovecot.s
│ │ │ +00282120: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +00282130: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +00282140: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00282150: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00282160: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00282170: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00282180: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00282190: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002821a0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002821b0: 616d 653a 2044 6973 6162 6c65 2044 6f76  ame: Disable Dov
│ │ │ +002821c0: 6563 6f74 2053 6572 7669 6365 202d 2044  ecot Service - D
│ │ │ +002821d0: 6973 6162 6c65 2053 6f63 6b65 7420 646f  isable Socket do
│ │ │ +002821e0: 7665 636f 740a 2020 2020 616e 7369 626c  vecot.    ansibl
│ │ │ +002821f0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00282200: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ +00282210: 6f76 6563 6f74 2e73 6f63 6b65 740a 2020  ovecot.socket.  
│ │ │ +00282220: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00282230: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +00282240: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +00282250: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00282260: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00282270: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00282280: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00282290: 646f 7665 636f 742e 736f 636b 6574 222c  dovecot.socket",
│ │ │ +002822a0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002822b0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +002822c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002822d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002822e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002822f0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00282300: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00282310: 7669 6365 5f64 6f76 6563 6f74 5f64 6973  vice_dovecot_dis
│ │ │ +00282320: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00282330: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00282340: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +00282350: 7269 7479 0a20 2077 6865 6e3a 2027 226c  rity.  when: '"l
│ │ │ +00282360: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00282370: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00282380: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediati │ │ │ +00282440: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ +00282450: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ +00282550: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +00282590: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +002825a0: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +002825b0: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +002825c0: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +002825d0: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +002825e0: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +002825f0: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +00282600: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +00282610: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +00282620: 2020 2020 202d 206e 616d 653a 2064 6f76       - name: dov
│ │ │ +00282630: 6563 6f74 2e73 6572 7669 6365 0a20 2020  ecot.service.   
│ │ │ +00282640: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00282650: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +00282660: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ +00282670: 616d 653a 2064 6f76 6563 6f74 2e73 6f63  ame: dovecot.soc
│ │ │ +00282680: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +00282690: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002826a0: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ +00282760: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00282770: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Comp │ │ │ +002824e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002824f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00282510: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +00282520: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +00282560: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00282570: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00282810: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +002828b0: 636c 7564 6520 6469 7361 626c 655f 646f  clude disable_do
│ │ │ +002828c0: 7665 636f 740a 0a63 6c61 7373 2064 6973  vecot..class dis
│ │ │ +002828d0: 6162 6c65 5f64 6f76 6563 6f74 207b 0a20  able_dovecot {. 
│ │ │ +002828e0: 2073 6572 7669 6365 207b 2764 6f76 6563   service {'dovec
│ │ │ +002828f0: 6f74 273a 0a20 2020 2065 6e61 626c 6520  ot':.    enable 
│ │ │ +00282900: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +00282910: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +00282920: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +00282930: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002829e0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +002829f0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00282a00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +00282a50: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00282a60: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00282a70: 205b 2264 6f76 6563 6f74 225d 0a3c 2f63   ["dovecot"].
│ │ │ 00282a90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -002843d0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002843e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00282800: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00282830: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00282840: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00282880: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00282890: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -00284470: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002844a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002844c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002844d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002844f0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00284500: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00284520: 6c75 6465 2072 656d 6f76 655f 6c64 6170  lude remove_ldap
│ │ │ -00284530: 2d75 7469 6c73 0a0a 636c 6173 7320 7265  -utils..class re
│ │ │ -00284540: 6d6f 7665 5f6c 6461 702d 7574 696c 7320  move_ldap-utils 
│ │ │ -00284550: 7b0a 2020 7061 636b 6167 6520 7b20 276c  {.  package { 'l
│ │ │ -00284560: 6461 702d 7574 696c 7327 3a0a 2020 2020  dap-utils':.    
│ │ │ -00284570: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00284580: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -002845a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00284640: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00284650: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002846f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00284790: 206e 616d 653a 2027 456e 7375 7265 204c   name: 'Ensure L
│ │ │ -002847a0: 4441 5020 636c 6965 6e74 2069 7320 6e6f  DAP client is no
│ │ │ -002847b0: 7420 696e 7374 616c 6c65 643a 2045 6e73  t installed: Ens
│ │ │ -002847c0: 7572 6520 6c64 6170 2d75 7469 6c73 2069  ure ldap-utils i
│ │ │ -002847d0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -002847e0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002847f0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00284800: 6c64 6170 2d75 7469 6c73 0a20 2020 2073  ldap-utils.    s
│ │ │ -00284810: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00284820: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -00284830: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00284840: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00284850: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00284860: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -00284870: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00284880: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00284890: 655f 6f70 656e 6c64 6170 2d63 6c69 656e  e_openldap-clien
│ │ │ -002848a0: 7473 5f72 656d 6f76 6564 0a3c 2f63 6f64  ts_removed.<
│ │ │ +002843f0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
│ │ │ -002846e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00284710: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00284720: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00284760: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00284770: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +00284490: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002844e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00284520: 616d 653a 2027 456e 7375 7265 204c 4441  ame: 'Ensure LDA
│ │ │ +00284530: 5020 636c 6965 6e74 2069 7320 6e6f 7420  P client is not 
│ │ │ +00284540: 696e 7374 616c 6c65 643a 2045 6e73 7572  installed: Ensur
│ │ │ +00284550: 6520 6c64 6170 2d75 7469 6c73 2069 7320  e ldap-utils is 
│ │ │ +00284560: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00284570: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00284580: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c64  ge:.    name: ld
│ │ │ +00284590: 6170 2d75 7469 6c73 0a20 2020 2073 7461  ap-utils.    sta
│ │ │ +002845a0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +002845b0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +002845c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002845d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002845e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002845f0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +00284600: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00284610: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00284620: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ +00284630: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00284640: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002846f0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00284700: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00284710: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Co │ │ │ +00284470: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002844a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002844c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002844d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002844f0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00284500: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +002847b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002847d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00284800: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00284790: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002847a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002847c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002847e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002847f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00284830: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00284840: 6465 2072 656d 6f76 655f 6c64 6170 2d75 de remove_ldap-u │ │ │ +00284850: 7469 6c73 0a0a 636c 6173 7320 7265 6d6f tils..class remo │ │ │ +00284860: 7665 5f6c 6461 702d 7574 696c 7320 7b0a ve_ldap-utils {. │ │ │ +00284870: 2020 7061 636b 6167 6520 7b20 276c 6461 package { 'lda │ │ │ +00284880: 702d 7574 696c 7327 3a0a 2020 2020 656e p-utils':. en │ │ │ +00284890: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ +002848a0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
│ │ │ -00286060: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00286070: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -00286150: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00286160: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002861b0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -002861c0: 736c 6170 640a 0a63 6c61 7373 2072 656d  slapd..class rem
│ │ │ -002861d0: 6f76 655f 736c 6170 6420 7b0a 2020 7061  ove_slapd {.  pa
│ │ │ -002861e0: 636b 6167 6520 7b20 2773 6c61 7064 273a  ckage { 'slapd':
│ │ │ -002861f0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00286200: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00286210: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00286220: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002862d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002862e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -002863b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ -00286130: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00286140: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00286180: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00286190: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00286370: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00286390: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002863e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002863f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00286420: 6e73 7461 6c6c 2073 6c61 7064 2050 6163  nstall slapd Pac
│ │ │ -00286430: 6b61 6765 3a20 456e 7375 7265 2073 6c61  kage: Ensure sla
│ │ │ -00286440: 7064 2069 7320 7265 6d6f 7665 6427 0a20  pd is removed'. 
│ │ │ -00286450: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00286460: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00286470: 6d65 3a20 736c 6170 640a 2020 2020 7374  me: slapd.    st
│ │ │ -00286480: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00286490: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -002864a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -002864b0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002864c0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002864d0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -002864e0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002864f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00286500: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00286510: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00286520: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00286530: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00286540: 2070 6163 6b61 6765 5f6f 7065 6e6c 6461   package_openlda
│ │ │ -00286550: 702d 7365 7276 6572 735f 7265 6d6f 7665  p-servers_remove
│ │ │ -00286560: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00286060: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00286070: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00286080: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +00286150: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00286160: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +002861c0: 616c 6c20 736c 6170 6420 5061 636b 6167  all slapd Packag
│ │ │ +002861d0: 653a 2045 6e73 7572 6520 736c 6170 6420  e: Ensure slapd 
│ │ │ +002861e0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002861f0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00286200: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00286210: 2073 6c61 7064 0a20 2020 2073 7461 7465   slapd.    state
│ │ │ +00286220: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00286230: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00286240: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00286250: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00286260: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00286270: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00286280: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00286290: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002862a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002862b0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +002862c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002862d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002862e0: 636b 6167 655f 6f70 656e 6c64 6170 2d73  ckage_openldap-s
│ │ │ +002862f0: 6572 7665 7273 5f72 656d 6f76 6564 0a3c  ervers_removed.<
│ │ │ +00286300: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002863b0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002863c0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +00286130: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00286140: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00286180: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00286190: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002864a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002864b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00286500: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00286510: 736c 6170 640a 0a63 6c61 7373 2072 656d  slapd..class rem
│ │ │ +00286520: 6f76 655f 736c 6170 6420 7b0a 2020 7061  ove_slapd {.  pa
│ │ │ +00286530: 636b 6167 6520 7b20 2773 6c61 7064 273a  ckage { 'slapd':
│ │ │ +00286540: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00286550: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00286560: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00286570: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ -00287340: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00287350: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -002873a0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -002873b0: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -002873c0: 3d20 5b22 736c 6170 6422 5d0a 3c2f 636f  = ["slapd"].
< │ │ │ -002873e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002873f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00287400: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00287410: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00287420: 6431 3031 3822 2074 6162 696e 6465 783d d1018" tabindex= │ │ │ -00287430: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -00287440: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -00287450: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -00287460: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -00287470: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -00287480: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ -00287490: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ -002874a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +00286480: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00286490: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002864d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002864e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity:< │ │ │ -00287570: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00287590: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002875c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -00287550: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ -00287560: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ -002875a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002875b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ -002875e0: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ -002875f0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ -00287600: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ -00287610: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ -00287620: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ -00287630: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ -00287640: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ -00287650: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ -00287660: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ -00287670: 653a 2073 6c61 7064 2e73 6572 7669 6365  e: slapd.service
│ │ │ -00287680: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -00287690: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -002876a0: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -002876b0: 202d 206e 616d 653a 2073 6c61 7064 2e73   - name: slapd.s
│ │ │ -002876c0: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ -002876d0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002876e0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -002876f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -002877b0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002877c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -00287890: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002878a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -002878f0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00287900: 736c 6170 640a 0a63 6c61 7373 2064 6973  slapd..class dis
│ │ │ -00287910: 6162 6c65 5f73 6c61 7064 207b 0a20 2073  able_slapd {.  s
│ │ │ -00287920: 6572 7669 6365 207b 2773 6c61 7064 273a  ervice {'slapd':
│ │ │ -00287930: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00287940: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -00287950: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -00287960: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -00287a20: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00287a30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00287a40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ -00287870: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00287880: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002878c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -002878d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -00287ae0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00287b30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00287b70: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00287b80: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00287b90: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00287ba0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00287bb0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00287bc0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00287bd0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00287be0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00287bf0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00287c00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00287c10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00287c20: 2073 6572 7669 6365 5f73 6c61 7064 5f64   service_slapd_d
│ │ │ -00287c30: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ -00287c40: 2044 6973 6162 6c65 204c 4441 5020 5365   Disable LDAP Se
│ │ │ -00287c50: 7276 6572 2028 736c 6170 6429 202d 2044  rver (slapd) - D
│ │ │ -00287c60: 6973 6162 6c65 2073 6572 7669 6365 2073  isable service s
│ │ │ -00287c70: 6c61 7064 0a20 2062 6c6f 636b 3a0a 0a20  lapd.  block:.. 
│ │ │ -00287c80: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00287c90: 204c 4441 5020 5365 7276 6572 2028 736c   LDAP Server (sl
│ │ │ -00287ca0: 6170 6429 202d 2043 6f6c 6c65 6374 2073  apd) - Collect s
│ │ │ -00287cb0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ -00287cc0: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ -00287cd0: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ -00287ce0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00287cf0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -00287d00: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -00287d10: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ -00287d20: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ -00287d30: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ -00287d40: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -00287d50: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -00287d60: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00287d70: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00287d80: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00287d90: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00287da0: 6e61 6d65 3a20 4469 7361 626c 6520 4c44  name: Disable LD
│ │ │ -00287db0: 4150 2053 6572 7665 7220 2873 6c61 7064  AP Server (slapd
│ │ │ -00287dc0: 2920 2d20 456e 7375 7265 2073 6c61 7064  ) - Ensure slapd
│ │ │ -00287dd0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -00287de0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -00287df0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00287e00: 2020 2020 2020 6e61 6d65 3a20 736c 6170        name: slap
│ │ │ -00287e10: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -00287e20: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00287e30: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00287e40: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -00287e50: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00287e60: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00287e70: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00287e80: 7365 6172 6368 2822 736c 6170 642e 7365  search("slapd.se
│ │ │ -00287e90: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ -00287ea0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ -00287eb0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ -00287ec0: 7869 7374 7320 2d20 736c 6170 642e 736f  xists - slapd.so
│ │ │ -00287ed0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00287ee0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00287ef0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00287f00: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ -00287f10: 6c61 7064 2e73 6f63 6b65 740a 2020 2020  lapd.socket.    
│ │ │ -00287f20: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -00287f30: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -00287f40: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00287f50: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00287f60: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00287f70: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00287f80: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00287f90: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00287fa0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00287fb0: 6c65 204c 4441 5020 5365 7276 6572 2028  le LDAP Server (
│ │ │ -00287fc0: 736c 6170 6429 202d 2044 6973 6162 6c65  slapd) - Disable
│ │ │ -00287fd0: 2053 6f63 6b65 7420 736c 6170 640a 2020   Socket slapd.  
│ │ │ -00287fe0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00287ff0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00288000: 206e 616d 653a 2073 6c61 7064 2e73 6f63   name: slapd.soc
│ │ │ -00288010: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ -00288020: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ -00288030: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00288040: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -00288050: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ -00288060: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ -00288070: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00288080: 6172 6368 2822 736c 6170 642e 736f 636b  arch("slapd.sock
│ │ │ -00288090: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -002880a0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -002880b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002880c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002880d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002880e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -002880f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00288100: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00288110: 0a20 202d 2073 6572 7669 6365 5f73 6c61  .  - service_sla
│ │ │ -00288120: 7064 5f64 6973 6162 6c65 640a 2020 2d20  pd_disabled.  - 
│ │ │ -00288130: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -00288140: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -00288150: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00288160: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00288170: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediation Ans
│ │ │ +00287340: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00287350: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Co │ │ │ -00287ac0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00287af0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00287b10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00287b20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00287b40: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00287b50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +002873d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002873f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00287440: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00287470: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00287490: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +002874a0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +002874b0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +002874c0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +002874d0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002874e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002874f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00287500: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00287510: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00287520: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00287530: 640a 2020 2d20 7365 7276 6963 655f 736c  d.  - service_sl
│ │ │ +00287540: 6170 645f 6469 7361 626c 6564 0a0a 2d20  apd_disabled..- 
│ │ │ +00287550: 6e61 6d65 3a20 4469 7361 626c 6520 4c44  name: Disable LD
│ │ │ +00287560: 4150 2053 6572 7665 7220 2873 6c61 7064  AP Server (slapd
│ │ │ +00287570: 2920 2d20 4469 7361 626c 6520 7365 7276  ) - Disable serv
│ │ │ +00287580: 6963 6520 736c 6170 640a 2020 626c 6f63  ice slapd.  bloc
│ │ │ +00287590: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +002875a0: 7361 626c 6520 4c44 4150 2053 6572 7665  sable LDAP Serve
│ │ │ +002875b0: 7220 2873 6c61 7064 2920 2d20 436f 6c6c  r (slapd) - Coll
│ │ │ +002875c0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +002875d0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +002875e0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +002875f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00287600: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00287610: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00287620: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +00287630: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +00287640: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00287650: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +00287660: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +00287670: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +00287680: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +00287690: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +002876a0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +002876b0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002876c0: 6c65 204c 4441 5020 5365 7276 6572 2028  le LDAP Server (
│ │ │ +002876d0: 736c 6170 6429 202d 2045 6e73 7572 6520  slapd) - Ensure 
│ │ │ +002876e0: 736c 6170 642e 7365 7276 6963 6520 6973  slapd.service is
│ │ │ +002876f0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +00287700: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00287710: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00287720: 2073 6c61 7064 2e73 6572 7669 6365 0a20   slapd.service. 
│ │ │ +00287730: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00287740: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +00287750: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +00287760: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00287770: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00287780: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00287790: 7320 6973 2073 6561 7263 6828 2273 6c61  s is search("sla
│ │ │ +002877a0: 7064 2e73 6572 7669 6365 222c 206d 756c  pd.service", mul
│ │ │ +002877b0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +002877c0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +002877d0: 6b65 7420 4578 6973 7473 202d 2073 6c61  ket Exists - sla
│ │ │ +002877e0: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ +002877f0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00287800: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00287810: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00287820: 6c65 7320 736c 6170 642e 736f 636b 6574  les slapd.socket
│ │ │ +00287830: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00287840: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00287850: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00287860: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00287870: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +00287880: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +00287890: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002878a0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002878b0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002878c0: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ +002878d0: 7665 7220 2873 6c61 7064 2920 2d20 4469  ver (slapd) - Di
│ │ │ +002878e0: 7361 626c 6520 536f 636b 6574 2073 6c61  sable Socket sla
│ │ │ +002878f0: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ +00287900: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00287910: 2020 2020 2020 6e61 6d65 3a20 736c 6170        name: slap
│ │ │ +00287920: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ +00287930: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +00287940: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00287950: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +00287960: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +00287970: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00287980: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +00287990: 6973 2073 6561 7263 6828 2273 6c61 7064  is search("slapd
│ │ │ +002879a0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +002879b0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +002879c0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +002879d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002879e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002879f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00287a00: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00287a10: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00287a20: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00287a30: 655f 736c 6170 645f 6469 7361 626c 6564  e_slapd_disabled
│ │ │ +00287a40: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +00287a50: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +00287a60: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +00287a70: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00287a80: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +00287aa0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00287ab0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00287ac0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00287ad0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00287ae0: 6431 3031 3822 2074 6162 696e 6465 783d d1018" tabindex= │ │ │ +00287af0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +00287b00: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00287b10: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00287b20: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00287b30: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00287b40: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +00287b50: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +00287b60: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +00287400: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00287410: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00287450: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00287460: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity:< │ │ │ +00287c30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +00287c50: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00287c80: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +00287c10: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ +00287c20: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ +00287c60: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00287c70: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ +00287ca0: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ +00287cb0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ +00287cc0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ +00287cd0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ +00287ce0: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ +00287cf0: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ +00287d00: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ +00287d10: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ +00287d20: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ +00287d30: 653a 2073 6c61 7064 2e73 6572 7669 6365  e: slapd.service
│ │ │ +00287d40: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +00287d50: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +00287d60: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +00287d70: 202d 206e 616d 653a 2073 6c61 7064 2e73   - name: slapd.s
│ │ │ +00287d80: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ +00287d90: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00287da0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +00287db0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +00287e70: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00287e80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +00287f50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00287f60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00287fb0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +00287fc0: 736c 6170 640a 0a63 6c61 7373 2064 6973  slapd..class dis
│ │ │ +00287fd0: 6162 6c65 5f73 6c61 7064 207b 0a20 2073  able_slapd {.  s
│ │ │ +00287fe0: 6572 7669 6365 207b 2773 6c61 7064 273a  ervice {'slapd':
│ │ │ +00287ff0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +00288000: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +00288010: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +00288020: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ +002880e0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +002880f0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00288100: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[custo │ │ │ +00288150: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +00288160: 6573 5d0a 6d61 736b 6564 203d 205b 2273 es].masked = ["s │ │ │ +00288170: 6c61 7064 225d 0a3c 2f63 6f64 653e 3c2f lapd"].Reme │ │ │ -0028c820: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0028c830: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...

low
Disru │ │ │ +00287f30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00287f40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00287f80: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00287f90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0028c8c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0028c8f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0028c910: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0028c920: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0028c940: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0028c950: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0028c970: 6c75 6465 2072 656d 6f76 655f 7270 6362  lude remove_rpcb
│ │ │ -0028c980: 696e 640a 0a63 6c61 7373 2072 656d 6f76  ind..class remov
│ │ │ -0028c990: 655f 7270 6362 696e 6420 7b0a 2020 7061  e_rpcbind {.  pa
│ │ │ -0028c9a0: 636b 6167 6520 7b20 2772 7063 6269 6e64  ckage { 'rpcbind
│ │ │ -0028c9b0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0028c9c0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -0028c9d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0028ca90: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0028caa0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0028cb20: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0028cb30: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0028cb50: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0028cb60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0028cb80: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0028cba0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0028cbd0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0028cbe0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0028cbf0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0028cc00: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0028cc10: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0028cc20: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0028cc30: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0028cc40: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0028cc50: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0028cc60: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -0028cc70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0028cc80: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -0028cc90: 7063 6269 6e64 5f72 656d 6f76 6564 0a0a  pcbind_removed..
│ │ │ -0028cca0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -0028ccb0: 6c6c 2072 7063 6269 6e64 2050 6163 6b61  ll rpcbind Packa
│ │ │ -0028ccc0: 6765 3a20 456e 7375 7265 2072 7063 6269  ge: Ensure rpcbi
│ │ │ -0028ccd0: 6e64 2069 7320 7265 6d6f 7665 6427 0a20  nd is removed'. 
│ │ │ -0028cce0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0028ccf0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0028cd00: 6d65 3a20 7270 6362 696e 640a 2020 2020  me: rpcbind.    
│ │ │ -0028cd10: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -0028cd20: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0028cd30: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0028cd40: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -0028cd50: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -0028cd60: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0028cd70: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0028cd80: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0028cd90: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -0028cda0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0028cdb0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0028cdc0: 6167 655f 7270 6362 696e 645f 7265 6d6f  age_rpcbind_remo
│ │ │ -0028cdd0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
< │ │ │ +0028c840: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +0028c8e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0028c930: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0028c970: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0028c980: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0028c990: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0028c9a0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0028c9b0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +0028c9c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0028c9d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0028c9e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0028c9f0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +0028ca00: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0028ca10: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0028ca20: 636b 6167 655f 7270 6362 696e 645f 7265  ckage_rpcbind_re
│ │ │ +0028ca30: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ +0028ca40: 556e 696e 7374 616c 6c20 7270 6362 696e  Uninstall rpcbin
│ │ │ +0028ca50: 6420 5061 636b 6167 653a 2045 6e73 7572  d Package: Ensur
│ │ │ +0028ca60: 6520 7270 6362 696e 6420 6973 2072 656d  e rpcbind is rem
│ │ │ +0028ca70: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0028ca80: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0028ca90: 0a20 2020 206e 616d 653a 2072 7063 6269  .    name: rpcbi
│ │ │ +0028caa0: 6e64 0a20 2020 2073 7461 7465 3a20 6162  nd.    state: ab
│ │ │ +0028cab0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ +0028cac0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0028cad0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0028cae0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +0028caf0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0028cb00: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0028cb10: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0028cb20: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +0028cb30: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0028cb40: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0028cb50: 202d 2070 6163 6b61 6765 5f72 7063 6269   - package_rpcbi
│ │ │ +0028cb60: 6e64 5f72 656d 6f76 6564 0a3c 2f63 6f64  nd_removed.
Reme │ │ │ +0028cc20: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0028cc30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Co │ │ │ +0028c8c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0028c8f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0028c910: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0028c920: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0028c940: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0028c950: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +0028ccc0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0028ccf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0028cd10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0028cd20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0028cd40: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0028cd50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0028cd70: 6c75 6465 2072 656d 6f76 655f 7270 6362  lude remove_rpcb
│ │ │ +0028cd80: 696e 640a 0a63 6c61 7373 2072 656d 6f76  ind..class remov
│ │ │ +0028cd90: 655f 7270 6362 696e 6420 7b0a 2020 7061  e_rpcbind {.  pa
│ │ │ +0028cda0: 636b 6167 6520 7b20 2772 7063 6269 6e64  ckage { 'rpcbind
│ │ │ +0028cdb0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0028cdc0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0028cdd0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remedia │ │ │ -0028dee0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0028def0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0028df00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0028df40: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -0028df50: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -0028df60: 0a6d 6173 6b65 6420 3d20 5b22 7270 6362  .masked = ["rpcb
│ │ │ -0028df70: 696e 6422 5d0a 3c2f 636f 6465 3e3c 2f70  ind"].

Remediati │ │ │ -0028e030: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -0028e040: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ -0028e140: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ -0028e180: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ -0028e190: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ -0028e1a0: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ -0028e1b0: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ -0028e1c0: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ -0028e1d0: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ -0028e1e0: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ -0028e1f0: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ -0028e200: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ -0028e210: 2020 2020 202d 206e 616d 653a 2072 7063       - name: rpc
│ │ │ -0028e220: 6269 6e64 2e73 6572 7669 6365 0a20 2020  bind.service.   
│ │ │ -0028e230: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0028e240: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -0028e250: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ -0028e260: 616d 653a 2072 7063 6269 6e64 2e73 6f63  ame: rpcbind.soc
│ │ │ -0028e270: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ -0028e280: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0028e290: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ -0028e350: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0028e360: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Comp │ │ │ -0028e0d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0028e0e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0028e100: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ -0028e110: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ -0028e150: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0028e160: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0028e400: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0028e4a0: 636c 7564 6520 6469 7361 626c 655f 7270  clude disable_rp
│ │ │ -0028e4b0: 6362 696e 640a 0a63 6c61 7373 2064 6973  cbind..class dis
│ │ │ -0028e4c0: 6162 6c65 5f72 7063 6269 6e64 207b 0a20  able_rpcbind {. 
│ │ │ -0028e4d0: 2073 6572 7669 6365 207b 2772 7063 6269   service {'rpcbi
│ │ │ -0028e4e0: 6e64 273a 0a20 2020 2065 6e61 626c 6520  nd':.    enable 
│ │ │ -0028e4f0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -0028e500: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -0028e510: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -0028e520: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -0028e5d0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0028e5e0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0028e5f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -0028e3f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0028e420: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0028e430: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0028e470: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0028e480: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -0028e6c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0028e6d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -0028e730: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0028e740: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0028e750: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0028e760: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0028e770: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0028e780: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0028e790: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -0028e7a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0028e7b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0028e7c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0028e7d0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -0028e7e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0028e7f0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0028e800: 7270 6362 696e 645f 6469 7361 626c 6564  rpcbind_disabled
│ │ │ -0028e810: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -0028e820: 6520 7270 6362 696e 6420 5365 7276 6963  e rpcbind Servic
│ │ │ -0028e830: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -0028e840: 6963 6520 7270 6362 696e 640a 2020 626c  ice rpcbind.  bl
│ │ │ -0028e850: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -0028e860: 4469 7361 626c 6520 7270 6362 696e 6420  Disable rpcbind 
│ │ │ -0028e870: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ -0028e880: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -0028e890: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -0028e8a0: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -0028e8b0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -0028e8c0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -0028e8d0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -0028e8e0: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -0028e8f0: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -0028e900: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -0028e910: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -0028e920: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -0028e930: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -0028e940: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0028e950: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0028e960: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0028e970: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0028e980: 2072 7063 6269 6e64 2053 6572 7669 6365   rpcbind Service
│ │ │ -0028e990: 202d 2045 6e73 7572 6520 7270 6362 696e   - Ensure rpcbin
│ │ │ -0028e9a0: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -0028e9b0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -0028e9c0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -0028e9d0: 0a20 2020 2020 206e 616d 653a 2072 7063  .      name: rpc
│ │ │ -0028e9e0: 6269 6e64 2e73 6572 7669 6365 0a20 2020  bind.service.   
│ │ │ -0028e9f0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0028ea00: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -0028ea10: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -0028ea20: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0028ea30: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0028ea40: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0028ea50: 6973 2073 6561 7263 6828 2272 7063 6269  is search("rpcbi
│ │ │ -0028ea60: 6e64 2e73 6572 7669 6365 222c 206d 756c  nd.service", mul
│ │ │ -0028ea70: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -0028ea80: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -0028ea90: 6b65 7420 4578 6973 7473 202d 2072 7063  ket Exists - rpc
│ │ │ -0028eaa0: 6269 6e64 2e73 6f63 6b65 740a 2020 2020  bind.socket.    
│ │ │ -0028eab0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0028eac0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0028ead0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0028eae0: 6669 6c65 7320 7270 6362 696e 642e 736f  files rpcbind.so
│ │ │ -0028eaf0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -0028eb00: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -0028eb10: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -0028eb20: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -0028eb30: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -0028eb40: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0028eb50: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0028eb60: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0028eb70: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0028eb80: 6d65 3a20 4469 7361 626c 6520 7270 6362  me: Disable rpcb
│ │ │ -0028eb90: 696e 6420 5365 7276 6963 6520 2d20 4469  ind Service - Di
│ │ │ -0028eba0: 7361 626c 6520 536f 636b 6574 2072 7063  sable Socket rpc
│ │ │ -0028ebb0: 6269 6e64 0a20 2020 2061 6e73 6962 6c65  bind.    ansible
│ │ │ -0028ebc0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0028ebd0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7270  :.      name: rp
│ │ │ -0028ebe0: 6362 696e 642e 736f 636b 6574 0a20 2020  cbind.socket.   
│ │ │ -0028ebf0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0028ec00: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0028ec10: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -0028ec20: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0028ec30: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0028ec40: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -0028ec50: 6e65 7320 6973 2073 6561 7263 6828 2272  nes is search("r
│ │ │ -0028ec60: 7063 6269 6e64 2e73 6f63 6b65 7422 2c20  pcbind.socket", 
│ │ │ -0028ec70: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -0028ec80: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -0028ec90: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -0028eca0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -0028ecb0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0028ecc0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0028ecd0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0028ece0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -0028ecf0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0028ed00: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0028ed10: 202d 2073 6572 7669 6365 5f72 7063 6269   - service_rpcbi
│ │ │ -0028ed20: 6e64 5f64 6973 6162 6c65 640a 2020 2d20  nd_disabled.  - 
│ │ │ -0028ed30: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -0028ed40: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -0028ed50: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0028ed60: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0028ed70: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
│ │ │ +0028df00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disru │ │ │ -0028e6a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0028e6b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0028e6f0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0028e700: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0028dfa0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0028dfc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0028dff0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0028df80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0028df90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0028dfb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0028dfd0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0028dfe0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0028e020: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0028e030: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0028e040: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0028e050: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0028e060: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0028e070: 7461 6773 3a0a 2020 2d20 5043 492d 4453 tags:. - PCI-DS │ │ │ +0028e080: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +0028e090: 4453 5376 342d 322e 322e 340a 2020 2d20 DSSv4-2.2.4. - │ │ │ +0028e0a0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +0028e0b0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0028e0c0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0028e0d0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73 uption. - low_s │ │ │ +0028e0e0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +0028e0f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +0028e100: 2073 6572 7669 6365 5f72 7063 6269 6e64 service_rpcbind │ │ │ +0028e110: 5f64 6973 6162 6c65 640a 0a2d 206e 616d _disabled..- nam │ │ │ +0028e120: 653a 2044 6973 6162 6c65 2072 7063 6269 e: Disable rpcbi │ │ │ +0028e130: 6e64 2053 6572 7669 6365 202d 2044 6973 nd Service - Dis │ │ │ +0028e140: 6162 6c65 2073 6572 7669 6365 2072 7063 able service rpc │ │ │ +0028e150: 6269 6e64 0a20 2062 6c6f 636b 3a0a 0a20 bind. block:.. │ │ │ +0028e160: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ +0028e170: 2072 7063 6269 6e64 2053 6572 7669 6365 rpcbind Service │ │ │ +0028e180: 202d 2043 6f6c 6c65 6374 2073 7973 7465 - Collect syste │ │ │ +0028e190: 6d64 2053 6572 7669 6365 7320 5072 6573 md Services Pres │ │ │ +0028e1a0: 656e 7420 696e 2074 6865 2053 7973 7465 ent in the Syste │ │ │ +0028e1b0: 6d0a 2020 2020 616e 7369 626c 652e 6275 m. ansible.bu │ │ │ +0028e1c0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073 iltin.command: s │ │ │ +0028e1d0: 7973 7465 6d63 746c 202d 7120 6c69 7374 ystemctl -q list │ │ │ +0028e1e0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479 -unit-files --ty │ │ │ +0028e1f0: 7065 2073 6572 7669 6365 0a20 2020 2072 pe service. r │ │ │ +0028e200: 6567 6973 7465 723a 2073 6572 7669 6365 egister: service │ │ │ +0028e210: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ +0028e220: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ +0028e230: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ +0028e240: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ +0028e250: 7263 206e 6f74 2069 6e20 5b30 2c20 315d rc not in [0, 1] │ │ │ +0028e260: 0a20 2020 2063 6865 636b 5f6d 6f64 653a . check_mode: │ │ │ +0028e270: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65 false.. - name │ │ │ +0028e280: 3a20 4469 7361 626c 6520 7270 6362 696e : Disable rpcbin │ │ │ +0028e290: 6420 5365 7276 6963 6520 2d20 456e 7375 d Service - Ensu │ │ │ +0028e2a0: 7265 2072 7063 6269 6e64 2e73 6572 7669 re rpcbind.servi │ │ │ +0028e2b0: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ +0028e2c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +0028e2d0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +0028e2e0: 6e61 6d65 3a20 7270 6362 696e 642e 7365 name: rpcbind.se │ │ │ +0028e2f0: 7276 6963 650a 2020 2020 2020 7374 6174 rvice. stat │ │ │ +0028e300: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ +0028e310: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +0028e320: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ +0028e330: 7565 0a20 2020 2077 6865 6e3a 2073 6572 ue. when: ser │ │ │ +0028e340: 7669 6365 5f65 7869 7374 732e 7374 646f vice_exists.stdo │ │ │ +0028e350: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ +0028e360: 6368 2822 7270 6362 696e 642e 7365 7276 ch("rpcbind.serv │ │ │ +0028e370: 6963 6522 2c20 6d75 6c74 696c 696e 653d ice", multiline= │ │ │ +0028e380: 5472 7565 290a 0a20 202d 206e 616d 653a True).. - name: │ │ │ +0028e390: 2055 6e69 7420 536f 636b 6574 2045 7869 Unit Socket Exi │ │ │ +0028e3a0: 7374 7320 2d20 7270 6362 696e 642e 736f sts - rpcbind.so │ │ │ +0028e3b0: 636b 6574 0a20 2020 2061 6e73 6962 6c65 cket. ansible │ │ │ +0028e3c0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ +0028e3d0: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ +0028e3e0: 6973 742d 756e 6974 2d66 696c 6573 2072 ist-unit-files r │ │ │ +0028e3f0: 7063 6269 6e64 2e73 6f63 6b65 740a 2020 pcbind.socket. │ │ │ +0028e400: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ +0028e410: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ +0028e420: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ +0028e430: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ +0028e440: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ +0028e450: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ +0028e460: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +0028e470: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +0028e480: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ +0028e490: 6162 6c65 2072 7063 6269 6e64 2053 6572 able rpcbind Ser │ │ │ +0028e4a0: 7669 6365 202d 2044 6973 6162 6c65 2053 vice - Disable S │ │ │ +0028e4b0: 6f63 6b65 7420 7270 6362 696e 640a 2020 ocket rpcbind. │ │ │ +0028e4c0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +0028e4d0: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ +0028e4e0: 206e 616d 653a 2072 7063 6269 6e64 2e73 name: rpcbind.s │ │ │ +0028e4f0: 6f63 6b65 740a 2020 2020 2020 656e 6162 ocket. enab │ │ │ +0028e500: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ +0028e510: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ +0028e520: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ +0028e530: 7565 0a20 2020 2077 6865 6e3a 2073 6f63 ue. when: soc │ │ │ +0028e540: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ +0028e550: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ +0028e560: 7365 6172 6368 2822 7270 6362 696e 642e search("rpcbind. │ │ │ +0028e570: 736f 636b 6574 222c 206d 756c 7469 6c69 socket", multili │ │ │ +0028e580: 6e65 3d54 7275 6529 0a20 2074 6167 733a ne=True). tags: │ │ │ +0028e590: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +0028e5a0: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +0028e5b0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162 -2.2.4. - disab │ │ │ +0028e5c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0028e5d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0028e5e0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0028e5f0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269 n. - low_severi │ │ │ +0028e600: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0028e610: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +0028e620: 6963 655f 7270 6362 696e 645f 6469 7361 ice_rpcbind_disa │ │ │ +0028e630: 626c 6564 0a20 202d 2073 7065 6369 616c bled. - special │ │ │ +0028e640: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20 _service_block. │ │ │ +0028e650: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ +0028e660: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ +0028e670: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +0028e680: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 Remediation Kub │ │ │ +0028e740: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ +0028e750: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ +0028e7e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0028e800: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0028e810: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ +0028e830: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ +0028e840: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0028e860: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0028e870: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ +0028e890: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ +0028e8a0: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ +0028e8b0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ +0028e8c0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ +0028e8d0: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ +0028e8e0: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ +0028e8f0: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ +0028e900: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ +0028e910: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ +0028e920: 206e 616d 653a 2072 7063 6269 6e64 2e73   name: rpcbind.s
│ │ │ +0028e930: 6572 7669 6365 0a20 2020 2020 2020 2065  ervice.        e
│ │ │ +0028e940: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0028e950: 2020 2020 2020 6d61 736b 3a20 7472 7565        mask: true
│ │ │ +0028e960: 0a20 2020 2020 202d 206e 616d 653a 2072  .      - name: r
│ │ │ +0028e970: 7063 6269 6e64 2e73 6f63 6b65 740a 2020  pcbind.socket.  
│ │ │ +0028e980: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0028e990: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ +0028e9a0: 6b3a 2074 7275 650a 3c2f 636f 6465 3e3c  k: true.<
│ │ │ +0028e9b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +0028ea60: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0028ea70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0028ea80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028ea90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028eaa0: 7365 2220 6964 3d22 6964 3130 3332 223e se" id="id1032"> │ │ │ +0028eab0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0028eb20: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0028eb40: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0028eb70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0028eb90: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0028eb00: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0028eb10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0028eb50: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0028eb60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0028ebb0: 6469 7361 626c 655f 7270 6362 696e 640a disable_rpcbind. │ │ │ +0028ebc0: 0a63 6c61 7373 2064 6973 6162 6c65 5f72 .class disable_r │ │ │ +0028ebd0: 7063 6269 6e64 207b 0a20 2073 6572 7669 pcbind {. servi │ │ │ +0028ebe0: 6365 207b 2772 7063 6269 6e64 273a 0a20 ce {'rpcbind':. │ │ │ +0028ebf0: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ +0028ec00: 6661 6c73 652c 0a20 2020 2065 6e73 7572 false,. ensur │ │ │ +0028ec10: 6520 3d26 6774 3b20 2773 746f 7070 6564 e => 'stopped │ │ │ +0028ec20: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +0028ec30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +0028ece0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0028ecf0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0028ed00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +0028ed50: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0028ed60: 5d0a 6d61 736b 6564 203d 205b 2272 7063  ].masked = ["rpc
│ │ │ +0028ed70: 6269 6e64 225d 0a3c 2f63 6f64 653e 3c2f  bind"].
Remediati │ │ │ -00290a10: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00290a20: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00290a30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ -00290a80: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -00290a90: 6173 6b65 6420 3d20 5b22 6e66 732d 7365  asked = ["nfs-se
│ │ │ -00290aa0: 7276 6572 225d 0a3c 2f63 6f64 653e 3c2f  rver"].
Remediat │ │ │ -00290b60: 696f 6e20 4b75 6265 726e 6574 6573 2073 ion Kubernetes s │ │ │ -00290b70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Reboot:true │ │ │ -00290c70: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ -00290cb0: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ -00290cc0: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ -00290cd0: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ -00290ce0: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ -00290cf0: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ -00290d00: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ -00290d10: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ -00290d20: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ -00290d30: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ -00290d40: 2020 2020 2020 2d20 6e61 6d65 3a20 6e66        - name: nf
│ │ │ -00290d50: 732d 7365 7276 6572 2e73 6572 7669 6365  s-server.service
│ │ │ -00290d60: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ -00290d70: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ -00290d80: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ -00290d90: 202d 206e 616d 653a 206e 6673 2d73 6572   - name: nfs-ser
│ │ │ -00290da0: 7665 722e 736f 636b 6574 0a20 2020 2020  ver.socket.     
│ │ │ -00290db0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00290dc0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -00290dd0: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072  true.Remediatio
│ │ │ -00290e90: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ -00290ea0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -00290f20: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00290f60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Com │ │ │ -00290c00: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00290c30: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ -00290c40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ -00290c80: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00290c90: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -00290f30: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00290f50: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00290f80: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00290fa0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00290fd0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00290fe0: 6162 6c65 5f6e 6673 2d73 6572 7665 720a  able_nfs-server.
│ │ │ -00290ff0: 0a63 6c61 7373 2064 6973 6162 6c65 5f6e  .class disable_n
│ │ │ -00291000: 6673 2d73 6572 7665 7220 7b0a 2020 7365  fs-server {.  se
│ │ │ -00291010: 7276 6963 6520 7b27 6e66 732d 7365 7276  rvice {'nfs-serv
│ │ │ -00291020: 6572 273a 0a20 2020 2065 6e61 626c 6520  er':.    enable 
│ │ │ -00291030: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -00291040: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -00291050: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -00291060: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -00291110: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00291120: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00291130: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -00291200: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00291210: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -00291270: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00291280: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00291290: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -002912a0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -002912b0: 2044 4953 412d 5354 4947 2d55 4254 552d   DISA-STIG-UBTU-
│ │ │ -002912c0: 3234 2d31 3030 3035 300a 2020 2d20 4e49  24-100050.  - NI
│ │ │ -002912d0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002912e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002912f0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00291300: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00291310: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00291320: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00291330: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00291340: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00291350: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00291360: 640a 2020 2d20 7365 7276 6963 655f 6e66  d.  - service_nf
│ │ │ -00291370: 735f 6469 7361 626c 6564 0a20 202d 2075  s_disabled.  - u
│ │ │ -00291380: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -00291390: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ -002913a0: 204e 6574 776f 726b 2046 696c 6520 5379   Network File Sy
│ │ │ -002913b0: 7374 656d 2028 6e66 7329 202d 2044 6973  stem (nfs) - Dis
│ │ │ -002913c0: 6162 6c65 2073 6572 7669 6365 206e 6673  able service nfs
│ │ │ -002913d0: 2d73 6572 7665 720a 2020 626c 6f63 6b3a  -server.  block:
│ │ │ -002913e0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002913f0: 626c 6520 4e65 7477 6f72 6b20 4669 6c65  ble Network File
│ │ │ -00291400: 2053 7973 7465 6d20 286e 6673 2920 2d20   System (nfs) - 
│ │ │ -00291410: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -00291420: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -00291430: 2069 6e0a 2020 2020 2020 7468 6520 5379   in.      the Sy
│ │ │ -00291440: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -00291450: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00291460: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00291470: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -00291480: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -00291490: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002914a0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002914b0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002914c0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002914d0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002914e0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002914f0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00291500: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00291510: 616d 653a 2044 6973 6162 6c65 204e 6574  ame: Disable Net
│ │ │ -00291520: 776f 726b 2046 696c 6520 5379 7374 656d  work File System
│ │ │ -00291530: 2028 6e66 7329 202d 2045 6e73 7572 6520   (nfs) - Ensure 
│ │ │ -00291540: 6e66 732d 7365 7276 6572 2e73 6572 7669  nfs-server.servi
│ │ │ -00291550: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ -00291560: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00291570: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -00291580: 6e61 6d65 3a20 6e66 732d 7365 7276 6572  name: nfs-server
│ │ │ -00291590: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -002915a0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -002915b0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002915c0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -002915d0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002915e0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -002915f0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00291600: 6561 7263 6828 226e 6673 2d73 6572 7665  earch("nfs-serve
│ │ │ -00291610: 722e 7365 7276 6963 6522 2c20 6d75 6c74  r.service", mult
│ │ │ -00291620: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -00291630: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -00291640: 6574 2045 7869 7374 7320 2d20 6e66 732d  et Exists - nfs-
│ │ │ -00291650: 7365 7276 6572 2e73 6f63 6b65 740a 2020  server.socket.  
│ │ │ -00291660: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00291670: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00291680: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00291690: 742d 6669 6c65 7320 6e66 732d 7365 7276  t-files nfs-serv
│ │ │ -002916a0: 6572 2e73 6f63 6b65 740a 2020 2020 7265  er.socket.    re
│ │ │ -002916b0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -002916c0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -002916d0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002916e0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002916f0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -00291700: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -00291710: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -00291720: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -00291730: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00291740: 204e 6574 776f 726b 2046 696c 6520 5379   Network File Sy
│ │ │ -00291750: 7374 656d 2028 6e66 7329 202d 2044 6973  stem (nfs) - Dis
│ │ │ -00291760: 6162 6c65 2053 6f63 6b65 7420 6e66 732d  able Socket nfs-
│ │ │ -00291770: 7365 7276 6572 0a20 2020 2061 6e73 6962  server.    ansib
│ │ │ -00291780: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00291790: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002917a0: 6e66 732d 7365 7276 6572 2e73 6f63 6b65  nfs-server.socke
│ │ │ -002917b0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002917c0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002917d0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002917e0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002917f0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -00291800: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -00291810: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00291820: 6368 2822 6e66 732d 7365 7276 6572 2e73  ch("nfs-server.s
│ │ │ -00291830: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00291840: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00291850: 2020 2d20 4449 5341 2d53 5449 472d 5542    - DISA-STIG-UB
│ │ │ -00291860: 5455 2d32 342d 3130 3030 3530 0a20 202d  TU-24-100050.  -
│ │ │ -00291870: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00291880: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00291890: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -002918a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002918b0: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -002918c0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -002918d0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -002918e0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -002918f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00291900: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00291910: 5f6e 6673 5f64 6973 6162 6c65 640a 2020  _nfs_disabled.  
│ │ │ -00291920: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00291930: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e  e_block.  - unkn
│ │ │ -00291940: 6f77 6e5f 7365 7665 7269 7479 0a20 2077  own_severity.  w
│ │ │ -00291950: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00291960: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00291970: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
< │ │ │ +00290a60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00290a70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00290a80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00290a90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00290aa0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00290b30: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +00290b40: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disru │ │ │ -002911e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002911f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00291230: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00291240: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +00290ab0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00290ac0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00290b00: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00290b10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +00290b60: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00290b70: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00290b80: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00290b90: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00290ba0: 6773 3a0a 2020 2d20 4449 5341 2d53 5449 gs:. - DISA-STI │ │ │ +00290bb0: 472d 5542 5455 2d32 342d 3130 3030 3530 G-UBTU-24-100050 │ │ │ +00290bc0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00290bd0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953 -CM-6(a). - NIS │ │ │ +00290be0: 542d 3830 302d 3533 2d43 4d2d 3728 6129 T-800-53-CM-7(a) │ │ │ +00290bf0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00290c00: 2d43 4d2d 3728 6229 0a20 202d 2064 6973 -CM-7(b). - dis │ │ │ +00290c10: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00290c20: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +00290c30: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00290c40: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f ion. - no_reboo │ │ │ +00290c50: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +00290c60: 7669 6365 5f6e 6673 5f64 6973 6162 6c65 vice_nfs_disable │ │ │ +00290c70: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365 d. - unknown_se │ │ │ +00290c80: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20 verity..- name: │ │ │ +00290c90: 4469 7361 626c 6520 4e65 7477 6f72 6b20 Disable Network │ │ │ +00290ca0: 4669 6c65 2053 7973 7465 6d20 286e 6673 File System (nfs │ │ │ +00290cb0: 2920 2d20 4469 7361 626c 6520 7365 7276 ) - Disable serv │ │ │ +00290cc0: 6963 6520 6e66 732d 7365 7276 6572 0a20 ice nfs-server. │ │ │ +00290cd0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ +00290ce0: 653a 2044 6973 6162 6c65 204e 6574 776f e: Disable Netwo │ │ │ +00290cf0: 726b 2046 696c 6520 5379 7374 656d 2028 rk File System ( │ │ │ +00290d00: 6e66 7329 202d 2043 6f6c 6c65 6374 2073 nfs) - Collect s │ │ │ +00290d10: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ +00290d20: 5072 6573 656e 7420 696e 0a20 2020 2020 Present in. │ │ │ +00290d30: 2074 6865 2053 7973 7465 6d0a 2020 2020 the System. │ │ │ +00290d40: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00290d50: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ +00290d60: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ +00290d70: 6669 6c65 7320 2d2d 7479 7065 2073 6572 files --type ser │ │ │ +00290d80: 7669 6365 0a20 2020 2072 6567 6973 7465 vice. registe │ │ │ +00290d90: 723a 2073 6572 7669 6365 5f65 7869 7374 r: service_exist │ │ │ +00290da0: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +00290db0: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +00290dc0: 696c 6564 5f77 6865 6e3a 2073 6572 7669 iled_when: servi │ │ │ +00290dd0: 6365 5f65 7869 7374 732e 7263 206e 6f74 ce_exists.rc not │ │ │ +00290de0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063 in [0, 1]. c │ │ │ +00290df0: 6865 636b 5f6d 6f64 653a 2066 616c 7365 heck_mode: false │ │ │ +00290e00: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361 .. - name: Disa │ │ │ +00290e10: 626c 6520 4e65 7477 6f72 6b20 4669 6c65 ble Network File │ │ │ +00290e20: 2053 7973 7465 6d20 286e 6673 2920 2d20 System (nfs) - │ │ │ +00290e30: 456e 7375 7265 206e 6673 2d73 6572 7665 Ensure nfs-serve │ │ │ +00290e40: 722e 7365 7276 6963 6520 6973 204d 6173 r.service is Mas │ │ │ +00290e50: 6b65 640a 2020 2020 616e 7369 626c 652e ked. ansible. │ │ │ +00290e60: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ +00290e70: 0a20 2020 2020 206e 616d 653a 206e 6673 . name: nfs │ │ │ +00290e80: 2d73 6572 7665 722e 7365 7276 6963 650a -server.service. │ │ │ +00290e90: 2020 2020 2020 7374 6174 653a 2073 746f state: sto │ │ │ +00290ea0: 7070 6564 0a20 2020 2020 2065 6e61 626c pped. enabl │ │ │ +00290eb0: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ +00290ec0: 6d61 736b 6564 3a20 7472 7565 0a20 2020 masked: true. │ │ │ +00290ed0: 2077 6865 6e3a 2073 6572 7669 6365 5f65 when: service_e │ │ │ +00290ee0: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ +00290ef0: 6573 2069 7320 7365 6172 6368 2822 6e66 es is search("nf │ │ │ +00290f00: 732d 7365 7276 6572 2e73 6572 7669 6365 s-server.service │ │ │ +00290f10: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ +00290f20: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e e).. - name: Un │ │ │ +00290f30: 6974 2053 6f63 6b65 7420 4578 6973 7473 it Socket Exists │ │ │ +00290f40: 202d 206e 6673 2d73 6572 7665 722e 736f - nfs-server.so │ │ │ +00290f50: 636b 6574 0a20 2020 2061 6e73 6962 6c65 cket. ansible │ │ │ +00290f60: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ +00290f70: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ +00290f80: 6973 742d 756e 6974 2d66 696c 6573 206e ist-unit-files n │ │ │ +00290f90: 6673 2d73 6572 7665 722e 736f 636b 6574 fs-server.socket │ │ │ +00290fa0: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ +00290fb0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +00290fc0: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +00290fd0: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +00290fe0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ +00290ff0: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ +00291000: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +00291010: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +00291020: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +00291030: 4469 7361 626c 6520 4e65 7477 6f72 6b20 Disable Network │ │ │ +00291040: 4669 6c65 2053 7973 7465 6d20 286e 6673 File System (nfs │ │ │ +00291050: 2920 2d20 4469 7361 626c 6520 536f 636b ) - Disable Sock │ │ │ +00291060: 6574 206e 6673 2d73 6572 7665 720a 2020 et nfs-server. │ │ │ +00291070: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +00291080: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ +00291090: 206e 616d 653a 206e 6673 2d73 6572 7665 name: nfs-serve │ │ │ +002910a0: 722e 736f 636b 6574 0a20 2020 2020 2065 r.socket. e │ │ │ +002910b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +002910c0: 2020 2020 7374 6174 653a 2073 746f 7070 state: stopp │ │ │ +002910d0: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ +002910e0: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ +002910f0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +00291100: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ +00291110: 6973 2073 6561 7263 6828 226e 6673 2d73 is search("nfs-s │ │ │ +00291120: 6572 7665 722e 736f 636b 6574 222c 206d erver.socket", m │ │ │ +00291130: 756c 7469 6c69 6e65 3d54 7275 6529 0a20 ultiline=True). │ │ │ +00291140: 2074 6167 733a 0a20 202d 2044 4953 412d tags:. - DISA- │ │ │ +00291150: 5354 4947 2d55 4254 552d 3234 2d31 3030 STIG-UBTU-24-100 │ │ │ +00291160: 3035 300a 2020 2d20 4e49 5354 2d38 3030 050. - NIST-800 │ │ │ +00291170: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +00291180: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +00291190: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +002911a0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ +002911b0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +002911c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +002911d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +002911e0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ +002911f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00291200: 7365 7276 6963 655f 6e66 735f 6469 7361 service_nfs_disa │ │ │ +00291210: 626c 6564 0a20 202d 2073 7065 6369 616c bled. - special │ │ │ +00291220: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20 _service_block. │ │ │ +00291230: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572 - unknown_sever │ │ │ +00291240: 6974 790a 2020 7768 656e 3a20 2722 6c69 ity. when: '"li │ │ │ +00291250: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ +00291260: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ +00291270: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072 ges'.
Remediatio │ │ │ +00291330: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ +00291340: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00291350: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002913f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ +002913d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002913e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00291400: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ +00291420: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00291430: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ +00291450: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00291460: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ +00291480: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ +00291490: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ +002914a0: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ +002914b0: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ +002914c0: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ +002914d0: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ +002914e0: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ +002914f0: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ +00291500: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ +00291510: 2020 2020 2d20 6e61 6d65 3a20 6e66 732d      - name: nfs-
│ │ │ +00291520: 7365 7276 6572 2e73 6572 7669 6365 0a20  server.service. 
│ │ │ +00291530: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +00291540: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +00291550: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +00291560: 206e 616d 653a 206e 6673 2d73 6572 7665   name: nfs-serve
│ │ │ +00291570: 722e 736f 636b 6574 0a20 2020 2020 2020  r.socket.       
│ │ │ +00291580: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00291590: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ +002915a0: 7565 0a3c 2f63 6f64 653e 3c2f 7072 653e  ue.
│ │ │ +002915b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +00291660: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00291670: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +00291700: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00291720: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00291740: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00291770: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00291780: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +00291790: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +002917b0: 6c65 5f6e 6673 2d73 6572 7665 720a 0a63  le_nfs-server..c
│ │ │ +002917c0: 6c61 7373 2064 6973 6162 6c65 5f6e 6673  lass disable_nfs
│ │ │ +002917d0: 2d73 6572 7665 7220 7b0a 2020 7365 7276  -server {.  serv
│ │ │ +002917e0: 6963 6520 7b27 6e66 732d 7365 7276 6572  ice {'nfs-server
│ │ │ +002917f0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +00291800: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +00291810: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +00291820: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +00291840: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002918e0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +002918f0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00291900: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00291910: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00291920: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00291930: 7365 2220 6964 3d22 6964 3130 3339 223e se" id="id1039"> │ │ │ +00291940: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00291950: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00291960: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +00291970: 226e 6673 2d73 6572 7665 7222 5d0a 3c2f  "nfs-server"].
Remedia │ │ │ -00292870: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00292880: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00292890: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002928a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002928b0: 7365 2220 6964 3d22 6964 3130 3432 223e se" id="id1042"> │ │ │ -002928c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00292930: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00292950: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00292980: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00292910: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00292920: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00292960: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00292970: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -002929c0: 6520 7265 6d6f 7665 5f6e 6673 2d6b 6572 e remove_nfs-ker │ │ │ -002929d0: 6e65 6c2d 7365 7276 6572 0a0a 636c 6173 nel-server..clas │ │ │ -002929e0: 7320 7265 6d6f 7665 5f6e 6673 2d6b 6572 s remove_nfs-ker │ │ │ -002929f0: 6e65 6c2d 7365 7276 6572 207b 0a20 2070 nel-server {. p │ │ │ -00292a00: 6163 6b61 6765 207b 2027 6e66 732d 6b65 ackage { 'nfs-ke │ │ │ -00292a10: 726e 656c 2d73 6572 7665 7227 3a0a 2020 rnel-server':. │ │ │ -00292a20: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00292a30: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ -00292a40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code> │ │ │ -00292af0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00292b00: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00292b10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

Complexity: │ │ │ -00292be0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00292bf0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00292c50: 616c 6c20 6e66 732d 6b65 726e 656c 2d73  all nfs-kernel-s
│ │ │ -00292c60: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ -00292c70: 6e73 7572 6520 6e66 732d 6b65 726e 656c  nsure nfs-kernel
│ │ │ -00292c80: 2d73 6572 7665 7220 6973 2072 656d 6f76  -server is remov
│ │ │ -00292c90: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00292ca0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00292cb0: 2020 206e 616d 653a 206e 6673 2d6b 6572     name: nfs-ker
│ │ │ -00292cc0: 6e65 6c2d 7365 7276 6572 0a20 2020 2073  nel-server.    s
│ │ │ -00292cd0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00292ce0: 6167 733a 0a20 202d 2044 4953 412d 5354  ags:.  - DISA-ST
│ │ │ -00292cf0: 4947 2d55 4254 552d 3234 2d31 3030 3035  IG-UBTU-24-10005
│ │ │ -00292d00: 300a 2020 2d20 6469 7361 626c 655f 7374  0.  - disable_st
│ │ │ -00292d10: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00292d20: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00292d30: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00292d40: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00292d50: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00292d60: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -00292d70: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572  fs-kernel-server
│ │ │ -00292d80: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00292870: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +00292880: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +00292890: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disru │ │ │ -00292bc0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00292bd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00292c10: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00292c20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00292930: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00292950: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00292980: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00292910: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00292920: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00292940: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00292960: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00292970: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002929b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002929c0: 3a20 2755 6e69 6e73 7461 6c6c 206e 6673 : 'Uninstall nfs │ │ │ +002929d0: 2d6b 6572 6e65 6c2d 7365 7276 6572 2050 -kernel-server P │ │ │ +002929e0: 6163 6b61 6765 3a20 456e 7375 7265 206e ackage: Ensure n │ │ │ +002929f0: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572 fs-kernel-server │ │ │ +00292a00: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ +00292a10: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +00292a20: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +00292a30: 3a20 6e66 732d 6b65 726e 656c 2d73 6572 : nfs-kernel-ser │ │ │ +00292a40: 7665 720a 2020 2020 7374 6174 653a 2061 ver. state: a │ │ │ +00292a50: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ +00292a60: 2d20 4449 5341 2d53 5449 472d 5542 5455 - DISA-STIG-UBTU │ │ │ +00292a70: 2d32 342d 3130 3030 3530 0a20 202d 2064 -24-100050. - d │ │ │ +00292a80: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +00292a90: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +00292aa0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +00292ab0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365 ption. - low_se │ │ │ +00292ac0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +00292ad0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00292ae0: 7061 636b 6167 655f 6e66 732d 6b65 726e package_nfs-kern │ │ │ +00292af0: 656c 2d73 6572 7665 725f 7265 6d6f 7665 el-server_remove │ │ │ +00292b00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +00292b10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +00292bc0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00292bd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +00292c50: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00292c70: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00292cc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00292cf0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00292c60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00292c80: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00292cd0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00292ce0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00292d10: 7665 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ve_nfs-kernel-se
│ │ │ +00292d20: 7276 6572 0a0a 636c 6173 7320 7265 6d6f  rver..class remo
│ │ │ +00292d30: 7665 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ve_nfs-kernel-se
│ │ │ +00292d40: 7276 6572 207b 0a20 2070 6163 6b61 6765  rver {.  package
│ │ │ +00292d50: 207b 2027 6e66 732d 6b65 726e 656c 2d73   { 'nfs-kernel-s
│ │ │ +00292d60: 6572 7665 7227 3a0a 2020 2020 656e 7375  erver':.    ensu
│ │ │ +00292d70: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00292d80: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00292d90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -002a4e60: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002a4e70: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002a4f10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002a4fb0: 696e 636c 7564 6520 7265 6d6f 7665 5f78  include remove_x
│ │ │ -002a4fc0: 696e 6574 640a 0a63 6c61 7373 2072 656d  inetd..class rem
│ │ │ -002a4fd0: 6f76 655f 7869 6e65 7464 207b 0a20 2070  ove_xinetd {.  p
│ │ │ -002a4fe0: 6163 6b61 6765 207b 2027 7869 6e65 7464  ackage { 'xinetd
│ │ │ -002a4ff0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002a5000: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002a5010: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002a50d0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002a50e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002a5160: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002a51a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ -002a4f00: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002a4f30: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002a4f40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002a4f80: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002a4f90: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -002a5170: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002a5190: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002a51c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002a51e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002a5210: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002a5220: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002a5230: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002a5240: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002a5250: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002a5260: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -002a5270: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -002a5280: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -002a5290: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002a52a0: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ -002a52b0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002a52c0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002a52d0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002a52e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002a52f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002a5300: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -002a5310: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -002a5320: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002a5330: 0a20 202d 2070 6163 6b61 6765 5f78 696e  .  - package_xin
│ │ │ -002a5340: 6574 645f 7265 6d6f 7665 640a 0a2d 206e  etd_removed..- n
│ │ │ -002a5350: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002a5360: 7869 6e65 7464 2070 6163 6b61 6765 2069  xinetd package i
│ │ │ -002a5370: 6620 6e6f 7420 7573 6564 2062 7920 6e65  f not used by ne
│ │ │ -002a5380: 7477 6f72 6b20 7365 7276 6963 6573 3a20  twork services: 
│ │ │ -002a5390: 456e 7375 7265 2078 696e 6574 6420 6973  Ensure xinetd is
│ │ │ -002a53a0: 0a20 2020 2072 656d 6f76 6564 270a 2020  .    removed'.  
│ │ │ -002a53b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002a53c0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -002a53d0: 653a 2078 696e 6574 640a 2020 2020 7374  e: xinetd.    st
│ │ │ -002a53e0: 6174 653a 2061 6273 656e 740a 2020 7768  ate: absent.  wh
│ │ │ -002a53f0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -002a5400: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -002a5410: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -002a5420: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -002a5430: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -002a5440: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002a5450: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -002a5460: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -002a5470: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -002a5480: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002a5490: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -002a54a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002a54b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002a54c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002a54d0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -002a54e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002a54f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -002a5500: 7869 6e65 7464 5f72 656d 6f76 6564 0a3c  xinetd_removed.<
│ │ │ +002a4e60: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +002a4e70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
< │ │ │ +002a4f50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002a4f60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002a4fb0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002a4fc0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002a4fd0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002a4fe0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002a4ff0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002a5000: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002a5010: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +002a5020: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +002a5030: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +002a5040: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ +002a5050: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +002a5060: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +002a5070: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002a5080: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002a5090: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002a50a0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +002a50b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002a50c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +002a50d0: 6163 6b61 6765 5f78 696e 6574 645f 7265  ackage_xinetd_re
│ │ │ +002a50e0: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ +002a50f0: 556e 696e 7374 616c 6c20 7869 6e65 7464  Uninstall xinetd
│ │ │ +002a5100: 2070 6163 6b61 6765 2069 6620 6e6f 7420   package if not 
│ │ │ +002a5110: 7573 6564 2062 7920 6e65 7477 6f72 6b20  used by network 
│ │ │ +002a5120: 7365 7276 6963 6573 3a20 456e 7375 7265  services: Ensure
│ │ │ +002a5130: 2078 696e 6574 6420 6973 0a20 2020 2072   xinetd is.    r
│ │ │ +002a5140: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +002a5150: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +002a5160: 653a 0a20 2020 206e 616d 653a 2078 696e  e:.    name: xin
│ │ │ +002a5170: 6574 640a 2020 2020 7374 6174 653a 2061  etd.    state: a
│ │ │ +002a5180: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ +002a5190: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002a51a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002a51b0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +002a51c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002a51d0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +002a51e0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002a51f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002a5200: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +002a5210: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002a5220: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +002a5230: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002a5240: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002a5250: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002a5260: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +002a5270: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002a5280: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002a5290: 2d20 7061 636b 6167 655f 7869 6e65 7464  - package_xinetd
│ │ │ +002a52a0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002a52b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002a5360: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002a5370: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002a5380: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ +002a4f30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002a4f40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002a4f80: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002a4f90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +002a5420: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002a5440: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002a5470: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002a5400: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002a5410: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002a5430: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002a5450: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002a5460: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002a54a0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +002a54b0: 6465 2072 656d 6f76 655f 7869 6e65 7464 de remove_xinetd │ │ │ +002a54c0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f78 ..class remove_x │ │ │ +002a54d0: 696e 6574 6420 7b0a 2020 7061 636b 6167 inetd {. packag │ │ │ +002a54e0: 6520 7b20 2778 696e 6574 6427 3a0a 2020 e { 'xinetd':. │ │ │ +002a54f0: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ +002a5500: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ 002a5510: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
Remediat │ │ │ -002a6c50: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -002a6c60: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -002a6c70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ -002a6cb0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -002a6cc0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -002a6cd0: 6d61 736b 6564 203d 205b 2278 696e 6574  masked = ["xinet
│ │ │ -002a6ce0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation │ │ │ -002a6da0: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ -002a6db0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002a6dc0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002a6dd0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002a6de0: 7365 2220 6964 3d22 6964 3130 3738 223e se" id="id1078"> │ │ │ -002a6df0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002a6e60: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ -002a6e40: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002a6e50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ -002a6e90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ -002a6ea0: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ -002a6ee0: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ -002a6ef0: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ -002a6f00: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ -002a6f10: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ -002a6f20: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ -002a6f30: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ -002a6f40: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ -002a6f50: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ -002a6f60: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ -002a6f70: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ -002a6f80: 2020 202d 206e 616d 653a 2078 696e 6574     - name: xinet
│ │ │ -002a6f90: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -002a6fa0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002a6fb0: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -002a6fc0: 7275 650a 2020 2020 2020 2d20 6e61 6d65  rue.      - name
│ │ │ -002a6fd0: 3a20 7869 6e65 7464 2e73 6f63 6b65 740a  : xinetd.socket.
│ │ │ -002a6fe0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002a6ff0: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002a7000: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ -002a70c0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002a70d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002a7160: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002a7170: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002a7190: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002a71b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002a71c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002a7200: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002a7210: 6520 6469 7361 626c 655f 7869 6e65 7464 e disable_xinetd │ │ │ -002a7220: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -002a7230: 7869 6e65 7464 207b 0a20 2073 6572 7669 xinetd {. servi │ │ │ -002a7240: 6365 207b 2778 696e 6574 6427 3a0a 2020 ce {'xinetd':. │ │ │ -002a7250: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -002a7260: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -002a7270: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -002a7280: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -002a7290: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ -002a7340: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002a7350: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002a7360: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002a7400: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002a7420: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002a7450: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002a73e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002a73f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002a7410: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002a7430: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002a7440: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002a7480: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002a7490: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -002a74a0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -002a74b0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -002a74c0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -002a74d0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -002a74e0: 3030 2d31 3731 2d33 2e34 2e37 0a20 202d 00-171-3.4.7. - │ │ │ -002a74f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -002a7500: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -002a7510: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ -002a7520: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -002a7530: 3728 6229 0a20 202d 2064 6973 6162 6c65 7(b). - disable │ │ │ -002a7540: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -002a7550: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -002a7560: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -002a7570: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -002a7580: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -002a7590: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ -002a75a0: 7669 6365 5f78 696e 6574 645f 6469 7361 vice_xinetd_disa │ │ │ -002a75b0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469 bled..- name: Di │ │ │ -002a75c0: 7361 626c 6520 7869 6e65 7464 2053 6572 sable xinetd Ser │ │ │ -002a75d0: 7669 6365 202d 2044 6973 6162 6c65 2073 vice - Disable s │ │ │ -002a75e0: 6572 7669 6365 2078 696e 6574 640a 2020 ervice xinetd. │ │ │ -002a75f0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ -002a7600: 3a20 4469 7361 626c 6520 7869 6e65 7464 : Disable xinetd │ │ │ -002a7610: 2053 6572 7669 6365 202d 2043 6f6c 6c65 Service - Colle │ │ │ -002a7620: 6374 2073 7973 7465 6d64 2053 6572 7669 ct systemd Servi │ │ │ -002a7630: 6365 7320 5072 6573 656e 7420 696e 2074 ces Present in t │ │ │ -002a7640: 6865 2053 7973 7465 6d0a 2020 2020 616e he System. an │ │ │ -002a7650: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ -002a7660: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ -002a7670: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ -002a7680: 6c65 7320 2d2d 7479 7065 2073 6572 7669 les --type servi │ │ │ -002a7690: 6365 0a20 2020 2072 6567 6973 7465 723a ce. register: │ │ │ -002a76a0: 2073 6572 7669 6365 5f65 7869 7374 730a service_exists. │ │ │ -002a76b0: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ -002a76c0: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ -002a76d0: 6564 5f77 6865 6e3a 2073 6572 7669 6365 ed_when: service │ │ │ -002a76e0: 5f65 7869 7374 732e 7263 206e 6f74 2069 _exists.rc not i │ │ │ -002a76f0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865 n [0, 1]. che │ │ │ -002a7700: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a ck_mode: false.. │ │ │ -002a7710: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -002a7720: 6520 7869 6e65 7464 2053 6572 7669 6365 e xinetd Service │ │ │ -002a7730: 202d 2045 6e73 7572 6520 7869 6e65 7464 - Ensure xinetd │ │ │ -002a7740: 2e73 6572 7669 6365 2069 7320 4d61 736b .service is Mask │ │ │ -002a7750: 6564 0a20 2020 2061 6e73 6962 6c65 2e62 ed. ansible.b │ │ │ -002a7760: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -002a7770: 2020 2020 2020 6e61 6d65 3a20 7869 6e65 name: xine │ │ │ -002a7780: 7464 2e73 6572 7669 6365 0a20 2020 2020 td.service. │ │ │ -002a7790: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -002a77a0: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ -002a77b0: 616c 7365 0a20 2020 2020 206d 6173 6b65 alse. maske │ │ │ -002a77c0: 643a 2074 7275 650a 2020 2020 7768 656e d: true. when │ │ │ -002a77d0: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -002a77e0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973 .stdout_lines is │ │ │ -002a77f0: 2073 6561 7263 6828 2278 696e 6574 642e search("xinetd. │ │ │ -002a7800: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ -002a7810: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ -002a7820: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ -002a7830: 2045 7869 7374 7320 2d20 7869 6e65 7464 Exists - xinetd │ │ │ -002a7840: 2e73 6f63 6b65 740a 2020 2020 616e 7369 .socket. ansi │ │ │ -002a7850: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -002a7860: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -002a7870: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -002a7880: 7320 7869 6e65 7464 2e73 6f63 6b65 740a s xinetd.socket. │ │ │ -002a7890: 2020 2020 7265 6769 7374 6572 3a20 736f register: so │ │ │ -002a78a0: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -002a78b0: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -002a78c0: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -002a78d0: 6c65 645f 7768 656e 3a20 736f 636b 6574 led_when: socket │ │ │ -002a78e0: 5f66 696c 655f 6578 6973 7473 2e72 6320 _file_exists.rc │ │ │ -002a78f0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -002a7900: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -002a7910: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -002a7920: 6973 6162 6c65 2078 696e 6574 6420 5365 isable xinetd Se │ │ │ -002a7930: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -002a7940: 536f 636b 6574 2078 696e 6574 640a 2020 Socket xinetd. │ │ │ -002a7950: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -002a7960: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -002a7970: 206e 616d 653a 2078 696e 6574 642e 736f name: xinetd.so │ │ │ -002a7980: 636b 6574 0a20 2020 2020 2065 6e61 626c cket. enabl │ │ │ -002a7990: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ -002a79a0: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ -002a79b0: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ -002a79c0: 650a 2020 2020 7768 656e 3a20 736f 636b e. when: sock │ │ │ -002a79d0: 6574 5f66 696c 655f 6578 6973 7473 2e73 et_file_exists.s │ │ │ -002a79e0: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ -002a79f0: 6561 7263 6828 2278 696e 6574 642e 736f earch("xinetd.so │ │ │ -002a7a00: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ -002a7a10: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ -002a7a20: 202d 204e 4953 542d 3830 302d 3137 312d - NIST-800-171- │ │ │ -002a7a30: 332e 342e 370a 2020 2d20 4e49 5354 2d38 3.4.7. - NIST-8 │ │ │ -002a7a40: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002a7a50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -002a7a60: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -002a7a70: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -002a7a80: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -002a7a90: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -002a7aa0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002a7ab0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -002a7ac0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -002a7ad0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -002a7ae0: 640a 2020 2d20 7365 7276 6963 655f 7869 d. - service_xi │ │ │ -002a7af0: 6e65 7464 5f64 6973 6162 6c65 640a 2020 netd_disabled. │ │ │ -002a7b00: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -002a7b10: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ -002a7b20: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -002a7b30: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -002a7b40: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +002a6c50: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +002a6c60: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002a6c70: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002a6c80: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002a6c90: 7365 2220 6964 3d22 6964 3130 3737 223e se" id="id1077"> │ │ │ +002a6ca0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002a6d10: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002a6d30: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002a6d60: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002a6cf0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002a6d00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002a6d40: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002a6d50: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002a6da0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +002a6db0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +002a6dc0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +002a6dd0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +002a6de0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +002a6df0: 302d 3137 312d 332e 342e 370a 2020 2d20 0-171-3.4.7. - │ │ │ +002a6e00: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +002a6e10: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +002a6e20: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ +002a6e30: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +002a6e40: 2862 290a 2020 2d20 6469 7361 626c 655f (b). - disable_ │ │ │ +002a6e50: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +002a6e60: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +002a6e70: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +002a6e80: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +002a6e90: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +002a6ea0: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +002a6eb0: 6963 655f 7869 6e65 7464 5f64 6973 6162 ice_xinetd_disab │ │ │ +002a6ec0: 6c65 640a 0a2d 206e 616d 653a 2044 6973 led..- name: Dis │ │ │ +002a6ed0: 6162 6c65 2078 696e 6574 6420 5365 7276 able xinetd Serv │ │ │ +002a6ee0: 6963 6520 2d20 4469 7361 626c 6520 7365 ice - Disable se │ │ │ +002a6ef0: 7276 6963 6520 7869 6e65 7464 0a20 2062 rvice xinetd. b │ │ │ +002a6f00: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ +002a6f10: 2044 6973 6162 6c65 2078 696e 6574 6420 Disable xinetd │ │ │ +002a6f20: 5365 7276 6963 6520 2d20 436f 6c6c 6563 Service - Collec │ │ │ +002a6f30: 7420 7379 7374 656d 6420 5365 7276 6963 t systemd Servic │ │ │ +002a6f40: 6573 2050 7265 7365 6e74 2069 6e20 7468 es Present in th │ │ │ +002a6f50: 6520 5379 7374 656d 0a20 2020 2061 6e73 e System. ans │ │ │ +002a6f60: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ +002a6f70: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ +002a6f80: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ +002a6f90: 6573 202d 2d74 7970 6520 7365 7276 6963 es --type servic │ │ │ +002a6fa0: 650a 2020 2020 7265 6769 7374 6572 3a20 e. register: │ │ │ +002a6fb0: 7365 7276 6963 655f 6578 6973 7473 0a20 service_exists. │ │ │ +002a6fc0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ +002a6fd0: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ +002a6fe0: 645f 7768 656e 3a20 7365 7276 6963 655f d_when: service_ │ │ │ +002a6ff0: 6578 6973 7473 2e72 6320 6e6f 7420 696e exists.rc not in │ │ │ +002a7000: 205b 302c 2031 5d0a 2020 2020 6368 6563 [0, 1]. chec │ │ │ +002a7010: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20 k_mode: false.. │ │ │ +002a7020: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ +002a7030: 2078 696e 6574 6420 5365 7276 6963 6520 xinetd Service │ │ │ +002a7040: 2d20 456e 7375 7265 2078 696e 6574 642e - Ensure xinetd. │ │ │ +002a7050: 7365 7276 6963 6520 6973 204d 6173 6b65 service is Maske │ │ │ +002a7060: 640a 2020 2020 616e 7369 626c 652e 6275 d. ansible.bu │ │ │ +002a7070: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ +002a7080: 2020 2020 206e 616d 653a 2078 696e 6574 name: xinet │ │ │ +002a7090: 642e 7365 7276 6963 650a 2020 2020 2020 d.service. │ │ │ +002a70a0: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ +002a70b0: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +002a70c0: 6c73 650a 2020 2020 2020 6d61 736b 6564 lse. masked │ │ │ +002a70d0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ +002a70e0: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ +002a70f0: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ +002a7100: 7365 6172 6368 2822 7869 6e65 7464 2e73 search("xinetd.s │ │ │ +002a7110: 6572 7669 6365 222c 206d 756c 7469 6c69 ervice", multili │ │ │ +002a7120: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61 ne=True).. - na │ │ │ +002a7130: 6d65 3a20 556e 6974 2053 6f63 6b65 7420 me: Unit Socket │ │ │ +002a7140: 4578 6973 7473 202d 2078 696e 6574 642e Exists - xinetd. │ │ │ +002a7150: 736f 636b 6574 0a20 2020 2061 6e73 6962 socket. ansib │ │ │ +002a7160: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +002a7170: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ +002a7180: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ +002a7190: 2078 696e 6574 642e 736f 636b 6574 0a20 xinetd.socket. │ │ │ +002a71a0: 2020 2072 6567 6973 7465 723a 2073 6f63 register: soc │ │ │ +002a71b0: 6b65 745f 6669 6c65 5f65 7869 7374 730a ket_file_exists. │ │ │ +002a71c0: 2020 2020 6368 616e 6765 645f 7768 656e changed_when │ │ │ +002a71d0: 3a20 6661 6c73 650a 2020 2020 6661 696c : false. fail │ │ │ +002a71e0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f ed_when: socket_ │ │ │ +002a71f0: 6669 6c65 5f65 7869 7374 732e 7263 206e file_exists.rc n │ │ │ +002a7200: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ +002a7210: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ +002a7220: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ +002a7230: 7361 626c 6520 7869 6e65 7464 2053 6572 sable xinetd Ser │ │ │ +002a7240: 7669 6365 202d 2044 6973 6162 6c65 2053 vice - Disable S │ │ │ +002a7250: 6f63 6b65 7420 7869 6e65 7464 0a20 2020 ocket xinetd. │ │ │ +002a7260: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +002a7270: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +002a7280: 6e61 6d65 3a20 7869 6e65 7464 2e73 6f63 name: xinetd.soc │ │ │ +002a7290: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ +002a72a0: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ +002a72b0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +002a72c0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +002a72d0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ +002a72e0: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ +002a72f0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +002a7300: 6172 6368 2822 7869 6e65 7464 2e73 6f63 arch("xinetd.soc │ │ │ +002a7310: 6b65 7422 2c20 6d75 6c74 696c 696e 653d ket", multiline= │ │ │ +002a7320: 5472 7565 290a 2020 7461 6773 3a0a 2020 True). tags:. │ │ │ +002a7330: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +002a7340: 2e34 2e37 0a20 202d 204e 4953 542d 3830 .4.7. - NIST-80 │ │ │ +002a7350: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +002a7360: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +002a7370: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +002a7380: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +002a7390: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +002a73a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +002a73b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +002a73c0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +002a73d0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +002a73e0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +002a73f0: 0a20 202d 2073 6572 7669 6365 5f78 696e . - service_xin │ │ │ +002a7400: 6574 645f 6469 7361 626c 6564 0a20 202d etd_disabled. - │ │ │ +002a7410: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ +002a7420: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ +002a7430: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +002a7440: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +002a7450: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +002a7460: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ +002a7510: 7469 6f6e 204b 7562 6572 6e65 7465 7320 tion Kubernetes │ │ │ +002a7520: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002a7530: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +002a75d0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002a7600: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002a7610: 7464 3e74 7275 653c 2f74 643e 3c2f 7472 td>true
a
│ │ │ +002a7660: 7069 5665 7273 696f 6e3a 206d 6163 6869  piVersion: machi
│ │ │ +002a7670: 6e65 636f 6e66 6967 7572 6174 696f 6e2e  neconfiguration.
│ │ │ +002a7680: 6f70 656e 7368 6966 742e 696f 2f76 310a  openshift.io/v1.
│ │ │ +002a7690: 6b69 6e64 3a20 4d61 6368 696e 6543 6f6e  kind: MachineCon
│ │ │ +002a76a0: 6669 670a 7370 6563 3a0a 2020 636f 6e66  fig.spec:.  conf
│ │ │ +002a76b0: 6967 3a0a 2020 2020 6967 6e69 7469 6f6e  ig:.    ignition
│ │ │ +002a76c0: 3a0a 2020 2020 2020 7665 7273 696f 6e3a  :.      version:
│ │ │ +002a76d0: 2033 2e31 2e30 0a20 2020 2073 7973 7465   3.1.0.    syste
│ │ │ +002a76e0: 6d64 3a0a 2020 2020 2020 756e 6974 733a  md:.      units:
│ │ │ +002a76f0: 0a20 2020 2020 202d 206e 616d 653a 2078  .      - name: x
│ │ │ +002a7700: 696e 6574 642e 7365 7276 6963 650a 2020  inetd.service.  
│ │ │ +002a7710: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002a7720: 616c 7365 0a20 2020 2020 2020 206d 6173  alse.        mas
│ │ │ +002a7730: 6b3a 2074 7275 650a 2020 2020 2020 2d20  k: true.      - 
│ │ │ +002a7740: 6e61 6d65 3a20 7869 6e65 7464 2e73 6f63  name: xinetd.soc
│ │ │ +002a7750: 6b65 740a 2020 2020 2020 2020 656e 6162  ket.        enab
│ │ │ +002a7760: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002a7770: 2020 206d 6173 6b3a 2074 7275 650a 3c2f     mask: true.
R │ │ │ +002a7830: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002a7840: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Co │ │ │ +002a75b0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002a75e0: 6e3a 3c2f 7468 3e3c 7464 3e6d 6564 6975 n:mediu │ │ │ +002a75f0: 6d3c 2f74 643e 3c2f 7472 3e3c 7472 3e3c m
Strateg │ │ │ +002a7630: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002a7640: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002a78e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +002a7980: 636c 7564 6520 6469 7361 626c 655f 7869  clude disable_xi
│ │ │ +002a7990: 6e65 7464 0a0a 636c 6173 7320 6469 7361  netd..class disa
│ │ │ +002a79a0: 626c 655f 7869 6e65 7464 207b 0a20 2073  ble_xinetd {.  s
│ │ │ +002a79b0: 6572 7669 6365 207b 2778 696e 6574 6427  ervice {'xinetd'
│ │ │ +002a79c0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +002a79d0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +002a79e0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +002a79f0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +002a7a10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002a7a20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002a7a30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002a7a40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002a7a50: 6431 3038 3022 2074 6162 696e 6465 783d d1080" tabindex= │ │ │ +002a7a60: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002a7a70: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002a7a80: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002a7a90: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002a7aa0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002a7ab0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +002a7ac0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +002a7ad0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002a7b10: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +002a7b20: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +002a7b30: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +002a7b40: 7869 6e65 7464 225d 0a3c 2f63 6f64 653e xinetd"]. │ │ │ 002a7b50: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remediat │ │ │ -002a9750: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002a9760: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002a97a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002a97b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002a97c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002a97d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002a97e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -002a9870: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002a9880: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ +002a78d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002a7900: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002a7910: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002a7950: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +002a7960: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -002a97f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002a9800: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -002a9840: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002a9850: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -002a98a0: 2072 656d 6f76 655f 7970 7365 7276 0a0a remove_ypserv.. │ │ │ -002a98b0: 636c 6173 7320 7265 6d6f 7665 5f79 7073 class remove_yps │ │ │ -002a98c0: 6572 7620 7b0a 2020 7061 636b 6167 6520 erv {. package │ │ │ -002a98d0: 7b20 2779 7073 6572 7627 3a0a 2020 2020 { 'ypserv':. │ │ │ -002a98e0: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ -002a98f0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ -002a9910: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002a99b0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -002a99c0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002a9a60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002a9b00: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -002a9b10: 6c20 7970 7365 7276 2050 6163 6b61 6765  l ypserv Package
│ │ │ -002a9b20: 3a20 456e 7375 7265 2079 7073 6572 7620  : Ensure ypserv 
│ │ │ -002a9b30: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -002a9b40: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002a9b50: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002a9b60: 2079 7073 6572 760a 2020 2020 7374 6174   ypserv.    stat
│ │ │ -002a9b70: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -002a9b80: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -002a9b90: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -002a9ba0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -002a9bb0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002a9bc0: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ -002a9bd0: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ -002a9be0: 2928 6329 0a20 202d 2050 4349 2d44 5353  )(c).  - PCI-DSS
│ │ │ -002a9bf0: 2d52 6571 2d32 2e32 2e32 0a20 202d 2050  -Req-2.2.2.  - P
│ │ │ -002a9c00: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -002a9c10: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -002a9c20: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002a9c30: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -002a9c40: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -002a9c50: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002a9c60: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002a9c70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002a9c80: 6564 0a20 202d 2070 6163 6b61 6765 5f79  ed.  - package_y
│ │ │ -002a9c90: 7073 6572 765f 7265 6d6f 7665 640a 3c2f  pserv_removed.
< │ │ │ +002a9770: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002a9780: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002a9790: 7365 2220 6964 3d22 6964 3130 3833 223e se" id="id1083"> │ │ │ +002a97a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -002a9a50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002a9a80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002a9a90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002a9ad0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002a9ae0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002a9810: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002a9830: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002a9860: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002a97f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002a9800: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002a9840: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002a9850: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002a98a0: 2027 556e 696e 7374 616c 6c20 7970 7365 'Uninstall ypse │ │ │ +002a98b0: 7276 2050 6163 6b61 6765 3a20 456e 7375 rv Package: Ensu │ │ │ +002a98c0: 7265 2079 7073 6572 7620 6973 2072 656d re ypserv is rem │ │ │ +002a98d0: 6f76 6564 270a 2020 616e 7369 626c 652e oved'. ansible. │ │ │ +002a98e0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ +002a98f0: 0a20 2020 206e 616d 653a 2079 7073 6572 . name: ypser │ │ │ +002a9900: 760a 2020 2020 7374 6174 653a 2061 6273 v. state: abs │ │ │ +002a9910: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ +002a9920: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +002a9930: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +002a9940: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ +002a9950: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +002a9960: 2862 290a 2020 2d20 4e49 5354 2d38 3030 (b). - NIST-800 │ │ │ +002a9970: 2d35 332d 4941 2d35 2831 2928 6329 0a20 -53-IA-5(1)(c). │ │ │ +002a9980: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ +002a9990: 2e32 2e32 0a20 202d 2050 4349 2d44 5353 .2.2. - PCI-DSS │ │ │ +002a99a0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ +002a99b0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ +002a99c0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ +002a99d0: 2020 2d20 6869 6768 5f73 6576 6572 6974 - high_severit │ │ │ +002a99e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +002a99f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +002a9a00: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ +002a9a10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +002a9a20: 2070 6163 6b61 6765 5f79 7073 6572 765f package_ypserv_ │ │ │ +002a9a30: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +002a9a40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ +002a9af0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002a9b00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002a9b10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002a9b20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002a9b30: 7365 2220 6964 3d22 6964 3130 3834 223e se" id="id1084"> │ │ │ +002a9b40: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002a9bb0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002a9bd0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002a9c00: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002a9b90: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002a9ba0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002a9be0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002a9bf0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002a9c40: 6520 7265 6d6f 7665 5f79 7073 6572 760a e remove_ypserv. │ │ │ +002a9c50: 0a63 6c61 7373 2072 656d 6f76 655f 7970 .class remove_yp │ │ │ +002a9c60: 7365 7276 207b 0a20 2070 6163 6b61 6765 serv {. package │ │ │ +002a9c70: 207b 2027 7970 7365 7276 273a 0a20 2020 { 'ypserv':. │ │ │ +002a9c80: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ +002a9c90: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.

Remediation │ │ │ -002aab00: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -002aab10: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ -002aab70: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ -002aab80: 6564 203d 205b 2279 7073 6572 7622 5d0a  ed = ["ypserv"].
│ │ │ -002aab90: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Kub │ │ │ -002aac50: 6572 6e65 7465 7320 736e 6970 7065 7420 ernetes snippet │ │ │ -002aac60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002aacf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002aad10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002aad20: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>mediumReboo │ │ │ -002aad40: 743a 3c2f 7468 3e3c 7464 3e74 7275 653c t:true< │ │ │ -002aad50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002aad70: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002aad80: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
apiVersio
│ │ │ -002aada0: 6e3a 206d 6163 6869 6e65 636f 6e66 6967  n: machineconfig
│ │ │ -002aadb0: 7572 6174 696f 6e2e 6f70 656e 7368 6966  uration.openshif
│ │ │ -002aadc0: 742e 696f 2f76 310a 6b69 6e64 3a20 4d61  t.io/v1.kind: Ma
│ │ │ -002aadd0: 6368 696e 6543 6f6e 6669 670a 7370 6563  chineConfig.spec
│ │ │ -002aade0: 3a0a 2020 636f 6e66 6967 3a0a 2020 2020  :.  config:.    
│ │ │ -002aadf0: 6967 6e69 7469 6f6e 3a0a 2020 2020 2020  ignition:.      
│ │ │ -002aae00: 7665 7273 696f 6e3a 2033 2e31 2e30 0a20  version: 3.1.0. 
│ │ │ -002aae10: 2020 2073 7973 7465 6d64 3a0a 2020 2020     systemd:.    
│ │ │ -002aae20: 2020 756e 6974 733a 0a20 2020 2020 202d    units:.      -
│ │ │ -002aae30: 206e 616d 653a 2079 7073 6572 762e 7365   name: ypserv.se
│ │ │ -002aae40: 7276 6963 650a 2020 2020 2020 2020 656e  rvice.        en
│ │ │ -002aae50: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -002aae60: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ -002aae70: 2020 2020 2020 2d20 6e61 6d65 3a20 7970        - name: yp
│ │ │ -002aae80: 7365 7276 2e73 6f63 6b65 740a 2020 2020  serv.socket.    
│ │ │ -002aae90: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002aaea0: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ -002aaeb0: 2074 7275 650a 3c2f 636f 6465 3e3c 2f70   true.

Remediati │ │ │ -002aaf70: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002aaf80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002ab000: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002ab010: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002ab020: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002ab060: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002ab070: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002ab090: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -002ab0b0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -002ab0c0: 7361 626c 655f 7970 7365 7276 0a0a 636c  sable_ypserv..cl
│ │ │ -002ab0d0: 6173 7320 6469 7361 626c 655f 7970 7365  ass disable_ypse
│ │ │ -002ab0e0: 7276 207b 0a20 2073 6572 7669 6365 207b  rv {.  service {
│ │ │ -002ab0f0: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ -002ab100: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -002ab110: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002ab120: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -002ab130: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002ab1f0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002ab200: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002ab280: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002ab290: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002ab2b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002ab2c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002ab2e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002ab300: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002ab330: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002ab340: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002ab350: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002ab360: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002ab370: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002ab380: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002ab390: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002ab3a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002ab3b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002ab3c0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -002ab3d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002ab3e0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002ab3f0: 655f 7970 7365 7276 5f64 6973 6162 6c65  e_ypserv_disable
│ │ │ -002ab400: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -002ab410: 6c65 2079 7073 6572 7620 5365 7276 6963  le ypserv Servic
│ │ │ -002ab420: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -002ab430: 6963 6520 7970 7365 7276 0a20 2062 6c6f  ice ypserv.  blo
│ │ │ -002ab440: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -002ab450: 6973 6162 6c65 2079 7073 6572 7620 5365  isable ypserv Se
│ │ │ -002ab460: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -002ab470: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -002ab480: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -002ab490: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -002ab4a0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -002ab4b0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -002ab4c0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -002ab4d0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -002ab4e0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -002ab4f0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -002ab500: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002ab510: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002ab520: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002ab530: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -002ab540: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -002ab550: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -002ab560: 206e 616d 653a 2044 6973 6162 6c65 2079   name: Disable y
│ │ │ -002ab570: 7073 6572 7620 5365 7276 6963 6520 2d20  pserv Service - 
│ │ │ -002ab580: 456e 7375 7265 2079 7073 6572 762e 7365  Ensure ypserv.se
│ │ │ -002ab590: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -002ab5a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002ab5b0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002ab5c0: 2020 206e 616d 653a 2079 7073 6572 762e     name: ypserv.
│ │ │ -002ab5d0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -002ab5e0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002ab5f0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002ab600: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -002ab610: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -002ab620: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -002ab630: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -002ab640: 6172 6368 2822 7970 7365 7276 2e73 6572  arch("ypserv.ser
│ │ │ -002ab650: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -002ab660: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -002ab670: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -002ab680: 6973 7473 202d 2079 7073 6572 762e 736f  ists - ypserv.so
│ │ │ -002ab690: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002ab6a0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002ab6b0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002ab6c0: 6973 742d 756e 6974 2d66 696c 6573 2079  ist-unit-files y
│ │ │ -002ab6d0: 7073 6572 762e 736f 636b 6574 0a20 2020  pserv.socket.   
│ │ │ -002ab6e0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002ab6f0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002ab700: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002ab710: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002ab720: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002ab730: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -002ab740: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002ab750: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002ab760: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002ab770: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ -002ab780: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -002ab790: 6b65 7420 7970 7365 7276 0a20 2020 2061  ket ypserv.    a
│ │ │ -002ab7a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002ab7b0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002ab7c0: 6d65 3a20 7970 7365 7276 2e73 6f63 6b65  me: ypserv.socke
│ │ │ -002ab7d0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002ab7e0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002ab7f0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002ab800: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002ab810: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002ab820: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002ab830: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002ab840: 6368 2822 7970 7365 7276 2e73 6f63 6b65  ch("ypserv.socke
│ │ │ -002ab850: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -002ab860: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -002ab870: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002ab880: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002ab890: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002ab8a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002ab8b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002ab8c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002ab8d0: 2020 2d20 7365 7276 6963 655f 7970 7365    - service_ypse
│ │ │ -002ab8e0: 7276 5f64 6973 6162 6c65 640a 2020 2d20  rv_disabled.  - 
│ │ │ -002ab8f0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -002ab900: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -002ab910: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -002ab920: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -002ab930: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Complexity │ │ │ +002aaba0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002aabc0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002aabd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002aabe0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002aabf0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002aac10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002aac40: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +002aac50: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +002aac60: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +002aac70: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +002aac80: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +002aac90: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +002aaca0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +002aacb0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002aacc0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002aacd0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +002aace0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002aacf0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002aad00: 5f79 7073 6572 765f 6469 7361 626c 6564  _ypserv_disabled
│ │ │ +002aad10: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +002aad20: 6520 7970 7365 7276 2053 6572 7669 6365  e ypserv Service
│ │ │ +002aad30: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +002aad40: 6365 2079 7073 6572 760a 2020 626c 6f63  ce ypserv.  bloc
│ │ │ +002aad50: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +002aad60: 7361 626c 6520 7970 7365 7276 2053 6572  sable ypserv Ser
│ │ │ +002aad70: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +002aad80: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +002aad90: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +002aada0: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +002aadb0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002aadc0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +002aadd0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +002aade0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +002aadf0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +002aae00: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +002aae10: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +002aae20: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +002aae30: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +002aae40: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +002aae50: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +002aae60: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +002aae70: 6e61 6d65 3a20 4469 7361 626c 6520 7970  name: Disable yp
│ │ │ +002aae80: 7365 7276 2053 6572 7669 6365 202d 2045  serv Service - E
│ │ │ +002aae90: 6e73 7572 6520 7970 7365 7276 2e73 6572  nsure ypserv.ser
│ │ │ +002aaea0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +002aaeb0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002aaec0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002aaed0: 2020 6e61 6d65 3a20 7970 7365 7276 2e73    name: ypserv.s
│ │ │ +002aaee0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002aaef0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002aaf00: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002aaf10: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002aaf20: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +002aaf30: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +002aaf40: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002aaf50: 7263 6828 2279 7073 6572 762e 7365 7276  rch("ypserv.serv
│ │ │ +002aaf60: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +002aaf70: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +002aaf80: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +002aaf90: 7374 7320 2d20 7970 7365 7276 2e73 6f63  sts - ypserv.soc
│ │ │ +002aafa0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002aafb0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002aafc0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002aafd0: 7374 2d75 6e69 742d 6669 6c65 7320 7970  st-unit-files yp
│ │ │ +002aafe0: 7365 7276 2e73 6f63 6b65 740a 2020 2020  serv.socket.    
│ │ │ +002aaff0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +002ab000: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +002ab010: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +002ab020: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +002ab030: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +002ab040: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +002ab050: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +002ab060: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +002ab070: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002ab080: 6c65 2079 7073 6572 7620 5365 7276 6963  le ypserv Servic
│ │ │ +002ab090: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +002ab0a0: 6574 2079 7073 6572 760a 2020 2020 616e  et ypserv.    an
│ │ │ +002ab0b0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +002ab0c0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +002ab0d0: 653a 2079 7073 6572 762e 736f 636b 6574  e: ypserv.socket
│ │ │ +002ab0e0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002ab0f0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +002ab100: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +002ab110: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +002ab120: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +002ab130: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +002ab140: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +002ab150: 6828 2279 7073 6572 762e 736f 636b 6574  h("ypserv.socket
│ │ │ +002ab160: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +002ab170: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ +002ab180: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002ab190: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002ab1a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002ab1b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002ab1c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002ab1d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002ab1e0: 202d 2073 6572 7669 6365 5f79 7073 6572   - service_ypser
│ │ │ +002ab1f0: 765f 6469 7361 626c 6564 0a20 202d 2073  v_disabled.  - s
│ │ │ +002ab200: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +002ab210: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +002ab220: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +002ab230: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +002ab240: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediati │ │ │ +002ab300: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ +002ab310: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ +002ab410: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ +002ab450: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ +002ab460: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ +002ab470: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ +002ab480: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ +002ab490: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ +002ab4a0: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ +002ab4b0: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ +002ab4c0: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ +002ab4d0: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ +002ab4e0: 2020 2020 202d 206e 616d 653a 2079 7073       - name: yps
│ │ │ +002ab4f0: 6572 762e 7365 7276 6963 650a 2020 2020  erv.service.    
│ │ │ +002ab500: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002ab510: 7365 0a20 2020 2020 2020 206d 6173 6b3a  se.        mask:
│ │ │ +002ab520: 2074 7275 650a 2020 2020 2020 2d20 6e61   true.      - na
│ │ │ +002ab530: 6d65 3a20 7970 7365 7276 2e73 6f63 6b65  me: ypserv.socke
│ │ │ +002ab540: 740a 2020 2020 2020 2020 656e 6162 6c65  t.        enable
│ │ │ +002ab550: 643a 2066 616c 7365 0a20 2020 2020 2020  d: false.       
│ │ │ +002ab560: 206d 6173 6b3a 2074 7275 650a 3c2f 636f   mask: true.
< │ │ │ +002ab580: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002ab590: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002ab5a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002ab5b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002ab5c0: 6431 3038 3922 2074 6162 696e 6465 783d d1089" tabindex= │ │ │ +002ab5d0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002ab5e0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002ab5f0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002ab600: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002ab610: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002ab620: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002ab630: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002ab640: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ +002ab3a0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002ab3b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002ab3d0: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ +002ab3e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ +002ab420: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002ab430: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +002ab6e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002ab730: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +002ab6c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002ab6f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002ab710: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002ab720: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002ab740: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +002ab750: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +002ab770: 7564 6520 6469 7361 626c 655f 7970 7365  ude disable_ypse
│ │ │ +002ab780: 7276 0a0a 636c 6173 7320 6469 7361 626c  rv..class disabl
│ │ │ +002ab790: 655f 7970 7365 7276 207b 0a20 2073 6572  e_ypserv {.  ser
│ │ │ +002ab7a0: 7669 6365 207b 2779 7073 6572 7627 3a0a  vice {'ypserv':.
│ │ │ +002ab7b0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +002ab7c0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +002ab7d0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +002ab7e0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +002ab8a0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +002ab8b0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +002ab8c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +002ab910: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +002ab920: 735d 0a6d 6173 6b65 6420 3d20 5b22 7970 s].masked = ["yp │ │ │ +002ab930: 7365 7276 225d 0a3c 2f63 6f64 653e 3c2f serv"].
Remediati │ │ │ -002acec0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002aced0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002acf50: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002acf60: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002acf70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002acfb0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002acfc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002acfe0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002acff0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -002ad010: 7265 6d6f 7665 5f72 7368 2d63 6c69 656e  remove_rsh-clien
│ │ │ -002ad020: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ -002ad030: 7273 682d 636c 6965 6e74 207b 0a20 2070  rsh-client {.  p
│ │ │ -002ad040: 6163 6b61 6765 207b 2027 7273 682d 636c  ackage { 'rsh-cl
│ │ │ -002ad050: 6965 6e74 273a 0a20 2020 2065 6e73 7572  ient':.    ensur
│ │ │ -002ad060: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -002ad070: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002ad080: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002ad130: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002ad140: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002ad150: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002ad1f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002ad210: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002ad240: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002ad1d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002ad1e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002ad200: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002ad220: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002ad230: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002ad270: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002ad280: 3a20 2755 6e69 6e73 7461 6c6c 2072 7368 : 'Uninstall rsh │ │ │ -002ad290: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ -002ad2a0: 2072 7368 2d63 6c69 656e 7420 6973 2072 rsh-client is r │ │ │ -002ad2b0: 656d 6f76 6564 270a 2020 616e 7369 626c emoved'. ansibl │ │ │ -002ad2c0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -002ad2d0: 653a 0a20 2020 206e 616d 653a 2072 7368 e:. name: rsh │ │ │ -002ad2e0: 2d63 6c69 656e 740a 2020 2020 7374 6174 -client. stat │ │ │ -002ad2f0: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -002ad300: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31 :. - NIST-800-1 │ │ │ -002ad310: 3731 2d33 2e31 2e31 330a 2020 2d20 5043 71-3.1.13. - PC │ │ │ -002ad320: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ -002ad330: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ -002ad340: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -002ad350: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -002ad360: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -002ad370: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ -002ad380: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -002ad390: 2020 2d20 7061 636b 6167 655f 7273 685f - package_rsh_ │ │ │ -002ad3a0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e removed. - unkn │ │ │ -002ad3b0: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63 own_severity.
< │ │ │ +002acf10: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002acf20: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002acf30: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002acf40: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002acf50: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002acf60: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002acf70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002acfb0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002acfc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002acfe0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002acff0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002ad010: 2755 6e69 6e73 7461 6c6c 2072 7368 2050 'Uninstall rsh P │ │ │ +002ad020: 6163 6b61 6765 3a20 456e 7375 7265 2072 ackage: Ensure r │ │ │ +002ad030: 7368 2d63 6c69 656e 7420 6973 2072 656d sh-client is rem │ │ │ +002ad040: 6f76 6564 270a 2020 616e 7369 626c 652e oved'. ansible. │ │ │ +002ad050: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ +002ad060: 0a20 2020 206e 616d 653a 2072 7368 2d63 . name: rsh-c │ │ │ +002ad070: 6c69 656e 740a 2020 2020 7374 6174 653a lient. state: │ │ │ +002ad080: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ +002ad090: 2020 2d20 4e49 5354 2d38 3030 2d31 3731 - NIST-800-171 │ │ │ +002ad0a0: 2d33 2e31 2e31 330a 2020 2d20 5043 492d -3.1.13. - PCI- │ │ │ +002ad0b0: 4453 5376 342d 322e 320a 2020 2d20 5043 DSSv4-2.2. - PC │ │ │ +002ad0c0: 492d 4453 5376 342d 322e 322e 340a 2020 I-DSSv4-2.2.4. │ │ │ +002ad0d0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +002ad0e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +002ad0f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +002ad100: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ +002ad110: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +002ad120: 2d20 7061 636b 6167 655f 7273 685f 7265 - package_rsh_re │ │ │ +002ad130: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77 moved. - unknow │ │ │ +002ad140: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64 n_severity.
Reme │ │ │ +002ad200: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002ad210: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +002ad2a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002ad2d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002ad2f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002ad300: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002ad320: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002ad330: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002ad350: 6c75 6465 2072 656d 6f76 655f 7273 682d  lude remove_rsh-
│ │ │ +002ad360: 636c 6965 6e74 0a0a 636c 6173 7320 7265  client..class re
│ │ │ +002ad370: 6d6f 7665 5f72 7368 2d63 6c69 656e 7420  move_rsh-client 
│ │ │ +002ad380: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +002ad390: 7368 2d63 6c69 656e 7427 3a0a 2020 2020  sh-client':.    
│ │ │ +002ad3a0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +002ad3b0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 002ad3d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -002afa50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002afa60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002afaf0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002afb20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002afb40: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002afb50: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002afb70: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002afb80: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -002afba0: 6c75 6465 2072 656d 6f76 655f 7461 6c6b  lude remove_talk
│ │ │ -002afbb0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ -002afbc0: 616c 6b20 7b0a 2020 7061 636b 6167 6520  alk {.  package 
│ │ │ -002afbd0: 7b20 2774 616c 6b27 3a0a 2020 2020 656e  { 'talk':.    en
│ │ │ -002afbe0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002afbf0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002afcb0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002afcc0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002afcd0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002afd70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002afdc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002afe00: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002afe10: 7461 6c6b 2050 6163 6b61 6765 3a20 456e  talk Package: En
│ │ │ -002afe20: 7375 7265 2074 616c 6b20 6973 2072 656d  sure talk is rem
│ │ │ -002afe30: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002afe40: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002afe50: 0a20 2020 206e 616d 653a 2074 616c 6b0a  .    name: talk.
│ │ │ -002afe60: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -002afe70: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -002afe80: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002afe90: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002afea0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002afeb0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002afec0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002afed0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002afee0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002afef0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002aff00: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -002aff10: 7461 6c6b 5f72 656d 6f76 6564 0a3c 2f63  talk_removed.<
│ │ │ +002afa70: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Co │ │ │ -002afd50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002afd80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002afda0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002afdb0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002afdd0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002afde0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +002afb10: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002afb60: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002afba0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +002afbb0: 7461 6c6b 2050 6163 6b61 6765 3a20 456e  talk Package: En
│ │ │ +002afbc0: 7375 7265 2074 616c 6b20 6973 2072 656d  sure talk is rem
│ │ │ +002afbd0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002afbe0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +002afbf0: 0a20 2020 206e 616d 653a 2074 616c 6b0a  .    name: talk.
│ │ │ +002afc00: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002afc10: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ +002afc20: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002afc30: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +002afc40: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002afc50: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002afc60: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002afc70: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002afc80: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002afc90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002afca0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002afcb0: 7461 6c6b 5f72 656d 6f76 6564 0a3c 2f63  talk_removed.
│ │ │ +002afcd0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002afd70: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002afd80: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002afd90: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ +002afaf0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002afb20: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002afb40: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002afb50: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002afb70: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002afb80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +002afe20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002afe30: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002afe80: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002afec0: 6e63 6c75 6465 2072 656d 6f76 655f 7461  nclude remove_ta
│ │ │ +002afed0: 6c6b 0a0a 636c 6173 7320 7265 6d6f 7665  lk..class remove
│ │ │ +002afee0: 5f74 616c 6b20 7b0a 2020 7061 636b 6167  _talk {.  packag
│ │ │ +002afef0: 6520 7b20 2774 616c 6b27 3a0a 2020 2020  e { 'talk':.    
│ │ │ +002aff00: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +002aff10: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 002aff30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002b1160: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002b1170: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b1180: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +002afe10: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002afe40: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002afe50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002afe90: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002afea0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ -002b1220: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002b1270: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002b12b0: 636c 7564 6520 7265 6d6f 7665 5f69 6e65  clude remove_ine
│ │ │ -002b12c0: 7475 7469 6c73 2d74 656c 6e65 740a 0a63  tutils-telnet..c
│ │ │ -002b12d0: 6c61 7373 2072 656d 6f76 655f 696e 6574  lass remove_inet
│ │ │ -002b12e0: 7574 696c 732d 7465 6c6e 6574 207b 0a20  utils-telnet {. 
│ │ │ -002b12f0: 2070 6163 6b61 6765 207b 2027 696e 6574   package { 'inet
│ │ │ -002b1300: 7574 696c 732d 7465 6c6e 6574 273a 0a20  utils-telnet':. 
│ │ │ -002b1310: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -002b1320: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -002b1330: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -002b13f0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002b1400: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Co │ │ │ -002b1200: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002b1230: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002b1250: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002b1260: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002b1280: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002b1290: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -002b1480: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b14a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002b14f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002b1520: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Remov
│ │ │ -002b1540: 6520 7465 6c6e 6574 2043 6c69 656e 7473  e telnet Clients
│ │ │ -002b1550: 3a20 456e 7375 7265 2069 6e65 7475 7469  : Ensure inetuti
│ │ │ -002b1560: 6c73 2d74 656c 6e65 7420 6973 2072 656d  ls-telnet is rem
│ │ │ -002b1570: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002b1580: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002b1590: 0a20 2020 206e 616d 653a 2069 6e65 7475  .    name: inetu
│ │ │ -002b15a0: 7469 6c73 2d74 656c 6e65 740a 2020 2020  tils-telnet.    
│ │ │ -002b15b0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002b15c0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -002b15d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002b15e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002b15f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002b1600: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -002b1610: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002b1620: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -002b1630: 6765 5f69 6e65 7475 7469 6c73 2d74 656c  ge_inetutils-tel
│ │ │ -002b1640: 6e65 745f 7265 6d6f 7665 640a 3c2f 636f  net_removed.
│ │ │ +002b1180: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -002b14b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b14c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002b1500: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002b1510: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +002b1210: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b1220: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002b1270: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002b12b0: 6e61 6d65 3a20 2752 656d 6f76 6520 7465  name: 'Remove te
│ │ │ +002b12c0: 6c6e 6574 2043 6c69 656e 7473 3a20 456e  lnet Clients: En
│ │ │ +002b12d0: 7375 7265 2069 6e65 7475 7469 6c73 2d74  sure inetutils-t
│ │ │ +002b12e0: 656c 6e65 7420 6973 2072 656d 6f76 6564  elnet is removed
│ │ │ +002b12f0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +002b1300: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +002b1310: 206e 616d 653a 2069 6e65 7475 7469 6c73   name: inetutils
│ │ │ +002b1320: 2d74 656c 6e65 740a 2020 2020 7374 6174  -telnet.    stat
│ │ │ +002b1330: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +002b1340: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +002b1350: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002b1360: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002b1370: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002b1380: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +002b1390: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002b13a0: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ +002b13b0: 6e65 7475 7469 6c73 2d74 656c 6e65 745f  netutils-telnet_
│ │ │ +002b13c0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +002b13d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +002b1480: 7469 6f6e 2050 7570 7065 7420 736e 6970  tion Puppet snip
│ │ │ +002b1490: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +002b14a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002b14b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002b14c0: 7365 2220 6964 3d22 6964 3131 3034 223e se" id="id1104"> │ │ │ +002b14d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ +002b1200: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002b1230: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002b1240: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002b1280: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002b1290: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002b1540: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002b1560: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002b1590: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002b1520: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002b1530: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002b1570: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002b1580: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002b15d0: 6520 7265 6d6f 7665 5f69 6e65 7475 7469 e remove_inetuti │ │ │ +002b15e0: 6c73 2d74 656c 6e65 740a 0a63 6c61 7373 ls-telnet..class │ │ │ +002b15f0: 2072 656d 6f76 655f 696e 6574 7574 696c remove_inetutil │ │ │ +002b1600: 732d 7465 6c6e 6574 207b 0a20 2070 6163 s-telnet {. pac │ │ │ +002b1610: 6b61 6765 207b 2027 696e 6574 7574 696c kage { 'inetutil │ │ │ +002b1620: 732d 7465 6c6e 6574 273a 0a20 2020 2065 s-telnet':. e │ │ │ +002b1630: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +002b1640: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.

< │ │ │ 002b1660: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002b1670: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002b1680: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002b1690: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002b16a0: 6431 3130 3522 2074 6162 696e 6465 783d d1105" tabindex= │ │ │ 002b16b0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -176765,93 +176765,93 @@ │ │ │ 002b27c0: 7267 6574 3d22 2369 6431 3130 3722 2074 rget="#id1107" t │ │ │ 002b27d0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 002b27e0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 002b27f0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 002b2800: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 002b2810: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 002b2820: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -002b2830: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002b2840: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002b28d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002b28f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002b2900: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b2910: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002b2920: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002b2940: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002b2970: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -002b2980: 6d6f 7665 5f74 656c 6e65 740a 0a63 6c61  move_telnet..cla
│ │ │ -002b2990: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ -002b29a0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -002b29b0: 7465 6c6e 6574 273a 0a20 2020 2065 6e73  telnet':.    ens
│ │ │ -002b29c0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -002b29d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -002b2a90: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002b2aa0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002b2b30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002b2b60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002b2b80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002b2b90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002b2bb0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002b2bc0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002b2be0: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ -002b2bf0: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ -002b2c00: 7265 2074 656c 6e65 7420 6973 2072 656d  re telnet is rem
│ │ │ -002b2c10: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002b2c20: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002b2c30: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ -002b2c40: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ -002b2c50: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002b2c60: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002b2c70: 2e31 330a 2020 2d20 5043 492d 4453 5376  .13.  - PCI-DSSv
│ │ │ -002b2c80: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002b2c90: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -002b2ca0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002b2cb0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002b2cc0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002b2cd0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -002b2ce0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002b2cf0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002b2d00: 6163 6b61 6765 5f74 656c 6e65 745f 7265  ackage_telnet_re
│ │ │ -002b2d10: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


< │ │ │ +002b28c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002b28d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002b28f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002b2900: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002b2920: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002b2940: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002b2970: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2752  - name: 'R
│ │ │ +002b2980: 656d 6f76 6520 7465 6c6e 6574 2043 6c69  emove telnet Cli
│ │ │ +002b2990: 656e 7473 3a20 456e 7375 7265 2074 656c  ents: Ensure tel
│ │ │ +002b29a0: 6e65 7420 6973 2072 656d 6f76 6564 270a  net is removed'.
│ │ │ +002b29b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002b29c0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002b29d0: 616d 653a 2074 656c 6e65 740a 2020 2020  ame: telnet.    
│ │ │ +002b29e0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +002b29f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +002b2a00: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ +002b2a10: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +002b2a20: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002b2a30: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +002b2a40: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +002b2a50: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002b2a60: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002b2a70: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +002b2a80: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002b2a90: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +002b2aa0: 5f74 656c 6e65 745f 7265 6d6f 7665 640a  _telnet_removed.
│ │ │ +002b2ab0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002b2b70: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002b2b80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002b2c50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002b2c60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +002b2cc0: 5f74 656c 6e65 740a 0a63 6c61 7373 2072  _telnet..class r
│ │ │ +002b2cd0: 656d 6f76 655f 7465 6c6e 6574 207b 0a20  emove_telnet {. 
│ │ │ +002b2ce0: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ +002b2cf0: 6574 273a 0a20 2020 2065 6e73 7572 6520  et':.    ensure 
│ │ │ +002b2d00: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +002b2d10: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

R │ │ │ -002b4840: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002b4850: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disru │ │ │ +002b2c30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002b2c40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002b2c80: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002b2c90: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -002b48f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002b4990: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -002b49a0: 6674 7064 2d68 7061 0a0a 636c 6173 7320  ftpd-hpa..class 
│ │ │ -002b49b0: 7265 6d6f 7665 5f74 6674 7064 2d68 7061  remove_tftpd-hpa
│ │ │ -002b49c0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -002b49d0: 7466 7470 642d 6870 6127 3a0a 2020 2020  tftpd-hpa':.    
│ │ │ -002b49e0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -002b49f0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -002b4a10: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002b4ab0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -002b4ac0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002b48e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002b4910: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002b4920: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002b4960: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002b4970: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -002b4b60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002b4c00: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -002b4c10: 6c20 7466 7470 642d 6870 6120 5061 636b  l tftpd-hpa Pack
│ │ │ -002b4c20: 6167 653a 2045 6e73 7572 6520 7466 7470  age: Ensure tftp
│ │ │ -002b4c30: 642d 6870 6120 6973 2072 656d 6f76 6564  d-hpa is removed
│ │ │ -002b4c40: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -002b4c50: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -002b4c60: 206e 616d 653a 2074 6674 7064 2d68 7061   name: tftpd-hpa
│ │ │ -002b4c70: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -002b4c80: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -002b4c90: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -002b4ca0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002b4cb0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -002b4cc0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002b4cd0: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ -002b4ce0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -002b4cf0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -002b4d00: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002b4d10: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -002b4d20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002b4d30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002b4d40: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -002b4d50: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002b4d60: 6163 6b61 6765 5f74 6674 702d 7365 7276  ackage_tftp-serv
│ │ │ -002b4d70: 6572 5f72 656d 6f76 6564 0a3c 2f63 6f64  er_removed.
│ │ │ -002b4b50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002b4b80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002b4b90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002b4bd0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002b4be0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002b4930: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002b4940: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002b4990: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +002b49a0: 6c6c 2074 6674 7064 2d68 7061 2050 6163  ll tftpd-hpa Pac
│ │ │ +002b49b0: 6b61 6765 3a20 456e 7375 7265 2074 6674  kage: Ensure tft
│ │ │ +002b49c0: 7064 2d68 7061 2069 7320 7265 6d6f 7665  pd-hpa is remove
│ │ │ +002b49d0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +002b49e0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +002b49f0: 2020 6e61 6d65 3a20 7466 7470 642d 6870    name: tftpd-hp
│ │ │ +002b4a00: 610a 2020 2020 7374 6174 653a 2061 6273  a.    state: abs
│ │ │ +002b4a10: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +002b4a20: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002b4a30: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +002b4a40: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +002b4a50: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +002b4a60: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ +002b4a70: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +002b4a80: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +002b4a90: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002b4aa0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +002b4ab0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002b4ac0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002b4ad0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +002b4ae0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002b4af0: 7061 636b 6167 655f 7466 7470 2d73 6572  package_tftp-ser
│ │ │ +002b4b00: 7665 725f 7265 6d6f 7665 640a 3c2f 636f  ver_removed.
< │ │ │ +002b4b20: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002b4b30: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002b4b40: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002b4b50: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002b4b60: 6431 3131 3222 2074 6162 696e 6465 783d d1112" tabindex= │ │ │ +002b4b70: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002b4b80: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002b4b90: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002b4ba0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002b4bb0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002b4bc0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +002b4bd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002b4be0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +002b4910: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002b4920: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002b4960: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002b4970: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +002b4c80: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002b4cd0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +002b4d10: 636c 7564 6520 7265 6d6f 7665 5f74 6674  clude remove_tft
│ │ │ +002b4d20: 7064 2d68 7061 0a0a 636c 6173 7320 7265  pd-hpa..class re
│ │ │ +002b4d30: 6d6f 7665 5f74 6674 7064 2d68 7061 207b  move_tftpd-hpa {
│ │ │ +002b4d40: 0a20 2070 6163 6b61 6765 207b 2027 7466  .  package { 'tf
│ │ │ +002b4d50: 7470 642d 6870 6127 3a0a 2020 2020 656e  tpd-hpa':.    en
│ │ │ +002b4d60: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +002b4d70: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation O │ │ │ -002b61d0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -002b61e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002b61f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -002b6230: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -002b6240: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -002b6250: 6420 3d20 5b22 7466 7470 642d 6870 6122  d = ["tftpd-hpa"
│ │ │ -002b6260: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -002b6270: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation K │ │ │ -002b6320: 7562 6572 6e65 7465 7320 736e 6970 7065 ubernetes snippe │ │ │ -002b6330: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002b63b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
│ │ │ -002b6400: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 < │ │ │ -002b6430: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Co │ │ │ +002b4c60: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002b4c90: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002b4cb0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002b4cc0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002b4ce0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002b4cf0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -002b63c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002b63d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:medium
Reb │ │ │ -002b6410: 6f6f 743a 3c2f 7468 3e3c 7464 3e74 7275 oot:tru │ │ │ -002b6420: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

apiVers │ │ │ -002b6470: 696f 6e3a 206d 6163 6869 6e65 636f 6e66 ion: machineconf │ │ │ -002b6480: 6967 7572 6174 696f 6e2e 6f70 656e 7368 iguration.opensh │ │ │ -002b6490: 6966 742e 696f 2f76 310a 6b69 6e64 3a20 ift.io/v1.kind: │ │ │ -002b64a0: 4d61 6368 696e 6543 6f6e 6669 670a 7370 MachineConfig.sp │ │ │ -002b64b0: 6563 3a0a 2020 636f 6e66 6967 3a0a 2020 ec:. config:. │ │ │ -002b64c0: 2020 6967 6e69 7469 6f6e 3a0a 2020 2020 ignition:. │ │ │ -002b64d0: 2020 7665 7273 696f 6e3a 2033 2e31 2e30 version: 3.1.0 │ │ │ -002b64e0: 0a20 2020 2073 7973 7465 6d64 3a0a 2020 . systemd:. │ │ │ -002b64f0: 2020 2020 756e 6974 733a 0a20 2020 2020 units:. │ │ │ -002b6500: 202d 206e 616d 653a 2074 6674 7064 2d68 - name: tftpd-h │ │ │ -002b6510: 7061 2e73 6572 7669 6365 0a20 2020 2020 pa.service. │ │ │ -002b6520: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ -002b6530: 650a 2020 2020 2020 2020 6d61 736b 3a20 e. mask: │ │ │ -002b6540: 7472 7565 0a20 2020 2020 202d 206e 616d true. - nam │ │ │ -002b6550: 653a 2074 6674 7064 2d68 7061 2e73 6f63 e: tftpd-hpa.soc │ │ │ -002b6560: 6b65 740a 2020 2020 2020 2020 656e 6162 ket. enab │ │ │ -002b6570: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -002b6580: 2020 206d 6173 6b3a 2074 7275 650a 3c2f mask: true.

R │ │ │ -002b6640: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002b6650: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002b66f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -002b6790: 636c 7564 6520 6469 7361 626c 655f 7466  clude disable_tf
│ │ │ -002b67a0: 7470 642d 6870 610a 0a63 6c61 7373 2064  tpd-hpa..class d
│ │ │ -002b67b0: 6973 6162 6c65 5f74 6674 7064 2d68 7061  isable_tftpd-hpa
│ │ │ -002b67c0: 207b 0a20 2073 6572 7669 6365 207b 2774   {.  service {'t
│ │ │ -002b67d0: 6674 7064 2d68 7061 273a 0a20 2020 2065  ftpd-hpa':.    e
│ │ │ -002b67e0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -002b67f0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -002b6800: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -002b6810: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -002b68d0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -002b68e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -002b6960: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002b69f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002b6a00: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -002b66e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002b6710: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002b6720: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002b6760: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -002b6770: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -002b6970: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002b6980: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002b69c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002b69d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ -002b6a20: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002b6a30: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002b6a40: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002b6a50: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002b6a60: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002b6a70: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002b6a80: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002b6a90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002b6aa0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -002b6ab0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002b6ac0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -002b6ad0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002b6ae0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002b6af0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -002b6b00: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002b6b10: 2073 6572 7669 6365 5f74 6674 705f 6469   service_tftp_di
│ │ │ -002b6b20: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -002b6b30: 4469 7361 626c 6520 7466 7470 642d 6870  Disable tftpd-hp
│ │ │ -002b6b40: 6120 5365 7276 6963 6520 2d20 4469 7361  a Service - Disa
│ │ │ -002b6b50: 626c 6520 7365 7276 6963 6520 7466 7470  ble service tftp
│ │ │ -002b6b60: 642d 6870 610a 2020 626c 6f63 6b3a 0a0a  d-hpa.  block:..
│ │ │ -002b6b70: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002b6b80: 6520 7466 7470 642d 6870 6120 5365 7276  e tftpd-hpa Serv
│ │ │ -002b6b90: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -002b6ba0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002b6bb0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002b6bc0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002b6bd0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002b6be0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002b6bf0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -002b6c00: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -002b6c10: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002b6c20: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002b6c30: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002b6c40: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002b6c50: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002b6c60: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002b6c70: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002b6c80: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002b6c90: 616d 653a 2044 6973 6162 6c65 2074 6674  ame: Disable tft
│ │ │ -002b6ca0: 7064 2d68 7061 2053 6572 7669 6365 202d  pd-hpa Service -
│ │ │ -002b6cb0: 2045 6e73 7572 6520 7466 7470 642d 6870   Ensure tftpd-hp
│ │ │ -002b6cc0: 612e 7365 7276 6963 6520 6973 204d 6173  a.service is Mas
│ │ │ -002b6cd0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -002b6ce0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002b6cf0: 0a20 2020 2020 206e 616d 653a 2074 6674  .      name: tft
│ │ │ -002b6d00: 7064 2d68 7061 2e73 6572 7669 6365 0a20  pd-hpa.service. 
│ │ │ -002b6d10: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -002b6d20: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -002b6d30: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -002b6d40: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -002b6d50: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002b6d60: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002b6d70: 7320 6973 2073 6561 7263 6828 2274 6674  s is search("tft
│ │ │ -002b6d80: 7064 2d68 7061 2e73 6572 7669 6365 222c  pd-hpa.service",
│ │ │ -002b6d90: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002b6da0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -002b6db0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -002b6dc0: 2074 6674 7064 2d68 7061 2e73 6f63 6b65   tftpd-hpa.socke
│ │ │ -002b6dd0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -002b6de0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002b6df0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002b6e00: 2d75 6e69 742d 6669 6c65 7320 7466 7470  -unit-files tftp
│ │ │ -002b6e10: 642d 6870 612e 736f 636b 6574 0a20 2020  d-hpa.socket.   
│ │ │ -002b6e20: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002b6e30: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002b6e40: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002b6e50: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002b6e60: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002b6e70: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -002b6e80: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002b6e90: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002b6ea0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002b6eb0: 626c 6520 7466 7470 642d 6870 6120 5365  ble tftpd-hpa Se
│ │ │ -002b6ec0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -002b6ed0: 536f 636b 6574 2074 6674 7064 2d68 7061  Socket tftpd-hpa
│ │ │ -002b6ee0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002b6ef0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002b6f00: 2020 2020 6e61 6d65 3a20 7466 7470 642d      name: tftpd-
│ │ │ -002b6f10: 6870 612e 736f 636b 6574 0a20 2020 2020  hpa.socket.     
│ │ │ -002b6f20: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002b6f30: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002b6f40: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -002b6f50: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002b6f60: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002b6f70: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002b6f80: 7320 6973 2073 6561 7263 6828 2274 6674  s is search("tft
│ │ │ -002b6f90: 7064 2d68 7061 2e73 6f63 6b65 7422 2c20  pd-hpa.socket", 
│ │ │ -002b6fa0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002b6fb0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002b6fc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002b6fd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002b6fe0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -002b6ff0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -002b7000: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002b7010: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -002b7020: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -002b7030: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002b7040: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002b7050: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002b7060: 640a 2020 2d20 7365 7276 6963 655f 7466  d.  - service_tf
│ │ │ -002b7070: 7470 5f64 6973 6162 6c65 640a 2020 2d20  tp_disabled.  - 
│ │ │ -002b7080: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -002b7090: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -002b70a0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -002b70b0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -002b70c0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediation A
│ │ │ +002b61d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002b61e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +002b6270: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +002b6290: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +002b62b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002b62e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002b62f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +002b6320: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +002b6330: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +002b6340: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +002b6350: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +002b6360: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002b6370: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002b6380: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +002b6390: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002b63a0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +002b63b0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002b63c0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +002b63d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002b63e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002b63f0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +002b6400: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002b6410: 7276 6963 655f 7466 7470 5f64 6973 6162  rvice_tftp_disab
│ │ │ +002b6420: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ +002b6430: 6162 6c65 2074 6674 7064 2d68 7061 2053  able tftpd-hpa S
│ │ │ +002b6440: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002b6450: 2073 6572 7669 6365 2074 6674 7064 2d68   service tftpd-h
│ │ │ +002b6460: 7061 0a20 2062 6c6f 636b 3a0a 0a20 202d  pa.  block:..  -
│ │ │ +002b6470: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +002b6480: 6674 7064 2d68 7061 2053 6572 7669 6365  ftpd-hpa Service
│ │ │ +002b6490: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +002b64a0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +002b64b0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +002b64c0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +002b64d0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +002b64e0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +002b64f0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +002b6500: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +002b6510: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +002b6520: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +002b6530: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +002b6540: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +002b6550: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +002b6560: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +002b6570: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +002b6580: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +002b6590: 3a20 4469 7361 626c 6520 7466 7470 642d  : Disable tftpd-
│ │ │ +002b65a0: 6870 6120 5365 7276 6963 6520 2d20 456e  hpa Service - En
│ │ │ +002b65b0: 7375 7265 2074 6674 7064 2d68 7061 2e73  sure tftpd-hpa.s
│ │ │ +002b65c0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +002b65d0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002b65e0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002b65f0: 2020 2020 6e61 6d65 3a20 7466 7470 642d      name: tftpd-
│ │ │ +002b6600: 6870 612e 7365 7276 6963 650a 2020 2020  hpa.service.    
│ │ │ +002b6610: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002b6620: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002b6630: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +002b6640: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002b6650: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +002b6660: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002b6670: 7320 7365 6172 6368 2822 7466 7470 642d  s search("tftpd-
│ │ │ +002b6680: 6870 612e 7365 7276 6963 6522 2c20 6d75  hpa.service", mu
│ │ │ +002b6690: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +002b66a0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +002b66b0: 636b 6574 2045 7869 7374 7320 2d20 7466  cket Exists - tf
│ │ │ +002b66c0: 7470 642d 6870 612e 736f 636b 6574 0a20  tpd-hpa.socket. 
│ │ │ +002b66d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002b66e0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002b66f0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002b6700: 6974 2d66 696c 6573 2074 6674 7064 2d68  it-files tftpd-h
│ │ │ +002b6710: 7061 2e73 6f63 6b65 740a 2020 2020 7265  pa.socket.    re
│ │ │ +002b6720: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +002b6730: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +002b6740: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002b6750: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002b6760: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002b6770: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +002b6780: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +002b6790: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +002b67a0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +002b67b0: 2074 6674 7064 2d68 7061 2053 6572 7669   tftpd-hpa Servi
│ │ │ +002b67c0: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ +002b67d0: 6b65 7420 7466 7470 642d 6870 610a 2020  ket tftpd-hpa.  
│ │ │ +002b67e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002b67f0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002b6800: 206e 616d 653a 2074 6674 7064 2d68 7061   name: tftpd-hpa
│ │ │ +002b6810: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +002b6820: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002b6830: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002b6840: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +002b6850: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +002b6860: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002b6870: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002b6880: 7320 7365 6172 6368 2822 7466 7470 642d  s search("tftpd-
│ │ │ +002b6890: 6870 612e 736f 636b 6574 222c 206d 756c  hpa.socket", mul
│ │ │ +002b68a0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002b68b0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002b68c0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002b68d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002b68e0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002b68f0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +002b6900: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002b6910: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +002b6920: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +002b6930: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002b6940: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +002b6950: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002b6960: 202d 2073 6572 7669 6365 5f74 6674 705f   - service_tftp_
│ │ │ +002b6970: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +002b6980: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +002b6990: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +002b69a0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +002b69b0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +002b69c0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +002b6a80: 204b 7562 6572 6e65 7465 7320 736e 6970 Kubernetes snip │ │ │ +002b6a90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002b6aa0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002b6ab0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002b6ac0: 7365 2220 6964 3d22 6964 3131 3136 223e se" id="id1116"> │ │ │ +002b6ad0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002b6b40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:
Comple │ │ │ +002b6b20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002b6b30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
medium
R │ │ │ +002b6b70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e74 eboot:t │ │ │ +002b6b80: 7275 653c 2f74 643e 3c2f 7472 3e3c 7472 rue
Strategy:disable
│ │ │ +002b6bc0: 3c70 7265 3e3c 636f 6465 3e61 7069 5665
apiVe
│ │ │ +002b6bd0: 7273 696f 6e3a 206d 6163 6869 6e65 636f  rsion: machineco
│ │ │ +002b6be0: 6e66 6967 7572 6174 696f 6e2e 6f70 656e  nfiguration.open
│ │ │ +002b6bf0: 7368 6966 742e 696f 2f76 310a 6b69 6e64  shift.io/v1.kind
│ │ │ +002b6c00: 3a20 4d61 6368 696e 6543 6f6e 6669 670a  : MachineConfig.
│ │ │ +002b6c10: 7370 6563 3a0a 2020 636f 6e66 6967 3a0a  spec:.  config:.
│ │ │ +002b6c20: 2020 2020 6967 6e69 7469 6f6e 3a0a 2020      ignition:.  
│ │ │ +002b6c30: 2020 2020 7665 7273 696f 6e3a 2033 2e31      version: 3.1
│ │ │ +002b6c40: 2e30 0a20 2020 2073 7973 7465 6d64 3a0a  .0.    systemd:.
│ │ │ +002b6c50: 2020 2020 2020 756e 6974 733a 0a20 2020        units:.   
│ │ │ +002b6c60: 2020 202d 206e 616d 653a 2074 6674 7064     - name: tftpd
│ │ │ +002b6c70: 2d68 7061 2e73 6572 7669 6365 0a20 2020  -hpa.service.   
│ │ │ +002b6c80: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002b6c90: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ +002b6ca0: 3a20 7472 7565 0a20 2020 2020 202d 206e  : true.      - n
│ │ │ +002b6cb0: 616d 653a 2074 6674 7064 2d68 7061 2e73  ame: tftpd-hpa.s
│ │ │ +002b6cc0: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ +002b6cd0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002b6ce0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +002b6cf0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002b6db0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002b6dc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002b6e90: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002b6ea0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002b6ef0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002b6f00: 7466 7470 642d 6870 610a 0a63 6c61 7373  tftpd-hpa..class
│ │ │ +002b6f10: 2064 6973 6162 6c65 5f74 6674 7064 2d68   disable_tftpd-h
│ │ │ +002b6f20: 7061 207b 0a20 2073 6572 7669 6365 207b  pa {.  service {
│ │ │ +002b6f30: 2774 6674 7064 2d68 7061 273a 0a20 2020  'tftpd-hpa':.   
│ │ │ +002b6f40: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +002b6f50: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +002b6f60: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +002b6f70: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ +002b7030: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +002b7040: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +002b7050: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
<
│ │ │ +002b7090: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +002b70a0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +002b70b0: 6d61 736b 6564 203d 205b 2274 6674 7064  masked = ["tftpd
│ │ │ +002b70c0: 2d68 7061 225d 0a3c 2f63 6f64 653e 3c2f  -hpa"].
Remedia │ │ │ -002b7ee0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002b7ef0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002b7f00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002b7f10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002b7f20: 7365 2220 6964 3d22 6964 3131 3231 223e se" id="id1121"> │ │ │ -002b7f30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +002b6e70: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002b6e80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002b6ec0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002b6ed0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002b7fa0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002b7fc0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002b7ff0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002b7f80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002b7f90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002b7fd0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002b7fe0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -002b8030: 6520 7265 6d6f 7665 5f72 7379 6e63 0a0a e remove_rsync.. │ │ │ -002b8040: 636c 6173 7320 7265 6d6f 7665 5f72 7379 class remove_rsy │ │ │ -002b8050: 6e63 207b 0a20 2070 6163 6b61 6765 207b nc {. package { │ │ │ -002b8060: 2027 7273 796e 6327 3a0a 2020 2020 656e 'rsync':. en │ │ │ -002b8070: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ -002b8080: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.

Reme │ │ │ -002b8140: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002b8150: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b8160: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002b8200: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002b8250: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002b8290: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002b82a0: 7273 796e 6320 5061 636b 6167 653a 2045  rsync Package: E
│ │ │ -002b82b0: 6e73 7572 6520 7273 796e 6320 6973 2072  nsure rsync is r
│ │ │ -002b82c0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -002b82d0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -002b82e0: 653a 0a20 2020 206e 616d 653a 2072 7379  e:.    name: rsy
│ │ │ -002b82f0: 6e63 0a20 2020 2073 7461 7465 3a20 6162  nc.    state: ab
│ │ │ -002b8300: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -002b8310: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002b8320: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002b8330: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002b8340: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -002b8350: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -002b8360: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002b8370: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ -002b8380: 6e63 5f72 656d 6f76 6564 0a3c 2f63 6f64  nc_removed.
│ │ │ +002b7f00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Co │ │ │ -002b81e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002b8210: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002b8230: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002b8240: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002b8260: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002b8270: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +002b7fa0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002b7fc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002b7ff0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002b7f80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002b7f90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002b7fb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002b7fd0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002b7fe0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002b8020: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002b8030: 3a20 2755 6e69 6e73 7461 6c6c 2072 7379 : 'Uninstall rsy │ │ │ +002b8040: 6e63 2050 6163 6b61 6765 3a20 456e 7375 nc Package: Ensu │ │ │ +002b8050: 7265 2072 7379 6e63 2069 7320 7265 6d6f re rsync is remo │ │ │ +002b8060: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ +002b8070: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +002b8080: 2020 2020 6e61 6d65 3a20 7273 796e 630a name: rsync. │ │ │ +002b8090: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ +002b80a0: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ +002b80b0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +002b80c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +002b80d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +002b80e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +002b80f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +002b8100: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +002b8110: 2d20 7061 636b 6167 655f 7273 796e 635f - package_rsync_ │ │ │ +002b8120: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +002b8130: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ +002b81e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002b81f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002b8200: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002b8210: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002b8220: 7365 2220 6964 3d22 6964 3131 3232 223e se" id="id1122"> │ │ │ +002b8230: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002b82a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002b82c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002b82f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002b8280: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002b8290: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002b82d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002b82e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +002b8330: 6520 7265 6d6f 7665 5f72 7379 6e63 0a0a e remove_rsync.. │ │ │ +002b8340: 636c 6173 7320 7265 6d6f 7665 5f72 7379 class remove_rsy │ │ │ +002b8350: 6e63 207b 0a20 2070 6163 6b61 6765 207b nc {. package { │ │ │ +002b8360: 2027 7273 796e 6327 3a0a 2020 2020 656e 'rsync':. en │ │ │ +002b8370: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ +002b8380: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.

Remedi │ │ │ -002b91c0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002b91d0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002b91e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -002b9230: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -002b9240: 5d0a 6d61 736b 6564 203d 205b 2272 7379  ].masked = ["rsy
│ │ │ -002b9250: 6e63 225d 0a3c 2f63 6f64 653e 3c2f 7072  nc"].
Remediatio │ │ │ -002b9310: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ -002b9320: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002b9330: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002b93d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ -002b93b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002b93c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002b93e0: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ -002b9400: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002b9410: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ -002b9430: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002b9440: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ -002b9460: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ -002b9470: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ -002b9480: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ -002b9490: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ -002b94a0: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ -002b94b0: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ -002b94c0: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ -002b94d0: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ -002b94e0: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ -002b94f0: 2020 2020 2d20 6e61 6d65 3a20 7273 796e      - name: rsyn
│ │ │ -002b9500: 632e 7365 7276 6963 650a 2020 2020 2020  c.service.      
│ │ │ -002b9510: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002b9520: 0a20 2020 2020 2020 206d 6173 6b3a 2074  .        mask: t
│ │ │ -002b9530: 7275 650a 2020 2020 2020 2d20 6e61 6d65  rue.      - name
│ │ │ -002b9540: 3a20 7273 796e 632e 736f 636b 6574 0a20  : rsync.socket. 
│ │ │ -002b9550: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -002b9560: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -002b9570: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e  sk: true.
│ │ │ -002b9580: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002b9630: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002b9640: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002b9650: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002b96f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002b9710: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002b9740: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002b96d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002b96e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002b9700: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002b9720: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002b9730: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -002b9780: 2064 6973 6162 6c65 5f72 7379 6e63 0a0a disable_rsync.. │ │ │ -002b9790: 636c 6173 7320 6469 7361 626c 655f 7273 class disable_rs │ │ │ -002b97a0: 796e 6320 7b0a 2020 7365 7276 6963 6520 ync {. service │ │ │ -002b97b0: 7b27 7273 796e 6327 3a0a 2020 2020 656e {'rsync':. en │ │ │ -002b97c0: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ -002b97d0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ -002b97e0: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ -002b97f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -002b98b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002b98c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002b9940: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002b9950: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002b9970: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002b9980: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002b99a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002b99c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002b99f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002b9a00: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002b9a10: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002b9a20: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002b9a30: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002b9a40: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -002b9a50: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -002b9a60: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -002b9a70: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002b9a80: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002b9a90: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002b9aa0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002b9ab0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002b9ac0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002b9ad0: 7365 7276 6963 655f 7273 796e 6364 5f64  service_rsyncd_d
│ │ │ -002b9ae0: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ -002b9af0: 2045 6e73 7572 6520 7273 796e 6364 2073   Ensure rsyncd s
│ │ │ -002b9b00: 6572 7669 6365 2069 7320 6469 7361 626c  ervice is disabl
│ │ │ -002b9b10: 6564 202d 2044 6973 6162 6c65 2073 6572  ed - Disable ser
│ │ │ -002b9b20: 7669 6365 2072 7379 6e63 0a20 2062 6c6f  vice rsync.  blo
│ │ │ -002b9b30: 636b 3a0a 0a20 202d 206e 616d 653a 2045  ck:..  - name: E
│ │ │ -002b9b40: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ -002b9b50: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ -002b9b60: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -002b9b70: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -002b9b80: 656e 7420 696e 0a20 2020 2020 2074 6865  ent in.      the
│ │ │ -002b9b90: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -002b9ba0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002b9bb0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002b9bc0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002b9bd0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -002b9be0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002b9bf0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -002b9c00: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002b9c10: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002b9c20: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -002b9c30: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002b9c40: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002b9c50: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002b9c60: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ -002b9c70: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ -002b9c80: 2064 6973 6162 6c65 6420 2d20 456e 7375   disabled - Ensu
│ │ │ -002b9c90: 7265 2072 7379 6e63 2e73 6572 7669 6365  re rsync.service
│ │ │ -002b9ca0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -002b9cb0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002b9cc0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002b9cd0: 6d65 3a20 7273 796e 632e 7365 7276 6963  me: rsync.servic
│ │ │ -002b9ce0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -002b9cf0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -002b9d00: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002b9d10: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002b9d20: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -002b9d30: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002b9d40: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002b9d50: 7273 796e 632e 7365 7276 6963 6522 2c20  rsync.service", 
│ │ │ -002b9d60: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002b9d70: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002b9d80: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002b9d90: 7273 796e 632e 736f 636b 6574 0a20 2020  rsync.socket.   
│ │ │ -002b9da0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002b9db0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002b9dc0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002b9dd0: 2d66 696c 6573 2072 7379 6e63 2e73 6f63  -files rsync.soc
│ │ │ -002b9de0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -002b9df0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002b9e00: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -002b9e10: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -002b9e20: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -002b9e30: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002b9e40: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -002b9e50: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -002b9e60: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -002b9e70: 653a 2045 6e73 7572 6520 7273 796e 6364  e: Ensure rsyncd
│ │ │ -002b9e80: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ -002b9e90: 626c 6564 202d 2044 6973 6162 6c65 2053  bled - Disable S
│ │ │ -002b9ea0: 6f63 6b65 7420 7273 796e 630a 2020 2020  ocket rsync.    
│ │ │ -002b9eb0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002b9ec0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002b9ed0: 616d 653a 2072 7379 6e63 2e73 6f63 6b65  ame: rsync.socke
│ │ │ -002b9ee0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002b9ef0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002b9f00: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002b9f10: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002b9f20: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002b9f30: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002b9f40: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002b9f50: 6368 2822 7273 796e 632e 736f 636b 6574  ch("rsync.socket
│ │ │ -002b9f60: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -002b9f70: 6529 0a20 2074 6167 733a 0a20 202d 2050  e).  tags:.  - P
│ │ │ -002b9f80: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -002b9f90: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -002b9fa0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002b9fb0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002b9fc0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002b9fd0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002b9fe0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -002b9ff0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002ba000: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -002ba010: 5f72 7379 6e63 645f 6469 7361 626c 6564  _rsyncd_disabled
│ │ │ -002ba020: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -002ba030: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -002ba040: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002ba050: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002ba060: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
Comp │ │ │ +002b9260: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002b9270: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002b9290: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002b92b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002b92c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002b9300: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002b9310: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +002b9320: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +002b9330: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +002b9340: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +002b9350: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +002b9360: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002b9370: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +002b9380: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002b9390: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002b93a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002b93b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002b93c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002b93d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002b93e0: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ +002b93f0: 6e63 645f 6469 7361 626c 6564 0a0a 2d20  ncd_disabled..- 
│ │ │ +002b9400: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ +002b9410: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ +002b9420: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ +002b9430: 6520 7365 7276 6963 6520 7273 796e 630a  e service rsync.
│ │ │ +002b9440: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +002b9450: 6d65 3a20 456e 7375 7265 2072 7379 6e63  me: Ensure rsync
│ │ │ +002b9460: 6420 7365 7276 6963 6520 6973 2064 6973  d service is dis
│ │ │ +002b9470: 6162 6c65 6420 2d20 436f 6c6c 6563 7420  abled - Collect 
│ │ │ +002b9480: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +002b9490: 2050 7265 7365 6e74 2069 6e0a 2020 2020   Present in.    
│ │ │ +002b94a0: 2020 7468 6520 5379 7374 656d 0a20 2020    the System.   
│ │ │ +002b94b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002b94c0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002b94d0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002b94e0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +002b94f0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +002b9500: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +002b9510: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002b9520: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002b9530: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +002b9540: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +002b9550: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +002b9560: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002b9570: 650a 0a20 202d 206e 616d 653a 2045 6e73  e..  - name: Ens
│ │ │ +002b9580: 7572 6520 7273 796e 6364 2073 6572 7669  ure rsyncd servi
│ │ │ +002b9590: 6365 2069 7320 6469 7361 626c 6564 202d  ce is disabled -
│ │ │ +002b95a0: 2045 6e73 7572 6520 7273 796e 632e 7365   Ensure rsync.se
│ │ │ +002b95b0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +002b95c0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002b95d0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002b95e0: 2020 206e 616d 653a 2072 7379 6e63 2e73     name: rsync.s
│ │ │ +002b95f0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002b9600: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002b9610: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002b9620: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002b9630: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +002b9640: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +002b9650: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002b9660: 7263 6828 2272 7379 6e63 2e73 6572 7669  rch("rsync.servi
│ │ │ +002b9670: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +002b9680: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +002b9690: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +002b96a0: 7473 202d 2072 7379 6e63 2e73 6f63 6b65  ts - rsync.socke
│ │ │ +002b96b0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +002b96c0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +002b96d0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +002b96e0: 2d75 6e69 742d 6669 6c65 7320 7273 796e  -unit-files rsyn
│ │ │ +002b96f0: 632e 736f 636b 6574 0a20 2020 2072 6567  c.socket.    reg
│ │ │ +002b9700: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002b9710: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002b9720: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002b9730: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002b9740: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002b9750: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002b9760: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002b9770: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002b9780: 2d20 6e61 6d65 3a20 456e 7375 7265 2072  - name: Ensure r
│ │ │ +002b9790: 7379 6e63 6420 7365 7276 6963 6520 6973  syncd service is
│ │ │ +002b97a0: 2064 6973 6162 6c65 6420 2d20 4469 7361   disabled - Disa
│ │ │ +002b97b0: 626c 6520 536f 636b 6574 2072 7379 6e63  ble Socket rsync
│ │ │ +002b97c0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002b97d0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002b97e0: 2020 2020 6e61 6d65 3a20 7273 796e 632e      name: rsync.
│ │ │ +002b97f0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +002b9800: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002b9810: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002b9820: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002b9830: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +002b9840: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002b9850: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002b9860: 2073 6561 7263 6828 2272 7379 6e63 2e73   search("rsync.s
│ │ │ +002b9870: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +002b9880: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +002b9890: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002b98a0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +002b98b0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +002b98c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002b98d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002b98e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002b98f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002b9900: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002b9910: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002b9920: 7276 6963 655f 7273 796e 6364 5f64 6973  rvice_rsyncd_dis
│ │ │ +002b9930: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +002b9940: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +002b9950: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +002b9960: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +002b9970: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +002b9980: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ku │ │ │ +002b9a40: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ +002b9a50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002b9ad0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002b9ae0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002b9b00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002b9b10: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ +002b9b20: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ +002b9b30: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ +002b9b40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002b9b60: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002b9b70: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ +002b9b90: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ +002b9ba0: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ +002b9bb0: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ +002b9bc0: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ +002b9bd0: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ +002b9be0: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ +002b9bf0: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ +002b9c00: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ +002b9c10: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ +002b9c20: 2d20 6e61 6d65 3a20 7273 796e 632e 7365 - name: rsync.se │ │ │ +002b9c30: 7276 6963 650a 2020 2020 2020 2020 656e rvice. en │ │ │ +002b9c40: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +002b9c50: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ +002b9c60: 2020 2020 2020 2d20 6e61 6d65 3a20 7273 - name: rs │ │ │ +002b9c70: 796e 632e 736f 636b 6574 0a20 2020 2020 ync.socket. │ │ │ +002b9c80: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ +002b9c90: 650a 2020 2020 2020 2020 6d61 736b 3a20 e. mask: │ │ │ +002b9ca0: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072 true.
Remediatio │ │ │ +002b9d60: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002b9d70: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002b9df0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002b9e00: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002b9e20: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002b9e30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002b9e50: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002b9e70: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +002b9ea0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +002b9eb0: 6162 6c65 5f72 7379 6e63 0a0a 636c 6173  able_rsync..clas
│ │ │ +002b9ec0: 7320 6469 7361 626c 655f 7273 796e 6320  s disable_rsync 
│ │ │ +002b9ed0: 7b0a 2020 7365 7276 6963 6520 7b27 7273  {.  service {'rs
│ │ │ +002b9ee0: 796e 6327 3a0a 2020 2020 656e 6162 6c65  ync':.    enable
│ │ │ +002b9ef0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +002b9f00: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +002b9f10: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +002b9f20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +002b9fe0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002b9ff0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +002ba040: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +002ba050: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +002ba060: 3d20 5b22 7273 796e 6322 5d0a 3c2f 636f  = ["rsync"].
< │ │ │ 002ba080: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002ba090: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002ba0a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002ba0b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002ba0c0: 6431 3132 3922 2074 6162 696e 6465 783d d1129" tabindex= │ │ │ 002ba0d0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -179078,93 +179078,93 @@ │ │ │ 002bb850: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 002bb860: 3131 3331 2220 7461 6269 6e64 6578 3d22 1131" tabindex=" │ │ │ 002bb870: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 002bb880: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 002bb890: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 002bb8a0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 002bb8b0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -002bb8c0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002bb8d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002bb960: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002bb990: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002bb9b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002bb9c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002bb9e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002bb9f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -002bba10: 6c75 6465 2072 656d 6f76 655f 6375 7073  lude remove_cups
│ │ │ -002bba20: 0a0a 636c 6173 7320 7265 6d6f 7665 5f63  ..class remove_c
│ │ │ -002bba30: 7570 7320 7b0a 2020 7061 636b 6167 6520  ups {.  package 
│ │ │ -002bba40: 7b20 2763 7570 7327 3a0a 2020 2020 656e  { 'cups':.    en
│ │ │ -002bba50: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -002bba60: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002bbb20: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002bbb30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002bbb40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002bbbe0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002bbc30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002bbc70: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002bbc80: 4355 5053 2050 6163 6b61 6765 3a20 456e  CUPS Package: En
│ │ │ -002bbc90: 7375 7265 2063 7570 7320 6973 2072 656d  sure cups is rem
│ │ │ -002bbca0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002bbcb0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002bbcc0: 0a20 2020 206e 616d 653a 2063 7570 730a  .    name: cups.
│ │ │ -002bbcd0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -002bbce0: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -002bbcf0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002bbd00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002bbd10: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002bbd20: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002bbd30: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002bbd40: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002bbd50: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002bbd60: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002bbd70: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002bbd80: 640a 2020 2d20 7061 636b 6167 655f 6375  d.  - package_cu
│ │ │ -002bbd90: 7073 5f72 656d 6f76 6564 0a20 202d 2075  ps_removed.  - u
│ │ │ -002bbda0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +002bb8c0: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +002bb8d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +002bb8e0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Co │ │ │ -002bbbc0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002bbbf0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002bbc10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002bbc20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002bbc40: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002bbc50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +002bb980: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002bb9d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002bba10: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +002bba20: 4355 5053 2050 6163 6b61 6765 3a20 456e  CUPS Package: En
│ │ │ +002bba30: 7375 7265 2063 7570 7320 6973 2072 656d  sure cups is rem
│ │ │ +002bba40: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002bba50: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +002bba60: 0a20 2020 206e 616d 653a 2063 7570 730a  .    name: cups.
│ │ │ +002bba70: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +002bba80: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +002bba90: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +002bbaa0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002bbab0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +002bbac0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +002bbad0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +002bbae0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +002bbaf0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +002bbb00: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +002bbb10: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002bbb20: 640a 2020 2d20 7061 636b 6167 655f 6375  d.  - package_cu
│ │ │ +002bbb30: 7073 5f72 656d 6f76 6564 0a20 202d 2075  ps_removed.  - u
│ │ │ +002bbb40: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +002bbb50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002bbc10: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002bbc20: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ +002bb960: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002bb990: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002bb9b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002bb9c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002bb9e0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002bb9f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +002bbcf0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002bbd00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +002bbd60: 5f63 7570 730a 0a63 6c61 7373 2072 656d  _cups..class rem
│ │ │ +002bbd70: 6f76 655f 6375 7073 207b 0a20 2070 6163  ove_cups {.  pac
│ │ │ +002bbd80: 6b61 6765 207b 2027 6375 7073 273a 0a20  kage { 'cups':. 
│ │ │ +002bbd90: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002bbda0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002bbdb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ -002bd090: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -002bd0a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ -002bd0f0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -002bd100: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ -002bd110: 3d20 5b22 6375 7073 225d 0a3c 2f63 6f64  = ["cups"].
Reme │ │ │ -002bd1d0: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ -002bd1e0: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
low
Disru │ │ │ +002bbcd0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002bbce0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002bbd20: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002bbd30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002bd2e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002bd310: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ -002bd330: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ -002bd340: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ -002bd350: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ -002bd360: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ -002bd370: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ -002bd380: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ -002bd390: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ -002bd3a0: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ -002bd3b0: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ -002bd3c0: 3a20 6375 7073 2e73 6572 7669 6365 0a20  : cups.service. 
│ │ │ -002bd3d0: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ -002bd3e0: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ -002bd3f0: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ -002bd400: 206e 616d 653a 2063 7570 732e 736f 636b   name: cups.sock
│ │ │ -002bd410: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ -002bd420: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002bd430: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ -002bd450: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Re │ │ │ -002bd4f0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002bd500: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002bd510: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -002bd2a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ -002bd2b0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ -002bd2f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002bd300: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -002bd5a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002bd5b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002bd600: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -002bd640: 6c75 6465 2064 6973 6162 6c65 5f63 7570  lude disable_cup
│ │ │ -002bd650: 730a 0a63 6c61 7373 2064 6973 6162 6c65  s..class disable
│ │ │ -002bd660: 5f63 7570 7320 7b0a 2020 7365 7276 6963  _cups {.  servic
│ │ │ -002bd670: 6520 7b27 6375 7073 273a 0a20 2020 2065  e {'cups':.    e
│ │ │ -002bd680: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -002bd690: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -002bd6a0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -002bd6b0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ -002bd770: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ -002bd780: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ -002bd800: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -002bd890: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002bd8a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -002bd590: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002bd5c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002bd5d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002bd610: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -002bd620: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -002bd810: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002bd820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002bd860: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002bd870: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ -002bd8c0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002bd8d0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002bd8e0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002bd8f0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002bd900: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002bd910: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002bd920: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002bd930: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002bd940: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -002bd950: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002bd960: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002bd970: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002bd980: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -002bd990: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -002bd9a0: 6572 7669 6365 5f63 7570 735f 6469 7361  ervice_cups_disa
│ │ │ -002bd9b0: 626c 6564 0a20 202d 2075 6e6b 6e6f 776e  bled.  - unknown
│ │ │ -002bd9c0: 5f73 6576 6572 6974 790a 0a2d 206e 616d  _severity..- nam
│ │ │ -002bd9d0: 653a 2044 6973 6162 6c65 2074 6865 2043  e: Disable the C
│ │ │ -002bd9e0: 5550 5320 5365 7276 6963 6520 2d20 4469  UPS Service - Di
│ │ │ -002bd9f0: 7361 626c 6520 7365 7276 6963 6520 6375  sable service cu
│ │ │ -002bda00: 7073 0a20 2062 6c6f 636b 3a0a 0a20 202d  ps.  block:..  -
│ │ │ -002bda10: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ -002bda20: 6865 2043 5550 5320 5365 7276 6963 6520  he CUPS Service 
│ │ │ -002bda30: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -002bda40: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -002bda50: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -002bda60: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002bda70: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -002bda80: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -002bda90: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -002bdaa0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -002bdab0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -002bdac0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002bdad0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002bdae0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002bdaf0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -002bdb00: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002bdb10: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002bdb20: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002bdb30: 2044 6973 6162 6c65 2074 6865 2043 5550   Disable the CUP
│ │ │ -002bdb40: 5320 5365 7276 6963 6520 2d20 456e 7375  S Service - Ensu
│ │ │ -002bdb50: 7265 2063 7570 732e 7365 7276 6963 6520  re cups.service 
│ │ │ -002bdb60: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -002bdb70: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -002bdb80: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -002bdb90: 653a 2063 7570 732e 7365 7276 6963 650a  e: cups.service.
│ │ │ -002bdba0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002bdbb0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -002bdbc0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -002bdbd0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -002bdbe0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -002bdbf0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -002bdc00: 6573 2069 7320 7365 6172 6368 2822 6375  es is search("cu
│ │ │ -002bdc10: 7073 2e73 6572 7669 6365 222c 206d 756c  ps.service", mul
│ │ │ -002bdc20: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -002bdc30: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -002bdc40: 6b65 7420 4578 6973 7473 202d 2063 7570  ket Exists - cup
│ │ │ -002bdc50: 732e 736f 636b 6574 0a20 2020 2061 6e73  s.socket.    ans
│ │ │ -002bdc60: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002bdc70: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002bdc80: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002bdc90: 6573 2063 7570 732e 736f 636b 6574 0a20  es cups.socket. 
│ │ │ -002bdca0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -002bdcb0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -002bdcc0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -002bdcd0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -002bdce0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -002bdcf0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -002bdd00: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -002bdd10: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002bdd20: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -002bdd30: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ -002bdd40: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -002bdd50: 2053 6f63 6b65 7420 6375 7073 0a20 2020   Socket cups.   
│ │ │ -002bdd60: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002bdd70: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -002bdd80: 6e61 6d65 3a20 6375 7073 2e73 6f63 6b65  name: cups.socke
│ │ │ -002bdd90: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002bdda0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002bddb0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002bddc0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002bddd0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002bdde0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002bddf0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002bde00: 6368 2822 6375 7073 2e73 6f63 6b65 7422  ch("cups.socket"
│ │ │ -002bde10: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -002bde20: 290a 2020 7461 6773 3a0a 2020 2d20 4e49  ).  tags:.  - NI
│ │ │ -002bde30: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002bde40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002bde50: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002bde60: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002bde70: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002bde80: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002bde90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002bdea0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002bdeb0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002bdec0: 640a 2020 2d20 7365 7276 6963 655f 6375  d.  - service_cu
│ │ │ -002bded0: 7073 5f64 6973 6162 6c65 640a 2020 2d20  ps_disabled.  - 
│ │ │ -002bdee0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -002bdef0: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77  block.  - unknow
│ │ │ -002bdf00: 6e5f 7365 7665 7269 7479 0a20 2077 6865  n_severity.  whe
│ │ │ -002bdf10: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002bdf20: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002bdf30: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.Remediation Ans
│ │ │ +002bd090: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002bd0a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +002bd120: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002bd140: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002bd190: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002bd1c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +002bd1e0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +002bd1f0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +002bd200: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +002bd210: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +002bd220: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002bd230: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +002bd240: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +002bd250: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002bd260: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +002bd270: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002bd280: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002bd290: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002bd2a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002bd2b0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +002bd2c0: 655f 6375 7073 5f64 6973 6162 6c65 640a  e_cups_disabled.
│ │ │ +002bd2d0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +002bd2e0: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469  rity..- name: Di
│ │ │ +002bd2f0: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ +002bd300: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +002bd310: 2073 6572 7669 6365 2063 7570 730a 2020   service cups.  
│ │ │ +002bd320: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002bd330: 3a20 4469 7361 626c 6520 7468 6520 4355  : Disable the CU
│ │ │ +002bd340: 5053 2053 6572 7669 6365 202d 2043 6f6c  PS Service - Col
│ │ │ +002bd350: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +002bd360: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +002bd370: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +002bd380: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002bd390: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002bd3a0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002bd3b0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +002bd3c0: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +002bd3d0: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +002bd3e0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002bd3f0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002bd400: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +002bd410: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +002bd420: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +002bd430: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +002bd440: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002bd450: 626c 6520 7468 6520 4355 5053 2053 6572  ble the CUPS Ser
│ │ │ +002bd460: 7669 6365 202d 2045 6e73 7572 6520 6375  vice - Ensure cu
│ │ │ +002bd470: 7073 2e73 6572 7669 6365 2069 7320 4d61  ps.service is Ma
│ │ │ +002bd480: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +002bd490: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002bd4a0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6375  :.      name: cu
│ │ │ +002bd4b0: 7073 2e73 6572 7669 6365 0a20 2020 2020  ps.service.     
│ │ │ +002bd4c0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002bd4d0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002bd4e0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002bd4f0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002bd500: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002bd510: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002bd520: 2073 6561 7263 6828 2263 7570 732e 7365   search("cups.se
│ │ │ +002bd530: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +002bd540: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +002bd550: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +002bd560: 7869 7374 7320 2d20 6375 7073 2e73 6f63  xists - cups.soc
│ │ │ +002bd570: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +002bd580: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002bd590: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002bd5a0: 7374 2d75 6e69 742d 6669 6c65 7320 6375  st-unit-files cu
│ │ │ +002bd5b0: 7073 2e73 6f63 6b65 740a 2020 2020 7265  ps.socket.    re
│ │ │ +002bd5c0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +002bd5d0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +002bd5e0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002bd5f0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002bd600: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002bd610: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +002bd620: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +002bd630: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +002bd640: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +002bd650: 2074 6865 2043 5550 5320 5365 7276 6963   the CUPS Servic
│ │ │ +002bd660: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +002bd670: 6574 2063 7570 730a 2020 2020 616e 7369  et cups.    ansi
│ │ │ +002bd680: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002bd690: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002bd6a0: 2063 7570 732e 736f 636b 6574 0a20 2020   cups.socket.   
│ │ │ +002bd6b0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002bd6c0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +002bd6d0: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +002bd6e0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +002bd6f0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +002bd700: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +002bd710: 6e65 7320 6973 2073 6561 7263 6828 2263  nes is search("c
│ │ │ +002bd720: 7570 732e 736f 636b 6574 222c 206d 756c  ups.socket", mul
│ │ │ +002bd730: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002bd740: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002bd750: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002bd760: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002bd770: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002bd780: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +002bd790: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002bd7a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002bd7b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002bd7c0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002bd7d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002bd7e0: 2073 6572 7669 6365 5f63 7570 735f 6469   service_cups_di
│ │ │ +002bd7f0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002bd800: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002bd810: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002bd820: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ +002bd830: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002bd840: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002bd850: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediat
│ │ │ +002bd910: 696f 6e20 4b75 6265 726e 6574 6573 2073  ion Kubernetes s
│ │ │ +002bd920: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ +002bd150: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002bd160: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002bd1a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002bd1b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Reboot:true │ │ │ +002bda20: 3c74 723e 3c74 683e 5374 7261 7465 6779
ap
│ │ │ +002bda60: 6956 6572 7369 6f6e 3a20 6d61 6368 696e  iVersion: machin
│ │ │ +002bda70: 6563 6f6e 6669 6775 7261 7469 6f6e 2e6f  econfiguration.o
│ │ │ +002bda80: 7065 6e73 6869 6674 2e69 6f2f 7631 0a6b  penshift.io/v1.k
│ │ │ +002bda90: 696e 643a 204d 6163 6869 6e65 436f 6e66  ind: MachineConf
│ │ │ +002bdaa0: 6967 0a73 7065 633a 0a20 2063 6f6e 6669  ig.spec:.  confi
│ │ │ +002bdab0: 673a 0a20 2020 2069 676e 6974 696f 6e3a  g:.    ignition:
│ │ │ +002bdac0: 0a20 2020 2020 2076 6572 7369 6f6e 3a20  .      version: 
│ │ │ +002bdad0: 332e 312e 300a 2020 2020 7379 7374 656d  3.1.0.    system
│ │ │ +002bdae0: 643a 0a20 2020 2020 2075 6e69 7473 3a0a  d:.      units:.
│ │ │ +002bdaf0: 2020 2020 2020 2d20 6e61 6d65 3a20 6375        - name: cu
│ │ │ +002bdb00: 7073 2e73 6572 7669 6365 0a20 2020 2020  ps.service.     
│ │ │ +002bdb10: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002bdb20: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ +002bdb30: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ +002bdb40: 653a 2063 7570 732e 736f 636b 6574 0a20  e: cups.socket. 
│ │ │ +002bdb50: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +002bdb60: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +002bdb70: 736b 3a20 7472 7565 0a3c 2f63 6f64 653e  sk: true.
│ │ │ +002bdb80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002bdc30: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002bdc40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002bdc50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Com │ │ │ +002bd9b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002bd9e0: 3a3c 2f74 683e 3c74 643e 6d65 6469 756d :medium │ │ │ +002bd9f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strategy │ │ │ +002bda30: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002bda40: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +002bdcf0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002bdd10: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002bdd40: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002bdcd0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002bdce0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002bdd00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002bdd20: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002bdd30: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +002bdd80: 2064 6973 6162 6c65 5f63 7570 730a 0a63 disable_cups..c │ │ │ +002bdd90: 6c61 7373 2064 6973 6162 6c65 5f63 7570 lass disable_cup │ │ │ +002bdda0: 7320 7b0a 2020 7365 7276 6963 6520 7b27 s {. service {' │ │ │ +002bddb0: 6375 7073 273a 0a20 2020 2065 6e61 626c cups':. enabl │ │ │ +002bddc0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20 e => false,. │ │ │ +002bddd0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +002bdde0: 2773 746f 7070 6564 272c 0a20 207d 0a7d 'stopped',. }.} │ │ │ +002bddf0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

Remediation OS │ │ │ +002bdeb0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +002bdec0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002bded0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ +002bdf10: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +002bdf20: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +002bdf30: 203d 205b 2263 7570 7322 5d0a 3c2f 636f   = ["cups"].
< │ │ │ 002bdf50: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002bdf60: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002bdf70: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002bdf80: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002bdf90: 6431 3133 3922 2074 6162 696e 6465 783d d1139" tabindex= │ │ │ 002bdfa0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -180052,90 +180052,90 @@ │ │ │ 002bf530: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 002bf540: 743d 2223 6964 3131 3431 2220 7461 6269 t="#id1141" tabi │ │ │ 002bf550: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 002bf560: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 002bf570: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 002bf580: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 002bf590: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -002bf5a0: 223e 5265 6d65 6469 6174 696f 6e20 5075 ">Remediation Pu │ │ │ -002bf5b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002bf5c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002bf640: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002bf660: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002bf6b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002bf6e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -002bf700: 655f 7371 7569 640a 0a63 6c61 7373 2072  e_squid..class r
│ │ │ -002bf710: 656d 6f76 655f 7371 7569 6420 7b0a 2020  emove_squid {.  
│ │ │ -002bf720: 7061 636b 6167 6520 7b20 2773 7175 6964  package { 'squid
│ │ │ -002bf730: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002bf740: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002bf750: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002bf810: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002bf820: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002bf8a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002bf8e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ -002bf670: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002bf680: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002bf6c0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002bf6d0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ -002bf8b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002bf8d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002bf900: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002bf920: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002bf950: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -002bf960: 6e69 6e73 7461 6c6c 2073 7175 6964 2050  ninstall squid P
│ │ │ -002bf970: 6163 6b61 6765 3a20 456e 7375 7265 2073  ackage: Ensure s
│ │ │ -002bf980: 7175 6964 2069 7320 7265 6d6f 7665 6427  quid is removed'
│ │ │ -002bf990: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -002bf9a0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -002bf9b0: 6e61 6d65 3a20 7371 7569 640a 2020 2020  name: squid.    
│ │ │ -002bf9c0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002bf9d0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -002bf9e0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002bf9f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002bfa00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002bfa10: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002bfa20: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002bfa30: 655f 7371 7569 645f 7265 6d6f 7665 640a  e_squid_removed.
│ │ │ -002bfa40: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -002bfa50: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediation An
│ │ │ +002bf5b0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +002bf5c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
│ │ │ +002bf640: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002bf660: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002bf6b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002bf6e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002bf650: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002bf670: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002bf6c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002bf6d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +002bf700: 7374 616c 6c20 7371 7569 6420 5061 636b  stall squid Pack
│ │ │ +002bf710: 6167 653a 2045 6e73 7572 6520 7371 7569  age: Ensure squi
│ │ │ +002bf720: 6420 6973 2072 656d 6f76 6564 270a 2020  d is removed'.  
│ │ │ +002bf730: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002bf740: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +002bf750: 653a 2073 7175 6964 0a20 2020 2073 7461  e: squid.    sta
│ │ │ +002bf760: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +002bf770: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +002bf780: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002bf790: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002bf7a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002bf7b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002bf7c0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +002bf7d0: 7175 6964 5f72 656d 6f76 6564 0a20 202d  quid_removed.  -
│ │ │ +002bf7e0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +002bf7f0: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +002bf800: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002bf8b0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002bf8c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002bf940: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002bf960: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002bf9b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002bf9e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002bf950: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002bf970: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002bf9c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002bf9d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +002bfa00: 7665 5f73 7175 6964 0a0a 636c 6173 7320  ve_squid..class 
│ │ │ +002bfa10: 7265 6d6f 7665 5f73 7175 6964 207b 0a20  remove_squid {. 
│ │ │ +002bfa20: 2070 6163 6b61 6765 207b 2027 7371 7569   package { 'squi
│ │ │ +002bfa30: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +002bfa40: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002bfa50: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remed │ │ │ -002c0860: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002c0870: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002c0880: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -002c08d0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -002c08e0: 735d 0a6d 6173 6b65 6420 3d20 5b22 7371 s].masked = ["sq │ │ │ -002c08f0: 7569 6422 5d0a 3c2f 636f 6465 3e3c 2f70 uid"].

Remediati │ │ │ -002c09b0: 6f6e 204b 7562 6572 6e65 7465 7320 736e on Kubernetes sn │ │ │ -002c09c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
< │ │ │ -002c0ac0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
api
│ │ │ -002c0b00: 5665 7273 696f 6e3a 206d 6163 6869 6e65  Version: machine
│ │ │ -002c0b10: 636f 6e66 6967 7572 6174 696f 6e2e 6f70  configuration.op
│ │ │ -002c0b20: 656e 7368 6966 742e 696f 2f76 310a 6b69  enshift.io/v1.ki
│ │ │ -002c0b30: 6e64 3a20 4d61 6368 696e 6543 6f6e 6669  nd: MachineConfi
│ │ │ -002c0b40: 670a 7370 6563 3a0a 2020 636f 6e66 6967  g.spec:.  config
│ │ │ -002c0b50: 3a0a 2020 2020 6967 6e69 7469 6f6e 3a0a  :.    ignition:.
│ │ │ -002c0b60: 2020 2020 2020 7665 7273 696f 6e3a 2033        version: 3
│ │ │ -002c0b70: 2e31 2e30 0a20 2020 2073 7973 7465 6d64  .1.0.    systemd
│ │ │ -002c0b80: 3a0a 2020 2020 2020 756e 6974 733a 0a20  :.      units:. 
│ │ │ -002c0b90: 2020 2020 202d 206e 616d 653a 2073 7175       - name: squ
│ │ │ -002c0ba0: 6964 2e73 6572 7669 6365 0a20 2020 2020  id.service.     
│ │ │ -002c0bb0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002c0bc0: 650a 2020 2020 2020 2020 6d61 736b 3a20  e.        mask: 
│ │ │ -002c0bd0: 7472 7565 0a20 2020 2020 202d 206e 616d  true.      - nam
│ │ │ -002c0be0: 653a 2073 7175 6964 2e73 6f63 6b65 740a  e: squid.socket.
│ │ │ -002c0bf0: 2020 2020 2020 2020 656e 6162 6c65 643a          enabled:
│ │ │ -002c0c00: 2066 616c 7365 0a20 2020 2020 2020 206d   false.        m
│ │ │ -002c0c10: 6173 6b3a 2074 7275 650a 3c2f 636f 6465  ask: true.
Remed │ │ │ -002c0cd0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002c0ce0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002c0a50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002c0a60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002c0a80: 3c2f 7468 3e3c 7464 3e6d 6564 6975 6d3c medium< │ │ │ -002c0a90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:true
Strategy: │ │ │ -002c0ad0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c0ae0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -002c0d70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002c0d80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002c0da0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002c0dc0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002c0dd0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002c0e10: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002c0e20: 6520 6469 7361 626c 655f 7371 7569 640a e disable_squid. │ │ │ -002c0e30: 0a63 6c61 7373 2064 6973 6162 6c65 5f73 .class disable_s │ │ │ -002c0e40: 7175 6964 207b 0a20 2073 6572 7669 6365 quid {. service │ │ │ -002c0e50: 207b 2773 7175 6964 273a 0a20 2020 2065 {'squid':. e │ │ │ -002c0e60: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ -002c0e70: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ -002c0e80: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ -002c0e90: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ -002c0f50: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002c0f60: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002c0fe0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002c0ff0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002c1000: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002c1040: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002c1050: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002c1070: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002c1080: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -002c10a0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -002c10b0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -002c10c0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -002c10d0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -002c10e0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002c10f0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002c1100: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002c1110: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002c1120: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002c1130: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -002c1140: 7175 6964 5f64 6973 6162 6c65 640a 2020  quid_disabled.  
│ │ │ -002c1150: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -002c1160: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ -002c1170: 626c 6520 5371 7569 6420 2d20 4469 7361  ble Squid - Disa
│ │ │ -002c1180: 626c 6520 7365 7276 6963 6520 7371 7569  ble service squi
│ │ │ -002c1190: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -002c11a0: 6e61 6d65 3a20 4469 7361 626c 6520 5371  name: Disable Sq
│ │ │ -002c11b0: 7569 6420 2d20 436f 6c6c 6563 7420 7379  uid - Collect sy
│ │ │ -002c11c0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002c11d0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002c11e0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002c11f0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002c1200: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002c1210: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -002c1220: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -002c1230: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002c1240: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002c1250: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002c1260: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002c1270: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002c1280: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002c1290: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002c12a0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002c12b0: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ -002c12c0: 6964 202d 2045 6e73 7572 6520 7371 7569  id - Ensure squi
│ │ │ -002c12d0: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -002c12e0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -002c12f0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002c1300: 0a20 2020 2020 206e 616d 653a 2073 7175  .      name: squ
│ │ │ -002c1310: 6964 2e73 6572 7669 6365 0a20 2020 2020  id.service.     
│ │ │ -002c1320: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002c1330: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -002c1340: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -002c1350: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002c1360: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002c1370: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -002c1380: 2073 6561 7263 6828 2273 7175 6964 2e73   search("squid.s
│ │ │ -002c1390: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -002c13a0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -002c13b0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -002c13c0: 4578 6973 7473 202d 2073 7175 6964 2e73  Exists - squid.s
│ │ │ -002c13d0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -002c13e0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -002c13f0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -002c1400: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002c1410: 7371 7569 642e 736f 636b 6574 0a20 2020  squid.socket.   
│ │ │ -002c1420: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002c1430: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002c1440: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002c1450: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002c1460: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002c1470: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -002c1480: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002c1490: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002c14a0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002c14b0: 626c 6520 5371 7569 6420 2d20 4469 7361  ble Squid - Disa
│ │ │ -002c14c0: 626c 6520 536f 636b 6574 2073 7175 6964  ble Socket squid
│ │ │ -002c14d0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002c14e0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002c14f0: 2020 2020 6e61 6d65 3a20 7371 7569 642e      name: squid.
│ │ │ -002c1500: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -002c1510: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002c1520: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002c1530: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002c1540: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -002c1550: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002c1560: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -002c1570: 2073 6561 7263 6828 2273 7175 6964 2e73   search("squid.s
│ │ │ -002c1580: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -002c1590: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -002c15a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002c15b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002c15c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002c15d0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -002c15e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002c15f0: 2020 2d20 7365 7276 6963 655f 7371 7569    - service_squi
│ │ │ -002c1600: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -002c1610: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -002c1620: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e  lock.  - unknown
│ │ │ -002c1630: 5f73 6576 6572 6974 790a 2020 7768 656e  _severity.  when
│ │ │ -002c1640: 3a20 2820 2273 7175 6964 2220 696e 2061  : ( "squid" in a
│ │ │ -002c1650: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -002c1660: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ -002c1670: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -002c1680: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -002c1690: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).
Com │ │ │ +002c0900: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002c0930: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002c0950: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002c0960: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002c0980: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002c0990: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002c09b0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002c09c0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002c09d0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002c09e0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002c09f0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002c0a00: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002c0a10: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002c0a20: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002c0a30: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +002c0a40: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002c0a50: 6963 655f 7371 7569 645f 6469 7361 626c  ice_squid_disabl
│ │ │ +002c0a60: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +002c0a70: 6576 6572 6974 790a 0a2d 206e 616d 653a  everity..- name:
│ │ │ +002c0a80: 2044 6973 6162 6c65 2053 7175 6964 202d   Disable Squid -
│ │ │ +002c0a90: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +002c0aa0: 2073 7175 6964 0a20 2062 6c6f 636b 3a0a   squid.  block:.
│ │ │ +002c0ab0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002c0ac0: 6c65 2053 7175 6964 202d 2043 6f6c 6c65  le Squid - Colle
│ │ │ +002c0ad0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +002c0ae0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +002c0af0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +002c0b00: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002c0b10: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002c0b20: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002c0b30: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +002c0b40: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +002c0b50: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +002c0b60: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002c0b70: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002c0b80: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +002c0b90: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002c0ba0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002c0bb0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002c0bc0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002c0bd0: 6520 5371 7569 6420 2d20 456e 7375 7265  e Squid - Ensure
│ │ │ +002c0be0: 2073 7175 6964 2e73 6572 7669 6365 2069   squid.service i
│ │ │ +002c0bf0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +002c0c00: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002c0c10: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002c0c20: 3a20 7371 7569 642e 7365 7276 6963 650a  : squid.service.
│ │ │ +002c0c30: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002c0c40: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +002c0c50: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002c0c60: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002c0c70: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +002c0c80: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002c0c90: 6573 2069 7320 7365 6172 6368 2822 7371  es is search("sq
│ │ │ +002c0ca0: 7569 642e 7365 7276 6963 6522 2c20 6d75  uid.service", mu
│ │ │ +002c0cb0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +002c0cc0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +002c0cd0: 636b 6574 2045 7869 7374 7320 2d20 7371  cket Exists - sq
│ │ │ +002c0ce0: 7569 642e 736f 636b 6574 0a20 2020 2061  uid.socket.    a
│ │ │ +002c0cf0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +002c0d00: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +002c0d10: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +002c0d20: 696c 6573 2073 7175 6964 2e73 6f63 6b65  iles squid.socke
│ │ │ +002c0d30: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +002c0d40: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002c0d50: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002c0d60: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002c0d70: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +002c0d80: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +002c0d90: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002c0da0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002c0db0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002c0dc0: 2044 6973 6162 6c65 2053 7175 6964 202d   Disable Squid -
│ │ │ +002c0dd0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ +002c0de0: 7371 7569 640a 2020 2020 616e 7369 626c  squid.    ansibl
│ │ │ +002c0df0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +002c0e00: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +002c0e10: 7175 6964 2e73 6f63 6b65 740a 2020 2020  quid.socket.    
│ │ │ +002c0e20: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002c0e30: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002c0e40: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +002c0e50: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +002c0e60: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002c0e70: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002c0e80: 6573 2069 7320 7365 6172 6368 2822 7371  es is search("sq
│ │ │ +002c0e90: 7569 642e 736f 636b 6574 222c 206d 756c  uid.socket", mul
│ │ │ +002c0ea0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +002c0eb0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +002c0ec0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002c0ed0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002c0ee0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002c0ef0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002c0f00: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002c0f10: 5f73 7175 6964 5f64 6973 6162 6c65 640a  _squid_disabled.
│ │ │ +002c0f20: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002c0f30: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ +002c0f40: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ +002c0f50: 2077 6865 6e3a 2028 2022 7371 7569 6422   when: ( "squid"
│ │ │ +002c0f60: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002c0f70: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ +002c0f80: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002c0f90: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002c0fa0: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
< │ │ │ +002c0fc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002c0fd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002c0fe0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002c0ff0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002c1000: 6431 3134 3622 2074 6162 696e 6465 783d d1146" tabindex= │ │ │ +002c1010: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002c1020: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002c1030: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002c1040: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002c1050: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002c1060: 6564 6961 7469 6f6e 204b 7562 6572 6e65 ediation Kuberne │ │ │ +002c1070: 7465 7320 736e 6970 7065 7420 e287 b23c tes snippet ...< │ │ │ +002c1080: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ +002c1150: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +002c1170: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002c11a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +002c1130: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6d ption:m │ │ │ +002c1140: 6564 6975 6d3c 2f74 643e 3c2f 7472 3e3c edium
Reboot:true
Str │ │ │ +002c1180: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002c1190: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
apiVersion: m
│ │ │ +002c11c0: 6163 6869 6e65 636f 6e66 6967 7572 6174  achineconfigurat
│ │ │ +002c11d0: 696f 6e2e 6f70 656e 7368 6966 742e 696f  ion.openshift.io
│ │ │ +002c11e0: 2f76 310a 6b69 6e64 3a20 4d61 6368 696e  /v1.kind: Machin
│ │ │ +002c11f0: 6543 6f6e 6669 670a 7370 6563 3a0a 2020  eConfig.spec:.  
│ │ │ +002c1200: 636f 6e66 6967 3a0a 2020 2020 6967 6e69  config:.    igni
│ │ │ +002c1210: 7469 6f6e 3a0a 2020 2020 2020 7665 7273  tion:.      vers
│ │ │ +002c1220: 696f 6e3a 2033 2e31 2e30 0a20 2020 2073  ion: 3.1.0.    s
│ │ │ +002c1230: 7973 7465 6d64 3a0a 2020 2020 2020 756e  ystemd:.      un
│ │ │ +002c1240: 6974 733a 0a20 2020 2020 202d 206e 616d  its:.      - nam
│ │ │ +002c1250: 653a 2073 7175 6964 2e73 6572 7669 6365  e: squid.service
│ │ │ +002c1260: 0a20 2020 2020 2020 2065 6e61 626c 6564  .        enabled
│ │ │ +002c1270: 3a20 6661 6c73 650a 2020 2020 2020 2020  : false.        
│ │ │ +002c1280: 6d61 736b 3a20 7472 7565 0a20 2020 2020  mask: true.     
│ │ │ +002c1290: 202d 206e 616d 653a 2073 7175 6964 2e73   - name: squid.s
│ │ │ +002c12a0: 6f63 6b65 740a 2020 2020 2020 2020 656e  ocket.        en
│ │ │ +002c12b0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002c12c0: 2020 2020 206d 6173 6b3a 2074 7275 650a       mask: true.
│ │ │ +002c12d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002c1390: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002c13a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002c1470: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002c1480: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002c14d0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002c14e0: 7371 7569 640a 0a63 6c61 7373 2064 6973  squid..class dis
│ │ │ +002c14f0: 6162 6c65 5f73 7175 6964 207b 0a20 2073  able_squid {.  s
│ │ │ +002c1500: 6572 7669 6365 207b 2773 7175 6964 273a  ervice {'squid':
│ │ │ +002c1510: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +002c1520: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +002c1530: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +002c1540: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ +002c1600: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +002c1610: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +002c1620: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[custo │ │ │ +002c1670: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +002c1680: 6573 5d0a 6d61 736b 6564 203d 205b 2273 es].masked = ["s │ │ │ +002c1690: 7175 6964 225d 0a3c 2f63 6f64 653e 3c2f quid"].Rem │ │ │ -002c2e30: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002c2e40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002c2e50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>

low
Disru │ │ │ +002c1450: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002c1460: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002c14a0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002c14b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -002c2ef0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002c2f40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002c2f80: 636c 7564 6520 7265 6d6f 7665 5f73 616d  clude remove_sam
│ │ │ -002c2f90: 6261 0a0a 636c 6173 7320 7265 6d6f 7665  ba..class remove
│ │ │ -002c2fa0: 5f73 616d 6261 207b 0a20 2070 6163 6b61  _samba {.  packa
│ │ │ -002c2fb0: 6765 207b 2027 7361 6d62 6127 3a0a 2020  ge { 'samba':.  
│ │ │ -002c2fc0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002c2fd0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -002c2fe0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002c3090: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002c30a0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002c30b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ -002c2ed0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002c2f00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002c2f20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c2f30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002c2f50: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c2f60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -002c3180: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002c3190: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -002c31f0: 616c 6c20 5361 6d62 6120 5061 636b 6167  all Samba Packag
│ │ │ -002c3200: 653a 2045 6e73 7572 6520 7361 6d62 6120  e: Ensure samba 
│ │ │ -002c3210: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -002c3220: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002c3230: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002c3240: 2073 616d 6261 0a20 2020 2073 7461 7465   samba.    state
│ │ │ -002c3250: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -002c3260: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002c3270: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002c3280: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002c3290: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002c32a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002c32b0: 0a20 202d 2070 6163 6b61 6765 5f73 616d  .  - package_sam
│ │ │ -002c32c0: 6261 5f72 656d 6f76 6564 0a20 202d 2075  ba_removed.  - u
│ │ │ -002c32d0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +002c2e30: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +002c2e40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +002c2e50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -002c3160: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002c3170: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002c31b0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002c31c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002c2ee0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c2ef0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002c2f40: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002c2f80: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002c2f90: 2053 616d 6261 2050 6163 6b61 6765 3a20   Samba Package: 
│ │ │ +002c2fa0: 456e 7375 7265 2073 616d 6261 2069 7320  Ensure samba is 
│ │ │ +002c2fb0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +002c2fc0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +002c2fd0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7361  ge:.    name: sa
│ │ │ +002c2fe0: 6d62 610a 2020 2020 7374 6174 653a 2061  mba.    state: a
│ │ │ +002c2ff0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +002c3000: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002c3010: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002c3020: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002c3030: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +002c3040: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002c3050: 2d20 7061 636b 6167 655f 7361 6d62 615f  - package_samba_
│ │ │ +002c3060: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +002c3070: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +002c3090: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002c3130: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002c3140: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002c3150: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +002c2ed0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002c2f00: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002c2f10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002c2f50: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002c2f60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002c31e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c31f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002c3240: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002c3280: 6e63 6c75 6465 2072 656d 6f76 655f 7361  nclude remove_sa
│ │ │ +002c3290: 6d62 610a 0a63 6c61 7373 2072 656d 6f76  mba..class remov
│ │ │ +002c32a0: 655f 7361 6d62 6120 7b0a 2020 7061 636b  e_samba {.  pack
│ │ │ +002c32b0: 6167 6520 7b20 2773 616d 6261 273a 0a20  age { 'samba':. 
│ │ │ +002c32c0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002c32d0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002c32e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remed │ │ │ -002c4070: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002c4080: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002c4090: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -002c40e0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -002c40f0: 735d 0a6d 6173 6b65 6420 3d20 5b22 736d s].masked = ["sm │ │ │ -002c4100: 6264 225d 0a3c 2f63 6f64 653e 3c2f 7072 bd"].
Remediatio │ │ │ -002c41c0: 6e20 4b75 6265 726e 6574 6573 2073 6e69 n Kubernetes sni │ │ │ -002c41d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002c41e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
C │ │ │ +002c31d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002c3200: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002c3210: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002c3250: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002c3260: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -002c4280: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c
Compl │ │ │ -002c4260: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002c4270: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002c4290: 2f74 683e 3c74 643e 6d65 6469 756d 3c2f /th>medium
│ │ │ -002c42b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c42c0: 7472 7565 3c2f 7464 3e3c 2f74 723e 3c74 true
Strategy:< │ │ │ -002c42e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002c42f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
apiV
│ │ │ -002c4310: 6572 7369 6f6e 3a20 6d61 6368 696e 6563  ersion: machinec
│ │ │ -002c4320: 6f6e 6669 6775 7261 7469 6f6e 2e6f 7065  onfiguration.ope
│ │ │ -002c4330: 6e73 6869 6674 2e69 6f2f 7631 0a6b 696e  nshift.io/v1.kin
│ │ │ -002c4340: 643a 204d 6163 6869 6e65 436f 6e66 6967  d: MachineConfig
│ │ │ -002c4350: 0a73 7065 633a 0a20 2063 6f6e 6669 673a  .spec:.  config:
│ │ │ -002c4360: 0a20 2020 2069 676e 6974 696f 6e3a 0a20  .    ignition:. 
│ │ │ -002c4370: 2020 2020 2076 6572 7369 6f6e 3a20 332e       version: 3.
│ │ │ -002c4380: 312e 300a 2020 2020 7379 7374 656d 643a  1.0.    systemd:
│ │ │ -002c4390: 0a20 2020 2020 2075 6e69 7473 3a0a 2020  .      units:.  
│ │ │ -002c43a0: 2020 2020 2d20 6e61 6d65 3a20 736d 6264      - name: smbd
│ │ │ -002c43b0: 2e73 6572 7669 6365 0a20 2020 2020 2020  .service.       
│ │ │ -002c43c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002c43d0: 2020 2020 2020 2020 6d61 736b 3a20 7472          mask: tr
│ │ │ -002c43e0: 7565 0a20 2020 2020 202d 206e 616d 653a  ue.      - name:
│ │ │ -002c43f0: 2073 6d62 642e 736f 636b 6574 0a20 2020   smbd.socket.   
│ │ │ -002c4400: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002c4410: 6c73 650a 2020 2020 2020 2020 6d61 736b  lse.        mask
│ │ │ -002c4420: 3a20 7472 7565 0a3c 2f63 6f64 653e 3c2f  : true.
Remediat │ │ │ -002c44e0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002c44f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002c4530: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002c4540: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002c4550: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002c4560: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002c4570: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002c4580: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002c4590: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002c45d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002c45e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002c4600: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -002c4610: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -002c4630: 6973 6162 6c65 5f73 6d62 640a 0a63 6c61  isable_smbd..cla
│ │ │ -002c4640: 7373 2064 6973 6162 6c65 5f73 6d62 6420  ss disable_smbd 
│ │ │ -002c4650: 7b0a 2020 7365 7276 6963 6520 7b27 736d  {.  service {'sm
│ │ │ -002c4660: 6264 273a 0a20 2020 2065 6e61 626c 6520  bd':.    enable 
│ │ │ -002c4670: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -002c4680: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -002c4690: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -002c46a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002c4750: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002c4760: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002c4770: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002c4840: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002c4850: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -002c48b0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002c48c0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -002c48d0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -002c48e0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -002c48f0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002c4900: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002c4910: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002c4920: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -002c4930: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002c4940: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002c4950: 2d20 7365 7276 6963 655f 736d 625f 6469  - service_smb_di
│ │ │ -002c4960: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -002c4970: 4469 7361 626c 6520 5361 6d62 6120 2d20  Disable Samba - 
│ │ │ -002c4980: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -002c4990: 736d 6264 0a20 2062 6c6f 636b 3a0a 0a20  smbd.  block:.. 
│ │ │ -002c49a0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002c49b0: 2053 616d 6261 202d 2043 6f6c 6c65 6374   Samba - Collect
│ │ │ -002c49c0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -002c49d0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -002c49e0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -002c49f0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002c4a00: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002c4a10: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002c4a20: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -002c4a30: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002c4a40: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -002c4a50: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002c4a60: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002c4a70: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -002c4a80: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002c4a90: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002c4aa0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002c4ab0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002c4ac0: 5361 6d62 6120 2d20 456e 7375 7265 2073  Samba - Ensure s
│ │ │ -002c4ad0: 6d62 642e 7365 7276 6963 6520 6973 204d  mbd.service is M
│ │ │ -002c4ae0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -002c4af0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -002c4b00: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -002c4b10: 6d62 642e 7365 7276 6963 650a 2020 2020  mbd.service.    
│ │ │ -002c4b20: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -002c4b30: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -002c4b40: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -002c4b50: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -002c4b60: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -002c4b70: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -002c4b80: 7320 7365 6172 6368 2822 736d 6264 2e73  s search("smbd.s
│ │ │ -002c4b90: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -002c4ba0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -002c4bb0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -002c4bc0: 4578 6973 7473 202d 2073 6d62 642e 736f  Exists - smbd.so
│ │ │ -002c4bd0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002c4be0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002c4bf0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002c4c00: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ -002c4c10: 6d62 642e 736f 636b 6574 0a20 2020 2072  mbd.socket.    r
│ │ │ -002c4c20: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -002c4c30: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -002c4c40: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -002c4c50: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -002c4c60: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002c4c70: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -002c4c80: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -002c4c90: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -002c4ca0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002c4cb0: 6520 5361 6d62 6120 2d20 4469 7361 626c  e Samba - Disabl
│ │ │ -002c4cc0: 6520 536f 636b 6574 2073 6d62 640a 2020  e Socket smbd.  
│ │ │ -002c4cd0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002c4ce0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002c4cf0: 206e 616d 653a 2073 6d62 642e 736f 636b   name: smbd.sock
│ │ │ -002c4d00: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ -002c4d10: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ -002c4d20: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002c4d30: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -002c4d40: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ -002c4d50: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ -002c4d60: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -002c4d70: 7263 6828 2273 6d62 642e 736f 636b 6574  rch("smbd.socket
│ │ │ -002c4d80: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -002c4d90: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -002c4da0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002c4db0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002c4dc0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002c4dd0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -002c4de0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002c4df0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002c4e00: 7365 7276 6963 655f 736d 625f 6469 7361  service_smb_disa
│ │ │ -002c4e10: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -002c4e20: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -002c4e30: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -002c4e40: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -002c4e50: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002c4070: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +002c4080: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disru │ │ │ -002c4820: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002c4830: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002c4870: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002c4880: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +002c4110: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002c4140: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002c4160: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002c4170: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002c4190: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002c41a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002c41c0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002c41d0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002c41e0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002c41f0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002c4200: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +002c4210: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002c4220: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002c4230: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002c4240: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002c4250: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002c4260: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002c4270: 7669 6365 5f73 6d62 5f64 6973 6162 6c65  vice_smb_disable
│ │ │ +002c4280: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +002c4290: 6c65 2053 616d 6261 202d 2044 6973 6162  le Samba - Disab
│ │ │ +002c42a0: 6c65 2073 6572 7669 6365 2073 6d62 640a  le service smbd.
│ │ │ +002c42b0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +002c42c0: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ +002c42d0: 6120 2d20 436f 6c6c 6563 7420 7379 7374  a - Collect syst
│ │ │ +002c42e0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +002c42f0: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +002c4300: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +002c4310: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002c4320: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002c4330: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +002c4340: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +002c4350: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +002c4360: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +002c4370: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002c4380: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +002c4390: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002c43a0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002c43b0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002c43c0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +002c43d0: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ +002c43e0: 202d 2045 6e73 7572 6520 736d 6264 2e73   - Ensure smbd.s
│ │ │ +002c43f0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +002c4400: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002c4410: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002c4420: 2020 2020 6e61 6d65 3a20 736d 6264 2e73      name: smbd.s
│ │ │ +002c4430: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002c4440: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002c4450: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002c4460: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002c4470: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +002c4480: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +002c4490: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002c44a0: 7263 6828 2273 6d62 642e 7365 7276 6963  rch("smbd.servic
│ │ │ +002c44b0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +002c44c0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +002c44d0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +002c44e0: 7320 2d20 736d 6264 2e73 6f63 6b65 740a  s - smbd.socket.
│ │ │ +002c44f0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002c4500: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002c4510: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002c4520: 6e69 742d 6669 6c65 7320 736d 6264 2e73  nit-files smbd.s
│ │ │ +002c4530: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002c4540: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002c4550: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002c4560: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002c4570: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002c4580: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002c4590: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002c45a0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002c45b0: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002c45c0: 616d 653a 2044 6973 6162 6c65 2053 616d  ame: Disable Sam
│ │ │ +002c45d0: 6261 202d 2044 6973 6162 6c65 2053 6f63  ba - Disable Soc
│ │ │ +002c45e0: 6b65 7420 736d 6264 0a20 2020 2061 6e73  ket smbd.    ans
│ │ │ +002c45f0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002c4600: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002c4610: 3a20 736d 6264 2e73 6f63 6b65 740a 2020  : smbd.socket.  
│ │ │ +002c4620: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002c4630: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +002c4640: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +002c4650: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +002c4660: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +002c4670: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +002c4680: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +002c4690: 736d 6264 2e73 6f63 6b65 7422 2c20 6d75  smbd.socket", mu
│ │ │ +002c46a0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +002c46b0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +002c46c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002c46d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002c46e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002c46f0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +002c4700: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002c4710: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002c4720: 6365 5f73 6d62 5f64 6973 6162 6c65 640a  ce_smb_disabled.
│ │ │ +002c4730: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002c4740: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +002c4750: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002c4760: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002c4770: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +002c4830: 6469 6174 696f 6e20 4b75 6265 726e 6574 diation Kubernet │ │ │ +002c4840: 6573 2073 6e69 7070 6574 20e2 87b2 3c2f es snippet ...
< │ │ │ +002c4940: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002c4970: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
apiVersion: ma
│ │ │ +002c4990: 6368 696e 6563 6f6e 6669 6775 7261 7469  chineconfigurati
│ │ │ +002c49a0: 6f6e 2e6f 7065 6e73 6869 6674 2e69 6f2f  on.openshift.io/
│ │ │ +002c49b0: 7631 0a6b 696e 643a 204d 6163 6869 6e65  v1.kind: Machine
│ │ │ +002c49c0: 436f 6e66 6967 0a73 7065 633a 0a20 2063  Config.spec:.  c
│ │ │ +002c49d0: 6f6e 6669 673a 0a20 2020 2069 676e 6974  onfig:.    ignit
│ │ │ +002c49e0: 696f 6e3a 0a20 2020 2020 2076 6572 7369  ion:.      versi
│ │ │ +002c49f0: 6f6e 3a20 332e 312e 300a 2020 2020 7379  on: 3.1.0.    sy
│ │ │ +002c4a00: 7374 656d 643a 0a20 2020 2020 2075 6e69  stemd:.      uni
│ │ │ +002c4a10: 7473 3a0a 2020 2020 2020 2d20 6e61 6d65  ts:.      - name
│ │ │ +002c4a20: 3a20 736d 6264 2e73 6572 7669 6365 0a20  : smbd.service. 
│ │ │ +002c4a30: 2020 2020 2020 2065 6e61 626c 6564 3a20         enabled: 
│ │ │ +002c4a40: 6661 6c73 650a 2020 2020 2020 2020 6d61  false.        ma
│ │ │ +002c4a50: 736b 3a20 7472 7565 0a20 2020 2020 202d  sk: true.      -
│ │ │ +002c4a60: 206e 616d 653a 2073 6d62 642e 736f 636b   name: smbd.sock
│ │ │ +002c4a70: 6574 0a20 2020 2020 2020 2065 6e61 626c  et.        enabl
│ │ │ +002c4a80: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002c4a90: 2020 6d61 736b 3a20 7472 7565 0a3c 2f63    mask: true.
│ │ │ +002c4ab0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002c4b50: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002c4b60: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002c4b70: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +002c4900: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6d65 tion:me │ │ │ +002c4910: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Reboot:true
Stra │ │ │ +002c4950: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002c4960: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +002c4c00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c4c10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002c4c60: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +002c4ca0: 6c75 6465 2064 6973 6162 6c65 5f73 6d62  lude disable_smb
│ │ │ +002c4cb0: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +002c4cc0: 5f73 6d62 6420 7b0a 2020 7365 7276 6963  _smbd {.  servic
│ │ │ +002c4cd0: 6520 7b27 736d 6264 273a 0a20 2020 2065  e {'smbd':.    e
│ │ │ +002c4ce0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +002c4cf0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +002c4d00: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +002c4d10: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediatio
│ │ │ +002c4dd0: 6e20 4f53 4275 696c 6420 426c 7565 7072  n OSBuild Bluepr
│ │ │ +002c4de0: 696e 7420 736e 6970 7065 7420 e287 b23c  int snippet ...<
│ │ │ +002c4df0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
C │ │ │ +002c4bf0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002c4c20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002c4c30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002c4c70: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +002c4c80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ -002c6610: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002c6660: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002c66a0: 636c 7564 6520 7265 6d6f 7665 5f73 6e6d  clude remove_snm
│ │ │ -002c66b0: 7064 0a0a 636c 6173 7320 7265 6d6f 7665  pd..class remove
│ │ │ -002c66c0: 5f73 6e6d 7064 207b 0a20 2070 6163 6b61  _snmpd {.  packa
│ │ │ -002c66d0: 6765 207b 2027 736e 6d70 6427 3a0a 2020  ge { 'snmpd':.  
│ │ │ -002c66e0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002c66f0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -002c6700: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002c67b0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002c67c0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002c67d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ -002c65f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002c6620: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002c6640: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002c6650: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002c6670: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002c6680: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -002c68a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002c68b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -002c6910: 616c 6c20 6e65 742d 736e 6d70 2050 6163  all net-snmp Pac
│ │ │ -002c6920: 6b61 6765 3a20 456e 7375 7265 2073 6e6d  kage: Ensure snm
│ │ │ -002c6930: 7064 2069 7320 7265 6d6f 7665 6427 0a20  pd is removed'. 
│ │ │ -002c6940: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002c6950: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002c6960: 6d65 3a20 736e 6d70 640a 2020 2020 7374  me: snmpd.    st
│ │ │ -002c6970: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -002c6980: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -002c6990: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002c69a0: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -002c69b0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002c69c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002c69d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002c69e0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -002c69f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -002c6a00: 636b 6167 655f 6e65 742d 736e 6d70 5f72  ckage_net-snmp_r
│ │ │ -002c6a10: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ -002c6a20: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
│ │ │ +002c6570: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -002c6880: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002c6890: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002c68d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002c68e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002c6600: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002c6610: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002c6660: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002c66a0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002c66b0: 206e 6574 2d73 6e6d 7020 5061 636b 6167   net-snmp Packag
│ │ │ +002c66c0: 653a 2045 6e73 7572 6520 736e 6d70 6420  e: Ensure snmpd 
│ │ │ +002c66d0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002c66e0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002c66f0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002c6700: 2073 6e6d 7064 0a20 2020 2073 7461 7465   snmpd.    state
│ │ │ +002c6710: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +002c6720: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002c6730: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +002c6740: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +002c6750: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002c6760: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002c6770: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002c6780: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002c6790: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002c67a0: 6765 5f6e 6574 2d73 6e6d 705f 7265 6d6f  ge_net-snmp_remo
│ │ │ +002c67b0: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f  ved.  - unknown_
│ │ │ +002c67c0: 7365 7665 7269 7479 0a3c 2f63 6f64 653e  severity.
│ │ │ +002c67d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +002c6880: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +002c6890: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002c68a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
C │ │ │ +002c65f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002c6620: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002c6630: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002c6670: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002c6680: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +002c6940: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002c6960: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002c6990: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002c6920: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002c6930: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002c6950: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002c6970: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002c6980: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002c69c0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +002c69d0: 6465 2072 656d 6f76 655f 736e 6d70 640a de remove_snmpd. │ │ │ +002c69e0: 0a63 6c61 7373 2072 656d 6f76 655f 736e .class remove_sn │ │ │ +002c69f0: 6d70 6420 7b0a 2020 7061 636b 6167 6520 mpd {. package │ │ │ +002c6a00: 7b20 2773 6e6d 7064 273a 0a20 2020 2065 { 'snmpd':. e │ │ │ +002c6a10: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +002c6a20: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ 002c6a40: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 002c6a50: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 002c6a60: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 002c6a70: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002c6a80: 6431 3136 3322 2074 6162 696e 6465 783d d1163" tabindex= │ │ │ 002c6a90: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -182142,243 +182142,243 @@ │ │ │ 002c77d0: 6172 6765 743d 2223 6964 3131 3635 2220 arget="#id1165" │ │ │ 002c77e0: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 002c77f0: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 002c7800: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 002c7810: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 002c7820: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 002c7830: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -002c7840: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -002c7850: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -002c7860: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ -002c78b0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -002c78c0: 736b 6564 203d 205b 2273 6e6d 7064 225d  sked = ["snmpd"]
│ │ │ -002c78d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ku │ │ │ -002c7990: 6265 726e 6574 6573 2073 6e69 7070 6574 bernetes snippet │ │ │ -002c79a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002c7a20: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002c7a30: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002c7a50: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002c7a60: 3c74 643e 6d65 6469 756d 3c2f 7464 3e3c medium< │ │ │ -002c7a70: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>Rebo │ │ │ -002c7a80: 6f74 3a3c 2f74 683e 3c74 643e 7472 7565 ot:true │ │ │ -002c7a90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002c7ab0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -002c7ac0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 apiVersi │ │ │ -002c7ae0: 6f6e 3a20 6d61 6368 696e 6563 6f6e 6669 on: machineconfi │ │ │ -002c7af0: 6775 7261 7469 6f6e 2e6f 7065 6e73 6869 guration.openshi │ │ │ -002c7b00: 6674 2e69 6f2f 7631 0a6b 696e 643a 204d ft.io/v1.kind: M │ │ │ -002c7b10: 6163 6869 6e65 436f 6e66 6967 0a73 7065 achineConfig.spe │ │ │ -002c7b20: 633a 0a20 2063 6f6e 6669 673a 0a20 2020 c:. config:. │ │ │ -002c7b30: 2069 676e 6974 696f 6e3a 0a20 2020 2020 ignition:. │ │ │ -002c7b40: 2076 6572 7369 6f6e 3a20 332e 312e 300a version: 3.1.0. │ │ │ -002c7b50: 2020 2020 7379 7374 656d 643a 0a20 2020 systemd:. │ │ │ -002c7b60: 2020 2075 6e69 7473 3a0a 2020 2020 2020 units:. │ │ │ -002c7b70: 2d20 6e61 6d65 3a20 736e 6d70 642e 7365 - name: snmpd.se │ │ │ -002c7b80: 7276 6963 650a 2020 2020 2020 2020 656e rvice. en │ │ │ -002c7b90: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -002c7ba0: 2020 2020 206d 6173 6b3a 2074 7275 650a mask: true. │ │ │ -002c7bb0: 2020 2020 2020 2d20 6e61 6d65 3a20 736e - name: sn │ │ │ -002c7bc0: 6d70 642e 736f 636b 6574 0a20 2020 2020 mpd.socket. │ │ │ -002c7bd0: 2020 2065 6e61 626c 6564 3a20 6661 6c73 enabled: fals │ │ │ -002c7be0: 650a 2020 2020 2020 2020 6d61 736b 3a20 e. mask: │ │ │ -002c7bf0: 7472 7565 0a3c 2f63 6f64 653e 3c2f 7072 true.
Remediatio │ │ │ -002c7cb0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002c7cc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002c7d40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002c7d50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002c7d70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002c7d80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002c7da0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002c7dc0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -002c7df0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -002c7e00: 6162 6c65 5f73 6e6d 7064 0a0a 636c 6173  able_snmpd..clas
│ │ │ -002c7e10: 7320 6469 7361 626c 655f 736e 6d70 6420  s disable_snmpd 
│ │ │ -002c7e20: 7b0a 2020 7365 7276 6963 6520 7b27 736e  {.  service {'sn
│ │ │ -002c7e30: 6d70 6427 3a0a 2020 2020 656e 6162 6c65  mpd':.    enable
│ │ │ -002c7e40: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ -002c7e50: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -002c7e60: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ -002c7e70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -002c7f30: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002c7f40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002c7fc0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002c7fe0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002c8030: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002c8060: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -002c8080: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -002c8090: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002c80a0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002c80b0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002c80c0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002c80d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002c80e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002c80f0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -002c8100: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002c8110: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002c8120: 202d 2073 6572 7669 6365 5f73 6e6d 7064   - service_snmpd
│ │ │ -002c8130: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -002c8140: 653a 2044 6973 6162 6c65 2073 6e6d 7064  e: Disable snmpd
│ │ │ -002c8150: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002c8160: 6c65 2073 6572 7669 6365 2073 6e6d 7064  le service snmpd
│ │ │ -002c8170: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -002c8180: 616d 653a 2044 6973 6162 6c65 2073 6e6d  ame: Disable snm
│ │ │ -002c8190: 7064 2053 6572 7669 6365 202d 2043 6f6c  pd Service - Col
│ │ │ -002c81a0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -002c81b0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -002c81c0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -002c81d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002c81e0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002c81f0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002c8200: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -002c8210: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -002c8220: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -002c8230: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002c8240: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002c8250: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -002c8260: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -002c8270: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002c8280: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002c8290: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002c82a0: 626c 6520 736e 6d70 6420 5365 7276 6963  ble snmpd Servic
│ │ │ -002c82b0: 6520 2d20 456e 7375 7265 2073 6e6d 7064  e - Ensure snmpd
│ │ │ -002c82c0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -002c82d0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -002c82e0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002c82f0: 2020 2020 2020 6e61 6d65 3a20 736e 6d70        name: snmp
│ │ │ -002c8300: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -002c8310: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -002c8320: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -002c8330: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -002c8340: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -002c8350: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -002c8360: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -002c8370: 7365 6172 6368 2822 736e 6d70 642e 7365  search("snmpd.se
│ │ │ -002c8380: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ -002c8390: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ -002c83a0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ -002c83b0: 7869 7374 7320 2d20 736e 6d70 642e 736f  xists - snmpd.so
│ │ │ -002c83c0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -002c83d0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002c83e0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002c83f0: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ -002c8400: 6e6d 7064 2e73 6f63 6b65 740a 2020 2020  nmpd.socket.    
│ │ │ -002c8410: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002c8420: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002c8430: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002c8440: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002c8450: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002c8460: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002c8470: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002c8480: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002c8490: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002c84a0: 6c65 2073 6e6d 7064 2053 6572 7669 6365  le snmpd Service
│ │ │ -002c84b0: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -002c84c0: 7420 736e 6d70 640a 2020 2020 616e 7369  t snmpd.    ansi
│ │ │ -002c84d0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002c84e0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002c84f0: 2073 6e6d 7064 2e73 6f63 6b65 740a 2020   snmpd.socket.  
│ │ │ -002c8500: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002c8510: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -002c8520: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -002c8530: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002c8540: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -002c8550: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -002c8560: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -002c8570: 736e 6d70 642e 736f 636b 6574 222c 206d  snmpd.socket", m
│ │ │ -002c8580: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -002c8590: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -002c85a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002c85b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002c85c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002c85d0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -002c85e0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002c85f0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002c8600: 6963 655f 736e 6d70 645f 6469 7361 626c  ice_snmpd_disabl
│ │ │ -002c8610: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -002c8620: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -002c8630: 6865 6e3a 2028 2022 736e 6d70 2220 696e  hen: ( "snmp" in
│ │ │ -002c8640: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002c8650: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ -002c8660: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002c8670: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002c8680: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +002c7840: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +002c7850: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ +002c78d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +002c7960: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002c7970: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -002c7ff0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002c8000: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002c8040: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002c8050: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexi │ │ │ +002c78e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002c78f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +002c7930: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002c7940: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +002c7990: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +002c79a0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +002c79b0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +002c79c0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +002c79d0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +002c79e0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002c79f0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002c7a00: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002c7a10: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +002c7a20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002c7a30: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +002c7a40: 736e 6d70 645f 6469 7361 626c 6564 0a0a  snmpd_disabled..
│ │ │ +002c7a50: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002c7a60: 736e 6d70 6420 5365 7276 6963 6520 2d20  snmpd Service - 
│ │ │ +002c7a70: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +002c7a80: 736e 6d70 640a 2020 626c 6f63 6b3a 0a0a  snmpd.  block:..
│ │ │ +002c7a90: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002c7aa0: 6520 736e 6d70 6420 5365 7276 6963 6520  e snmpd Service 
│ │ │ +002c7ab0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +002c7ac0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +002c7ad0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +002c7ae0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002c7af0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +002c7b00: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +002c7b10: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +002c7b20: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +002c7b30: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +002c7b40: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002c7b50: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002c7b60: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002c7b70: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +002c7b80: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +002c7b90: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +002c7ba0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +002c7bb0: 2044 6973 6162 6c65 2073 6e6d 7064 2053   Disable snmpd S
│ │ │ +002c7bc0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +002c7bd0: 736e 6d70 642e 7365 7276 6963 6520 6973  snmpd.service is
│ │ │ +002c7be0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +002c7bf0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002c7c00: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002c7c10: 2073 6e6d 7064 2e73 6572 7669 6365 0a20   snmpd.service. 
│ │ │ +002c7c20: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +002c7c30: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +002c7c40: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +002c7c50: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +002c7c60: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +002c7c70: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002c7c80: 7320 6973 2073 6561 7263 6828 2273 6e6d  s is search("snm
│ │ │ +002c7c90: 7064 2e73 6572 7669 6365 222c 206d 756c  pd.service", mul
│ │ │ +002c7ca0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +002c7cb0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +002c7cc0: 6b65 7420 4578 6973 7473 202d 2073 6e6d  ket Exists - snm
│ │ │ +002c7cd0: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ +002c7ce0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +002c7cf0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +002c7d00: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +002c7d10: 6c65 7320 736e 6d70 642e 736f 636b 6574  les snmpd.socket
│ │ │ +002c7d20: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +002c7d30: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002c7d40: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002c7d50: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002c7d60: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +002c7d70: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +002c7d80: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002c7d90: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002c7da0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002c7db0: 4469 7361 626c 6520 736e 6d70 6420 5365  Disable snmpd Se
│ │ │ +002c7dc0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +002c7dd0: 536f 636b 6574 2073 6e6d 7064 0a20 2020  Socket snmpd.   
│ │ │ +002c7de0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002c7df0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +002c7e00: 6e61 6d65 3a20 736e 6d70 642e 736f 636b  name: snmpd.sock
│ │ │ +002c7e10: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +002c7e20: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +002c7e30: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +002c7e40: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +002c7e50: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +002c7e60: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +002c7e70: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002c7e80: 7263 6828 2273 6e6d 7064 2e73 6f63 6b65  rch("snmpd.socke
│ │ │ +002c7e90: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +002c7ea0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +002c7eb0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002c7ec0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002c7ed0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002c7ee0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +002c7ef0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002c7f00: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002c7f10: 2073 6572 7669 6365 5f73 6e6d 7064 5f64   service_snmpd_d
│ │ │ +002c7f20: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +002c7f30: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +002c7f40: 6b0a 2020 7768 656e 3a20 2820 2273 6e6d  k.  when: ( "snm
│ │ │ +002c7f50: 7022 2069 6e20 616e 7369 626c 655f 6661  p" in ansible_fa
│ │ │ +002c7f60: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ +002c7f70: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ +002c7f80: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +002c7f90: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
R │ │ │ +002c8050: 656d 6564 6961 7469 6f6e 204b 7562 6572 emediation Kuber │ │ │ +002c8060: 6e65 7465 7320 736e 6970 7065 7420 e287 netes snippet .. │ │ │ +002c8070: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002c80f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002c8110: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973
Complexity:< │ │ │ +002c8100: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002c8120: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:medium
Reboot: │ │ │ +002c8150: 3c2f 7468 3e3c 7464 3e74 7275 653c 2f74 true
S │ │ │ +002c8170: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002c81a0: 636f 6465 3e61 7069 5665 7273 696f 6e3a  code>apiVersion:
│ │ │ +002c81b0: 206d 6163 6869 6e65 636f 6e66 6967 7572   machineconfigur
│ │ │ +002c81c0: 6174 696f 6e2e 6f70 656e 7368 6966 742e  ation.openshift.
│ │ │ +002c81d0: 696f 2f76 310a 6b69 6e64 3a20 4d61 6368  io/v1.kind: Mach
│ │ │ +002c81e0: 696e 6543 6f6e 6669 670a 7370 6563 3a0a  ineConfig.spec:.
│ │ │ +002c81f0: 2020 636f 6e66 6967 3a0a 2020 2020 6967    config:.    ig
│ │ │ +002c8200: 6e69 7469 6f6e 3a0a 2020 2020 2020 7665  nition:.      ve
│ │ │ +002c8210: 7273 696f 6e3a 2033 2e31 2e30 0a20 2020  rsion: 3.1.0.   
│ │ │ +002c8220: 2073 7973 7465 6d64 3a0a 2020 2020 2020   systemd:.      
│ │ │ +002c8230: 756e 6974 733a 0a20 2020 2020 202d 206e  units:.      - n
│ │ │ +002c8240: 616d 653a 2073 6e6d 7064 2e73 6572 7669  ame: snmpd.servi
│ │ │ +002c8250: 6365 0a20 2020 2020 2020 2065 6e61 626c  ce.        enabl
│ │ │ +002c8260: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002c8270: 2020 6d61 736b 3a20 7472 7565 0a20 2020    mask: true.   
│ │ │ +002c8280: 2020 202d 206e 616d 653a 2073 6e6d 7064     - name: snmpd
│ │ │ +002c8290: 2e73 6f63 6b65 740a 2020 2020 2020 2020  .socket.        
│ │ │ +002c82a0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002c82b0: 2020 2020 2020 206d 6173 6b3a 2074 7275         mask: tru
│ │ │ +002c82c0: 650a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  e.
< │ │ │ +002c82d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002c8380: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002c8390: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002c8410: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002c8430: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002c8480: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +002c84b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +002c84d0: 655f 736e 6d70 640a 0a63 6c61 7373 2064  e_snmpd..class d
│ │ │ +002c84e0: 6973 6162 6c65 5f73 6e6d 7064 207b 0a20  isable_snmpd {. 
│ │ │ +002c84f0: 2073 6572 7669 6365 207b 2773 6e6d 7064   service {'snmpd
│ │ │ +002c8500: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +002c8510: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +002c8520: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +002c8530: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +002c8550: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002c85f0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +002c8600: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +002c8610: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002c8620: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002c8630: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002c8640: 7365 2220 6964 3d22 6964 3131 3638 223e se" id="id1168"> │ │ │ +002c8650: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +002c8660: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +002c8670: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +002c8680: 2273 6e6d 7064 225d 0a3c 2f63 6f64 653e  "snmpd"].
│ │ │  002c8690: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation Pup │ │ │ -00309620: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00309630: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
...include ss
│ │ │ -00309680: 685f 7072 6976 6174 655f 6b65 795f 7065  h_private_key_pe
│ │ │ -00309690: 726d 730a 0a63 6c61 7373 2073 7368 5f70  rms..class ssh_p
│ │ │ -003096a0: 7269 7661 7465 5f6b 6579 5f70 6572 6d73  rivate_key_perms
│ │ │ -003096b0: 207b 0a20 2065 7865 6320 7b20 2773 7368   {.  exec { 'ssh
│ │ │ -003096c0: 645f 7072 6976 5f6b 6579 273a 0a20 2020  d_priv_key':.   
│ │ │ -003096d0: 2063 6f6d 6d61 6e64 203d 2667 743b 2022   command => "
│ │ │ -003096e0: 6368 6d6f 6420 3036 3030 202f 6574 632f  chmod 0600 /etc/
│ │ │ -003096f0: 7373 682f 2a5f 6b65 7922 2c0a 2020 2020  ssh/*_key",.    
│ │ │ -00309700: 7061 7468 2020 2020 3d26 6774 3b20 272f  path    => '/
│ │ │ -00309710: 6269 6e3a 2f75 7372 2f62 696e 270a 2020  bin:/usr/bin'.  
│ │ │ -00309720: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -003097e0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -003097f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00309870: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -003098b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 configure │ │ │ -00309910: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:< │ │ │ +002c8420: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002c8440: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002c8490: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +002c84a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -00309880: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -003098a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -003098d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -003098f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
- name: │ │ │ -00309930: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00309940: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00309950: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00309960: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00309970: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00309980: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -00309990: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -003099a0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -003099b0: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -003099c0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -003099d0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -003099e0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -003099f0: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -00309a00: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -00309a10: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -00309a20: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -00309a30: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -00309a40: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -00309a50: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ -00309a60: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ -00309a70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00309a80: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00309a90: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00309aa0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00309ab0: 6565 6465 640a 0a2d 206e 616d 653a 2046 eeded..- name: F │ │ │ -00309ac0: 696e 6420 726f 6f74 3a72 6f6f 742d 6f77 ind root:root-ow │ │ │ -00309ad0: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ -00309ae0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -00309af0: 6e64 3a20 6669 6e64 202d 4820 2f65 7463 nd: find -H /etc │ │ │ -00309b00: 2f73 7368 2f20 2d6d 6178 6465 7074 6820 /ssh/ -maxdepth │ │ │ -00309b10: 3120 2d75 7365 7220 726f 6f74 202d 7265 1 -user root -re │ │ │ -00309b20: 6765 7820 222e 2a5f 6b65 7924 220a 2020 gex ".*_key$". │ │ │ -00309b30: 2020 2d74 7970 6520 6620 2d67 726f 7570 -type f -group │ │ │ -00309b40: 2072 6f6f 7420 2d70 6572 6d20 2f75 2b78 root -perm /u+x │ │ │ -00309b50: 732c 672b 7877 7273 2c6f 2b78 7772 740a s,g+xwrs,o+xwrt. │ │ │ -00309b60: 2020 7265 6769 7374 6572 3a20 726f 6f74 register: root │ │ │ -00309b70: 5f6f 776e 6564 5f6b 6579 730a 2020 6368 _owned_keys. ch │ │ │ -00309b80: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ -00309b90: 650a 2020 6661 696c 6564 5f77 6865 6e3a e. failed_when: │ │ │ -00309ba0: 2066 616c 7365 0a20 2063 6865 636b 5f6d false. check_m │ │ │ -00309bb0: 6f64 653a 2066 616c 7365 0a20 2077 6865 ode: false. whe │ │ │ -00309bc0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00309bd0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00309be0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00309bf0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00309c00: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -00309c10: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -00309c20: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -00309c30: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -00309c40: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -00309c50: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -00309c60: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00309c70: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -00309c80: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -00309c90: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -00309ca0: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -00309cb0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -00309cc0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -00309cd0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ -00309ce0: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ -00309cf0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00309d00: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00309d10: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00309d20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00309d30: 6565 6465 640a 0a2d 206e 616d 653a 2053 eeded..- name: S │ │ │ -00309d40: 6574 2070 6572 6d69 7373 696f 6e73 2066 et permissions f │ │ │ -00309d50: 6f72 2072 6f6f 743a 726f 6f74 2d6f 776e or root:root-own │ │ │ -00309d60: 6564 206b 6579 730a 2020 616e 7369 626c ed keys. ansibl │ │ │ -00309d70: 652e 6275 696c 7469 6e2e 6669 6c65 3a0a e.builtin.file:. │ │ │ -00309d80: 2020 2020 7061 7468 3a20 277b 7b20 6974 path: '{{ it │ │ │ -00309d90: 656d 207d 7d27 0a20 2020 206d 6f64 653a em }}'. mode: │ │ │ -00309da0: 2075 2d78 732c 672d 7877 7273 2c6f 2d78 u-xs,g-xwrs,o-x │ │ │ -00309db0: 7772 740a 2020 2020 7374 6174 653a 2066 wrt. state: f │ │ │ -00309dc0: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ -00309dd0: 3a0a 2020 2d20 277b 7b20 726f 6f74 5f6f :. - '{{ root_o │ │ │ -00309de0: 776e 6564 5f6b 6579 732e 7374 646f 7574 wned_keys.stdout │ │ │ -00309df0: 5f6c 696e 6573 207d 7d27 0a20 2077 6865 _lines }}'. whe │ │ │ -00309e00: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00309e10: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00309e20: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00309e30: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00309e40: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ -00309e50: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ -00309e60: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ -00309e70: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ -00309e80: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ -00309e90: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ -00309ea0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00309eb0: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -00309ec0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ -00309ed0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -00309ee0: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ -00309ef0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ -00309f00: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ -00309f10: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ -00309f20: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ -00309f30: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00309f40: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00309f50: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00309f60: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00309f70: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70 eeded.

Remediation Ans │ │ │ +00309620: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00309630: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +003096b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +003096d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00309720: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
low
Disr │ │ │ +003096e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +003096f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00309730: 7465 6779 3a3c 2f74 683e 3c74 643e 636f tegy:co │ │ │ +00309740: 6e66 6967 7572 653c 2f74 643e 3c2f 7472 nfigure
- name: Gath
│ │ │ +00309770: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00309780: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00309790: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +003097a0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +003097b0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +003097c0: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354  -3.1.13.  - NIST
│ │ │ +003097d0: 2d38 3030 2d31 3731 2d33 2e31 332e 3130  -800-171-3.13.10
│ │ │ +003097e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +003097f0: 2d41 432d 3137 2861 290a 2020 2d20 4e49  -AC-17(a).  - NI
│ │ │ +00309800: 5354 2d38 3030 2d35 332d 4143 2d36 2831  ST-800-53-AC-6(1
│ │ │ +00309810: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00309820: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00309830: 492d 4453 532d 5265 712d 322e 322e 340a  I-DSS-Req-2.2.4.
│ │ │ +00309840: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00309850: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00309860: 322e 322e 360a 2020 2d20 636f 6e66 6967  2.2.6.  - config
│ │ │ +00309870: 7572 655f 7374 7261 7465 6779 0a20 202d  ure_strategy.  -
│ │ │ +00309880: 2066 696c 655f 7065 726d 6973 7369 6f6e   file_permission
│ │ │ +00309890: 735f 7373 6864 5f70 7269 7661 7465 5f6b  s_sshd_private_k
│ │ │ +003098a0: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ +003098b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +003098c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +003098d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +003098e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +003098f0: 640a 0a2d 206e 616d 653a 2046 696e 6420  d..- name: Find 
│ │ │ +00309900: 726f 6f74 3a72 6f6f 742d 6f77 6e65 6420  root:root-owned 
│ │ │ +00309910: 6b65 7973 0a20 2061 6e73 6962 6c65 2e62  keys.  ansible.b
│ │ │ +00309920: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +00309930: 6669 6e64 202d 4820 2f65 7463 2f73 7368  find -H /etc/ssh
│ │ │ +00309940: 2f20 2d6d 6178 6465 7074 6820 3120 2d75  / -maxdepth 1 -u
│ │ │ +00309950: 7365 7220 726f 6f74 202d 7265 6765 7820  ser root -regex 
│ │ │ +00309960: 222e 2a5f 6b65 7924 220a 2020 2020 2d74  ".*_key$".    -t
│ │ │ +00309970: 7970 6520 6620 2d67 726f 7570 2072 6f6f  ype f -group roo
│ │ │ +00309980: 7420 2d70 6572 6d20 2f75 2b78 732c 672b  t -perm /u+xs,g+
│ │ │ +00309990: 7877 7273 2c6f 2b78 7772 740a 2020 7265  xwrs,o+xwrt.  re
│ │ │ +003099a0: 6769 7374 6572 3a20 726f 6f74 5f6f 776e  gister: root_own
│ │ │ +003099b0: 6564 5f6b 6579 730a 2020 6368 616e 6765  ed_keys.  change
│ │ │ +003099c0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +003099d0: 6661 696c 6564 5f77 6865 6e3a 2066 616c  failed_when: fal
│ │ │ +003099e0: 7365 0a20 2063 6865 636b 5f6d 6f64 653a  se.  check_mode:
│ │ │ +003099f0: 2066 616c 7365 0a20 2077 6865 6e3a 2027   false.  when: '
│ │ │ +00309a00: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00309a10: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00309a20: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00309a30: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +00309a40: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354  -3.1.13.  - NIST
│ │ │ +00309a50: 2d38 3030 2d31 3731 2d33 2e31 332e 3130  -800-171-3.13.10
│ │ │ +00309a60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00309a70: 2d41 432d 3137 2861 290a 2020 2d20 4e49  -AC-17(a).  - NI
│ │ │ +00309a80: 5354 2d38 3030 2d35 332d 4143 2d36 2831  ST-800-53-AC-6(1
│ │ │ +00309a90: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00309aa0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00309ab0: 492d 4453 532d 5265 712d 322e 322e 340a  I-DSS-Req-2.2.4.
│ │ │ +00309ac0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00309ad0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00309ae0: 322e 322e 360a 2020 2d20 636f 6e66 6967  2.2.6.  - config
│ │ │ +00309af0: 7572 655f 7374 7261 7465 6779 0a20 202d  ure_strategy.  -
│ │ │ +00309b00: 2066 696c 655f 7065 726d 6973 7369 6f6e   file_permission
│ │ │ +00309b10: 735f 7373 6864 5f70 7269 7661 7465 5f6b  s_sshd_private_k
│ │ │ +00309b20: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ +00309b30: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00309b40: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00309b50: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00309b60: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00309b70: 640a 0a2d 206e 616d 653a 2053 6574 2070  d..- name: Set p
│ │ │ +00309b80: 6572 6d69 7373 696f 6e73 2066 6f72 2072  ermissions for r
│ │ │ +00309b90: 6f6f 743a 726f 6f74 2d6f 776e 6564 206b  oot:root-owned k
│ │ │ +00309ba0: 6579 730a 2020 616e 7369 626c 652e 6275  eys.  ansible.bu
│ │ │ +00309bb0: 696c 7469 6e2e 6669 6c65 3a0a 2020 2020  iltin.file:.    
│ │ │ +00309bc0: 7061 7468 3a20 277b 7b20 6974 656d 207d  path: '{{ item }
│ │ │ +00309bd0: 7d27 0a20 2020 206d 6f64 653a 2075 2d78  }'.    mode: u-x
│ │ │ +00309be0: 732c 672d 7877 7273 2c6f 2d78 7772 740a  s,g-xwrs,o-xwrt.
│ │ │ +00309bf0: 2020 2020 7374 6174 653a 2066 696c 650a      state: file.
│ │ │ +00309c00: 2020 7769 7468 5f69 7465 6d73 3a0a 2020    with_items:.  
│ │ │ +00309c10: 2d20 277b 7b20 726f 6f74 5f6f 776e 6564  - '{{ root_owned
│ │ │ +00309c20: 5f6b 6579 732e 7374 646f 7574 5f6c 696e  _keys.stdout_lin
│ │ │ +00309c30: 6573 207d 7d27 0a20 2077 6865 6e3a 2027  es }}'.  when: '
│ │ │ +00309c40: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00309c50: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00309c60: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00309c70: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +00309c80: 2d33 2e31 2e31 330a 2020 2d20 4e49 5354  -3.1.13.  - NIST
│ │ │ +00309c90: 2d38 3030 2d31 3731 2d33 2e31 332e 3130  -800-171-3.13.10
│ │ │ +00309ca0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00309cb0: 2d41 432d 3137 2861 290a 2020 2d20 4e49  -AC-17(a).  - NI
│ │ │ +00309cc0: 5354 2d38 3030 2d35 332d 4143 2d36 2831  ST-800-53-AC-6(1
│ │ │ +00309cd0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00309ce0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00309cf0: 492d 4453 532d 5265 712d 322e 322e 340a  I-DSS-Req-2.2.4.
│ │ │ +00309d00: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00309d10: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00309d20: 322e 322e 360a 2020 2d20 636f 6e66 6967  2.2.6.  - config
│ │ │ +00309d30: 7572 655f 7374 7261 7465 6779 0a20 202d  ure_strategy.  -
│ │ │ +00309d40: 2066 696c 655f 7065 726d 6973 7369 6f6e   file_permission
│ │ │ +00309d50: 735f 7373 6864 5f70 7269 7661 7465 5f6b  s_sshd_private_k
│ │ │ +00309d60: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ +00309d70: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00309d80: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00309d90: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00309da0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00309db0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00309dc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +00309e70: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00309e80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ +00309ec0: 636f 6465 3e0a 0a0a 696e 636c 7564 6520  code>...include 
│ │ │ +00309ed0: 7373 685f 7072 6976 6174 655f 6b65 795f  ssh_private_key_
│ │ │ +00309ee0: 7065 726d 730a 0a63 6c61 7373 2073 7368  perms..class ssh
│ │ │ +00309ef0: 5f70 7269 7661 7465 5f6b 6579 5f70 6572  _private_key_per
│ │ │ +00309f00: 6d73 207b 0a20 2065 7865 6320 7b20 2773  ms {.  exec { 's
│ │ │ +00309f10: 7368 645f 7072 6976 5f6b 6579 273a 0a20  shd_priv_key':. 
│ │ │ +00309f20: 2020 2063 6f6d 6d61 6e64 203d 2667 743b     command =>
│ │ │ +00309f30: 2022 6368 6d6f 6420 3036 3030 202f 6574   "chmod 0600 /et
│ │ │ +00309f40: 632f 7373 682f 2a5f 6b65 7922 2c0a 2020  c/ssh/*_key",.  
│ │ │ +00309f50: 2020 7061 7468 2020 2020 3d26 6774 3b20    path    => 
│ │ │ +00309f60: 272f 6269 6e3a 2f75 7372 2f62 696e 270a  '/bin:/usr/bin'.
│ │ │ +00309f70: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

R │ │ │ -0030b3d0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0030b3e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
include ssh_pub
│ │ │ -0030b440: 6c69 635f 6b65 795f 7065 726d 730a 0a63  lic_key_perms..c
│ │ │ -0030b450: 6c61 7373 2073 7368 5f70 7562 6c69 635f  lass ssh_public_
│ │ │ -0030b460: 6b65 795f 7065 726d 7320 7b0a 2020 6578  key_perms {.  ex
│ │ │ -0030b470: 6563 207b 2027 7373 6864 5f70 7562 5f6b  ec { 'sshd_pub_k
│ │ │ -0030b480: 6579 273a 0a20 2020 2063 6f6d 6d61 6e64  ey':.    command
│ │ │ -0030b490: 203d 2667 743b 2022 6368 6d6f 6420 3036   => "chmod 06
│ │ │ -0030b4a0: 3434 202f 6574 632f 7373 682f 2a2e 7075  44 /etc/ssh/*.pu
│ │ │ -0030b4b0: 6222 2c0a 2020 2020 7061 7468 2020 2020  b",.    path    
│ │ │ -0030b4c0: 3d26 6774 3b20 272f 6269 6e3a 2f75 7372  => '/bin:/usr
│ │ │ -0030b4d0: 2f62 696e 270a 2020 7d0a 7d0a 3c2f 636f  /bin'.  }.}.
< │ │ │ -0030b4f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0030b500: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0030b510: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0030b520: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0030b530: 6431 3234 3522 2074 6162 696e 6465 783d d1245" tabindex= │ │ │ -0030b540: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -0030b550: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -0030b560: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -0030b570: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -0030b580: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -0030b590: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0030b5a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0030b5b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0030b640: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0030b650: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0030b6a0: 3c74 723e 3c74 683e 5374 7261 7465 6779

│ │ │ -0030b6e0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0030b6f0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0030b700: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0030b710: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0030b720: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0030b730: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -0030b740: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ -0030b750: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ -0030b760: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -0030b770: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ -0030b780: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ -0030b790: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0030b7a0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0030b7b0: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ -0030b7c0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -0030b7d0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -0030b7e0: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ -0030b7f0: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ -0030b800: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ -0030b810: 6864 5f70 7562 5f6b 6579 0a20 202d 206c  hd_pub_key.  - l
│ │ │ -0030b820: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0030b830: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0030b840: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0030b850: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0030b860: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ -0030b870: 653a 2046 696e 6420 2f65 7463 2f73 7368  e: Find /etc/ssh
│ │ │ -0030b880: 2f20 6669 6c65 2873 290a 2020 616e 7369  / file(s).  ansi
│ │ │ -0030b890: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0030b8a0: 616e 643a 2066 696e 6420 2d50 202f 6574  and: find -P /et
│ │ │ -0030b8b0: 632f 7373 682f 202d 6d61 7864 6570 7468  c/ssh/ -maxdepth
│ │ │ -0030b8c0: 2031 202d 7065 726d 202f 752b 7873 2c67   1 -perm /u+xs,g
│ │ │ -0030b8d0: 2b78 7773 2c6f 2b78 7774 2020 2d74 7970  +xws,o+xwt  -typ
│ │ │ -0030b8e0: 650a 2020 2020 6620 2d72 6567 6578 7479  e.    f -regexty
│ │ │ -0030b8f0: 7065 2070 6f73 6978 2d65 7874 656e 6465  pe posix-extende
│ │ │ -0030b900: 6420 2d72 6567 6578 2022 5e2e 2a5c 2e70  d -regex "^.*\.p
│ │ │ -0030b910: 7562 2422 0a20 2072 6567 6973 7465 723a  ub$".  register:
│ │ │ -0030b920: 2066 696c 6573 5f66 6f75 6e64 0a20 2063   files_found.  c
│ │ │ -0030b930: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0030b940: 7365 0a20 2066 6169 6c65 645f 7768 656e  se.  failed_when
│ │ │ -0030b950: 3a20 6661 6c73 650a 2020 6368 6563 6b5f  : false.  check_
│ │ │ -0030b960: 6d6f 6465 3a20 6661 6c73 650a 2020 7768  mode: false.  wh
│ │ │ -0030b970: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0030b980: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0030b990: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0030b9a0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0030b9b0: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -0030b9c0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -0030b9d0: 3133 2e31 300a 2020 2d20 4e49 5354 2d38  13.10.  - NIST-8
│ │ │ -0030b9e0: 3030 2d35 332d 4143 2d31 3728 6129 0a20  00-53-AC-17(a). 
│ │ │ -0030b9f0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0030ba00: 432d 3628 3129 0a20 202d 204e 4953 542d  C-6(1).  - NIST-
│ │ │ -0030ba10: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0030ba20: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ -0030ba30: 2e32 2e34 0a20 202d 2050 4349 2d44 5353  .2.4.  - PCI-DSS
│ │ │ -0030ba40: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -0030ba50: 5353 7634 2d32 2e32 2e36 0a20 202d 2063  SSv4-2.2.6.  - c
│ │ │ -0030ba60: 6f6e 6669 6775 7265 5f73 7472 6174 6567  onfigure_strateg
│ │ │ -0030ba70: 790a 2020 2d20 6669 6c65 5f70 6572 6d69  y.  - file_permi
│ │ │ -0030ba80: 7373 696f 6e73 5f73 7368 645f 7075 625f  ssions_sshd_pub_
│ │ │ -0030ba90: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -0030baa0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0030bab0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0030bac0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0030bad0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0030bae0: 6564 0a0a 2d20 6e61 6d65 3a20 5365 7420  ed..- name: Set 
│ │ │ -0030baf0: 7065 726d 6973 7369 6f6e 7320 666f 7220  permissions for 
│ │ │ -0030bb00: 2f65 7463 2f73 7368 2f20 6669 6c65 2873  /etc/ssh/ file(s
│ │ │ -0030bb10: 290a 2020 616e 7369 626c 652e 6275 696c  ).  ansible.buil
│ │ │ -0030bb20: 7469 6e2e 6669 6c65 3a0a 2020 2020 7061  tin.file:.    pa
│ │ │ -0030bb30: 7468 3a20 277b 7b20 6974 656d 207d 7d27  th: '{{ item }}'
│ │ │ -0030bb40: 0a20 2020 206d 6f64 653a 2075 2d78 732c  .    mode: u-xs,
│ │ │ -0030bb50: 672d 7877 732c 6f2d 7877 740a 2020 2020  g-xws,o-xwt.    
│ │ │ -0030bb60: 7374 6174 653a 2066 696c 650a 2020 7769  state: file.  wi
│ │ │ -0030bb70: 7468 5f69 7465 6d73 3a0a 2020 2d20 277b  th_items:.  - '{
│ │ │ -0030bb80: 7b20 6669 6c65 735f 666f 756e 642e 7374  { files_found.st
│ │ │ -0030bb90: 646f 7574 5f6c 696e 6573 207d 7d27 0a20  dout_lines }}'. 
│ │ │ -0030bba0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -0030bbb0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0030bbc0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -0030bbd0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0030bbe0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -0030bbf0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -0030bc00: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ -0030bc10: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ -0030bc20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0030bc30: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ -0030bc40: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0030bc50: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -0030bc60: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ -0030bc70: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -0030bc80: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -0030bc90: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ -0030bca0: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ -0030bcb0: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ -0030bcc0: 7562 5f6b 6579 0a20 202d 206c 6f77 5f63  ub_key.  - low_c
│ │ │ -0030bcd0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0030bce0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0030bcf0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0030bd00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0030bd10: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70  eeded.


C │ │ │ -0030b630: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0030b660: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0030b670: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0030b6b0: 3a3c 2f74 683e 3c74 643e 636f 6e66 6967 :config │ │ │ -0030b6c0: 7572 653c 2f74 643e 3c2f 7472 3e3c 2f74 ure
< │ │ │ +0030b4c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0030b4d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false< │ │ │ +0030b510: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0030b530: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0030b540: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0030b550: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0030b560: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0030b570: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +0030b580: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ +0030b590: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ +0030b5a0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +0030b5b0: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ +0030b5c0: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ +0030b5d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0030b5e0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +0030b5f0: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ +0030b600: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0030b610: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0030b620: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ +0030b630: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ +0030b640: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ +0030b650: 7373 6864 5f70 7562 5f6b 6579 0a20 202d  sshd_pub_key.  -
│ │ │ +0030b660: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0030b670: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0030b680: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0030b690: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0030b6a0: 626f 6f74 5f6e 6565 6465 640a 0a2d 206e  boot_needed..- n
│ │ │ +0030b6b0: 616d 653a 2046 696e 6420 2f65 7463 2f73  ame: Find /etc/s
│ │ │ +0030b6c0: 7368 2f20 6669 6c65 2873 290a 2020 616e  sh/ file(s).  an
│ │ │ +0030b6d0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0030b6e0: 6d6d 616e 643a 2066 696e 6420 2d50 202f  mmand: find -P /
│ │ │ +0030b6f0: 6574 632f 7373 682f 202d 6d61 7864 6570  etc/ssh/ -maxdep
│ │ │ +0030b700: 7468 2031 202d 7065 726d 202f 752b 7873  th 1 -perm /u+xs
│ │ │ +0030b710: 2c67 2b78 7773 2c6f 2b78 7774 2020 2d74  ,g+xws,o+xwt  -t
│ │ │ +0030b720: 7970 650a 2020 2020 6620 2d72 6567 6578  ype.    f -regex
│ │ │ +0030b730: 7479 7065 2070 6f73 6978 2d65 7874 656e  type posix-exten
│ │ │ +0030b740: 6465 6420 2d72 6567 6578 2022 5e2e 2a5c  ded -regex "^.*\
│ │ │ +0030b750: 2e70 7562 2422 0a20 2072 6567 6973 7465  .pub$".  registe
│ │ │ +0030b760: 723a 2066 696c 6573 5f66 6f75 6e64 0a20  r: files_found. 
│ │ │ +0030b770: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +0030b780: 616c 7365 0a20 2066 6169 6c65 645f 7768  alse.  failed_wh
│ │ │ +0030b790: 656e 3a20 6661 6c73 650a 2020 6368 6563  en: false.  chec
│ │ │ +0030b7a0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 2020  k_mode: false.  
│ │ │ +0030b7b0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0030b7c0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0030b7d0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +0030b7e0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0030b7f0: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +0030b800: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +0030b810: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +0030b820: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +0030b830: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0030b840: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +0030b850: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0030b860: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +0030b870: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +0030b880: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +0030b890: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +0030b8a0: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +0030b8b0: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +0030b8c0: 6d69 7373 696f 6e73 5f73 7368 645f 7075  missions_sshd_pu
│ │ │ +0030b8d0: 625f 6b65 790a 2020 2d20 6c6f 775f 636f  b_key.  - low_co
│ │ │ +0030b8e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0030b8f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0030b900: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0030b910: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0030b920: 6564 6564 0a0a 2d20 6e61 6d65 3a20 5365  eded..- name: Se
│ │ │ +0030b930: 7420 7065 726d 6973 7369 6f6e 7320 666f  t permissions fo
│ │ │ +0030b940: 7220 2f65 7463 2f73 7368 2f20 6669 6c65  r /etc/ssh/ file
│ │ │ +0030b950: 2873 290a 2020 616e 7369 626c 652e 6275  (s).  ansible.bu
│ │ │ +0030b960: 696c 7469 6e2e 6669 6c65 3a0a 2020 2020  iltin.file:.    
│ │ │ +0030b970: 7061 7468 3a20 277b 7b20 6974 656d 207d  path: '{{ item }
│ │ │ +0030b980: 7d27 0a20 2020 206d 6f64 653a 2075 2d78  }'.    mode: u-x
│ │ │ +0030b990: 732c 672d 7877 732c 6f2d 7877 740a 2020  s,g-xws,o-xwt.  
│ │ │ +0030b9a0: 2020 7374 6174 653a 2066 696c 650a 2020    state: file.  
│ │ │ +0030b9b0: 7769 7468 5f69 7465 6d73 3a0a 2020 2d20  with_items:.  - 
│ │ │ +0030b9c0: 277b 7b20 6669 6c65 735f 666f 756e 642e  '{{ files_found.
│ │ │ +0030b9d0: 7374 646f 7574 5f6c 696e 6573 207d 7d27  stdout_lines }}'
│ │ │ +0030b9e0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +0030b9f0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0030ba00: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0030ba10: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +0030ba20: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ +0030ba30: 330a 2020 2d20 4e49 5354 2d38 3030 2d31  3.  - NIST-800-1
│ │ │ +0030ba40: 3731 2d33 2e31 332e 3130 0a20 202d 204e  71-3.13.10.  - N
│ │ │ +0030ba50: 4953 542d 3830 302d 3533 2d41 432d 3137  IST-800-53-AC-17
│ │ │ +0030ba60: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0030ba70: 2d35 332d 4143 2d36 2831 290a 2020 2d20  -53-AC-6(1).  - 
│ │ │ +0030ba80: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0030ba90: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +0030baa0: 5265 712d 322e 322e 340a 2020 2d20 5043  Req-2.2.4.  - PC
│ │ │ +0030bab0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +0030bac0: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +0030bad0: 2020 2d20 636f 6e66 6967 7572 655f 7374    - configure_st
│ │ │ +0030bae0: 7261 7465 6779 0a20 202d 2066 696c 655f  rategy.  - file_
│ │ │ +0030baf0: 7065 726d 6973 7369 6f6e 735f 7373 6864  permissions_sshd
│ │ │ +0030bb00: 5f70 7562 5f6b 6579 0a20 202d 206c 6f77  _pub_key.  - low
│ │ │ +0030bb10: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0030bb20: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0030bb30: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0030bb40: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0030bb50: 5f6e 6565 6465 640a 3c2f 636f 6465 3e3c  _needed.<
│ │ │ +0030bb60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +0030bc10: 7469 6f6e 2050 7570 7065 7420 736e 6970  tion Puppet snip
│ │ │ +0030bc20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +0030bc30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0030bc40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0030bc50: 7365 2220 6964 3d22 6964 3132 3435 223e se" id="id1245"> │ │ │ +0030bc60: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0030bc70: 6465 2073 7368 5f70 7562 6c69 635f 6b65  de ssh_public_ke
│ │ │ +0030bc80: 795f 7065 726d 730a 0a63 6c61 7373 2073  y_perms..class s
│ │ │ +0030bc90: 7368 5f70 7562 6c69 635f 6b65 795f 7065  sh_public_key_pe
│ │ │ +0030bca0: 726d 7320 7b0a 2020 6578 6563 207b 2027  rms {.  exec { '
│ │ │ +0030bcb0: 7373 6864 5f70 7562 5f6b 6579 273a 0a20  sshd_pub_key':. 
│ │ │ +0030bcc0: 2020 2063 6f6d 6d61 6e64 203d 2667 743b     command =>
│ │ │ +0030bcd0: 2022 6368 6d6f 6420 3036 3434 202f 6574   "chmod 0644 /et
│ │ │ +0030bce0: 632f 7373 682f 2a2e 7075 6222 2c0a 2020  c/ssh/*.pub",.  
│ │ │ +0030bcf0: 2020 7061 7468 2020 2020 3d26 6774 3b20    path    => 
│ │ │ +0030bd00: 272f 6269 6e3a 2f75 7372 2f62 696e 270a  '/bin:/usr/bin'.
│ │ │ +0030bd10: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -176,14 +159,31 @@ │ │ │ │ - PCI-DSSv4-11.5.2 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_aide_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_aide │ │ │ │ + │ │ │ │ +class install_aide { │ │ │ │ + package { 'aide': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "aide" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -568,27 +568,14 @@ │ │ │ │ The prelink package can be removed with the following command: │ │ │ │ $ apt-get remove prelink │ │ │ │ Rationale: The use of the prelink package can interfere with the operation of AIDE since it binaries. Prelinking │ │ │ │ can also increase damage caused by vulnerability in a common library like libc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_prelink_removed │ │ │ │ References: _c_i_s 1.5.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_prelink │ │ │ │ - │ │ │ │ -class remove_prelink { │ │ │ │ - package { 'prelink': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Check If Prelinked Is Installed │ │ │ │ ansible.builtin.stat: │ │ │ │ @@ -622,14 +609,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_disruption │ │ │ │ - medium_complexity │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_prelink_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_prelink │ │ │ │ + │ │ │ │ +class remove_prelink { │ │ │ │ + package { 'prelink': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: medium │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ if [[ -f /usr/sbin/prelink ]]; │ │ │ │ @@ -1737,31 +1737,14 @@ │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _o_s_p_p FMT_MOF_EXT.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000324-GPOS-00125 │ │ │ │ References: _a_n_s_s_i R33 │ │ │ │ _c_i_s 5.2.1 │ │ │ │ _i_s_m 1386 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "sudo" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_sudo │ │ │ │ - │ │ │ │ -class install_sudo { │ │ │ │ - package { 'sudo': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -1788,14 +1771,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sudo_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_sudo │ │ │ │ + │ │ │ │ +class install_sudo { │ │ │ │ + package { 'sudo': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "sudo" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -7462,31 +7462,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--mmoodduulleess PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-modules package can be installed with the following command: │ │ │ │ $ apt-get install libpam-modules │ │ │ │ Rationale: libpam-modules contains PAM modules that are needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_modules_installed │ │ │ │ References: _c_i_s 5.3.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-modules" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-modules │ │ │ │ - │ │ │ │ -class install_libpam-modules { │ │ │ │ - package { 'libpam-modules': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -7507,14 +7490,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_modules_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-modules │ │ │ │ + │ │ │ │ +class install_libpam-modules { │ │ │ │ + package { 'libpam-modules': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-modules" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -7532,31 +7532,14 @@ │ │ │ │ at guessing and brute-force attacks. "pwquality" enforces complex password construction configuration │ │ │ │ and has the ability to limit brute-force attacks on the system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_pwquality_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ References: _c_i_s 5.3.1.3 │ │ │ │ _s_t_i_g_i_d UBTU-24-100600 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-pwquality" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-pwquality │ │ │ │ - │ │ │ │ -class install_libpam-pwquality { │ │ │ │ - package { 'libpam-pwquality': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -7579,14 +7562,31 @@ │ │ │ │ - DISA-STIG-UBTU-24-100600 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_pwquality_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-pwquality │ │ │ │ + │ │ │ │ +class install_libpam-pwquality { │ │ │ │ + package { 'libpam-pwquality': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-pwquality" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'libpam-runtime' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -7599,31 +7599,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll ppaamm--rruunnttiimmee PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The libpam-runtime package can be installed with the following command: │ │ │ │ $ apt-get install libpam-runtime │ │ │ │ Rationale: libpam-runtime contains configuration that is needed by other rules when configuring PAM options. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_runtime_installed │ │ │ │ References: _c_i_s 5.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "libpam-runtime" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_libpam-runtime │ │ │ │ - │ │ │ │ -class install_libpam-runtime { │ │ │ │ - package { 'libpam-runtime': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure libpam-runtime is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -7632,14 +7615,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_runtime_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_libpam-runtime │ │ │ │ + │ │ │ │ +class install_libpam-runtime { │ │ │ │ + package { 'libpam-runtime': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "libpam-runtime" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ │ │ │ │ DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime" │ │ │ │ @@ -10357,31 +10357,14 @@ │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr UUttiillss iiss iinnssttaalllleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ AppArmor provide Mandatory Access Controls. │ │ │ │ Rationale: Without a Mandatory Access Control system installed only the default Discretionary Access Control │ │ │ │ system will be available. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor-utils_installed │ │ │ │ References: _c_i_s 1.3.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor-utils" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor-utils │ │ │ │ - │ │ │ │ -class install_apparmor-utils { │ │ │ │ - package { 'apparmor-utils': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor-utils is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -10391,14 +10374,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor-utils_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor-utils │ │ │ │ + │ │ │ │ +class install_apparmor-utils { │ │ │ │ + package { 'apparmor-utils': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor-utils" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -10415,31 +10415,14 @@ │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_apparmor_installed │ │ │ │ _o_s_-_s_r_g SRG-OS-000368-GPOS-00154, SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312- │ │ │ │ GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ References: _a_n_s_s_i R45 │ │ │ │ _c_i_s 1.3.1.1 │ │ │ │ _s_t_i_g_i_d UBTU-24-100500 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "apparmor" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_apparmor │ │ │ │ - │ │ │ │ -class install_apparmor { │ │ │ │ - package { 'apparmor': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Ensure apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -10450,14 +10433,31 @@ │ │ │ │ - DISA-STIG-UBTU-24-100500 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_apparmor_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_apparmor │ │ │ │ + │ │ │ │ +class install_apparmor { │ │ │ │ + package { 'apparmor': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "apparmor" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then │ │ │ │ @@ -10982,31 +10982,14 @@ │ │ │ │ Storing log data on a remote host protects log integrity from local attacks. If an attacker gains root │ │ │ │ Rationale: access on the local system, they could tamper with or remove log data that is stored on the local │ │ │ │ system. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_systemd-journal-remote_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "systemd-journal-remote" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_systemd-journal-remote │ │ │ │ - │ │ │ │ -class install_systemd-journal-remote { │ │ │ │ - package { 'systemd-journal-remote': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11027,14 +11010,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_systemd-journal-remote_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_systemd-journal-remote │ │ │ │ + │ │ │ │ +class install_systemd-journal-remote { │ │ │ │ + package { 'systemd-journal-remote': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "systemd-journal-remote" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ! │ │ │ │ @@ -11060,31 +11060,14 @@ │ │ │ │ intact even if the local system is compromised. Additionally, centralized logs facilitate correlation │ │ │ │ of events across multiple systems, enabling better detection of distributed attacks and security │ │ │ │ incidents. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000479-GPOS-00224 │ │ │ │ _c_i_s 6.1.2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journal-upload"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journal-upload │ │ │ │ - │ │ │ │ -class enable_systemd-journal-upload { │ │ │ │ - service {'systemd-journal-upload': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11120,14 +11103,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journal-upload_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ and "systemd-journal-remote" in ansible_facts.packages ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journal-upload │ │ │ │ + │ │ │ │ +class enable_systemd-journal-upload { │ │ │ │ + service {'systemd-journal-upload': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journal-upload"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { ( ( │ │ │ │ @@ -11152,31 +11152,14 @@ │ │ │ │ Rationale: cause of failure and any information necessary to return to operations with least disruption to system │ │ │ │ processes. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_systemd-journald_enabled │ │ │ │ _n_i_s_t SC-24 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000269-GPOS-00103 │ │ │ │ _c_i_s 6.1.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["systemd-journald"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_systemd-journald │ │ │ │ - │ │ │ │ -class enable_systemd-journald { │ │ │ │ - service {'systemd-journald': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -11211,14 +11194,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_systemd-journald_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_systemd-journald │ │ │ │ + │ │ │ │ +class enable_systemd-journald { │ │ │ │ + service {'systemd-journald': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["systemd-journald"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -12496,31 +12496,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 2.10, SR 2.11, SR 2.12, SR 2.8, SR 2.9 │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000479-GPOS-00224, SRG-OS-000051-GPOS-00024, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.1 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "rsyslog" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_rsyslog │ │ │ │ - │ │ │ │ -class install_rsyslog { │ │ │ │ - package { 'rsyslog': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12543,14 +12526,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_rsyslog │ │ │ │ + │ │ │ │ +class install_rsyslog { │ │ │ │ + package { 'rsyslog': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "rsyslog" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -12579,31 +12579,14 @@ │ │ │ │ A.15.2.2, A.17.2.1 │ │ │ │ _n_i_s_t CM-6(a), AU-4(1) │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-3, DE.CM-7, ID.SC-4, PR.DS-4, PR.PT-1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 6.1.3.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _s_t_i_g_i_d UBTU-24-100200 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["rsyslog"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_rsyslog │ │ │ │ - │ │ │ │ -class enable_rsyslog { │ │ │ │ - service {'rsyslog': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -12644,14 +12627,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyslog_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"rsyslog" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_rsyslog │ │ │ │ + │ │ │ │ +class enable_rsyslog { │ │ │ │ + service {'rsyslog': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["rsyslog"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$' && { dpkg- │ │ │ │ @@ -13292,27 +13292,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be removed with the following command: │ │ │ │ $ apt-get remove iptables-persistent │ │ │ │ Rationale: Running both ufw and the services included in the iptables-persistent package may lead to conflict. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_removed │ │ │ │ References: _c_i_s 4.2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_iptables-persistent │ │ │ │ - │ │ │ │ -class remove_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -13333,14 +13320,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_iptables-persistent │ │ │ │ + │ │ │ │ +class remove_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'ufw' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -20746,50 +20746,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 3.1, SR │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t AC-18(a), AC-18(3), CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 3.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["bluetooth"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: bluetooth.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: bluetooth.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_bluetooth │ │ │ │ - │ │ │ │ -class disable_bluetooth { │ │ │ │ - service {'bluetooth': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -20853,14 +20817,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_bluetooth_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: bluetooth.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: bluetooth.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_bluetooth │ │ │ │ + │ │ │ │ +class disable_bluetooth { │ │ │ │ + service {'bluetooth': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["bluetooth"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -27993,27 +27993,14 @@ │ │ │ │ removed with the following command: │ │ │ │ $ apt-get remove autofs │ │ │ │ Rationale: With automounting enabled anyone with physical access could attach a USB drive or disc and have its │ │ │ │ contents available in the filesystem even if they lacked permissions to mount it themselves. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_autofs_removed │ │ │ │ References: _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_autofs │ │ │ │ - │ │ │ │ -class remove_autofs { │ │ │ │ - package { 'autofs': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove autofs Package: Ensure autofs is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28022,14 +28009,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_autofs_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_autofs │ │ │ │ + │ │ │ │ +class remove_autofs { │ │ │ │ + package { 'autofs': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove autofs │ │ │ │ @@ -28082,50 +28082,14 @@ │ │ │ │ 2.1, SR 2.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.13.1.1, A.13.2.1, A.18.1.4, A.6.2.1, A.6.2.2, A.7.1.1, A.9.2.1, A.9.2.2, │ │ │ │ A.9.2.3, A.9.2.4, A.9.2.6, A.9.3.1, A.9.4.2, A.9.4.3 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), MP-7 │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-1, PR.AC-3, PR.AC-6, PR.AC-7 │ │ │ │ _o_s_-_s_r_g SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["autofs"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: autofs.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: autofs.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_autofs │ │ │ │ - │ │ │ │ -class disable_autofs { │ │ │ │ - service {'autofs': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -28186,14 +28150,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_autofs_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "autofs" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: autofs.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: autofs.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_autofs │ │ │ │ + │ │ │ │ +class disable_autofs { │ │ │ │ + service {'autofs': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["autofs"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'autofs' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -33858,50 +33858,14 @@ │ │ │ │ system and expose sensitive data. The apport service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now apport.service │ │ │ │ Rationale: The Apport service modifies the kernel fs.suid_dumpable configuration at runtime which prevents other │ │ │ │ hardening from being persistent. Disabling the service prevents this behavior. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_apport_disabled │ │ │ │ References: _c_i_s 1.5.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apport"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apport.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apport.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apport │ │ │ │ - │ │ │ │ -class disable_apport { │ │ │ │ - service {'apport': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -33951,14 +33915,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_apport_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"apport" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apport.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apport.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apport │ │ │ │ + │ │ │ │ +class disable_apport { │ │ │ │ + service {'apport': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apport"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'apport' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -34005,27 +34005,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_avahi-daemon │ │ │ │ - │ │ │ │ -class remove_avahi-daemon { │ │ │ │ - package { 'avahi-daemon': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall avahi Server Package: Ensure avahi-daemon is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34037,14 +34024,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_avahi_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_avahi-daemon │ │ │ │ + │ │ │ │ +class remove_avahi-daemon { │ │ │ │ + package { 'avahi-daemon': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove avahi-daemon │ │ │ │ @@ -34086,50 +34086,14 @@ │ │ │ │ References: 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["avahi-daemon"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: avahi-daemon.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: avahi-daemon.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_avahi-daemon │ │ │ │ - │ │ │ │ -class disable_avahi-daemon { │ │ │ │ - service {'avahi-daemon': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -34191,14 +34155,50 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi-daemon" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: avahi-daemon.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: avahi-daemon.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_avahi-daemon │ │ │ │ + │ │ │ │ +class disable_avahi-daemon { │ │ │ │ + service {'avahi-daemon': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["avahi-daemon"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'avahi-daemon' 2>/dev/null | grep -q '^installed$' && │ │ │ │ @@ -35266,31 +35266,14 @@ │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "cron" │ │ │ │ -version = "*" │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include install_cron │ │ │ │ - │ │ │ │ -class install_cron { │ │ │ │ - package { 'cron': │ │ │ │ - ensure => 'installed', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35317,14 +35300,31 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_cron_installed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include install_cron │ │ │ │ + │ │ │ │ +class install_cron { │ │ │ │ + package { 'cron': │ │ │ │ + ensure => 'installed', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[[packages]] │ │ │ │ +name = "cron" │ │ │ │ +version = "*" │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -35351,31 +35351,14 @@ │ │ │ │ References: 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.4.1.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -enabled = ["cron"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include enable_cron │ │ │ │ - │ │ │ │ -class enable_cron { │ │ │ │ - service {'cron': │ │ │ │ - enable => true, │ │ │ │ - ensure => 'running', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -35410,14 +35393,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_cron_enabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include enable_cron │ │ │ │ + │ │ │ │ +class enable_cron { │ │ │ │ + service {'cron': │ │ │ │ + enable => true, │ │ │ │ + ensure => 'running', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +enabled = ["cron"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: enable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37191,27 +37191,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The support for Yellowpages should not be installed unless it is required. │ │ │ │ Rationale: NIS is the historical SUN service for central account management, more and more replaced by LDAP. NIS │ │ │ │ does not support efficiently security constraints, ACL, etc. and should not be used. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nis_removed │ │ │ │ References: _c_i_s 2.2.1 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nis │ │ │ │ - │ │ │ │ -class remove_nis { │ │ │ │ - package { 'nis': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall the nis package: Ensure nis is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37220,14 +37207,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nis_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nis │ │ │ │ + │ │ │ │ +class remove_nis { │ │ │ │ + package { 'nis': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nis │ │ │ │ @@ -37281,27 +37281,14 @@ │ │ │ │ References: 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_isc-dhcp-server │ │ │ │ - │ │ │ │ -class remove_isc-dhcp-server { │ │ │ │ - package { 'isc-dhcp-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall DHCP Server Package: Ensure isc-dhcp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37315,14 +37302,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dhcp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_isc-dhcp-server │ │ │ │ + │ │ │ │ +class remove_isc-dhcp-server { │ │ │ │ + package { 'isc-dhcp-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove isc-dhcp-server │ │ │ │ @@ -37353,50 +37353,14 @@ │ │ │ │ server6 service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now isc-dhcp-server6.service │ │ │ │ Rationale: Unmanaged or unintentionally activated DHCP servers may provide faulty information to clients, │ │ │ │ interfering with the operation of a legitimate site DHCP server if there is one. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dhcpd6_disabled │ │ │ │ References: _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["isc-dhcp-server6"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: isc-dhcp-server6.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: isc-dhcp-server6.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_isc-dhcp-server6 │ │ │ │ - │ │ │ │ -class disable_isc-dhcp-server6 { │ │ │ │ - service {'isc-dhcp-server6': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37446,14 +37410,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd6_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: isc-dhcp-server6.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: isc-dhcp-server6.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_isc-dhcp-server6 │ │ │ │ + │ │ │ │ +class disable_isc-dhcp-server6 { │ │ │ │ + service {'isc-dhcp-server6': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["isc-dhcp-server6"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37494,50 +37494,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["isc-dhcp-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: isc-dhcp-server.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: isc-dhcp-server.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_isc-dhcp-server │ │ │ │ - │ │ │ │ -class disable_isc-dhcp-server { │ │ │ │ - service {'isc-dhcp-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37593,14 +37557,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dhcpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: isc-dhcp-server.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: isc-dhcp-server.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_isc-dhcp-server │ │ │ │ + │ │ │ │ +class disable_isc-dhcp-server { │ │ │ │ + service {'isc-dhcp-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["isc-dhcp-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37648,27 +37648,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_bind9 │ │ │ │ - │ │ │ │ -class remove_bind9 { │ │ │ │ - package { 'bind9': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall bind Package: Ensure bind9 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37680,14 +37667,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_bind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_bind9 │ │ │ │ + │ │ │ │ +class remove_bind9 { │ │ │ │ + package { 'bind9': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove bind9 │ │ │ │ @@ -37727,50 +37727,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["named"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: named.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: named.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_named │ │ │ │ - │ │ │ │ -class disable_named { │ │ │ │ - service {'named': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -37826,14 +37790,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_named_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: named.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: named.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_named │ │ │ │ + │ │ │ │ +class disable_named { │ │ │ │ + service {'named': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["named"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -37865,27 +37865,14 @@ │ │ │ │ The dnsmasq package can be removed with the following command: │ │ │ │ $ apt-get remove dnsmasq │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dnsmasq_removed │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dnsmasq │ │ │ │ - │ │ │ │ -class remove_dnsmasq { │ │ │ │ - package { 'dnsmasq': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dnsmasq Package: Ensure dnsmasq is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37894,14 +37881,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_dnsmasq_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dnsmasq │ │ │ │ + │ │ │ │ +class remove_dnsmasq { │ │ │ │ + package { 'dnsmasq': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dnsmasq │ │ │ │ @@ -37931,50 +37931,14 @@ │ │ │ │ The dnsmasq service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dnsmasq.service │ │ │ │ Rationale: Unless a system is specifically designated to act as a DNS caching, DNS forwarding and/or DHCP server, │ │ │ │ it is recommended that the package be removed to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dnsmasq_disabled │ │ │ │ References: _c_i_s 2.1.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dnsmasq"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dnsmasq.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dnsmasq.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dnsmasq │ │ │ │ - │ │ │ │ -class disable_dnsmasq { │ │ │ │ - service {'dnsmasq': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38024,14 +37988,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_dnsmasq_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dnsmasq.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dnsmasq.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dnsmasq │ │ │ │ + │ │ │ │ +class disable_dnsmasq { │ │ │ │ + service {'dnsmasq': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dnsmasq"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38080,27 +38080,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c), IA-5(1).1(v), CM-7, CM-7.1(ii) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049, SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_vsftpd │ │ │ │ - │ │ │ │ -class remove_vsftpd { │ │ │ │ - package { 'vsftpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall vsftpd Package: Ensure vsftpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38116,14 +38103,27 @@ │ │ │ │ - NIST-800-53-IA-5(1).1(v) │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_vsftpd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_vsftpd │ │ │ │ + │ │ │ │ +class remove_vsftpd { │ │ │ │ + package { 'vsftpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove vsftpd │ │ │ │ @@ -38164,50 +38164,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["vsftpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: vsftpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: vsftpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_vsftpd │ │ │ │ - │ │ │ │ -class disable_vsftpd { │ │ │ │ - service {'vsftpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38263,14 +38227,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_vsftpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: vsftpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: vsftpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_vsftpd │ │ │ │ + │ │ │ │ +class disable_vsftpd { │ │ │ │ + service {'vsftpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["vsftpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38306,27 +38306,14 @@ │ │ │ │ Rationale: be used if file transfer is required. Unless there is a need to run the system as a FTP server (for │ │ │ │ example, to allow anonymous downloads), it is recommended that the package be removed to reduce the │ │ │ │ potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ftp │ │ │ │ - │ │ │ │ -class remove_ftp { │ │ │ │ - package { 'ftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove ftp Package: Ensure ftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38337,14 +38324,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ftp │ │ │ │ + │ │ │ │ +class remove_ftp { │ │ │ │ + package { 'ftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ftp │ │ │ │ @@ -38377,27 +38377,14 @@ │ │ │ │ $ apt-get remove ftp │ │ │ │ Unless there is a need to run the system using Internet standard File Transfer Protocol (for example, │ │ │ │ Rationale: to allow anonymous downloads), it is recommended that the package be removed to reduce the potential │ │ │ │ attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tnftp_removed │ │ │ │ References: _c_i_s 2.2.6 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tnftp │ │ │ │ - │ │ │ │ -class remove_tnftp { │ │ │ │ - package { 'tnftp': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove tnftp Package: Ensure tnftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38406,14 +38393,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tnftp_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tnftp │ │ │ │ + │ │ │ │ +class remove_tnftp { │ │ │ │ + package { 'tnftp': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tnftp │ │ │ │ @@ -38466,27 +38466,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_apache2 │ │ │ │ - │ │ │ │ -class remove_apache2 { │ │ │ │ - package { 'apache2': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall apache2 Package: Ensure apache2 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38498,14 +38485,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_httpd_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_apache2 │ │ │ │ + │ │ │ │ +class remove_apache2 { │ │ │ │ + package { 'apache2': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove apache2 │ │ │ │ @@ -38545,50 +38545,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["apache2"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: apache2.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: apache2.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_apache2 │ │ │ │ - │ │ │ │ -class disable_apache2 { │ │ │ │ - service {'apache2': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38644,14 +38608,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_httpd_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: apache2.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: apache2.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_apache2 │ │ │ │ + │ │ │ │ +class disable_apache2 { │ │ │ │ + service {'apache2': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["apache2"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38693,27 +38693,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nginx │ │ │ │ - │ │ │ │ -class remove_nginx { │ │ │ │ - package { 'nginx': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nginx Package: Ensure nginx is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38725,14 +38712,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_nginx_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nginx │ │ │ │ + │ │ │ │ +class remove_nginx { │ │ │ │ + package { 'nginx': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nginx │ │ │ │ @@ -38762,50 +38762,14 @@ │ │ │ │ The nginx service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now nginx.service │ │ │ │ Rationale: Running web server software provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nginx_disabled │ │ │ │ References: _c_i_s 2.1.18 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nginx"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nginx.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nginx.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nginx │ │ │ │ - │ │ │ │ -class disable_nginx { │ │ │ │ - service {'nginx': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -38855,14 +38819,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nginx_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nginx.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nginx.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nginx │ │ │ │ + │ │ │ │ +class disable_nginx { │ │ │ │ + service {'nginx': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nginx"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -38898,27 +38898,14 @@ │ │ │ │ The dovecot-core package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot-core │ │ │ │ Rationale: If there is no need to make the Dovecot software available, removing it provides a safeguard against │ │ │ │ its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_dovecot_removed │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_dovecot-core │ │ │ │ - │ │ │ │ -class remove_dovecot-core { │ │ │ │ - package { 'dovecot-core': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall dovecot Package: Ensure dovecot-core is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38927,14 +38914,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_dovecot_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_dovecot-core │ │ │ │ + │ │ │ │ +class remove_dovecot-core { │ │ │ │ + package { 'dovecot-core': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove dovecot-core │ │ │ │ @@ -38964,50 +38964,14 @@ │ │ │ │ The dovecot service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dovecot.service │ │ │ │ Rationale: Running an IMAP or POP3 server provides a network-based avenue of attack, and should be disabled if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_dovecot_disabled │ │ │ │ References: _c_i_s 2.1.8 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["dovecot"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: dovecot.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: dovecot.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_dovecot │ │ │ │ - │ │ │ │ -class disable_dovecot { │ │ │ │ - service {'dovecot': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39057,14 +39021,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_dovecot_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: dovecot.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: dovecot.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_dovecot │ │ │ │ + │ │ │ │ +class disable_dovecot { │ │ │ │ + service {'dovecot': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["dovecot"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39107,27 +39107,14 @@ │ │ │ │ from a central database. The ldap-utils package can be removed with the following command: │ │ │ │ $ apt-get remove ldap-utils │ │ │ │ Rationale: If the system does not need to act as an LDAP client, it is recommended that the software is removed to │ │ │ │ reduce the potential attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_openldap-clients_removed │ │ │ │ References: _c_i_s 2.2.5 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ldap-utils │ │ │ │ - │ │ │ │ -class remove_ldap-utils { │ │ │ │ - package { 'ldap-utils': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Ensure LDAP client is not installed: Ensure ldap-utils is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39136,14 +39123,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-clients_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ldap-utils │ │ │ │ + │ │ │ │ +class remove_ldap-utils { │ │ │ │ + package { 'ldap-utils': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ldap-utils │ │ │ │ @@ -39187,27 +39187,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_slapd │ │ │ │ - │ │ │ │ -class remove_slapd { │ │ │ │ - package { 'slapd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall slapd Package: Ensure slapd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39219,14 +39206,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_openldap-servers_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_slapd │ │ │ │ + │ │ │ │ +class remove_slapd { │ │ │ │ + package { 'slapd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove slapd │ │ │ │ @@ -39256,50 +39256,14 @@ │ │ │ │ The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up information │ │ │ │ from a central database. │ │ │ │ Rationale: If the system will not need to act as an LDAP server, it is recommended that the software be disabled │ │ │ │ to reduce the potential attack surface. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_slapd_disabled │ │ │ │ References: _c_i_s 2.1.7 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["slapd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: slapd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: slapd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_slapd │ │ │ │ - │ │ │ │ -class disable_slapd { │ │ │ │ - service {'slapd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39349,14 +39313,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_slapd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: slapd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: slapd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_slapd │ │ │ │ + │ │ │ │ +class disable_slapd { │ │ │ │ + service {'slapd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["slapd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39482,27 +39482,14 @@ │ │ │ │ be removed with the following command: │ │ │ │ $ apt-get remove rpcbind │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rpcbind_removed │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rpcbind │ │ │ │ - │ │ │ │ -class remove_rpcbind { │ │ │ │ - package { 'rpcbind': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39523,14 +39510,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rpcbind_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rpcbind │ │ │ │ + │ │ │ │ +class remove_rpcbind { │ │ │ │ + package { 'rpcbind': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39571,50 +39571,14 @@ │ │ │ │ $ sudo systemctl mask --now rpcbind.service │ │ │ │ Rationale: If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce │ │ │ │ the attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rpcbind_disabled │ │ │ │ References: _c_i_s 2.1.12 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rpcbind"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rpcbind.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rpcbind.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rpcbind │ │ │ │ - │ │ │ │ -class disable_rpcbind { │ │ │ │ - service {'rpcbind': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39668,14 +39632,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rpcbind_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rpcbind.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rpcbind.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rpcbind │ │ │ │ + │ │ │ │ +class disable_rpcbind { │ │ │ │ + service {'rpcbind': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rpcbind"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39722,50 +39722,14 @@ │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.6.1.2, A.7.1.1, A.9.1.2, A.9.2.1, A.9.2.3, A.9.4.1, A.9.4.4, A.9.4.5 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.AC-6, PR.PT-3 │ │ │ │ _c_i_s 2.1.9 │ │ │ │ _s_t_i_g_i_d UBTU-24-100050 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["nfs-server"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: nfs-server.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: nfs-server.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_nfs-server │ │ │ │ - │ │ │ │ -class disable_nfs-server { │ │ │ │ - service {'nfs-server': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -39824,14 +39788,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_nfs_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: nfs-server.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: nfs-server.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_nfs-server │ │ │ │ + │ │ │ │ +class disable_nfs-server { │ │ │ │ + service {'nfs-server': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["nfs-server"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -39862,27 +39862,14 @@ │ │ │ │ $ apt-get remove nfs-kernel-server │ │ │ │ Rationale: If the system does not export NFS shares or act as an NFS client, it is recommended that these services │ │ │ │ be removed to reduce the remote attack surface. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nfs-kernel-server_removed │ │ │ │ References: _c_i_s 2.1.9 │ │ │ │ _s_t_i_g_i_d UBTU-24-100050 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_nfs-kernel-server │ │ │ │ - │ │ │ │ -class remove_nfs-kernel-server { │ │ │ │ - package { 'nfs-kernel-server': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall nfs-kernel-server Package: Ensure nfs-kernel-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39892,14 +39879,27 @@ │ │ │ │ - DISA-STIG-UBTU-24-100050 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nfs-kernel-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_nfs-kernel-server │ │ │ │ + │ │ │ │ +class remove_nfs-kernel-server { │ │ │ │ + package { 'nfs-kernel-server': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove nfs-kernel-server │ │ │ │ @@ -40990,27 +40990,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_xinetd │ │ │ │ - │ │ │ │ -class remove_xinetd { │ │ │ │ - package { 'xinetd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41042,14 +41029,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_xinetd_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_xinetd │ │ │ │ + │ │ │ │ +class remove_xinetd { │ │ │ │ + package { 'xinetd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -41103,50 +41103,14 @@ │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.19 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["xinetd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: xinetd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: xinetd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_xinetd │ │ │ │ - │ │ │ │ -class disable_xinetd { │ │ │ │ - service {'xinetd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41204,14 +41168,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_xinetd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: xinetd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: xinetd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_xinetd │ │ │ │ + │ │ │ │ +class disable_xinetd { │ │ │ │ + service {'xinetd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["xinetd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -41266,27 +41266,14 @@ │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a), IA-5(1)(c) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _p_c_i_d_s_s Req-2.2.2 │ │ │ │ _o_s_-_s_r_g SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.10 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ypserv │ │ │ │ - │ │ │ │ -class remove_ypserv { │ │ │ │ - package { 'ypserv': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall ypserv Package: Ensure ypserv is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41302,14 +41289,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypserv_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_ypserv │ │ │ │ + │ │ │ │ +class remove_ypserv { │ │ │ │ + package { 'ypserv': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove ypserv │ │ │ │ @@ -41340,50 +41340,14 @@ │ │ │ │ ypserv service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now ypserv.service │ │ │ │ Rationale: Disabling the ypserv service ensures the system is not acting as a client in a NIS or NIS+ domain. This │ │ │ │ service should be disabled unless in use. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ypserv_disabled │ │ │ │ References: _c_i_s 2.1.10 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["ypserv"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: ypserv.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: ypserv.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_ypserv │ │ │ │ - │ │ │ │ -class disable_ypserv { │ │ │ │ - service {'ypserv': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -41433,14 +41397,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ypserv_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: ypserv.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: ypserv.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_ypserv │ │ │ │ + │ │ │ │ +class disable_ypserv { │ │ │ │ + service {'ypserv': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["ypserv"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -41480,27 +41480,14 @@ │ │ │ │ _c_u_i 3.1.13 │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.2 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsh-client │ │ │ │ - │ │ │ │ -class remove_rsh-client { │ │ │ │ - package { 'rsh-client': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsh Package: Ensure rsh-client is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41512,14 +41499,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsh_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsh-client │ │ │ │ + │ │ │ │ +class remove_rsh-client { │ │ │ │ + package { 'rsh-client': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsh-client │ │ │ │ @@ -41595,27 +41595,14 @@ │ │ │ │ client program. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk_removed │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2)(ii) │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_talk │ │ │ │ - │ │ │ │ -class remove_talk { │ │ │ │ - package { 'talk': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall talk Package: Ensure talk is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41626,14 +41613,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_talk │ │ │ │ + │ │ │ │ +class remove_talk { │ │ │ │ + package { 'talk': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove talk │ │ │ │ @@ -41667,27 +41667,14 @@ │ │ │ │ The telnet client allows users to start connections to other systems via the telnet protocol. │ │ │ │ The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could │ │ │ │ Rationale: allow an unauthorized user to steal credentials. The ssh package provides an encrypted session and │ │ │ │ stronger security and is included in Ubuntu 24.04. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_inetutils-telnet_removed │ │ │ │ References: _c_i_s 2.2.4 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_inetutils-telnet │ │ │ │ - │ │ │ │ -class remove_inetutils-telnet { │ │ │ │ - package { 'inetutils-telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure inetutils-telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41696,14 +41683,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_inetutils-telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_inetutils-telnet │ │ │ │ + │ │ │ │ +class remove_inetutils-telnet { │ │ │ │ + package { 'inetutils-telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove inetutils-telnet │ │ │ │ @@ -41740,27 +41740,14 @@ │ │ │ │ _h_i_p_a_a 164.308(a)(4)(i), 164.308(b)(1), 164.308(b)(3), 164.310(b), 164.312(e)(1), 164.312(e)(2) │ │ │ │ (ii) │ │ │ │ References: _i_s_o_2_7_0_0_1_-_2_0_1_3 A.8.2.3, A.13.1.1, A.13.2.1, A.13.2.3, A.14.1.2, A.14.1.3 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.2.4 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_telnet │ │ │ │ - │ │ │ │ -class remove_telnet { │ │ │ │ - package { 'telnet': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Remove telnet Clients: Ensure telnet is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41772,14 +41759,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_telnet │ │ │ │ + │ │ │ │ +class remove_telnet { │ │ │ │ + package { 'telnet': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove telnet │ │ │ │ @@ -41834,27 +41834,14 @@ │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_tftpd-hpa │ │ │ │ - │ │ │ │ -class remove_tftpd-hpa { │ │ │ │ - package { 'tftpd-hpa': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall tftpd-hpa Package: Ensure tftpd-hpa is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -41868,14 +41855,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp-server_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_tftpd-hpa │ │ │ │ + │ │ │ │ +class remove_tftpd-hpa { │ │ │ │ + package { 'tftpd-hpa': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove tftpd-hpa │ │ │ │ @@ -41918,50 +41918,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 3.1, SR │ │ │ │ 3.5, SR 3.8, SR 4.1, SR 4.3, SR 5.1, SR 5.2, SR 5.3, SR 7.1, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.11.2.6, A.12.1.2, A.12.5.1, A.12.6.2, A.13.1.1, A.13.2.1, A.14.1.3, A.14.2.2, │ │ │ │ A.14.2.3, A.14.2.4, A.6.2.1, A.6.2.2, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-3, PR.IP-1, PR.PT-3, PR.PT-4 │ │ │ │ _c_i_s 2.1.16 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["tftpd-hpa"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: tftpd-hpa.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: tftpd-hpa.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_tftpd-hpa │ │ │ │ - │ │ │ │ -class disable_tftpd-hpa { │ │ │ │ - service {'tftpd-hpa': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42017,14 +41981,50 @@ │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_tftp_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: tftpd-hpa.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: tftpd-hpa.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftpd-hpa │ │ │ │ + │ │ │ │ +class disable_tftpd-hpa { │ │ │ │ + service {'tftpd-hpa': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["tftpd-hpa"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -42054,27 +42054,14 @@ │ │ │ │ The rsyncd service can be used to synchronize files between systems over network links. The rsync package can be │ │ │ │ removed with the following command: │ │ │ │ $ apt-get remove rsync │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsync_removed │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_rsync │ │ │ │ - │ │ │ │ -class remove_rsync { │ │ │ │ - package { 'rsync': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall rsync Package: Ensure rsync is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42083,14 +42070,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsync_removed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_rsync │ │ │ │ + │ │ │ │ +class remove_rsync { │ │ │ │ + package { 'rsync': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove rsync │ │ │ │ @@ -42120,50 +42120,14 @@ │ │ │ │ The rsyncd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now rsyncd.service │ │ │ │ Rationale: The rsyncd service presents a security risk as it uses unencrypted protocols for communication. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_rsyncd_disabled │ │ │ │ References: _c_i_s 2.1.13 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["rsync"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: rsync.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: rsync.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_rsync │ │ │ │ - │ │ │ │ -class disable_rsync { │ │ │ │ - service {'rsync': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42218,14 +42182,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_rsyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: rsync.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: rsync.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_rsync │ │ │ │ + │ │ │ │ +class disable_rsync { │ │ │ │ + service {'rsync': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["rsync"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -42272,27 +42272,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_cups │ │ │ │ - │ │ │ │ -class remove_cups { │ │ │ │ - package { 'cups': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall CUPS Package: Ensure cups is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42304,14 +42291,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_cups_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_cups │ │ │ │ + │ │ │ │ +class remove_cups { │ │ │ │ + package { 'cups': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove cups │ │ │ │ @@ -42350,50 +42350,14 @@ │ │ │ │ 4.3.3.6.9, 4.3.3.7.1, 4.3.3.7.2, 4.3.3.7.3, 4.3.3.7.4, 4.3.4.3.2, 4.3.4.3.3 │ │ │ │ References: _i_s_a_-_6_2_4_4_3_-_2_0_1_3 SR 1.1, SR 1.10, SR 1.11, SR 1.12, SR 1.13, SR 1.2, SR 1.3, SR 1.4, SR 1.5, SR 1.6, SR │ │ │ │ 1.7, SR 1.8, SR 1.9, SR 2.1, SR 2.2, SR 2.3, SR 2.4, SR 2.5, SR 2.6, SR 2.7, SR 7.6 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4, A.9.1.2 │ │ │ │ _n_i_s_t CM-7(a), CM-7(b), CM-6(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.IP-1, PR.PT-3 │ │ │ │ _c_i_s 2.1.11 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["cups"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: cups.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: cups.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_cups │ │ │ │ - │ │ │ │ -class disable_cups { │ │ │ │ - service {'cups': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42449,14 +42413,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_cups_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: cups.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: cups.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_cups │ │ │ │ + │ │ │ │ +class disable_cups { │ │ │ │ + service {'cups': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["cups"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -42495,27 +42495,14 @@ │ │ │ │ $ apt-get remove squid │ │ │ │ Rationale: If there is no need to make the proxy server software available, removing it provides a safeguard │ │ │ │ against its activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_squid_removed │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_squid │ │ │ │ - │ │ │ │ -class remove_squid { │ │ │ │ - package { 'squid': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall squid Package: Ensure squid is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42524,14 +42511,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_squid_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_squid │ │ │ │ + │ │ │ │ +class remove_squid { │ │ │ │ + package { 'squid': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove squid │ │ │ │ @@ -42562,50 +42562,14 @@ │ │ │ │ $ sudo systemctl mask --now squid.service │ │ │ │ Rationale: Running proxy server software provides a network-based avenue of attack, and should be removed if not │ │ │ │ needed. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_squid_disabled │ │ │ │ References: _c_i_s 2.1.17 │ │ │ │ _i_s_m 1409 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["squid"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: squid.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: squid.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_squid │ │ │ │ - │ │ │ │ -class disable_squid { │ │ │ │ - service {'squid': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42656,14 +42620,50 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_squid_disabled │ │ │ │ - special_service_block │ │ │ │ - unknown_severity │ │ │ │ when: ( "squid" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: squid.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: squid.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_squid │ │ │ │ + │ │ │ │ +class disable_squid { │ │ │ │ + service {'squid': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["squid"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'squid' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -42704,27 +42704,14 @@ │ │ │ │ The samba package can be removed with the following command: │ │ │ │ $ apt-get remove samba │ │ │ │ Rationale: If there is no need to make the Samba software available, removing it provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_samba_removed │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_samba │ │ │ │ - │ │ │ │ -class remove_samba { │ │ │ │ - package { 'samba': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall Samba Package: Ensure samba is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42733,14 +42720,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_samba_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_samba │ │ │ │ + │ │ │ │ +class remove_samba { │ │ │ │ + package { 'samba': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove samba │ │ │ │ @@ -42769,50 +42769,14 @@ │ │ │ │ ****** RRuullee? ?  DDiissaabbllee SSaammbbaa ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The smb service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now smb.service │ │ │ │ Rationale: Running a Samba server provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_smb_disabled │ │ │ │ References: _c_i_s 2.1.14 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["smbd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: smbd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: smbd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_smbd │ │ │ │ - │ │ │ │ -class disable_smbd { │ │ │ │ - service {'smbd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -42862,14 +42826,50 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_smb_disabled │ │ │ │ - special_service_block │ │ │ │ when: '"linux-base" in ansible_facts.packages' │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: smbd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: smbd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smbd │ │ │ │ + │ │ │ │ +class disable_smbd { │ │ │ │ + service {'smbd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["smbd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -42907,27 +42907,14 @@ │ │ │ │ $ apt-get remove snmp │ │ │ │ Rationale: If there is no need to run SNMP server software, removing the package provides a safeguard against its │ │ │ │ activation. │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_net-snmp_removed │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _p_c_i_d_s_s_4 2.2.4, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_snmpd │ │ │ │ - │ │ │ │ -class remove_snmpd { │ │ │ │ - package { 'snmpd': │ │ │ │ - ensure => 'purged', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: 'Uninstall net-snmp Package: Ensure snmpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -42938,14 +42925,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_net-snmp_removed │ │ │ │ - unknown_severity │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ + │ │ │ │ +include remove_snmpd │ │ │ │ + │ │ │ │ +class remove_snmpd { │ │ │ │ + package { 'snmpd': │ │ │ │ + ensure => 'purged', │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ │ │ │ │ # CAUTION: This remediation script will remove snmpd │ │ │ │ @@ -42975,50 +42975,14 @@ │ │ │ │ The snmpd service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now snmpd.service │ │ │ │ Rationale: Running SNMP software provides a network-based avenue of attack, and should be disabled if not needed. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_snmpd_disabled │ │ │ │ References: _c_i_s 2.1.15 │ │ │ │ _i_s_m 1311 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["snmpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: medium │ │ │ │ -RReebboooott:: true │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ -apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ -kind: MachineConfig │ │ │ │ -spec: │ │ │ │ - config: │ │ │ │ - ignition: │ │ │ │ - version: 3.1.0 │ │ │ │ - systemd: │ │ │ │ - units: │ │ │ │ - - name: snmpd.service │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ - - name: snmpd.socket │ │ │ │ - enabled: false │ │ │ │ - mask: true │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: enable │ │ │ │ -include disable_snmpd │ │ │ │ - │ │ │ │ -class disable_snmpd { │ │ │ │ - service {'snmpd': │ │ │ │ - enable => false, │ │ │ │ - ensure => 'stopped', │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -43069,14 +43033,50 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmp" in ansible_facts.packages and "linux-base" in ansible_facts.packages │ │ │ │ ) │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _K_u_b_e_r_n_e_t_e_s_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: medium │ │ │ │ +RReebboooott:: true │ │ │ │ +SSttrraatteeggyy:: disable │ │ │ │ +apiVersion: machineconfiguration.openshift.io/v1 │ │ │ │ +kind: MachineConfig │ │ │ │ +spec: │ │ │ │ + config: │ │ │ │ + ignition: │ │ │ │ + version: 3.1.0 │ │ │ │ + systemd: │ │ │ │ + units: │ │ │ │ + - name: snmpd.service │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ + - name: snmpd.socket │ │ │ │ + enabled: false │ │ │ │ + mask: true │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_snmpd │ │ │ │ + │ │ │ │ +class disable_snmpd { │ │ │ │ + service {'snmpd': │ │ │ │ + enable => false, │ │ │ │ + ensure => 'stopped', │ │ │ │ + } │ │ │ │ +} │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _O_S_B_u_i_l_d_ _B_l_u_e_p_r_i_n_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ +[customizations.services] │ │ │ │ +masked = ["snmpd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: disable │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if ( ( dpkg-query --show --showformat='${db:Status-Status}' 'snmp' 2>/dev/null | grep -q '^installed$' && dpkg- │ │ │ │ @@ -48403,26 +48403,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.2 │ │ │ │ _i_s_m 1449 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - │ │ │ │ - │ │ │ │ - │ │ │ │ -include ssh_private_key_perms │ │ │ │ - │ │ │ │ -class ssh_private_key_perms { │ │ │ │ - exec { 'sshd_priv_key': │ │ │ │ - command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -48486,14 +48474,26 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_private_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ +include ssh_private_key_perms │ │ │ │ + │ │ │ │ +class ssh_private_key_perms { │ │ │ │ + exec { 'sshd_priv_key': │ │ │ │ + command => "chmod 0600 /etc/ssh/*_key", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ │ │ │ │ for keyfile in /etc/ssh/*_key; do │ │ │ │ test -f "$keyfile" || continue │ │ │ │ if test root:root = "$(stat -c "%U:%G" "$keyfile")"; then │ │ │ │ @@ -48528,23 +48528,14 @@ │ │ │ │ _n_i_s_t AC-17(a), CM-6(a), AC-6(1) │ │ │ │ _n_i_s_t_-_c_s_f PR.AC-4, PR.DS-5 │ │ │ │ _p_c_i_d_s_s Req-2.2.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _a_n_s_s_i R50 │ │ │ │ _c_i_s 5.1.3 │ │ │ │ _p_c_i_d_s_s_4 2.2.6, 2.2 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -include ssh_public_key_perms │ │ │ │ - │ │ │ │ -class ssh_public_key_perms { │ │ │ │ - exec { 'sshd_pub_key': │ │ │ │ - command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ - path => '/bin:/usr/bin' │ │ │ │ - } │ │ │ │ -} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ - name: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -48608,14 +48599,23 @@ │ │ │ │ - PCI-DSSv4-2.2.6 │ │ │ │ - configure_strategy │ │ │ │ - file_permissions_sshd_pub_key │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ +_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +include ssh_public_key_perms │ │ │ │ + │ │ │ │ +class ssh_public_key_perms { │ │ │ │ + exec { 'sshd_pub_key': │ │ │ │ + command => "chmod 0644 /etc/ssh/*.pub", │ │ │ │ + path => '/bin:/usr/bin' │ │ │ │ + } │ │ │ │ +} │ │ │ │ _R_e_m_e_d_i_a_t_i_o_n_ _S_h_e_l_l_ _s_c_r_i_p_t_ _⇲ │ │ │ │ CCoommpplleexxiittyy:: low │ │ │ │ DDiissrruuppttiioonn:: low │ │ │ │ RReebboooott:: false │ │ │ │ SSttrraatteeggyy:: configure │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep -q '^installed$'; then │ │ ├── ./usr/share/doc/ssg-debderived/ssg-ubuntu2404-guide-cis_level1_workstation.html │ │ │ @@ -15081,137 +15081,137 @@ │ │ │ 0003ae80: 636f 6c6c 6170 7365 2220 6461 7461 2d74 collapse" data-t │ │ │ 0003ae90: 6172 6765 743d 2223 6964 3722 2074 6162 arget="#id7" tab │ │ │ 0003aea0: 696e 6465 783d 2230 2220 726f 6c65 3d22 index="0" role=" │ │ │ 0003aeb0: 6275 7474 6f6e 2220 6172 6961 2d65 7870 button" aria-exp │ │ │ 0003aec0: 616e 6465 643d 2266 616c 7365 2220 7469 anded="false" ti │ │ │ 0003aed0: 746c 653d 2241 6374 6976 6174 6520 746f tle="Activate to │ │ │ 0003aee0: 2072 6576 6561 6c22 2068 7265 663d 2223 reveal" href="# │ │ │ -0003aef0: 2122 3e52 656d 6564 6961 7469 6f6e 204f !">Remediation O │ │ │ -0003af00: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0003af10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003af20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[[
│ │ │ -0003af60: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -0003af70: 3d20 2261 6964 6522 0a76 6572 7369 6f6e  = "aide".version
│ │ │ -0003af80: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation │ │ │ -0003b040: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0003b050: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity:low
Disrup │ │ │ +0030b4a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0030b4b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0030b4f0: 6779 3a3c 2f74 683e 3c74 643e 636f 6e66 gy:conf │ │ │ +0030b500: 6967 7572 653c 2f74 643e 3c2f 7472 3e3c igure
< │ │ │ -0003b0d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0003b0f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0003b140: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -0003b190: 5f61 6964 650a 0a63 6c61 7373 2069 6e73  _aide..class ins
│ │ │ -0003b1a0: 7461 6c6c 5f61 6964 6520 7b0a 2020 7061  tall_aide {.  pa
│ │ │ -0003b1b0: 636b 6167 6520 7b20 2761 6964 6527 3a0a  ckage { 'aide':.
│ │ │ -0003b1c0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0003b1d0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -0003b1e0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation An │ │ │ -0003b2a0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0003b2b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ -0003b100: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0003b110: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0003b150: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0003b160: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0003b380: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0003b390: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0003b3e0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0003b3f0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0003b400: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0003b410: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0003b420: 746f 0a20 2074 6167 733a 0a20 202d 2043  to.  tags:.  - C
│ │ │ -0003b430: 4a49 532d 352e 3130 2e31 2e33 0a20 202d  JIS-5.10.1.3.  -
│ │ │ -0003b440: 2044 4953 412d 5354 4947 2d55 4254 552d   DISA-STIG-UBTU-
│ │ │ -0003b450: 3234 2d31 3030 3130 300a 2020 2d20 4e49  24-100100.  - NI
│ │ │ -0003b460: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0003b470: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -0003b480: 712d 3131 2e35 0a20 202d 2050 4349 2d44  q-11.5.  - PCI-D
│ │ │ -0003b490: 5353 7634 2d31 312e 352e 320a 2020 2d20  SSv4-11.5.2.  - 
│ │ │ -0003b4a0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0003b4b0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0003b4c0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0003b4d0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0003b4e0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0003b4f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0003b500: 202d 2070 6163 6b61 6765 5f61 6964 655f   - package_aide_
│ │ │ -0003b510: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -0003b520: 653a 2045 6e73 7572 6520 6169 6465 2069  e: Ensure aide i
│ │ │ -0003b530: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -0003b540: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0003b550: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0003b560: 2061 6964 650a 2020 2020 7374 6174 653a   aide.    state:
│ │ │ -0003b570: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -0003b580: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0003b590: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0003b5a0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -0003b5b0: 3a0a 2020 2d20 434a 4953 2d35 2e31 302e  :.  - CJIS-5.10.
│ │ │ -0003b5c0: 312e 330a 2020 2d20 4449 5341 2d53 5449  1.3.  - DISA-STI
│ │ │ -0003b5d0: 472d 5542 5455 2d32 342d 3130 3031 3030  G-UBTU-24-100100
│ │ │ -0003b5e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0003b5f0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -0003b600: 2d44 5353 2d52 6571 2d31 312e 350a 2020  -DSS-Req-11.5.  
│ │ │ -0003b610: 2d20 5043 492d 4453 5376 342d 3131 2e35  - PCI-DSSv4-11.5
│ │ │ -0003b620: 2e32 0a20 202d 2065 6e61 626c 655f 7374  .2.  - enable_st
│ │ │ -0003b630: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0003b640: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0003b650: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0003b660: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0003b670: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0003b680: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0003b690: 655f 6169 6465 5f69 6e73 7461 6c6c 6564  e_aide_installed
│ │ │ +0003aef0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +0003af00: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0003af10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity:low
Disrup │ │ │ -0003b360: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0003b370: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0003b3b0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0003b3c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +0003afe0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0003aff0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0003b040: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0003b050: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0003b060: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0003b070: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0003b080: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0003b090: 434a 4953 2d35 2e31 302e 312e 330a 2020  CJIS-5.10.1.3.  
│ │ │ +0003b0a0: 2d20 4449 5341 2d53 5449 472d 5542 5455  - DISA-STIG-UBTU
│ │ │ +0003b0b0: 2d32 342d 3130 3031 3030 0a20 202d 204e  -24-100100.  - N
│ │ │ +0003b0c0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0003b0d0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +0003b0e0: 6571 2d31 312e 350a 2020 2d20 5043 492d  eq-11.5.  - PCI-
│ │ │ +0003b0f0: 4453 5376 342d 3131 2e35 2e32 0a20 202d  DSSv4-11.5.2.  -
│ │ │ +0003b100: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0003b110: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0003b120: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0003b130: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0003b140: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0003b150: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0003b160: 2020 2d20 7061 636b 6167 655f 6169 6465    - package_aide
│ │ │ +0003b170: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +0003b180: 6d65 3a20 456e 7375 7265 2061 6964 6520  me: Ensure aide 
│ │ │ +0003b190: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +0003b1a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0003b1b0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0003b1c0: 3a20 6169 6465 0a20 2020 2073 7461 7465  : aide.    state
│ │ │ +0003b1d0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +0003b1e0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0003b1f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0003b200: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0003b210: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ +0003b220: 2e31 2e33 0a20 202d 2044 4953 412d 5354  .1.3.  - DISA-ST
│ │ │ +0003b230: 4947 2d55 4254 552d 3234 2d31 3030 3130  IG-UBTU-24-10010
│ │ │ +0003b240: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ +0003b250: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +0003b260: 492d 4453 532d 5265 712d 3131 2e35 0a20  I-DSS-Req-11.5. 
│ │ │ +0003b270: 202d 2050 4349 2d44 5353 7634 2d31 312e   - PCI-DSSv4-11.
│ │ │ +0003b280: 352e 320a 2020 2d20 656e 6162 6c65 5f73  5.2.  - enable_s
│ │ │ +0003b290: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0003b2a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0003b2b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0003b2c0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0003b2d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0003b2e0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0003b2f0: 6765 5f61 6964 655f 696e 7374 616c 6c65  ge_aide_installe
│ │ │ +0003b300: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0003b310: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ +0003b3b0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0003b3c0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +0003afc0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0003afd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0003b010: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0003b020: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +0003b470: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0003b4c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0003b450: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0003b480: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0003b4a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0003b4b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0003b4d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0003b4e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0003b500: 7564 6520 696e 7374 616c 6c5f 6169 6465  ude install_aide
│ │ │ +0003b510: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +0003b520: 6169 6465 207b 0a20 2070 6163 6b61 6765  aide {.  package
│ │ │ +0003b530: 207b 2027 6169 6465 273a 0a20 2020 2065   { 'aide':.    e
│ │ │ +0003b540: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +0003b550: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +0003b560: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ +0003b610: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0003b620: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0003b630: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packag
│ │ │ +0003b680: 6573 5d5d 0a6e 616d 6520 3d20 2261 6964  es]].name = "aid
│ │ │ +0003b690: 6522 0a76 6572 7369 6f6e 203d 2022 2a22  e".version = "*"
│ │ │  0003b6a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedi │ │ │ -00040e00: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00040e10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00040e20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00040e50: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00040e60: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00040e70: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00040e80: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00040e90: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00040ea0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00040eb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00040ef0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00040f00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00040f20: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00040f30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -00040f50: 2072 656d 6f76 655f 7072 656c 696e 6b0a remove_prelink. │ │ │ -00040f60: 0a63 6c61 7373 2072 656d 6f76 655f 7072 .class remove_pr │ │ │ -00040f70: 656c 696e 6b20 7b0a 2020 7061 636b 6167 elink {. packag │ │ │ -00040f80: 6520 7b20 2770 7265 6c69 6e6b 273a 0a20 e { 'prelink':. │ │ │ -00040f90: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ -00040fa0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ -00040fb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
R │ │ │ -00041060: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00041070: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -00041110: 7464 3e6d 6564 6975 6d3c 2f74 643e 3c2f td>medium │ │ │ -00041150: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00041160: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Check I
│ │ │ -000411c0: 6620 5072 656c 696e 6b65 6420 4973 2049  f Prelinked Is I
│ │ │ -000411d0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -000411e0: 6c65 2e62 7569 6c74 696e 2e73 7461 743a  le.builtin.stat:
│ │ │ -000411f0: 0a20 2020 2070 6174 683a 202f 7573 722f  .    path: /usr/
│ │ │ -00041200: 7362 696e 2f70 7265 6c69 6e6b 0a20 2020  sbin/prelink.   
│ │ │ -00041210: 2067 6574 5f63 6865 636b 7375 6d3a 2066   get_checksum: f
│ │ │ -00041220: 616c 7365 0a20 2072 6567 6973 7465 723a  alse.  register:
│ │ │ -00041230: 2070 7265 6c69 6e6b 0a20 2074 6167 733a   prelink.  tags:
│ │ │ -00041240: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00041250: 6174 6567 790a 2020 2d20 6c6f 775f 6469  ategy.  - low_di
│ │ │ -00041260: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00041270: 6975 6d5f 636f 6d70 6c65 7869 7479 0a20  ium_complexity. 
│ │ │ -00041280: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00041290: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000412a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000412b0: 6167 655f 7072 656c 696e 6b5f 7265 6d6f  age_prelink_remo
│ │ │ -000412c0: 7665 640a 0a2d 206e 616d 653a 2052 6573  ved..- name: Res
│ │ │ -000412d0: 746f 7265 2050 7265 6c69 6e6b 6564 2042  tore Prelinked B
│ │ │ -000412e0: 696e 6172 6965 730a 2020 616e 7369 626c  inaries.  ansibl
│ │ │ -000412f0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00041300: 643a 0a20 2020 2063 6d64 3a20 7072 656c  d:.    cmd: prel
│ │ │ -00041310: 696e 6b20 2d75 610a 2020 7768 656e 3a20  ink -ua.  when: 
│ │ │ -00041320: 7072 656c 696e 6b2e 7374 6174 2e65 7869  prelink.stat.exi
│ │ │ -00041330: 7374 730a 2020 7461 6773 3a0a 2020 2d20  sts.  tags:.  - 
│ │ │ -00041340: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00041350: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00041360: 696f 6e0a 2020 2d20 6d65 6469 756d 5f63  ion.  - medium_c
│ │ │ -00041370: 6f6d 706c 6578 6974 790a 2020 2d20 6d65  omplexity.  - me
│ │ │ -00041380: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00041390: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000413a0: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ -000413b0: 7265 6c69 6e6b 5f72 656d 6f76 6564 0a0a  relink_removed..
│ │ │ -000413c0: 2d20 6e61 6d65 3a20 456e 7375 7265 2070  - name: Ensure p
│ │ │ -000413d0: 7265 6c69 6e6b 2069 7320 5265 6d6f 7665  relink is Remove
│ │ │ -000413e0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000413f0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00041400: 206e 616d 653a 2070 7265 6c69 6e6b 0a20   name: prelink. 
│ │ │ -00041410: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00041420: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00041430: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00041440: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00041450: 0a20 202d 206d 6564 6975 6d5f 636f 6d70  .  - medium_comp
│ │ │ -00041460: 6c65 7869 7479 0a20 202d 206d 6564 6975  lexity.  - mediu
│ │ │ -00041470: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00041480: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00041490: 2020 2d20 7061 636b 6167 655f 7072 656c    - package_prel
│ │ │ -000414a0: 696e 6b5f 7265 6d6f 7665 640a 3c2f 636f  ink_removed.
│ │ │ +00040e50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -00041100: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disru │ │ │ -00041130: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00041140: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00041180: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00041190: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comple │ │ │ +00040ea0: 7869 7479 3a3c 2f74 683e 3c74 643e 6d65 xity:me │ │ │ +00040eb0: 6469 756d 3c2f 7464 3e3c 2f74 723e 3c74 dium
Disruption │ │ │ +00040ed0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00040ef0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00040f00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00040f20: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00040f30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00040f50: 6d65 3a20 4368 6563 6b20 4966 2050 7265  me: Check If Pre
│ │ │ +00040f60: 6c69 6e6b 6564 2049 7320 496e 7374 616c  linked Is Instal
│ │ │ +00040f70: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +00040f80: 696c 7469 6e2e 7374 6174 3a0a 2020 2020  iltin.stat:.    
│ │ │ +00040f90: 7061 7468 3a20 2f75 7372 2f73 6269 6e2f  path: /usr/sbin/
│ │ │ +00040fa0: 7072 656c 696e 6b0a 2020 2020 6765 745f  prelink.    get_
│ │ │ +00040fb0: 6368 6563 6b73 756d 3a20 6661 6c73 650a  checksum: false.
│ │ │ +00040fc0: 2020 7265 6769 7374 6572 3a20 7072 656c    register: prel
│ │ │ +00040fd0: 696e 6b0a 2020 7461 6773 3a0a 2020 2d20  ink.  tags:.  - 
│ │ │ +00040fe0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00040ff0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00041000: 696f 6e0a 2020 2d20 6d65 6469 756d 5f63  ion.  - medium_c
│ │ │ +00041010: 6f6d 706c 6578 6974 790a 2020 2d20 6d65  omplexity.  - me
│ │ │ +00041020: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00041030: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00041040: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ +00041050: 7265 6c69 6e6b 5f72 656d 6f76 6564 0a0a  relink_removed..
│ │ │ +00041060: 2d20 6e61 6d65 3a20 5265 7374 6f72 6520  - name: Restore 
│ │ │ +00041070: 5072 656c 696e 6b65 6420 4269 6e61 7269  Prelinked Binari
│ │ │ +00041080: 6573 0a20 2061 6e73 6962 6c65 2e62 7569  es.  ansible.bui
│ │ │ +00041090: 6c74 696e 2e63 6f6d 6d61 6e64 3a0a 2020  ltin.command:.  
│ │ │ +000410a0: 2020 636d 643a 2070 7265 6c69 6e6b 202d    cmd: prelink -
│ │ │ +000410b0: 7561 0a20 2077 6865 6e3a 2070 7265 6c69  ua.  when: preli
│ │ │ +000410c0: 6e6b 2e73 7461 742e 6578 6973 7473 0a20  nk.stat.exists. 
│ │ │ +000410d0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +000410e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000410f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00041100: 202d 206d 6564 6975 6d5f 636f 6d70 6c65   - medium_comple
│ │ │ +00041110: 7869 7479 0a20 202d 206d 6564 6975 6d5f  xity.  - medium_
│ │ │ +00041120: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00041130: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00041140: 2d20 7061 636b 6167 655f 7072 656c 696e  - package_prelin
│ │ │ +00041150: 6b5f 7265 6d6f 7665 640a 0a2d 206e 616d  k_removed..- nam
│ │ │ +00041160: 653a 2045 6e73 7572 6520 7072 656c 696e  e: Ensure prelin
│ │ │ +00041170: 6b20 6973 2052 656d 6f76 6564 0a20 2061  k is Removed.  a
│ │ │ +00041180: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00041190: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000411a0: 3a20 7072 656c 696e 6b0a 2020 2020 7374  : prelink.    st
│ │ │ +000411b0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +000411c0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +000411d0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +000411e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000411f0: 6d65 6469 756d 5f63 6f6d 706c 6578 6974  medium_complexit
│ │ │ +00041200: 790a 2020 2d20 6d65 6469 756d 5f73 6576  y.  - medium_sev
│ │ │ +00041210: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00041220: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00041230: 6163 6b61 6765 5f70 7265 6c69 6e6b 5f72  ackage_prelink_r
│ │ │ +00041240: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediatio │ │ │ +00041300: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00041310: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ +000413a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000413c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000413e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00041410: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00041420: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00041450: 6f76 655f 7072 656c 696e 6b0a 0a63 6c61  ove_prelink..cla
│ │ │ +00041460: 7373 2072 656d 6f76 655f 7072 656c 696e  ss remove_prelin
│ │ │ +00041470: 6b20 7b0a 2020 7061 636b 6167 6520 7b20  k {.  package { 
│ │ │ +00041480: 2770 7265 6c69 6e6b 273a 0a20 2020 2065  'prelink':.    e
│ │ │ +00041490: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +000414a0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 000414c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000414d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000414e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000414f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00041500: 6432 3022 2074 6162 696e 6465 783d 2230 d20" tabindex="0 │ │ │ 00041510: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -20770,131 +20770,131 @@ │ │ │ 00051210: 6c61 7073 6522 2064 6174 612d 7461 7267 lapse" data-targ │ │ │ 00051220: 6574 3d22 2369 6433 3622 2074 6162 696e et="#id36" tabin │ │ │ 00051230: 6465 783d 2230 2220 726f 6c65 3d22 6275 dex="0" role="bu │ │ │ 00051240: 7474 6f6e 2220 6172 6961 2d65 7870 616e tton" aria-expan │ │ │ 00051250: 6465 643d 2266 616c 7365 2220 7469 746c ded="false" titl │ │ │ 00051260: 653d 2241 6374 6976 6174 6520 746f 2072 e="Activate to r │ │ │ 00051270: 6576 6561 6c22 2068 7265 663d 2223 2122 eveal" href="#!" │ │ │ -00051280: 3e52 656d 6564 6961 7469 6f6e 204f 5342 >Remediation OSB │ │ │ -00051290: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -000512a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ -000512f0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -00051300: 2022 7375 646f 220a 7665 7273 696f 6e20   "sudo".version 
│ │ │ -00051310: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediation │ │ │ -000513d0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000513e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00051460: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00051480: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000514d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00051500: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -00051520: 6c5f 7375 646f 0a0a 636c 6173 7320 696e  l_sudo..class in
│ │ │ -00051530: 7374 616c 6c5f 7375 646f 207b 0a20 2070  stall_sudo {.  p
│ │ │ -00051540: 6163 6b61 6765 207b 2027 7375 646f 273a  ackage { 'sudo':
│ │ │ -00051550: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00051560: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -00051570: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -00051630: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ -00051640: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
Complexity:< │ │ │ -00051470: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00051490: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000514e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000514f0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -000516c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000516e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00051730: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00051760: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00051780: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00051790: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -000517a0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -000517b0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -000517c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000517d0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -000517e0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -000517f0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -00051800: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00051810: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00051820: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00051830: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00051840: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00051850: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00051860: 202d 2070 6163 6b61 6765 5f73 7564 6f5f   - package_sudo_
│ │ │ -00051870: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -00051880: 653a 2045 6e73 7572 6520 7375 646f 2069  e: Ensure sudo i
│ │ │ -00051890: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -000518a0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000518b0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -000518c0: 2073 7564 6f0a 2020 2020 7374 6174 653a   sudo.    state:
│ │ │ -000518d0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000518e0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -000518f0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00051900: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00051910: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00051920: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -00051930: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00051940: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -00051950: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00051960: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00051970: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00051980: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00051990: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000519a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000519b0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -000519c0: 7564 6f5f 696e 7374 616c 6c65 640a 3c2f  udo_installed.Remediation Ans
│ │ │ +00051290: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +000512a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:< │ │ │ -000516d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000516f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00051740: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00051750: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00051370: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00051380: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000513d0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000513e0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000513f0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00051400: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00051410: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00051420: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00051430: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +00051440: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00051450: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +00051460: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00051470: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00051480: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00051490: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000514a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000514b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000514c0: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ +000514d0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000514e0: 456e 7375 7265 2073 7564 6f20 6973 2069  Ensure sudo is i
│ │ │ +000514f0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +00051500: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00051510: 6765 3a0a 2020 2020 6e61 6d65 3a20 7375  ge:.    name: su
│ │ │ +00051520: 646f 0a20 2020 2073 7461 7465 3a20 7072  do.    state: pr
│ │ │ +00051530: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +00051540: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00051550: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00051560: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00051570: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00051580: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +00051590: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +000515a0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +000515b0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000515c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000515d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000515e0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000515f0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00051600: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00051610: 2020 2d20 7061 636b 6167 655f 7375 646f    - package_sudo
│ │ │ +00051620: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remedi │ │ │ +000516e0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000516f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00051700: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00051730: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00051740: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00051750: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00051760: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00051770: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00051800: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00051810: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +00051350: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00051360: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000513a0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000513b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +00051780: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00051790: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000517d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000517e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +00051830: 6e73 7461 6c6c 5f73 7564 6f0a 0a63 6c61  nstall_sudo..cla
│ │ │ +00051840: 7373 2069 6e73 7461 6c6c 5f73 7564 6f20  ss install_sudo 
│ │ │ +00051850: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +00051860: 7564 6f27 3a0a 2020 2020 656e 7375 7265  udo':.    ensure
│ │ │ +00051870: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +00051880: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ +00051940: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00051950: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00051960: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ +000519b0: 5d0a 6e61 6d65 203d 2022 7375 646f 220a  ].name = "sudo".
│ │ │ +000519c0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediati │ │ │ -000a42a0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -000a42b0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -000a42c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -000a4310: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -000a4320: 6d6f 6475 6c65 7322 0a76 6572 7369 6f6e  modules".version
│ │ │ -000a4330: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000a43f0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000a4400: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a4480: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000a4490: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000a44b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000a44c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000a44e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000a4500: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000a4530: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000a4540: 7461 6c6c 5f6c 6962 7061 6d2d 6d6f 6475  tall_libpam-modu
│ │ │ -000a4550: 6c65 730a 0a63 6c61 7373 2069 6e73 7461  les..class insta
│ │ │ -000a4560: 6c6c 5f6c 6962 7061 6d2d 6d6f 6475 6c65  ll_libpam-module
│ │ │ -000a4570: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -000a4580: 276c 6962 7061 6d2d 6d6f 6475 6c65 7327  'libpam-modules'
│ │ │ -000a4590: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000a45a0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000a45b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000a4670: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000a4680: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000a4700: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000a4710: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000a4730: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000a4740: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000a4760: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000a4780: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000a47b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000a47c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000a47d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000a47e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000a47f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000a4800: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000a4810: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000a4820: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000a4830: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000a4840: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000a4850: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000a4860: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000a4870: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ -000a4880: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -000a4890: 6e73 7572 6520 6c69 6270 616d 2d6d 6f64  nsure libpam-mod
│ │ │ -000a48a0: 756c 6573 2069 7320 696e 7374 616c 6c65  ules is installe
│ │ │ -000a48b0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000a48c0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000a48d0: 206e 616d 653a 206c 6962 7061 6d2d 6d6f   name: libpam-mo
│ │ │ -000a48e0: 6475 6c65 730a 2020 2020 7374 6174 653a  dules.    state:
│ │ │ -000a48f0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000a4900: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ -000a4910: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000a4920: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000a4930: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000a4940: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000a4950: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000a4960: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000a4970: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000a4980: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000a4990: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000a49a0: 6b61 6765 5f70 616d 5f6d 6f64 756c 6573  kage_pam_modules
│ │ │ -000a49b0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000a4330: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000a4340: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000a4350: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000a4390: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000a43a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000a43c0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000a43e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000a43f0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +000a4400: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +000a4410: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +000a4420: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000a4430: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +000a4440: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000a4450: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000a4460: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000a4470: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000a4480: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000a4490: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +000a44a0: 5f70 616d 5f6d 6f64 756c 6573 5f69 6e73  _pam_modules_ins
│ │ │ +000a44b0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000a44c0: 456e 7375 7265 206c 6962 7061 6d2d 6d6f  Ensure libpam-mo
│ │ │ +000a44d0: 6475 6c65 7320 6973 2069 6e73 7461 6c6c  dules is install
│ │ │ +000a44e0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +000a44f0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000a4500: 2020 6e61 6d65 3a20 6c69 6270 616d 2d6d    name: libpam-m
│ │ │ +000a4510: 6f64 756c 6573 0a20 2020 2073 7461 7465  odules.    state
│ │ │ +000a4520: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000a4530: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +000a4540: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +000a4550: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000a4560: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000a4570: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000a4580: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000a4590: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000a45a0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000a45b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000a45c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000a45d0: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ +000a45e0: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000a4600: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000a4610: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000a4620: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000a4630: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000a4640: 6431 3533 2220 7461 6269 6e64 6578 3d22 d153" tabindex=" │ │ │ +000a4650: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000a4660: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000a4670: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000a4680: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000a4690: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000a46a0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000a46b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000a4740: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000a4750: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000a4770: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000a4790: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000a47a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000a47e0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000a47f0: 6520 696e 7374 616c 6c5f 6c69 6270 616d e install_libpam │ │ │ +000a4800: 2d6d 6f64 756c 6573 0a0a 636c 6173 7320 -modules..class │ │ │ +000a4810: 696e 7374 616c 6c5f 6c69 6270 616d 2d6d install_libpam-m │ │ │ +000a4820: 6f64 756c 6573 207b 0a20 2070 6163 6b61 odules {. packa │ │ │ +000a4830: 6765 207b 2027 6c69 6270 616d 2d6d 6f64 ge { 'libpam-mod │ │ │ +000a4840: 756c 6573 273a 0a20 2020 2065 6e73 7572 ules':. ensur │ │ │ +000a4850: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000a4860: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +000a4920: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000a4930: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000a4940: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +000a4990: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ +000a49a0: 7061 6d2d 6d6f 6475 6c65 7322 0a76 6572  pam-modules".ver
│ │ │ +000a49b0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remedia │ │ │ -000a5770: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -000a5780: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -000a5790: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -000a57d0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -000a57e0: 5d5d 0a6e 616d 6520 3d20 226c 6962 7061  ]].name = "libpa
│ │ │ -000a57f0: 6d2d 7077 7175 616c 6974 7922 0a76 6572  m-pwquality".ver
│ │ │ -000a5800: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -000a58c0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000a58d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000a5980: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000a59a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000a59d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000a5960: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000a5970: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000a5990: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000a59b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000a59c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -000a5a10: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -000a5a20: 7077 7175 616c 6974 790a 0a63 6c61 7373 pwquality..class │ │ │ -000a5a30: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ -000a5a40: 7077 7175 616c 6974 7920 7b0a 2020 7061 pwquality {. pa │ │ │ -000a5a50: 636b 6167 6520 7b20 276c 6962 7061 6d2d ckage { 'libpam- │ │ │ -000a5a60: 7077 7175 616c 6974 7927 3a0a 2020 2020 pwquality':. │ │ │ -000a5a70: 656e 7375 7265 203d 2667 743b 2027 696e ensure => 'in │ │ │ -000a5a80: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a stalled',. }.}. │ │ │ -000a5a90: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ -000a5b40: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000a5b50: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000a5b60: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

< │ │ │ -000a5c30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000a5c40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000a5c90: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000a5ca0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000a5cb0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000a5cc0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000a5cd0: 746f 0a20 2074 6167 733a 0a20 202d 2044  to.  tags:.  - D
│ │ │ -000a5ce0: 4953 412d 5354 4947 2d55 4254 552d 3234  ISA-STIG-UBTU-24
│ │ │ -000a5cf0: 2d31 3030 3630 300a 2020 2d20 656e 6162  -100600.  - enab
│ │ │ -000a5d00: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000a5d10: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000a5d20: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000a5d30: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000a5d40: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000a5d50: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000a5d60: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ -000a5d70: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ -000a5d80: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -000a5d90: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ -000a5da0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000a5db0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000a5dc0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000a5dd0: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ -000a5de0: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ -000a5df0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -000a5e00: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ -000a5e10: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000a5e20: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000a5e30: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ -000a5e40: 2d55 4254 552d 3234 2d31 3030 3630 300a  -UBTU-24-100600.
│ │ │ -000a5e50: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000a5e60: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000a5e70: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000a5e80: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000a5e90: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000a5ea0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000a5eb0: 6564 0a20 202d 2070 6163 6b61 6765 5f70  ed.  - package_p
│ │ │ -000a5ec0: 616d 5f70 7771 7561 6c69 7479 5f69 6e73  am_pwquality_ins
│ │ │ -000a5ed0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +000a5790: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000a57c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -000a5c10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000a5c20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000a5c60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000a5c70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +000a5830: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000a5850: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000a5880: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000a58a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000a5810: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000a5820: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000a5860: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000a5870: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +000a58c0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +000a58d0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +000a58e0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +000a58f0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000a5900: 6773 3a0a 2020 2d20 4449 5341 2d53 5449 gs:. - DISA-STI │ │ │ +000a5910: 472d 5542 5455 2d32 342d 3130 3036 3030 G-UBTU-24-100600 │ │ │ +000a5920: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +000a5930: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +000a5940: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +000a5950: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +000a5960: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +000a5970: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +000a5980: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +000a5990: 7061 6d5f 7077 7175 616c 6974 795f 696e pam_pwquality_in │ │ │ +000a59a0: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ +000a59b0: 2045 6e73 7572 6520 6c69 6270 616d 2d70 Ensure libpam-p │ │ │ +000a59c0: 7771 7561 6c69 7479 2069 7320 696e 7374 wquality is inst │ │ │ +000a59d0: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ +000a59e0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ +000a59f0: 0a20 2020 206e 616d 653a 206c 6962 7061 . name: libpa │ │ │ +000a5a00: 6d2d 7077 7175 616c 6974 790a 2020 2020 m-pwquality. │ │ │ +000a5a10: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +000a5a20: 2077 6865 6e3a 2027 226c 6962 7061 6d2d when: '"libpam- │ │ │ +000a5a30: 7275 6e74 696d 6522 2069 6e20 616e 7369 runtime" in ansi │ │ │ +000a5a40: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +000a5a50: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +000a5a60: 4449 5341 2d53 5449 472d 5542 5455 2d32 DISA-STIG-UBTU-2 │ │ │ +000a5a70: 342d 3130 3036 3030 0a20 202d 2065 6e61 4-100600. - ena │ │ │ +000a5a80: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +000a5a90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +000a5aa0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +000a5ab0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +000a5ac0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +000a5ad0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +000a5ae0: 7061 636b 6167 655f 7061 6d5f 7077 7175 package_pam_pwqu │ │ │ +000a5af0: 616c 6974 795f 696e 7374 616c 6c65 640a ality_installed. │ │ │ +000a5b00: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ +000a5bb0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000a5bc0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000a5c60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000a5d00: 636c 7564 6520 696e 7374 616c 6c5f 6c69  clude install_li
│ │ │ +000a5d10: 6270 616d 2d70 7771 7561 6c69 7479 0a0a  bpam-pwquality..
│ │ │ +000a5d20: 636c 6173 7320 696e 7374 616c 6c5f 6c69  class install_li
│ │ │ +000a5d30: 6270 616d 2d70 7771 7561 6c69 7479 207b  bpam-pwquality {
│ │ │ +000a5d40: 0a20 2070 6163 6b61 6765 207b 2027 6c69  .  package { 'li
│ │ │ +000a5d50: 6270 616d 2d70 7771 7561 6c69 7479 273a  bpam-pwquality':
│ │ │ +000a5d60: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000a5d70: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000a5d80: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ +000a5e40: 204f 5342 7569 6c64 2042 6c75 6570 7269   OSBuild Bluepri
│ │ │ +000a5e50: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f  nt snippet ...
.[[packages]].n
│ │ │ +000a5eb0: 616d 6520 3d20 226c 6962 7061 6d2d 7077  ame = "libpam-pw
│ │ │ +000a5ec0: 7175 616c 6974 7922 0a76 6572 7369 6f6e  quality".version
│ │ │ +000a5ed0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remedi │ │ │ -000a6a30: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000a6a40: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000a6a50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000a6a90: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000a6aa0: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ -000a6ab0: 616d 2d72 756e 7469 6d65 220a 7665 7273  am-runtime".vers
│ │ │ -000a6ac0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000a6b80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000a6b90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000a6ba0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000a6bd0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +000a5c50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000a5c80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000a5c90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000a5cd0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000a5ce0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -000a6c40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000a6c60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000a6c90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000a6cb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000a6c20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000a6c30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000a6c70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000a6c80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000a6cd0: 696e 7374 616c 6c5f 6c69 6270 616d 2d72 install_libpam-r │ │ │ -000a6ce0: 756e 7469 6d65 0a0a 636c 6173 7320 696e untime..class in │ │ │ -000a6cf0: 7374 616c 6c5f 6c69 6270 616d 2d72 756e stall_libpam-run │ │ │ -000a6d00: 7469 6d65 207b 0a20 2070 6163 6b61 6765 time {. package │ │ │ -000a6d10: 207b 2027 6c69 6270 616d 2d72 756e 7469 { 'libpam-runti │ │ │ -000a6d20: 6d65 273a 0a20 2020 2065 6e73 7572 6520 me':. ensure │ │ │ -000a6d30: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ -000a6d40: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -000a6d50: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -000a6e00: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000a6e10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000a6e20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000a6e50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000a6ec0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000a6ee0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000a6f10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000a6f30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000a6ea0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000a6eb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000a6ef0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000a6f00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -000a6f50: 456e 7375 7265 206c 6962 7061 6d2d 7275 Ensure libpam-ru │ │ │ -000a6f60: 6e74 696d 6520 6973 2069 6e73 7461 6c6c ntime is install │ │ │ -000a6f70: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -000a6f80: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -000a6f90: 2020 6e61 6d65 3a20 6c69 6270 616d 2d72 name: libpam-r │ │ │ -000a6fa0: 756e 7469 6d65 0a20 2020 2073 7461 7465 untime. state │ │ │ -000a6fb0: 3a20 7072 6573 656e 740a 2020 7461 6773 : present. tags │ │ │ -000a6fc0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472 :. - enable_str │ │ │ -000a6fd0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -000a6fe0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -000a6ff0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -000a7000: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -000a7010: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -000a7020: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -000a7030: 5f70 616d 5f72 756e 7469 6d65 5f69 6e73 _pam_runtime_ins │ │ │ -000a7040: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.
│ │ │ +000a6af0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000a6b10: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000a6b40: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000a6ad0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000a6ae0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000a6b00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000a6b20: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000a6b30: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000a6b80: 2045 6e73 7572 6520 6c69 6270 616d 2d72 Ensure libpam-r │ │ │ +000a6b90: 756e 7469 6d65 2069 7320 696e 7374 616c untime is instal │ │ │ +000a6ba0: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +000a6bb0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +000a6bc0: 2020 206e 616d 653a 206c 6962 7061 6d2d name: libpam- │ │ │ +000a6bd0: 7275 6e74 696d 650a 2020 2020 7374 6174 runtime. stat │ │ │ +000a6be0: 653a 2070 7265 7365 6e74 0a20 2074 6167 e: present. tag │ │ │ +000a6bf0: 733a 0a20 202d 2065 6e61 626c 655f 7374 s:. - enable_st │ │ │ +000a6c00: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +000a6c10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +000a6c20: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +000a6c30: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +000a6c40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +000a6c50: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +000a6c60: 655f 7061 6d5f 7275 6e74 696d 655f 696e e_pam_runtime_in │ │ │ +000a6c70: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +000a6c80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +000a6d30: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000a6d40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000a6dc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000a6dd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000a6de0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000a6e20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000a6e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000a6e50: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000a6e70: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +000a6e80: 7374 616c 6c5f 6c69 6270 616d 2d72 756e  stall_libpam-run
│ │ │ +000a6e90: 7469 6d65 0a0a 636c 6173 7320 696e 7374  time..class inst
│ │ │ +000a6ea0: 616c 6c5f 6c69 6270 616d 2d72 756e 7469  all_libpam-runti
│ │ │ +000a6eb0: 6d65 207b 0a20 2070 6163 6b61 6765 207b  me {.  package {
│ │ │ +000a6ec0: 2027 6c69 6270 616d 2d72 756e 7469 6d65   'libpam-runtime
│ │ │ +000a6ed0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +000a6ee0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +000a6ef0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +000a6fb0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000a6fc0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000a6fd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +000a7020: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ +000a7030: 7275 6e74 696d 6522 0a76 6572 7369 6f6e  runtime".version
│ │ │ +000a7040: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation │ │ │ -000dece0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000decf0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000ded40: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -000ded50: 6d65 203d 2022 6170 7061 726d 6f72 2d75  me = "apparmor-u
│ │ │ -000ded60: 7469 6c73 220a 7665 7273 696f 6e20 3d20  tils".version = 
│ │ │ -000ded70: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000dee30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000dee40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000deec0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000deee0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000def30: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000def60: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000def80: 6c5f 6170 7061 726d 6f72 2d75 7469 6c73  l_apparmor-utils
│ │ │ -000def90: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000defa0: 6170 7061 726d 6f72 2d75 7469 6c73 207b  apparmor-utils {
│ │ │ -000defb0: 0a20 2070 6163 6b61 6765 207b 2027 6170  .  package { 'ap
│ │ │ -000defc0: 7061 726d 6f72 2d75 7469 6c73 273a 0a20  parmor-utils':. 
│ │ │ -000defd0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000defe0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -000deff0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000df000: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -000df0b0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000df0c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -000deed0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000deef0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000def40: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000def50: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -000df140: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000df160: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000df1b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000df1e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Ensure
│ │ │ -000df200: 2061 7070 6172 6d6f 722d 7574 696c 7320   apparmor-utils 
│ │ │ -000df210: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -000df220: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000df230: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -000df240: 3a20 6170 7061 726d 6f72 2d75 7469 6c73  : apparmor-utils
│ │ │ -000df250: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -000df260: 656e 740a 2020 7768 656e 3a20 616e 7369  ent.  when: ansi
│ │ │ -000df270: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ -000df280: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ -000df290: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ -000df2a0: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ -000df2b0: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ -000df2c0: 5d0a 2020 7461 6773 3a0a 2020 2d20 656e  ].  tags:.  - en
│ │ │ -000df2d0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000df2e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000df2f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000df300: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000df310: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000df320: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000df330: 2070 6163 6b61 6765 5f61 7070 6172 6d6f   package_apparmo
│ │ │ -000df340: 722d 7574 696c 735f 696e 7374 616c 6c65  r-utils_installe
│ │ │ -000df350: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000dece0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +000decf0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ +000dedc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000dee10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -000df150: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000df170: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000df1c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000df1d0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +000ded80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000deda0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000dedf0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000dee00: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Ensur
│ │ │ +000dee30: 6520 6170 7061 726d 6f72 2d75 7469 6c73  e apparmor-utils
│ │ │ +000dee40: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000dee50: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +000dee60: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +000dee70: 653a 2061 7070 6172 6d6f 722d 7574 696c  e: apparmor-util
│ │ │ +000dee80: 730a 2020 2020 7374 6174 653a 2070 7265  s.    state: pre
│ │ │ +000dee90: 7365 6e74 0a20 2077 6865 6e3a 2061 6e73  sent.  when: ans
│ │ │ +000deea0: 6962 6c65 5f76 6972 7475 616c 697a 6174  ible_virtualizat
│ │ │ +000deeb0: 696f 6e5f 7479 7065 206e 6f74 2069 6e20  ion_type not in 
│ │ │ +000deec0: 5b22 646f 636b 6572 222c 2022 6c78 6322  ["docker", "lxc"
│ │ │ +000deed0: 2c20 226f 7065 6e76 7a22 2c20 2270 6f64  , "openvz", "pod
│ │ │ +000deee0: 6d61 6e22 2c20 2263 6f6e 7461 696e 6572  man", "container
│ │ │ +000deef0: 225d 0a20 2074 6167 733a 0a20 202d 2065  "].  tags:.  - e
│ │ │ +000def00: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000def10: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000def20: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000def30: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000def40: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000def50: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000def60: 2d20 7061 636b 6167 655f 6170 7061 726d  - package_apparm
│ │ │ +000def70: 6f72 2d75 7469 6c73 5f69 6e73 7461 6c6c  or-utils_install
│ │ │ +000def80: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000def90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000df040: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000df050: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000df0d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000df0f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000df140: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000df190: 5f61 7070 6172 6d6f 722d 7574 696c 730a  _apparmor-utils.
│ │ │ +000df1a0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61  .class install_a
│ │ │ +000df1b0: 7070 6172 6d6f 722d 7574 696c 7320 7b0a  pparmor-utils {.
│ │ │ +000df1c0: 2020 7061 636b 6167 6520 7b20 2761 7070    package { 'app
│ │ │ +000df1d0: 6172 6d6f 722d 7574 696c 7327 3a0a 2020  armor-utils':.  
│ │ │ +000df1e0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000df1f0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000df200: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000df210: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000df2c0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000df2d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000df2e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +000df320: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +000df330: 203d 2022 6170 7061 726d 6f72 2d75 7469   = "apparmor-uti
│ │ │ +000df340: 6c73 220a 7665 7273 696f 6e20 3d20 222a  ls".version = "*
│ │ │ +000df350: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 000df360: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediat │ │ │ -000e0060: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000e0070: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000e0080: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000e00d0: 5d0a 6e61 6d65 203d 2022 6170 7061 726d  ].name = "apparm
│ │ │ -000e00e0: 6f72 220a 7665 7273 696f 6e20 3d20 222a  or".version = "*
│ │ │ -000e00f0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -000e0100: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000e01b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000e01c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +000df100: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000df110: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000df150: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000df160: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -000e0290: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000e02a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000e02f0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -000e0300: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ -000e0310: 696e 7374 616c 6c5f 6170 7061 726d 6f72  install_apparmor
│ │ │ -000e0320: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000e0330: 6170 7061 726d 6f72 273a 0a20 2020 2065  apparmor':.    e
│ │ │ -000e0340: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000e0350: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000e0360: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000e0410: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000e0420: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disru │ │ │ -000e0270: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000e0280: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000e02c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000e02d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -000e04c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000e0560: 6e61 6d65 3a20 456e 7375 7265 2061 7070  name: Ensure app
│ │ │ -000e0570: 6172 6d6f 7220 6973 2069 6e73 7461 6c6c  armor is install
│ │ │ -000e0580: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -000e0590: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -000e05a0: 2020 6e61 6d65 3a20 6170 7061 726d 6f72    name: apparmor
│ │ │ -000e05b0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -000e05c0: 656e 740a 2020 7768 656e 3a20 616e 7369  ent.  when: ansi
│ │ │ -000e05d0: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ -000e05e0: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ -000e05f0: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ -000e0600: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ -000e0610: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ -000e0620: 5d0a 2020 7461 6773 3a0a 2020 2d20 4449  ].  tags:.  - DI
│ │ │ -000e0630: 5341 2d53 5449 472d 5542 5455 2d32 342d  SA-STIG-UBTU-24-
│ │ │ -000e0640: 3130 3035 3030 0a20 202d 2065 6e61 626c  100500.  - enabl
│ │ │ -000e0650: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000e0660: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000e0670: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000e0680: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000e0690: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000e06a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000e06b0: 636b 6167 655f 6170 7061 726d 6f72 5f69  ckage_apparmor_i
│ │ │ -000e06c0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000e0060: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +000e0070: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +000e0080: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e0090: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e00a0: 7365 2220 6964 3d22 6964 3236 3222 3e3c se" id="id262">< │ │ │ +000e00b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000e00c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000e00d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000e00e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000e00f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000e0180: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000e0190: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -000e04b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000e04e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000e04f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000e0530: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000e0540: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +000e0100: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000e0110: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000e0150: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000e0160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: E
│ │ │ +000e01b0: 6e73 7572 6520 6170 7061 726d 6f72 2069  nsure apparmor i
│ │ │ +000e01c0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +000e01d0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +000e01e0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +000e01f0: 2061 7070 6172 6d6f 720a 2020 2020 7374   apparmor.    st
│ │ │ +000e0200: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +000e0210: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ +000e0220: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ +000e0230: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ +000e0240: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ +000e0250: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ +000e0260: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ +000e0270: 733a 0a20 202d 2044 4953 412d 5354 4947  s:.  - DISA-STIG
│ │ │ +000e0280: 2d55 4254 552d 3234 2d31 3030 3530 300a  -UBTU-24-100500.
│ │ │ +000e0290: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000e02a0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000e02b0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +000e02c0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000e02d0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000e02e0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000e02f0: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +000e0300: 7070 6172 6d6f 725f 696e 7374 616c 6c65  pparmor_installe
│ │ │ +000e0310: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000e0320: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +000e03d0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000e03e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000e04b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000e04c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000e0510: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +000e0520: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ +000e0530: 696e 7374 616c 6c5f 6170 7061 726d 6f72  install_apparmor
│ │ │ +000e0540: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +000e0550: 6170 7061 726d 6f72 273a 0a20 2020 2065  apparmor':.    e
│ │ │ +000e0560: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +000e0570: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +000e0580: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000e0630: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +000e0640: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +000e0650: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000e0660: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000e0690: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +000e06a0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000e06b0: 2261 7070 6172 6d6f 7222 0a76 6572 7369  "apparmor".versi
│ │ │ +000e06c0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  000e06d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
│ │ │ -000eba70: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000eba80: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000eba90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000ebae0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000ebaf0: 2022 7379 7374 656d 642d 6a6f 7572 6e61   "systemd-journa
│ │ │ -000ebb00: 6c2d 7265 6d6f 7465 220a 7665 7273 696f  l-remote".versio
│ │ │ -000ebb10: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -000ebb20: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000ebbd0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000ebbe0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000ebc60: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -000ebcf0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disru │ │ │ +000e0490: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000e04a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000e04e0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000e04f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -000ebc70: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000ebc80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000ebcc0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000ebcd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000ebd10: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000ebd20: 7374 616c 6c5f 7379 7374 656d 642d 6a6f  stall_systemd-jo
│ │ │ -000ebd30: 7572 6e61 6c2d 7265 6d6f 7465 0a0a 636c  urnal-remote..cl
│ │ │ -000ebd40: 6173 7320 696e 7374 616c 6c5f 7379 7374  ass install_syst
│ │ │ -000ebd50: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000ebd60: 7465 207b 0a20 2070 6163 6b61 6765 207b  te {.  package {
│ │ │ -000ebd70: 2027 7379 7374 656d 642d 6a6f 7572 6e61   'systemd-journa
│ │ │ -000ebd80: 6c2d 7265 6d6f 7465 273a 0a20 2020 2065  l-remote':.    e
│ │ │ -000ebd90: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000ebda0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000ebdb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000ebe60: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000ebe70: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000ebf10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000ebfb0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000ebfc0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000ebfd0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000ebfe0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000ebff0: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -000ec000: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000ec010: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000ec020: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000ec030: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000ec040: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000ec050: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000ec060: 2070 6163 6b61 6765 5f73 7973 7465 6d64   package_systemd
│ │ │ -000ec070: 2d6a 6f75 726e 616c 2d72 656d 6f74 655f  -journal-remote_
│ │ │ -000ec080: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -000ec090: 653a 2045 6e73 7572 6520 7379 7374 656d  e: Ensure system
│ │ │ -000ec0a0: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ -000ec0b0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000ec0c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000ec0d0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000ec0e0: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000ec0f0: 616c 2d72 656d 6f74 650a 2020 2020 7374  al-remote.    st
│ │ │ -000ec100: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000ec110: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000ec120: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000ec130: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000ec140: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000ec150: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000ec160: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000ec170: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000ec180: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000ec190: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000ec1a0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000ec1b0: 6b61 6765 5f73 7973 7465 6d64 2d6a 6f75  kage_systemd-jou
│ │ │ -000ec1c0: 726e 616c 2d72 656d 6f74 655f 696e 7374  rnal-remote_inst
│ │ │ -000ec1d0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


│ │ │ -000ebf00: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000ebf30: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000ebf40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000ebf80: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000ebf90: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000ebb60: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000ebb70: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000ebbc0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000ebbd0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000ebbe0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000ebbf0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +000ebc00: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ +000ebc10: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000ebc20: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000ebc30: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000ebc40: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000ebc50: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000ebc60: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000ebc70: 2d20 7061 636b 6167 655f 7379 7374 656d  - package_system
│ │ │ +000ebc80: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000ebc90: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +000ebca0: 6d65 3a20 456e 7375 7265 2073 7973 7465  me: Ensure syste
│ │ │ +000ebcb0: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000ebcc0: 6520 6973 2069 6e73 7461 6c6c 6564 0a20  e is installed. 
│ │ │ +000ebcd0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000ebce0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000ebcf0: 6d65 3a20 7379 7374 656d 642d 6a6f 7572  me: systemd-jour
│ │ │ +000ebd00: 6e61 6c2d 7265 6d6f 7465 0a20 2020 2073  nal-remote.    s
│ │ │ +000ebd10: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000ebd20: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +000ebd30: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +000ebd40: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000ebd50: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000ebd60: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000ebd70: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000ebd80: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000ebd90: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000ebda0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000ebdb0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000ebdc0: 636b 6167 655f 7379 7374 656d 642d 6a6f  ckage_systemd-jo
│ │ │ +000ebdd0: 7572 6e61 6c2d 7265 6d6f 7465 5f69 6e73  urnal-remote_ins
│ │ │ +000ebde0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.Remediati
│ │ │ +000ebea0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +000ebeb0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +000ebf30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +000ebf70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +000ebb40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000ebb50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000ebb90: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000ebba0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +000ebf40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000ebf60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000ebf90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000ebfb0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +000ebfe0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000ebff0: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ +000ec000: 726e 616c 2d72 656d 6f74 650a 0a63 6c61  rnal-remote..cla
│ │ │ +000ec010: 7373 2069 6e73 7461 6c6c 5f73 7973 7465  ss install_syste
│ │ │ +000ec020: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000ec030: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ +000ec040: 2773 7973 7465 6d64 2d6a 6f75 726e 616c  'systemd-journal
│ │ │ +000ec050: 2d72 656d 6f74 6527 3a0a 2020 2020 656e  -remote':.    en
│ │ │ +000ec060: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000ec070: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000ec130: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000ec140: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000ec150: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000ec160: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000ec170: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000ec180: 7365 2220 6964 3d22 6964 3238 3122 3e3c se" id="id281">< │ │ │ +000ec190: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000ec1a0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000ec1b0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000ec1c0: 7265 6d6f 7465 220a 7665 7273 696f 6e20 remote".version │ │ │ +000ec1d0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remed │ │ │ -000ed340: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000ed350: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000ed360: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -000ed3b0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -000ed3c0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ -000ed3d0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ -000ed3e0: 6c6f 6164 225d 0a3c 2f63 6f64 653e 3c2f  load"].
Remediati │ │ │ -000ed4a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000ed4b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000ed530: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000ed540: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000ed560: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000ed570: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000ed590: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000ed5b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000ed5e0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -000ed5f0: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ -000ed600: 6e61 6c2d 7570 6c6f 6164 0a0a 636c 6173  nal-upload..clas
│ │ │ -000ed610: 7320 656e 6162 6c65 5f73 7973 7465 6d64  s enable_systemd
│ │ │ -000ed620: 2d6a 6f75 726e 616c 2d75 706c 6f61 6420  -journal-upload 
│ │ │ -000ed630: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ -000ed640: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ -000ed650: 6c6f 6164 273a 0a20 2020 2065 6e61 626c  load':.    enabl
│ │ │ -000ed660: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -000ed670: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -000ed680: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -000ed690: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000ed740: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000ed750: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000ed760: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000ed830: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000ed840: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000ed890: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000ed8a0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000ed8b0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000ed8c0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000ed8d0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ -000ed8e0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000ed8f0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000ed900: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000ed910: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000ed920: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000ed930: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000ed940: 2d20 7365 7276 6963 655f 7379 7374 656d  - service_system
│ │ │ -000ed950: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ -000ed960: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ -000ed970: 3a20 456e 6162 6c65 2073 7973 7465 6d64  : Enable systemd
│ │ │ -000ed980: 2d6a 6f75 726e 616c 2d75 706c 6f61 6420  -journal-upload 
│ │ │ -000ed990: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -000ed9a0: 2073 6572 7669 6365 2073 7973 7465 6d64   service systemd
│ │ │ -000ed9b0: 2d6a 6f75 726e 616c 2d75 706c 6f61 640a  -journal-upload.
│ │ │ -000ed9c0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -000ed9d0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000ed9e0: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -000ed9f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000eda00: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -000eda10: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -000eda20: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ -000eda30: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ -000eda40: 7572 6e61 6c2d 7570 6c6f 6164 2053 6572  urnal-upload Ser
│ │ │ -000eda50: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ -000eda60: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ -000eda70: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2020  urnal-upload.   
│ │ │ -000eda80: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000eda90: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -000edaa0: 6e61 6d65 3a20 7379 7374 656d 642d 6a6f  name: systemd-jo
│ │ │ -000edab0: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2020  urnal-upload.   
│ │ │ -000edac0: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -000edad0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -000edae0: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -000edaf0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -000edb00: 656e 3a0a 2020 2020 2d20 2722 7379 7374  en:.    - '"syst
│ │ │ -000edb10: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000edb20: 7465 2220 696e 2061 6e73 6962 6c65 5f66  te" in ansible_f
│ │ │ -000edb30: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -000edb40: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -000edb50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000edb60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000edb70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000edb80: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000edb90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000edba0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -000edbb0: 7276 6963 655f 7379 7374 656d 642d 6a6f  rvice_systemd-jo
│ │ │ -000edbc0: 7572 6e61 6c2d 7570 6c6f 6164 5f65 6e61  urnal-upload_ena
│ │ │ -000edbd0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -000edbe0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -000edbf0: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -000edc00: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -000edc10: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000edc20: 6573 270a 2020 2d20 2820 616e 7369 626c  es'.  - ( ansibl
│ │ │ -000edc30: 655f 7669 7274 7561 6c69 7a61 7469 6f6e  e_virtualization
│ │ │ -000edc40: 5f74 7970 6520 6e6f 7420 696e 205b 2264  _type not in ["d
│ │ │ -000edc50: 6f63 6b65 7222 2c20 226c 7863 222c 2022  ocker", "lxc", "
│ │ │ -000edc60: 6f70 656e 767a 222c 2022 706f 646d 616e  openvz", "podman
│ │ │ -000edc70: 222c 2022 636f 6e74 6169 6e65 7222 5d0a  ", "container"].
│ │ │ -000edc80: 2020 2020 616e 6420 2273 7973 7465 6d64      and "systemd
│ │ │ -000edc90: 2d6a 6f75 726e 616c 2d72 656d 6f74 6522  -journal-remote"
│ │ │ -000edca0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000edcb0: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
Complexity:low
Disrup │ │ │ -000ed810: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000ed820: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000ed860: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000ed870: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +000ed3e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000ed3f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000ed410: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000ed430: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000ed440: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000ed480: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000ed490: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000ed4a0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000ed4b0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000ed4c0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000ed4d0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ +000ed4e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +000ed4f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +000ed500: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +000ed510: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +000ed520: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +000ed530: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +000ed540: 7669 6365 5f73 7973 7465 6d64 2d6a 6f75 vice_systemd-jou │ │ │ +000ed550: 726e 616c 2d75 706c 6f61 645f 656e 6162 rnal-upload_enab │ │ │ +000ed560: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ +000ed570: 626c 6520 7379 7374 656d 642d 6a6f 7572 ble systemd-jour │ │ │ +000ed580: 6e61 6c2d 7570 6c6f 6164 2053 6572 7669 nal-upload Servi │ │ │ +000ed590: 6365 202d 2045 6e61 626c 6520 7365 7276 ce - Enable serv │ │ │ +000ed5a0: 6963 6520 7379 7374 656d 642d 6a6f 7572 ice systemd-jour │ │ │ +000ed5b0: 6e61 6c2d 7570 6c6f 6164 0a20 2062 6c6f nal-upload. blo │ │ │ +000ed5c0: 636b 3a0a 0a20 202d 206e 616d 653a 2047 ck:.. - name: G │ │ │ +000ed5d0: 6174 6865 7220 7468 6520 7061 636b 6167 ather the packag │ │ │ +000ed5e0: 6520 6661 6374 730a 2020 2020 616e 7369 e facts. ansi │ │ │ +000ed5f0: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +000ed600: 6167 655f 6661 6374 733a 0a20 2020 2020 age_facts:. │ │ │ +000ed610: 206d 616e 6167 6572 3a20 6175 746f 0a0a manager: auto.. │ │ │ +000ed620: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65 - name: Enable │ │ │ +000ed630: 2073 7973 7465 6d64 2d6a 6f75 726e 616c systemd-journal │ │ │ +000ed640: 2d75 706c 6f61 6420 5365 7276 6963 6520 -upload Service │ │ │ +000ed650: 2d20 456e 6162 6c65 2053 6572 7669 6365 - Enable Service │ │ │ +000ed660: 2073 7973 7465 6d64 2d6a 6f75 726e 616c systemd-journal │ │ │ +000ed670: 2d75 706c 6f61 640a 2020 2020 616e 7369 -upload. ansi │ │ │ +000ed680: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ +000ed690: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ +000ed6a0: 2073 7973 7465 6d64 2d6a 6f75 726e 616c systemd-journal │ │ │ +000ed6b0: 2d75 706c 6f61 640a 2020 2020 2020 656e -upload. en │ │ │ +000ed6c0: 6162 6c65 643a 2074 7275 650a 2020 2020 abled: true. │ │ │ +000ed6d0: 2020 7374 6174 653a 2073 7461 7274 6564 state: started │ │ │ +000ed6e0: 0a20 2020 2020 206d 6173 6b65 643a 2066 . masked: f │ │ │ +000ed6f0: 616c 7365 0a20 2020 2077 6865 6e3a 0a20 alse. when:. │ │ │ +000ed700: 2020 202d 2027 2273 7973 7465 6d64 2d6a - '"systemd-j │ │ │ +000ed710: 6f75 726e 616c 2d72 656d 6f74 6522 2069 ournal-remote" i │ │ │ +000ed720: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +000ed730: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +000ed740: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472 :. - enable_str │ │ │ +000ed750: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +000ed760: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +000ed770: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +000ed780: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +000ed790: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +000ed7a0: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ +000ed7b0: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c _systemd-journal │ │ │ +000ed7c0: 2d75 706c 6f61 645f 656e 6162 6c65 640a -upload_enabled. │ │ │ +000ed7d0: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +000ed7e0: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +000ed7f0: 3a0a 2020 2d20 2722 6c69 6e75 782d 6261 :. - '"linux-ba │ │ │ +000ed800: 7365 2220 696e 2061 6e73 6962 6c65 5f66 se" in ansible_f │ │ │ +000ed810: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ +000ed820: 202d 2028 2061 6e73 6962 6c65 5f76 6972 - ( ansible_vir │ │ │ +000ed830: 7475 616c 697a 6174 696f 6e5f 7479 7065 tualization_type │ │ │ +000ed840: 206e 6f74 2069 6e20 5b22 646f 636b 6572 not in ["docker │ │ │ +000ed850: 222c 2022 6c78 6322 2c20 226f 7065 6e76 ", "lxc", "openv │ │ │ +000ed860: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263 z", "podman", "c │ │ │ +000ed870: 6f6e 7461 696e 6572 225d 0a20 2020 2061 ontainer"]. a │ │ │ +000ed880: 6e64 2022 7379 7374 656d 642d 6a6f 7572 nd "systemd-jour │ │ │ +000ed890: 6e61 6c2d 7265 6d6f 7465 2220 696e 2061 nal-remote" in a │ │ │ +000ed8a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +000ed8b0: 6b61 6765 7320 290a 3c2f 636f 6465 3e3c kages ).< │ │ │ +000ed8c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +000ed970: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000ed980: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000eda00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000eda10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000eda20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000eda60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000eda70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000eda90: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000edab0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +000edac0: 6162 6c65 5f73 7973 7465 6d64 2d6a 6f75  able_systemd-jou
│ │ │ +000edad0: 726e 616c 2d75 706c 6f61 640a 0a63 6c61  rnal-upload..cla
│ │ │ +000edae0: 7373 2065 6e61 626c 655f 7379 7374 656d  ss enable_system
│ │ │ +000edaf0: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000edb00: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ +000edb10: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ +000edb20: 706c 6f61 6427 3a0a 2020 2020 656e 6162  pload':.    enab
│ │ │ +000edb30: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +000edb40: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000edb50: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +000edb60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +000edc20: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +000edc30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +000edc80: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +000edc90: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +000edca0: 3d20 5b22 7379 7374 656d 642d 6a6f 7572  = ["systemd-jour
│ │ │ +000edcb0: 6e61 6c2d 7570 6c6f 6164 225d 0a3c 2f63  nal-upload"].
│ │ │ 000edcd0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -000eeba0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000eebb0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000eebc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000eebd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000eebe0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000eebf0: 7365 2220 6964 3d22 6964 3238 3922 3e3c se" id="id289">< │ │ │ -000eec00: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -000eec10: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -000eec20: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -000eec30: 2273 7973 7465 6d64 2d6a 6f75 726e 616c "systemd-journal │ │ │ -000eec40: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265 d"].
Remediation │ │ │ -000eed00: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000eed10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity │ │ │ +00276ef0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00276f10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00276f20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00276f30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00276f40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00276f60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00276f90: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00276fa0: 696e 7374 616c 6c20 736c 6170 6420 5061  install slapd Pa
│ │ │ +00276fb0: 636b 6167 653a 2045 6e73 7572 6520 736c  ckage: Ensure sl
│ │ │ +00276fc0: 6170 6420 6973 2072 656d 6f76 6564 270a  apd is removed'.
│ │ │ +00276fd0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00276fe0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00276ff0: 616d 653a 2073 6c61 7064 0a20 2020 2073  ame: slapd.    s
│ │ │ +00277000: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +00277010: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00277020: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00277030: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00277040: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00277050: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +00277060: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00277070: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00277080: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00277090: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +002770a0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002770b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002770c0: 2d20 7061 636b 6167 655f 6f70 656e 6c64  - package_openld
│ │ │ +002770d0: 6170 2d73 6572 7665 7273 5f72 656d 6f76  ap-servers_remov
│ │ │ +002770e0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002770f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22